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 { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.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/GetStageCommand.ts b/clients/client-api-gateway/commands/GetStageCommand.ts index a852bcc08b87d..db164bf2d964d 100644 --- a/clients/client-api-gateway/commands/GetStageCommand.ts +++ b/clients/client-api-gateway/commands/GetStageCommand.ts @@ -28,6 +28,7 @@ export class GetStageCommand extends $Command< GetStageCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStageCommand 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/GetStagesCommand.ts b/clients/client-api-gateway/commands/GetStagesCommand.ts index c65f6cc146957..19c6725feff84 100644 --- a/clients/client-api-gateway/commands/GetStagesCommand.ts +++ b/clients/client-api-gateway/commands/GetStagesCommand.ts @@ -28,6 +28,7 @@ export class GetStagesCommand extends $Command< GetStagesCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStagesCommand 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/GetTagsCommand.ts b/clients/client-api-gateway/commands/GetTagsCommand.ts index 915f1bacaf93a..f566bd21989de 100644 --- a/clients/client-api-gateway/commands/GetTagsCommand.ts +++ b/clients/client-api-gateway/commands/GetTagsCommand.ts @@ -28,6 +28,7 @@ export class GetTagsCommand extends $Command< GetTagsCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTagsCommand 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/GetUsageCommand.ts b/clients/client-api-gateway/commands/GetUsageCommand.ts index 4f94cdd3ea333..e4320331daa6a 100644 --- a/clients/client-api-gateway/commands/GetUsageCommand.ts +++ b/clients/client-api-gateway/commands/GetUsageCommand.ts @@ -28,6 +28,7 @@ export class GetUsageCommand extends $Command< GetUsageCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsageCommand 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/GetUsagePlanCommand.ts b/clients/client-api-gateway/commands/GetUsagePlanCommand.ts index 3ebd69a82993c..cda9e70de09a9 100644 --- a/clients/client-api-gateway/commands/GetUsagePlanCommand.ts +++ b/clients/client-api-gateway/commands/GetUsagePlanCommand.ts @@ -28,6 +28,7 @@ export class GetUsagePlanCommand extends $Command< GetUsagePlanCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsagePlanCommand 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/GetUsagePlanKeyCommand.ts b/clients/client-api-gateway/commands/GetUsagePlanKeyCommand.ts index 1f1b583421b8a..01d1fc51851e8 100644 --- a/clients/client-api-gateway/commands/GetUsagePlanKeyCommand.ts +++ b/clients/client-api-gateway/commands/GetUsagePlanKeyCommand.ts @@ -28,6 +28,7 @@ export class GetUsagePlanKeyCommand extends $Command< GetUsagePlanKeyCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsagePlanKeyCommand 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/GetUsagePlanKeysCommand.ts b/clients/client-api-gateway/commands/GetUsagePlanKeysCommand.ts index 1cb866c11afbe..36b94a5d0eaaa 100644 --- a/clients/client-api-gateway/commands/GetUsagePlanKeysCommand.ts +++ b/clients/client-api-gateway/commands/GetUsagePlanKeysCommand.ts @@ -28,6 +28,7 @@ export class GetUsagePlanKeysCommand extends $Command< GetUsagePlanKeysCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsagePlanKeysCommand 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/GetUsagePlansCommand.ts b/clients/client-api-gateway/commands/GetUsagePlansCommand.ts index 2d8377cf74eb0..e8d6b22c9152d 100644 --- a/clients/client-api-gateway/commands/GetUsagePlansCommand.ts +++ b/clients/client-api-gateway/commands/GetUsagePlansCommand.ts @@ -28,6 +28,7 @@ export class GetUsagePlansCommand extends $Command< GetUsagePlansCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsagePlansCommand 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/GetVpcLinkCommand.ts b/clients/client-api-gateway/commands/GetVpcLinkCommand.ts index 52076cde1d129..da9438e837522 100644 --- a/clients/client-api-gateway/commands/GetVpcLinkCommand.ts +++ b/clients/client-api-gateway/commands/GetVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class GetVpcLinkCommand extends $Command< GetVpcLinkCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVpcLinkCommand 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/GetVpcLinksCommand.ts b/clients/client-api-gateway/commands/GetVpcLinksCommand.ts index df5935f1ed279..85291d43d96b7 100644 --- a/clients/client-api-gateway/commands/GetVpcLinksCommand.ts +++ b/clients/client-api-gateway/commands/GetVpcLinksCommand.ts @@ -28,6 +28,7 @@ export class GetVpcLinksCommand extends $Command< GetVpcLinksCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVpcLinksCommand 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/ImportApiKeysCommand.ts b/clients/client-api-gateway/commands/ImportApiKeysCommand.ts index dd5c53d4ac9c1..8cf3cd4a0628c 100644 --- a/clients/client-api-gateway/commands/ImportApiKeysCommand.ts +++ b/clients/client-api-gateway/commands/ImportApiKeysCommand.ts @@ -28,6 +28,7 @@ export class ImportApiKeysCommand extends $Command< ImportApiKeysCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportApiKeysCommand 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/ImportDocumentationPartsCommand.ts b/clients/client-api-gateway/commands/ImportDocumentationPartsCommand.ts index 4444d7b531926..27630e63fd738 100644 --- a/clients/client-api-gateway/commands/ImportDocumentationPartsCommand.ts +++ b/clients/client-api-gateway/commands/ImportDocumentationPartsCommand.ts @@ -25,6 +25,7 @@ export class ImportDocumentationPartsCommand extends $Command< ImportDocumentationPartsCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ImportDocumentationPartsCommand 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/ImportRestApiCommand.ts b/clients/client-api-gateway/commands/ImportRestApiCommand.ts index d09dca0b6f0d1..946e6b5ae869e 100644 --- a/clients/client-api-gateway/commands/ImportRestApiCommand.ts +++ b/clients/client-api-gateway/commands/ImportRestApiCommand.ts @@ -28,6 +28,7 @@ export class ImportRestApiCommand extends $Command< ImportRestApiCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportRestApiCommand 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/PutGatewayResponseCommand.ts b/clients/client-api-gateway/commands/PutGatewayResponseCommand.ts index cd103dd88711c..9a7a286ab4b4e 100644 --- a/clients/client-api-gateway/commands/PutGatewayResponseCommand.ts +++ b/clients/client-api-gateway/commands/PutGatewayResponseCommand.ts @@ -28,6 +28,7 @@ export class PutGatewayResponseCommand extends $Command< PutGatewayResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutGatewayResponseCommand 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/PutIntegrationCommand.ts b/clients/client-api-gateway/commands/PutIntegrationCommand.ts index 08de2f805b4f4..d2faa513e005d 100644 --- a/clients/client-api-gateway/commands/PutIntegrationCommand.ts +++ b/clients/client-api-gateway/commands/PutIntegrationCommand.ts @@ -28,6 +28,7 @@ export class PutIntegrationCommand extends $Command< PutIntegrationCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutIntegrationCommand 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/PutIntegrationResponseCommand.ts b/clients/client-api-gateway/commands/PutIntegrationResponseCommand.ts index f34a3da8c4a4c..a9f2631a7f4c3 100644 --- a/clients/client-api-gateway/commands/PutIntegrationResponseCommand.ts +++ b/clients/client-api-gateway/commands/PutIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class PutIntegrationResponseCommand extends $Command< PutIntegrationResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutIntegrationResponseCommand 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/PutMethodCommand.ts b/clients/client-api-gateway/commands/PutMethodCommand.ts index 30fab30c0bb28..ea1075e786b97 100644 --- a/clients/client-api-gateway/commands/PutMethodCommand.ts +++ b/clients/client-api-gateway/commands/PutMethodCommand.ts @@ -28,6 +28,7 @@ export class PutMethodCommand extends $Command< PutMethodCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutMethodCommand 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/PutMethodResponseCommand.ts b/clients/client-api-gateway/commands/PutMethodResponseCommand.ts index 3eb4bf1a15dbd..2900c32f29d33 100644 --- a/clients/client-api-gateway/commands/PutMethodResponseCommand.ts +++ b/clients/client-api-gateway/commands/PutMethodResponseCommand.ts @@ -28,6 +28,7 @@ export class PutMethodResponseCommand extends $Command< PutMethodResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutMethodResponseCommand 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/PutRestApiCommand.ts b/clients/client-api-gateway/commands/PutRestApiCommand.ts index f6471880695b7..fbbe66650d56c 100644 --- a/clients/client-api-gateway/commands/PutRestApiCommand.ts +++ b/clients/client-api-gateway/commands/PutRestApiCommand.ts @@ -29,6 +29,7 @@ export class PutRestApiCommand extends $Command< PutRestApiCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutRestApiCommand 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/TagResourceCommand.ts b/clients/client-api-gateway/commands/TagResourceCommand.ts index b41d8780d05fd..8e52e4c92d0c4 100644 --- a/clients/client-api-gateway/commands/TagResourceCommand.ts +++ b/clients/client-api-gateway/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand 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/TestInvokeAuthorizerCommand.ts b/clients/client-api-gateway/commands/TestInvokeAuthorizerCommand.ts index ba7e4df992f39..44f6bf71672f3 100644 --- a/clients/client-api-gateway/commands/TestInvokeAuthorizerCommand.ts +++ b/clients/client-api-gateway/commands/TestInvokeAuthorizerCommand.ts @@ -32,6 +32,7 @@ export class TestInvokeAuthorizerCommand extends $Command< TestInvokeAuthorizerCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestInvokeAuthorizerCommand 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/TestInvokeMethodCommand.ts b/clients/client-api-gateway/commands/TestInvokeMethodCommand.ts index 104328c825626..db6e7e4cf843b 100644 --- a/clients/client-api-gateway/commands/TestInvokeMethodCommand.ts +++ b/clients/client-api-gateway/commands/TestInvokeMethodCommand.ts @@ -28,6 +28,7 @@ export class TestInvokeMethodCommand extends $Command< TestInvokeMethodCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TestInvokeMethodCommand 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/UntagResourceCommand.ts b/clients/client-api-gateway/commands/UntagResourceCommand.ts index 205ef9de8571a..5971e531f22eb 100644 --- a/clients/client-api-gateway/commands/UntagResourceCommand.ts +++ b/clients/client-api-gateway/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand 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/UpdateAccountCommand.ts b/clients/client-api-gateway/commands/UpdateAccountCommand.ts index 7acaa05d238e9..a6a33c7f746fb 100644 --- a/clients/client-api-gateway/commands/UpdateAccountCommand.ts +++ b/clients/client-api-gateway/commands/UpdateAccountCommand.ts @@ -28,6 +28,7 @@ export class UpdateAccountCommand extends $Command< UpdateAccountCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAccountCommand 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/UpdateApiKeyCommand.ts b/clients/client-api-gateway/commands/UpdateApiKeyCommand.ts index a0fbe5d500b96..215ec9e30529e 100644 --- a/clients/client-api-gateway/commands/UpdateApiKeyCommand.ts +++ b/clients/client-api-gateway/commands/UpdateApiKeyCommand.ts @@ -28,6 +28,7 @@ export class UpdateApiKeyCommand extends $Command< UpdateApiKeyCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApiKeyCommand 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/UpdateAuthorizerCommand.ts b/clients/client-api-gateway/commands/UpdateAuthorizerCommand.ts index 2a088d7096bec..21efdc7765398 100644 --- a/clients/client-api-gateway/commands/UpdateAuthorizerCommand.ts +++ b/clients/client-api-gateway/commands/UpdateAuthorizerCommand.ts @@ -29,6 +29,7 @@ export class UpdateAuthorizerCommand extends $Command< UpdateAuthorizerCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateAuthorizerCommand 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/UpdateBasePathMappingCommand.ts b/clients/client-api-gateway/commands/UpdateBasePathMappingCommand.ts index 1a16e087d8eaf..634d1c9631545 100644 --- a/clients/client-api-gateway/commands/UpdateBasePathMappingCommand.ts +++ b/clients/client-api-gateway/commands/UpdateBasePathMappingCommand.ts @@ -28,6 +28,7 @@ export class UpdateBasePathMappingCommand extends $Command< UpdateBasePathMappingCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBasePathMappingCommand 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/UpdateClientCertificateCommand.ts b/clients/client-api-gateway/commands/UpdateClientCertificateCommand.ts index 06a20b3f97924..50591f00631d6 100644 --- a/clients/client-api-gateway/commands/UpdateClientCertificateCommand.ts +++ b/clients/client-api-gateway/commands/UpdateClientCertificateCommand.ts @@ -28,6 +28,7 @@ export class UpdateClientCertificateCommand extends $Command< UpdateClientCertificateCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateClientCertificateCommand 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/UpdateDeploymentCommand.ts b/clients/client-api-gateway/commands/UpdateDeploymentCommand.ts index a4f98cc6c737a..4a3e4c999169e 100644 --- a/clients/client-api-gateway/commands/UpdateDeploymentCommand.ts +++ b/clients/client-api-gateway/commands/UpdateDeploymentCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeploymentCommand extends $Command< UpdateDeploymentCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeploymentCommand 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/UpdateDocumentationPartCommand.ts b/clients/client-api-gateway/commands/UpdateDocumentationPartCommand.ts index 5a937d59cc8ef..6020fe3d96f15 100644 --- a/clients/client-api-gateway/commands/UpdateDocumentationPartCommand.ts +++ b/clients/client-api-gateway/commands/UpdateDocumentationPartCommand.ts @@ -25,6 +25,7 @@ export class UpdateDocumentationPartCommand extends $Command< UpdateDocumentationPartCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateDocumentationPartCommand 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/UpdateDocumentationVersionCommand.ts b/clients/client-api-gateway/commands/UpdateDocumentationVersionCommand.ts index 5db0d2d087eff..b6de3c0e66887 100644 --- a/clients/client-api-gateway/commands/UpdateDocumentationVersionCommand.ts +++ b/clients/client-api-gateway/commands/UpdateDocumentationVersionCommand.ts @@ -25,6 +25,7 @@ export class UpdateDocumentationVersionCommand extends $Command< UpdateDocumentationVersionCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateDocumentationVersionCommand 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/UpdateDomainNameCommand.ts b/clients/client-api-gateway/commands/UpdateDomainNameCommand.ts index 601db5d6f9748..5a7f0dfee65ae 100644 --- a/clients/client-api-gateway/commands/UpdateDomainNameCommand.ts +++ b/clients/client-api-gateway/commands/UpdateDomainNameCommand.ts @@ -28,6 +28,7 @@ export class UpdateDomainNameCommand extends $Command< UpdateDomainNameCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDomainNameCommand 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/UpdateGatewayResponseCommand.ts b/clients/client-api-gateway/commands/UpdateGatewayResponseCommand.ts index 7bb0d29defab3..064242456da85 100644 --- a/clients/client-api-gateway/commands/UpdateGatewayResponseCommand.ts +++ b/clients/client-api-gateway/commands/UpdateGatewayResponseCommand.ts @@ -28,6 +28,7 @@ export class UpdateGatewayResponseCommand extends $Command< UpdateGatewayResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGatewayResponseCommand 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/UpdateIntegrationCommand.ts b/clients/client-api-gateway/commands/UpdateIntegrationCommand.ts index 06e04821317ab..a9e6139f520fa 100644 --- a/clients/client-api-gateway/commands/UpdateIntegrationCommand.ts +++ b/clients/client-api-gateway/commands/UpdateIntegrationCommand.ts @@ -28,6 +28,7 @@ export class UpdateIntegrationCommand extends $Command< UpdateIntegrationCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIntegrationCommand 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/UpdateIntegrationResponseCommand.ts b/clients/client-api-gateway/commands/UpdateIntegrationResponseCommand.ts index a7410f46d37af..a737ecf50e6fc 100644 --- a/clients/client-api-gateway/commands/UpdateIntegrationResponseCommand.ts +++ b/clients/client-api-gateway/commands/UpdateIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class UpdateIntegrationResponseCommand extends $Command< UpdateIntegrationResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIntegrationResponseCommand 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/UpdateMethodCommand.ts b/clients/client-api-gateway/commands/UpdateMethodCommand.ts index d5674abb20a52..153190846597f 100644 --- a/clients/client-api-gateway/commands/UpdateMethodCommand.ts +++ b/clients/client-api-gateway/commands/UpdateMethodCommand.ts @@ -28,6 +28,7 @@ export class UpdateMethodCommand extends $Command< UpdateMethodCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMethodCommand 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/UpdateMethodResponseCommand.ts b/clients/client-api-gateway/commands/UpdateMethodResponseCommand.ts index 0c602033eb064..e408fddb1e6af 100644 --- a/clients/client-api-gateway/commands/UpdateMethodResponseCommand.ts +++ b/clients/client-api-gateway/commands/UpdateMethodResponseCommand.ts @@ -28,6 +28,7 @@ export class UpdateMethodResponseCommand extends $Command< UpdateMethodResponseCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMethodResponseCommand 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/UpdateModelCommand.ts b/clients/client-api-gateway/commands/UpdateModelCommand.ts index e1fc5f84eec83..9a0764898010f 100644 --- a/clients/client-api-gateway/commands/UpdateModelCommand.ts +++ b/clients/client-api-gateway/commands/UpdateModelCommand.ts @@ -28,6 +28,7 @@ export class UpdateModelCommand extends $Command< UpdateModelCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateModelCommand 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/UpdateRequestValidatorCommand.ts b/clients/client-api-gateway/commands/UpdateRequestValidatorCommand.ts index 9fb215829daa7..a2406fa467f09 100644 --- a/clients/client-api-gateway/commands/UpdateRequestValidatorCommand.ts +++ b/clients/client-api-gateway/commands/UpdateRequestValidatorCommand.ts @@ -28,6 +28,7 @@ export class UpdateRequestValidatorCommand extends $Command< UpdateRequestValidatorCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRequestValidatorCommand 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/UpdateResourceCommand.ts b/clients/client-api-gateway/commands/UpdateResourceCommand.ts index c73dbf2f68b51..8d0166b014af0 100644 --- a/clients/client-api-gateway/commands/UpdateResourceCommand.ts +++ b/clients/client-api-gateway/commands/UpdateResourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateResourceCommand extends $Command< UpdateResourceCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResourceCommand 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/UpdateRestApiCommand.ts b/clients/client-api-gateway/commands/UpdateRestApiCommand.ts index fa874a1458e2a..53e6a9deb1997 100644 --- a/clients/client-api-gateway/commands/UpdateRestApiCommand.ts +++ b/clients/client-api-gateway/commands/UpdateRestApiCommand.ts @@ -28,6 +28,7 @@ export class UpdateRestApiCommand extends $Command< UpdateRestApiCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRestApiCommand 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/UpdateStageCommand.ts b/clients/client-api-gateway/commands/UpdateStageCommand.ts index 1b95416668f64..304a15756cbea 100644 --- a/clients/client-api-gateway/commands/UpdateStageCommand.ts +++ b/clients/client-api-gateway/commands/UpdateStageCommand.ts @@ -28,6 +28,7 @@ export class UpdateStageCommand extends $Command< UpdateStageCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateStageCommand 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/UpdateUsageCommand.ts b/clients/client-api-gateway/commands/UpdateUsageCommand.ts index 6164a9d5ee769..7d9102f099499 100644 --- a/clients/client-api-gateway/commands/UpdateUsageCommand.ts +++ b/clients/client-api-gateway/commands/UpdateUsageCommand.ts @@ -28,6 +28,7 @@ export class UpdateUsageCommand extends $Command< UpdateUsageCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUsageCommand 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/UpdateUsagePlanCommand.ts b/clients/client-api-gateway/commands/UpdateUsagePlanCommand.ts index 34a36311b0ca3..6a86c853a7041 100644 --- a/clients/client-api-gateway/commands/UpdateUsagePlanCommand.ts +++ b/clients/client-api-gateway/commands/UpdateUsagePlanCommand.ts @@ -28,6 +28,7 @@ export class UpdateUsagePlanCommand extends $Command< UpdateUsagePlanCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUsagePlanCommand 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/UpdateVpcLinkCommand.ts b/clients/client-api-gateway/commands/UpdateVpcLinkCommand.ts index 5899d40340916..bb495ecc5b0cd 100644 --- a/clients/client-api-gateway/commands/UpdateVpcLinkCommand.ts +++ b/clients/client-api-gateway/commands/UpdateVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class UpdateVpcLinkCommand extends $Command< UpdateVpcLinkCommandOutput, APIGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVpcLinkCommand 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-apigatewaymanagementapi/commands/DeleteConnectionCommand.ts b/clients/client-apigatewaymanagementapi/commands/DeleteConnectionCommand.ts index 19121697d4c03..dc32cf083d240 100644 --- a/clients/client-apigatewaymanagementapi/commands/DeleteConnectionCommand.ts +++ b/clients/client-apigatewaymanagementapi/commands/DeleteConnectionCommand.ts @@ -32,6 +32,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteConnectionCommand extends $Command< configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewaymanagementapi/commands/GetConnectionCommand.ts b/clients/client-apigatewaymanagementapi/commands/GetConnectionCommand.ts index cf1aac108f65e..2be8139b426de 100644 --- a/clients/client-apigatewaymanagementapi/commands/GetConnectionCommand.ts +++ b/clients/client-apigatewaymanagementapi/commands/GetConnectionCommand.ts @@ -32,6 +32,7 @@ export class GetConnectionCommand extends $Command< GetConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetConnectionCommand extends $Command< configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewaymanagementapi/commands/PostToConnectionCommand.ts b/clients/client-apigatewaymanagementapi/commands/PostToConnectionCommand.ts index 056e2de18eede..e0855623f0d55 100644 --- a/clients/client-apigatewaymanagementapi/commands/PostToConnectionCommand.ts +++ b/clients/client-apigatewaymanagementapi/commands/PostToConnectionCommand.ts @@ -32,6 +32,7 @@ export class PostToConnectionCommand extends $Command< PostToConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PostToConnectionCommand extends $Command< configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateApiCommand.ts b/clients/client-apigatewayv2/commands/CreateApiCommand.ts index d1ef6347c60fb..bfaf471d30209 100644 --- a/clients/client-apigatewayv2/commands/CreateApiCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateApiCommand.ts @@ -28,6 +28,7 @@ export class CreateApiCommand extends $Command< CreateApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateApiMappingCommand.ts b/clients/client-apigatewayv2/commands/CreateApiMappingCommand.ts index 2a35c73d32fe6..4d343e6568009 100644 --- a/clients/client-apigatewayv2/commands/CreateApiMappingCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateApiMappingCommand.ts @@ -28,6 +28,7 @@ export class CreateApiMappingCommand extends $Command< CreateApiMappingCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateApiMappingCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateAuthorizerCommand.ts b/clients/client-apigatewayv2/commands/CreateAuthorizerCommand.ts index bc7f100964d07..d8c55b2991209 100644 --- a/clients/client-apigatewayv2/commands/CreateAuthorizerCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class CreateAuthorizerCommand extends $Command< CreateAuthorizerCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAuthorizerCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateDeploymentCommand.ts b/clients/client-apigatewayv2/commands/CreateDeploymentCommand.ts index eb0cd9dfd600c..2b220b67318ac 100644 --- a/clients/client-apigatewayv2/commands/CreateDeploymentCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateDeploymentCommand.ts @@ -28,6 +28,7 @@ export class CreateDeploymentCommand extends $Command< CreateDeploymentCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeploymentCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateDomainNameCommand.ts b/clients/client-apigatewayv2/commands/CreateDomainNameCommand.ts index 54a4bca49ca6b..77407fde0d99b 100644 --- a/clients/client-apigatewayv2/commands/CreateDomainNameCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateDomainNameCommand.ts @@ -28,6 +28,7 @@ export class CreateDomainNameCommand extends $Command< CreateDomainNameCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDomainNameCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateIntegrationCommand.ts b/clients/client-apigatewayv2/commands/CreateIntegrationCommand.ts index 2eeb89ccb6776..c1b158ae673e4 100644 --- a/clients/client-apigatewayv2/commands/CreateIntegrationCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateIntegrationCommand.ts @@ -28,6 +28,7 @@ export class CreateIntegrationCommand extends $Command< CreateIntegrationCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateIntegrationCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateIntegrationResponseCommand.ts b/clients/client-apigatewayv2/commands/CreateIntegrationResponseCommand.ts index f78d1d0dc1445..9b24705cc06b3 100644 --- a/clients/client-apigatewayv2/commands/CreateIntegrationResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class CreateIntegrationResponseCommand extends $Command< CreateIntegrationResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateIntegrationResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateModelCommand.ts b/clients/client-apigatewayv2/commands/CreateModelCommand.ts index 5fe48b900a9b2..f6544cc3b91e7 100644 --- a/clients/client-apigatewayv2/commands/CreateModelCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateModelCommand.ts @@ -28,6 +28,7 @@ export class CreateModelCommand extends $Command< CreateModelCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateModelCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateRouteCommand.ts b/clients/client-apigatewayv2/commands/CreateRouteCommand.ts index bc8160906fe33..69ecb50012b31 100644 --- a/clients/client-apigatewayv2/commands/CreateRouteCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateRouteCommand.ts @@ -28,6 +28,7 @@ export class CreateRouteCommand extends $Command< CreateRouteCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRouteCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateRouteResponseCommand.ts b/clients/client-apigatewayv2/commands/CreateRouteResponseCommand.ts index 45c1bf36f5208..e3df1e3539544 100644 --- a/clients/client-apigatewayv2/commands/CreateRouteResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateRouteResponseCommand.ts @@ -28,6 +28,7 @@ export class CreateRouteResponseCommand extends $Command< CreateRouteResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRouteResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateStageCommand.ts b/clients/client-apigatewayv2/commands/CreateStageCommand.ts index fa1426fb86a75..b324abbbf0000 100644 --- a/clients/client-apigatewayv2/commands/CreateStageCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateStageCommand.ts @@ -28,6 +28,7 @@ export class CreateStageCommand extends $Command< CreateStageCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateStageCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/CreateVpcLinkCommand.ts b/clients/client-apigatewayv2/commands/CreateVpcLinkCommand.ts index 55a66933dbe0b..5729a6c5441aa 100644 --- a/clients/client-apigatewayv2/commands/CreateVpcLinkCommand.ts +++ b/clients/client-apigatewayv2/commands/CreateVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class CreateVpcLinkCommand extends $Command< CreateVpcLinkCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateVpcLinkCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteAccessLogSettingsCommand.ts b/clients/client-apigatewayv2/commands/DeleteAccessLogSettingsCommand.ts index ba1fcfb56acce..76ddd45d178a9 100644 --- a/clients/client-apigatewayv2/commands/DeleteAccessLogSettingsCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteAccessLogSettingsCommand.ts @@ -28,6 +28,7 @@ export class DeleteAccessLogSettingsCommand extends $Command< DeleteAccessLogSettingsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAccessLogSettingsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteApiCommand.ts b/clients/client-apigatewayv2/commands/DeleteApiCommand.ts index ca597cd75f189..892a999d149e6 100644 --- a/clients/client-apigatewayv2/commands/DeleteApiCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteApiCommand.ts @@ -28,6 +28,7 @@ export class DeleteApiCommand extends $Command< DeleteApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteApiMappingCommand.ts b/clients/client-apigatewayv2/commands/DeleteApiMappingCommand.ts index c81de516ed1c5..496fb9fd9bc72 100644 --- a/clients/client-apigatewayv2/commands/DeleteApiMappingCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteApiMappingCommand.ts @@ -28,6 +28,7 @@ export class DeleteApiMappingCommand extends $Command< DeleteApiMappingCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApiMappingCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteAuthorizerCommand.ts b/clients/client-apigatewayv2/commands/DeleteAuthorizerCommand.ts index 884417b0ec996..eac141cf89929 100644 --- a/clients/client-apigatewayv2/commands/DeleteAuthorizerCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class DeleteAuthorizerCommand extends $Command< DeleteAuthorizerCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAuthorizerCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteCorsConfigurationCommand.ts b/clients/client-apigatewayv2/commands/DeleteCorsConfigurationCommand.ts index 83ac8b8ba565a..e24057a8b6808 100644 --- a/clients/client-apigatewayv2/commands/DeleteCorsConfigurationCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteCorsConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteCorsConfigurationCommand extends $Command< DeleteCorsConfigurationCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCorsConfigurationCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteDeploymentCommand.ts b/clients/client-apigatewayv2/commands/DeleteDeploymentCommand.ts index 35eb4609f34b5..6c110def8090a 100644 --- a/clients/client-apigatewayv2/commands/DeleteDeploymentCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteDeploymentCommand.ts @@ -28,6 +28,7 @@ export class DeleteDeploymentCommand extends $Command< DeleteDeploymentCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDeploymentCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteDomainNameCommand.ts b/clients/client-apigatewayv2/commands/DeleteDomainNameCommand.ts index d52465be30116..3465dd14c7c16 100644 --- a/clients/client-apigatewayv2/commands/DeleteDomainNameCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteDomainNameCommand.ts @@ -28,6 +28,7 @@ export class DeleteDomainNameCommand extends $Command< DeleteDomainNameCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDomainNameCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteIntegrationCommand.ts b/clients/client-apigatewayv2/commands/DeleteIntegrationCommand.ts index e4e1e15f9f363..e20a7667805eb 100644 --- a/clients/client-apigatewayv2/commands/DeleteIntegrationCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteIntegrationCommand.ts @@ -28,6 +28,7 @@ export class DeleteIntegrationCommand extends $Command< DeleteIntegrationCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteIntegrationCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteIntegrationResponseCommand.ts b/clients/client-apigatewayv2/commands/DeleteIntegrationResponseCommand.ts index 72bccaf1af769..2a2b194cb0c33 100644 --- a/clients/client-apigatewayv2/commands/DeleteIntegrationResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class DeleteIntegrationResponseCommand extends $Command< DeleteIntegrationResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteIntegrationResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteModelCommand.ts b/clients/client-apigatewayv2/commands/DeleteModelCommand.ts index 077fc3a899a58..869146e89a091 100644 --- a/clients/client-apigatewayv2/commands/DeleteModelCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteModelCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelCommand extends $Command< DeleteModelCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteRouteCommand.ts b/clients/client-apigatewayv2/commands/DeleteRouteCommand.ts index 7a5af1260397a..22167d11cf3fe 100644 --- a/clients/client-apigatewayv2/commands/DeleteRouteCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteCommand extends $Command< DeleteRouteCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteRouteRequestParameterCommand.ts b/clients/client-apigatewayv2/commands/DeleteRouteRequestParameterCommand.ts index dd40cce050d70..4d74151ceb68f 100644 --- a/clients/client-apigatewayv2/commands/DeleteRouteRequestParameterCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteRouteRequestParameterCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteRequestParameterCommand extends $Command< DeleteRouteRequestParameterCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteRequestParameterCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteRouteResponseCommand.ts b/clients/client-apigatewayv2/commands/DeleteRouteResponseCommand.ts index 78585b03e6896..b4b550b7cab42 100644 --- a/clients/client-apigatewayv2/commands/DeleteRouteResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteRouteResponseCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteResponseCommand extends $Command< DeleteRouteResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteRouteSettingsCommand.ts b/clients/client-apigatewayv2/commands/DeleteRouteSettingsCommand.ts index a171f364f2aad..703446ca8a94c 100644 --- a/clients/client-apigatewayv2/commands/DeleteRouteSettingsCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteRouteSettingsCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteSettingsCommand extends $Command< DeleteRouteSettingsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteSettingsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteStageCommand.ts b/clients/client-apigatewayv2/commands/DeleteStageCommand.ts index 20c621b303f5b..722db20b6c0ee 100644 --- a/clients/client-apigatewayv2/commands/DeleteStageCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteStageCommand.ts @@ -28,6 +28,7 @@ export class DeleteStageCommand extends $Command< DeleteStageCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteStageCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/DeleteVpcLinkCommand.ts b/clients/client-apigatewayv2/commands/DeleteVpcLinkCommand.ts index 94c1f577f7953..8e4da3dffe616 100644 --- a/clients/client-apigatewayv2/commands/DeleteVpcLinkCommand.ts +++ b/clients/client-apigatewayv2/commands/DeleteVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class DeleteVpcLinkCommand extends $Command< DeleteVpcLinkCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVpcLinkCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/ExportApiCommand.ts b/clients/client-apigatewayv2/commands/ExportApiCommand.ts index fa6233e189072..e12ff96057821 100644 --- a/clients/client-apigatewayv2/commands/ExportApiCommand.ts +++ b/clients/client-apigatewayv2/commands/ExportApiCommand.ts @@ -25,6 +25,7 @@ export class ExportApiCommand extends $Command< ExportApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ExportApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetApiCommand.ts b/clients/client-apigatewayv2/commands/GetApiCommand.ts index c3ca5e31a3ec4..d8a5f185fa38d 100644 --- a/clients/client-apigatewayv2/commands/GetApiCommand.ts +++ b/clients/client-apigatewayv2/commands/GetApiCommand.ts @@ -21,6 +21,7 @@ export type GetApiCommandOutput = GetApiResponse & __MetadataBearer; *

Gets an Api resource.

*/ export class GetApiCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetApiCommand 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-apigatewayv2/commands/GetApiMappingCommand.ts b/clients/client-apigatewayv2/commands/GetApiMappingCommand.ts index 74ba7506cc2f9..9914882441911 100644 --- a/clients/client-apigatewayv2/commands/GetApiMappingCommand.ts +++ b/clients/client-apigatewayv2/commands/GetApiMappingCommand.ts @@ -28,6 +28,7 @@ export class GetApiMappingCommand extends $Command< GetApiMappingCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApiMappingCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetApiMappingsCommand.ts b/clients/client-apigatewayv2/commands/GetApiMappingsCommand.ts index c54e5f6a15e33..8a7dd3cb194a9 100644 --- a/clients/client-apigatewayv2/commands/GetApiMappingsCommand.ts +++ b/clients/client-apigatewayv2/commands/GetApiMappingsCommand.ts @@ -28,6 +28,7 @@ export class GetApiMappingsCommand extends $Command< GetApiMappingsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApiMappingsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetApisCommand.ts b/clients/client-apigatewayv2/commands/GetApisCommand.ts index 6e009d193cdc4..bc573d489da3f 100644 --- a/clients/client-apigatewayv2/commands/GetApisCommand.ts +++ b/clients/client-apigatewayv2/commands/GetApisCommand.ts @@ -28,6 +28,7 @@ export class GetApisCommand extends $Command< GetApisCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApisCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetAuthorizerCommand.ts b/clients/client-apigatewayv2/commands/GetAuthorizerCommand.ts index 9863b31c704f4..4fea167434bf0 100644 --- a/clients/client-apigatewayv2/commands/GetAuthorizerCommand.ts +++ b/clients/client-apigatewayv2/commands/GetAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class GetAuthorizerCommand extends $Command< GetAuthorizerCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAuthorizerCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetAuthorizersCommand.ts b/clients/client-apigatewayv2/commands/GetAuthorizersCommand.ts index 912e542a68363..e0b5fe6322a07 100644 --- a/clients/client-apigatewayv2/commands/GetAuthorizersCommand.ts +++ b/clients/client-apigatewayv2/commands/GetAuthorizersCommand.ts @@ -28,6 +28,7 @@ export class GetAuthorizersCommand extends $Command< GetAuthorizersCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAuthorizersCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetDeploymentCommand.ts b/clients/client-apigatewayv2/commands/GetDeploymentCommand.ts index 00cd9eb9703b5..dd8c72a7a6058 100644 --- a/clients/client-apigatewayv2/commands/GetDeploymentCommand.ts +++ b/clients/client-apigatewayv2/commands/GetDeploymentCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentCommand extends $Command< GetDeploymentCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetDeploymentsCommand.ts b/clients/client-apigatewayv2/commands/GetDeploymentsCommand.ts index 9ddc5be9d3422..6354926b99439 100644 --- a/clients/client-apigatewayv2/commands/GetDeploymentsCommand.ts +++ b/clients/client-apigatewayv2/commands/GetDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentsCommand extends $Command< GetDeploymentsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetDomainNameCommand.ts b/clients/client-apigatewayv2/commands/GetDomainNameCommand.ts index 51fc233a485ec..8fce97ad2a266 100644 --- a/clients/client-apigatewayv2/commands/GetDomainNameCommand.ts +++ b/clients/client-apigatewayv2/commands/GetDomainNameCommand.ts @@ -28,6 +28,7 @@ export class GetDomainNameCommand extends $Command< GetDomainNameCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDomainNameCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetDomainNamesCommand.ts b/clients/client-apigatewayv2/commands/GetDomainNamesCommand.ts index 8322c97df5351..62018599ee9a4 100644 --- a/clients/client-apigatewayv2/commands/GetDomainNamesCommand.ts +++ b/clients/client-apigatewayv2/commands/GetDomainNamesCommand.ts @@ -28,6 +28,7 @@ export class GetDomainNamesCommand extends $Command< GetDomainNamesCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDomainNamesCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetIntegrationCommand.ts b/clients/client-apigatewayv2/commands/GetIntegrationCommand.ts index ffcf970359c67..64a2113c7cdf6 100644 --- a/clients/client-apigatewayv2/commands/GetIntegrationCommand.ts +++ b/clients/client-apigatewayv2/commands/GetIntegrationCommand.ts @@ -28,6 +28,7 @@ export class GetIntegrationCommand extends $Command< GetIntegrationCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntegrationCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetIntegrationResponseCommand.ts b/clients/client-apigatewayv2/commands/GetIntegrationResponseCommand.ts index 4fe7d77b6ce28..ff5eab5ef831e 100644 --- a/clients/client-apigatewayv2/commands/GetIntegrationResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/GetIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class GetIntegrationResponseCommand extends $Command< GetIntegrationResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntegrationResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetIntegrationResponsesCommand.ts b/clients/client-apigatewayv2/commands/GetIntegrationResponsesCommand.ts index 56a8e33ae9cd9..9dea7d8d56062 100644 --- a/clients/client-apigatewayv2/commands/GetIntegrationResponsesCommand.ts +++ b/clients/client-apigatewayv2/commands/GetIntegrationResponsesCommand.ts @@ -28,6 +28,7 @@ export class GetIntegrationResponsesCommand extends $Command< GetIntegrationResponsesCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntegrationResponsesCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetIntegrationsCommand.ts b/clients/client-apigatewayv2/commands/GetIntegrationsCommand.ts index d967bfe1ff973..b0f848797e732 100644 --- a/clients/client-apigatewayv2/commands/GetIntegrationsCommand.ts +++ b/clients/client-apigatewayv2/commands/GetIntegrationsCommand.ts @@ -28,6 +28,7 @@ export class GetIntegrationsCommand extends $Command< GetIntegrationsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntegrationsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetModelCommand.ts b/clients/client-apigatewayv2/commands/GetModelCommand.ts index bcc4f60fd5154..4f1e5db2e37d1 100644 --- a/clients/client-apigatewayv2/commands/GetModelCommand.ts +++ b/clients/client-apigatewayv2/commands/GetModelCommand.ts @@ -28,6 +28,7 @@ export class GetModelCommand extends $Command< GetModelCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetModelCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetModelTemplateCommand.ts b/clients/client-apigatewayv2/commands/GetModelTemplateCommand.ts index 08af0fb7df2e8..38392822acb93 100644 --- a/clients/client-apigatewayv2/commands/GetModelTemplateCommand.ts +++ b/clients/client-apigatewayv2/commands/GetModelTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetModelTemplateCommand extends $Command< GetModelTemplateCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetModelTemplateCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetModelsCommand.ts b/clients/client-apigatewayv2/commands/GetModelsCommand.ts index 6dc62ade7f3c0..ee62e6abaf237 100644 --- a/clients/client-apigatewayv2/commands/GetModelsCommand.ts +++ b/clients/client-apigatewayv2/commands/GetModelsCommand.ts @@ -28,6 +28,7 @@ export class GetModelsCommand extends $Command< GetModelsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetModelsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetRouteCommand.ts b/clients/client-apigatewayv2/commands/GetRouteCommand.ts index 9e2bc5cdd46f5..22a2b9d7f7d5a 100644 --- a/clients/client-apigatewayv2/commands/GetRouteCommand.ts +++ b/clients/client-apigatewayv2/commands/GetRouteCommand.ts @@ -28,6 +28,7 @@ export class GetRouteCommand extends $Command< GetRouteCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRouteCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetRouteResponseCommand.ts b/clients/client-apigatewayv2/commands/GetRouteResponseCommand.ts index c898ed7a80022..b1994cb37e19b 100644 --- a/clients/client-apigatewayv2/commands/GetRouteResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/GetRouteResponseCommand.ts @@ -28,6 +28,7 @@ export class GetRouteResponseCommand extends $Command< GetRouteResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRouteResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetRouteResponsesCommand.ts b/clients/client-apigatewayv2/commands/GetRouteResponsesCommand.ts index b9d98972d9899..c0123f484c1b6 100644 --- a/clients/client-apigatewayv2/commands/GetRouteResponsesCommand.ts +++ b/clients/client-apigatewayv2/commands/GetRouteResponsesCommand.ts @@ -28,6 +28,7 @@ export class GetRouteResponsesCommand extends $Command< GetRouteResponsesCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRouteResponsesCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetRoutesCommand.ts b/clients/client-apigatewayv2/commands/GetRoutesCommand.ts index 437a163eb31c3..0e3aad3bd4064 100644 --- a/clients/client-apigatewayv2/commands/GetRoutesCommand.ts +++ b/clients/client-apigatewayv2/commands/GetRoutesCommand.ts @@ -28,6 +28,7 @@ export class GetRoutesCommand extends $Command< GetRoutesCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRoutesCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetStageCommand.ts b/clients/client-apigatewayv2/commands/GetStageCommand.ts index 2f6c85152bafe..09f92d29cde4f 100644 --- a/clients/client-apigatewayv2/commands/GetStageCommand.ts +++ b/clients/client-apigatewayv2/commands/GetStageCommand.ts @@ -28,6 +28,7 @@ export class GetStageCommand extends $Command< GetStageCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStageCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetStagesCommand.ts b/clients/client-apigatewayv2/commands/GetStagesCommand.ts index e38c40a5fafc4..93a97f9ebcb19 100644 --- a/clients/client-apigatewayv2/commands/GetStagesCommand.ts +++ b/clients/client-apigatewayv2/commands/GetStagesCommand.ts @@ -28,6 +28,7 @@ export class GetStagesCommand extends $Command< GetStagesCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStagesCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetTagsCommand.ts b/clients/client-apigatewayv2/commands/GetTagsCommand.ts index ea6016b12ad88..61def83fc62d2 100644 --- a/clients/client-apigatewayv2/commands/GetTagsCommand.ts +++ b/clients/client-apigatewayv2/commands/GetTagsCommand.ts @@ -28,6 +28,7 @@ export class GetTagsCommand extends $Command< GetTagsCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTagsCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetVpcLinkCommand.ts b/clients/client-apigatewayv2/commands/GetVpcLinkCommand.ts index 996234a6fd153..c80f4ce5e98ad 100644 --- a/clients/client-apigatewayv2/commands/GetVpcLinkCommand.ts +++ b/clients/client-apigatewayv2/commands/GetVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class GetVpcLinkCommand extends $Command< GetVpcLinkCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVpcLinkCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/GetVpcLinksCommand.ts b/clients/client-apigatewayv2/commands/GetVpcLinksCommand.ts index 88290d1104e71..9466e13e92c08 100644 --- a/clients/client-apigatewayv2/commands/GetVpcLinksCommand.ts +++ b/clients/client-apigatewayv2/commands/GetVpcLinksCommand.ts @@ -28,6 +28,7 @@ export class GetVpcLinksCommand extends $Command< GetVpcLinksCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVpcLinksCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/ImportApiCommand.ts b/clients/client-apigatewayv2/commands/ImportApiCommand.ts index c6a42ebcfeb5d..44d226937ff1d 100644 --- a/clients/client-apigatewayv2/commands/ImportApiCommand.ts +++ b/clients/client-apigatewayv2/commands/ImportApiCommand.ts @@ -28,6 +28,7 @@ export class ImportApiCommand extends $Command< ImportApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/ReimportApiCommand.ts b/clients/client-apigatewayv2/commands/ReimportApiCommand.ts index d63cbf9e663d5..591010bed5fbe 100644 --- a/clients/client-apigatewayv2/commands/ReimportApiCommand.ts +++ b/clients/client-apigatewayv2/commands/ReimportApiCommand.ts @@ -28,6 +28,7 @@ export class ReimportApiCommand extends $Command< ReimportApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ReimportApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/ResetAuthorizersCacheCommand.ts b/clients/client-apigatewayv2/commands/ResetAuthorizersCacheCommand.ts index d2353783e2bec..0d318229e4a4a 100644 --- a/clients/client-apigatewayv2/commands/ResetAuthorizersCacheCommand.ts +++ b/clients/client-apigatewayv2/commands/ResetAuthorizersCacheCommand.ts @@ -28,6 +28,7 @@ export class ResetAuthorizersCacheCommand extends $Command< ResetAuthorizersCacheCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResetAuthorizersCacheCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/TagResourceCommand.ts b/clients/client-apigatewayv2/commands/TagResourceCommand.ts index 20213205be56d..20a25609872e8 100644 --- a/clients/client-apigatewayv2/commands/TagResourceCommand.ts +++ b/clients/client-apigatewayv2/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UntagResourceCommand.ts b/clients/client-apigatewayv2/commands/UntagResourceCommand.ts index 395974bded7b2..9c26fb04e89d4 100644 --- a/clients/client-apigatewayv2/commands/UntagResourceCommand.ts +++ b/clients/client-apigatewayv2/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateApiCommand.ts b/clients/client-apigatewayv2/commands/UpdateApiCommand.ts index 8270ebfde71b2..4088994f80b52 100644 --- a/clients/client-apigatewayv2/commands/UpdateApiCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateApiCommand.ts @@ -28,6 +28,7 @@ export class UpdateApiCommand extends $Command< UpdateApiCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApiCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateApiMappingCommand.ts b/clients/client-apigatewayv2/commands/UpdateApiMappingCommand.ts index 3a02ecb1c5e37..e6dcfe144db2c 100644 --- a/clients/client-apigatewayv2/commands/UpdateApiMappingCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateApiMappingCommand.ts @@ -28,6 +28,7 @@ export class UpdateApiMappingCommand extends $Command< UpdateApiMappingCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApiMappingCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateAuthorizerCommand.ts b/clients/client-apigatewayv2/commands/UpdateAuthorizerCommand.ts index 290fbd748893e..9b70911d5eb47 100644 --- a/clients/client-apigatewayv2/commands/UpdateAuthorizerCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class UpdateAuthorizerCommand extends $Command< UpdateAuthorizerCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAuthorizerCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateDeploymentCommand.ts b/clients/client-apigatewayv2/commands/UpdateDeploymentCommand.ts index e396708f2efc2..d9b7d4afcbd97 100644 --- a/clients/client-apigatewayv2/commands/UpdateDeploymentCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateDeploymentCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeploymentCommand extends $Command< UpdateDeploymentCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeploymentCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateDomainNameCommand.ts b/clients/client-apigatewayv2/commands/UpdateDomainNameCommand.ts index ea700c6e5f8f4..3b2fc9c2abb99 100644 --- a/clients/client-apigatewayv2/commands/UpdateDomainNameCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateDomainNameCommand.ts @@ -28,6 +28,7 @@ export class UpdateDomainNameCommand extends $Command< UpdateDomainNameCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDomainNameCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateIntegrationCommand.ts b/clients/client-apigatewayv2/commands/UpdateIntegrationCommand.ts index 9e847ad04136e..26c8866edc7c7 100644 --- a/clients/client-apigatewayv2/commands/UpdateIntegrationCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateIntegrationCommand.ts @@ -28,6 +28,7 @@ export class UpdateIntegrationCommand extends $Command< UpdateIntegrationCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIntegrationCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateIntegrationResponseCommand.ts b/clients/client-apigatewayv2/commands/UpdateIntegrationResponseCommand.ts index cfee1e6543c80..63e4eada9fe71 100644 --- a/clients/client-apigatewayv2/commands/UpdateIntegrationResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateIntegrationResponseCommand.ts @@ -28,6 +28,7 @@ export class UpdateIntegrationResponseCommand extends $Command< UpdateIntegrationResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIntegrationResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateModelCommand.ts b/clients/client-apigatewayv2/commands/UpdateModelCommand.ts index 810e0a93af620..96a9480737c33 100644 --- a/clients/client-apigatewayv2/commands/UpdateModelCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateModelCommand.ts @@ -28,6 +28,7 @@ export class UpdateModelCommand extends $Command< UpdateModelCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateModelCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateRouteCommand.ts b/clients/client-apigatewayv2/commands/UpdateRouteCommand.ts index f125cc20dffc6..a26bd6321f9a4 100644 --- a/clients/client-apigatewayv2/commands/UpdateRouteCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateRouteCommand.ts @@ -28,6 +28,7 @@ export class UpdateRouteCommand extends $Command< UpdateRouteCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRouteCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateRouteResponseCommand.ts b/clients/client-apigatewayv2/commands/UpdateRouteResponseCommand.ts index eae64cd4f43b6..fcafd2701f565 100644 --- a/clients/client-apigatewayv2/commands/UpdateRouteResponseCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateRouteResponseCommand.ts @@ -28,6 +28,7 @@ export class UpdateRouteResponseCommand extends $Command< UpdateRouteResponseCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRouteResponseCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateStageCommand.ts b/clients/client-apigatewayv2/commands/UpdateStageCommand.ts index 2c558b77a2ee8..16a00e2df7516 100644 --- a/clients/client-apigatewayv2/commands/UpdateStageCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateStageCommand.ts @@ -28,6 +28,7 @@ export class UpdateStageCommand extends $Command< UpdateStageCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateStageCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-apigatewayv2/commands/UpdateVpcLinkCommand.ts b/clients/client-apigatewayv2/commands/UpdateVpcLinkCommand.ts index 5d920ce804b16..e0ad9a3f4ee0e 100644 --- a/clients/client-apigatewayv2/commands/UpdateVpcLinkCommand.ts +++ b/clients/client-apigatewayv2/commands/UpdateVpcLinkCommand.ts @@ -28,6 +28,7 @@ export class UpdateVpcLinkCommand extends $Command< UpdateVpcLinkCommandOutput, ApiGatewayV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVpcLinkCommand extends $Command< configuration: ApiGatewayV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateGatewayRouteCommand.ts b/clients/client-app-mesh/commands/CreateGatewayRouteCommand.ts index 7277556b6da6c..41d41001f1d66 100644 --- a/clients/client-app-mesh/commands/CreateGatewayRouteCommand.ts +++ b/clients/client-app-mesh/commands/CreateGatewayRouteCommand.ts @@ -31,6 +31,7 @@ export class CreateGatewayRouteCommand extends $Command< CreateGatewayRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateGatewayRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateMeshCommand.ts b/clients/client-app-mesh/commands/CreateMeshCommand.ts index a7f0b7e59ee0d..beac7462275a1 100644 --- a/clients/client-app-mesh/commands/CreateMeshCommand.ts +++ b/clients/client-app-mesh/commands/CreateMeshCommand.ts @@ -33,6 +33,7 @@ export class CreateMeshCommand extends $Command< CreateMeshCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateMeshCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateRouteCommand.ts b/clients/client-app-mesh/commands/CreateRouteCommand.ts index 2759fa093a1c5..c60119ec8ceda 100644 --- a/clients/client-app-mesh/commands/CreateRouteCommand.ts +++ b/clients/client-app-mesh/commands/CreateRouteCommand.ts @@ -31,6 +31,7 @@ export class CreateRouteCommand extends $Command< CreateRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateVirtualGatewayCommand.ts b/clients/client-app-mesh/commands/CreateVirtualGatewayCommand.ts index c3695a94d362d..2ffa0c43ec390 100644 --- a/clients/client-app-mesh/commands/CreateVirtualGatewayCommand.ts +++ b/clients/client-app-mesh/commands/CreateVirtualGatewayCommand.ts @@ -33,6 +33,7 @@ export class CreateVirtualGatewayCommand extends $Command< CreateVirtualGatewayCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateVirtualGatewayCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateVirtualNodeCommand.ts b/clients/client-app-mesh/commands/CreateVirtualNodeCommand.ts index d391257860a6a..bd93a1f19231c 100644 --- a/clients/client-app-mesh/commands/CreateVirtualNodeCommand.ts +++ b/clients/client-app-mesh/commands/CreateVirtualNodeCommand.ts @@ -48,6 +48,7 @@ export class CreateVirtualNodeCommand extends $Command< CreateVirtualNodeCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateVirtualNodeCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateVirtualRouterCommand.ts b/clients/client-app-mesh/commands/CreateVirtualRouterCommand.ts index e165af377de55..5bf7fa7ad2ea7 100644 --- a/clients/client-app-mesh/commands/CreateVirtualRouterCommand.ts +++ b/clients/client-app-mesh/commands/CreateVirtualRouterCommand.ts @@ -34,6 +34,7 @@ export class CreateVirtualRouterCommand extends $Command< CreateVirtualRouterCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateVirtualRouterCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/CreateVirtualServiceCommand.ts b/clients/client-app-mesh/commands/CreateVirtualServiceCommand.ts index e870a771a4177..eee689ed9b8de 100644 --- a/clients/client-app-mesh/commands/CreateVirtualServiceCommand.ts +++ b/clients/client-app-mesh/commands/CreateVirtualServiceCommand.ts @@ -34,6 +34,7 @@ export class CreateVirtualServiceCommand extends $Command< CreateVirtualServiceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateVirtualServiceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteGatewayRouteCommand.ts b/clients/client-app-mesh/commands/DeleteGatewayRouteCommand.ts index fea3a17b4249d..0b5dbb6d27bba 100644 --- a/clients/client-app-mesh/commands/DeleteGatewayRouteCommand.ts +++ b/clients/client-app-mesh/commands/DeleteGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteGatewayRouteCommand extends $Command< DeleteGatewayRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGatewayRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteMeshCommand.ts b/clients/client-app-mesh/commands/DeleteMeshCommand.ts index 2a8bd391f6ceb..61270b3f5e8f7 100644 --- a/clients/client-app-mesh/commands/DeleteMeshCommand.ts +++ b/clients/client-app-mesh/commands/DeleteMeshCommand.ts @@ -30,6 +30,7 @@ export class DeleteMeshCommand extends $Command< DeleteMeshCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteMeshCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteRouteCommand.ts b/clients/client-app-mesh/commands/DeleteRouteCommand.ts index 865a1df59d868..00647a36ca4b8 100644 --- a/clients/client-app-mesh/commands/DeleteRouteCommand.ts +++ b/clients/client-app-mesh/commands/DeleteRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteCommand extends $Command< DeleteRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteVirtualGatewayCommand.ts b/clients/client-app-mesh/commands/DeleteVirtualGatewayCommand.ts index 36846785e377d..33e82e90966ba 100644 --- a/clients/client-app-mesh/commands/DeleteVirtualGatewayCommand.ts +++ b/clients/client-app-mesh/commands/DeleteVirtualGatewayCommand.ts @@ -29,6 +29,7 @@ export class DeleteVirtualGatewayCommand extends $Command< DeleteVirtualGatewayCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteVirtualGatewayCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteVirtualNodeCommand.ts b/clients/client-app-mesh/commands/DeleteVirtualNodeCommand.ts index 02acf9f4ccfe2..35e7369ad8996 100644 --- a/clients/client-app-mesh/commands/DeleteVirtualNodeCommand.ts +++ b/clients/client-app-mesh/commands/DeleteVirtualNodeCommand.ts @@ -30,6 +30,7 @@ export class DeleteVirtualNodeCommand extends $Command< DeleteVirtualNodeCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteVirtualNodeCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteVirtualRouterCommand.ts b/clients/client-app-mesh/commands/DeleteVirtualRouterCommand.ts index 909b4af9a6635..ea14e9c0efbb2 100644 --- a/clients/client-app-mesh/commands/DeleteVirtualRouterCommand.ts +++ b/clients/client-app-mesh/commands/DeleteVirtualRouterCommand.ts @@ -30,6 +30,7 @@ export class DeleteVirtualRouterCommand extends $Command< DeleteVirtualRouterCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteVirtualRouterCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DeleteVirtualServiceCommand.ts b/clients/client-app-mesh/commands/DeleteVirtualServiceCommand.ts index 583f1cce7aa22..8aa9f84235a92 100644 --- a/clients/client-app-mesh/commands/DeleteVirtualServiceCommand.ts +++ b/clients/client-app-mesh/commands/DeleteVirtualServiceCommand.ts @@ -28,6 +28,7 @@ export class DeleteVirtualServiceCommand extends $Command< DeleteVirtualServiceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVirtualServiceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeGatewayRouteCommand.ts b/clients/client-app-mesh/commands/DescribeGatewayRouteCommand.ts index fe89d1c4505e7..9c0fb33bb98aa 100644 --- a/clients/client-app-mesh/commands/DescribeGatewayRouteCommand.ts +++ b/clients/client-app-mesh/commands/DescribeGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class DescribeGatewayRouteCommand extends $Command< DescribeGatewayRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGatewayRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeMeshCommand.ts b/clients/client-app-mesh/commands/DescribeMeshCommand.ts index e3a7d2951de39..e48a4a23a9937 100644 --- a/clients/client-app-mesh/commands/DescribeMeshCommand.ts +++ b/clients/client-app-mesh/commands/DescribeMeshCommand.ts @@ -28,6 +28,7 @@ export class DescribeMeshCommand extends $Command< DescribeMeshCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMeshCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeRouteCommand.ts b/clients/client-app-mesh/commands/DescribeRouteCommand.ts index 118f3f0cc9d01..05522a0e195df 100644 --- a/clients/client-app-mesh/commands/DescribeRouteCommand.ts +++ b/clients/client-app-mesh/commands/DescribeRouteCommand.ts @@ -28,6 +28,7 @@ export class DescribeRouteCommand extends $Command< DescribeRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeVirtualGatewayCommand.ts b/clients/client-app-mesh/commands/DescribeVirtualGatewayCommand.ts index 662abb6e4ef9b..2afcb23a7218d 100644 --- a/clients/client-app-mesh/commands/DescribeVirtualGatewayCommand.ts +++ b/clients/client-app-mesh/commands/DescribeVirtualGatewayCommand.ts @@ -28,6 +28,7 @@ export class DescribeVirtualGatewayCommand extends $Command< DescribeVirtualGatewayCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVirtualGatewayCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeVirtualNodeCommand.ts b/clients/client-app-mesh/commands/DescribeVirtualNodeCommand.ts index 125e726d33bbe..31825689e74eb 100644 --- a/clients/client-app-mesh/commands/DescribeVirtualNodeCommand.ts +++ b/clients/client-app-mesh/commands/DescribeVirtualNodeCommand.ts @@ -28,6 +28,7 @@ export class DescribeVirtualNodeCommand extends $Command< DescribeVirtualNodeCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVirtualNodeCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeVirtualRouterCommand.ts b/clients/client-app-mesh/commands/DescribeVirtualRouterCommand.ts index c42f4784c6896..40f2af92def41 100644 --- a/clients/client-app-mesh/commands/DescribeVirtualRouterCommand.ts +++ b/clients/client-app-mesh/commands/DescribeVirtualRouterCommand.ts @@ -28,6 +28,7 @@ export class DescribeVirtualRouterCommand extends $Command< DescribeVirtualRouterCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVirtualRouterCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/DescribeVirtualServiceCommand.ts b/clients/client-app-mesh/commands/DescribeVirtualServiceCommand.ts index 621f23d50d942..9dac4256b6ea1 100644 --- a/clients/client-app-mesh/commands/DescribeVirtualServiceCommand.ts +++ b/clients/client-app-mesh/commands/DescribeVirtualServiceCommand.ts @@ -28,6 +28,7 @@ export class DescribeVirtualServiceCommand extends $Command< DescribeVirtualServiceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVirtualServiceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListGatewayRoutesCommand.ts b/clients/client-app-mesh/commands/ListGatewayRoutesCommand.ts index 7ab287f691616..52aebb76ff6d3 100644 --- a/clients/client-app-mesh/commands/ListGatewayRoutesCommand.ts +++ b/clients/client-app-mesh/commands/ListGatewayRoutesCommand.ts @@ -29,6 +29,7 @@ export class ListGatewayRoutesCommand extends $Command< ListGatewayRoutesCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListGatewayRoutesCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListMeshesCommand.ts b/clients/client-app-mesh/commands/ListMeshesCommand.ts index 0dc3af3f27530..66524fae6170e 100644 --- a/clients/client-app-mesh/commands/ListMeshesCommand.ts +++ b/clients/client-app-mesh/commands/ListMeshesCommand.ts @@ -28,6 +28,7 @@ export class ListMeshesCommand extends $Command< ListMeshesCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMeshesCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListRoutesCommand.ts b/clients/client-app-mesh/commands/ListRoutesCommand.ts index fdf4d2be68e9a..5e17f34b512cd 100644 --- a/clients/client-app-mesh/commands/ListRoutesCommand.ts +++ b/clients/client-app-mesh/commands/ListRoutesCommand.ts @@ -28,6 +28,7 @@ export class ListRoutesCommand extends $Command< ListRoutesCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRoutesCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListTagsForResourceCommand.ts b/clients/client-app-mesh/commands/ListTagsForResourceCommand.ts index 9433fbffda74a..dde1e4eb2dcba 100644 --- a/clients/client-app-mesh/commands/ListTagsForResourceCommand.ts +++ b/clients/client-app-mesh/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListVirtualGatewaysCommand.ts b/clients/client-app-mesh/commands/ListVirtualGatewaysCommand.ts index 0c48273949626..fedf8b731621b 100644 --- a/clients/client-app-mesh/commands/ListVirtualGatewaysCommand.ts +++ b/clients/client-app-mesh/commands/ListVirtualGatewaysCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualGatewaysCommand extends $Command< ListVirtualGatewaysCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualGatewaysCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListVirtualNodesCommand.ts b/clients/client-app-mesh/commands/ListVirtualNodesCommand.ts index 188d5917cc873..9584c8ea19d7c 100644 --- a/clients/client-app-mesh/commands/ListVirtualNodesCommand.ts +++ b/clients/client-app-mesh/commands/ListVirtualNodesCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualNodesCommand extends $Command< ListVirtualNodesCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualNodesCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListVirtualRoutersCommand.ts b/clients/client-app-mesh/commands/ListVirtualRoutersCommand.ts index 45458e5109ddb..9a825384f1b40 100644 --- a/clients/client-app-mesh/commands/ListVirtualRoutersCommand.ts +++ b/clients/client-app-mesh/commands/ListVirtualRoutersCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualRoutersCommand extends $Command< ListVirtualRoutersCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualRoutersCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/ListVirtualServicesCommand.ts b/clients/client-app-mesh/commands/ListVirtualServicesCommand.ts index db6974f669b55..4146d37a21493 100644 --- a/clients/client-app-mesh/commands/ListVirtualServicesCommand.ts +++ b/clients/client-app-mesh/commands/ListVirtualServicesCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualServicesCommand extends $Command< ListVirtualServicesCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualServicesCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/TagResourceCommand.ts b/clients/client-app-mesh/commands/TagResourceCommand.ts index e238a2f38fcce..5eda520c8d001 100644 --- a/clients/client-app-mesh/commands/TagResourceCommand.ts +++ b/clients/client-app-mesh/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UntagResourceCommand.ts b/clients/client-app-mesh/commands/UntagResourceCommand.ts index bffa400788279..6744df0b98c79 100644 --- a/clients/client-app-mesh/commands/UntagResourceCommand.ts +++ b/clients/client-app-mesh/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateGatewayRouteCommand.ts b/clients/client-app-mesh/commands/UpdateGatewayRouteCommand.ts index 520e3a9dcc4e6..5e05ceb5aeb3c 100644 --- a/clients/client-app-mesh/commands/UpdateGatewayRouteCommand.ts +++ b/clients/client-app-mesh/commands/UpdateGatewayRouteCommand.ts @@ -29,6 +29,7 @@ export class UpdateGatewayRouteCommand extends $Command< UpdateGatewayRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateGatewayRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateMeshCommand.ts b/clients/client-app-mesh/commands/UpdateMeshCommand.ts index a9c562d635765..7d87c4485c565 100644 --- a/clients/client-app-mesh/commands/UpdateMeshCommand.ts +++ b/clients/client-app-mesh/commands/UpdateMeshCommand.ts @@ -28,6 +28,7 @@ export class UpdateMeshCommand extends $Command< UpdateMeshCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMeshCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateRouteCommand.ts b/clients/client-app-mesh/commands/UpdateRouteCommand.ts index 10778260b13e7..8c58773f05178 100644 --- a/clients/client-app-mesh/commands/UpdateRouteCommand.ts +++ b/clients/client-app-mesh/commands/UpdateRouteCommand.ts @@ -28,6 +28,7 @@ export class UpdateRouteCommand extends $Command< UpdateRouteCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRouteCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateVirtualGatewayCommand.ts b/clients/client-app-mesh/commands/UpdateVirtualGatewayCommand.ts index 6072e84901bad..8566d1b3c3d40 100644 --- a/clients/client-app-mesh/commands/UpdateVirtualGatewayCommand.ts +++ b/clients/client-app-mesh/commands/UpdateVirtualGatewayCommand.ts @@ -28,6 +28,7 @@ export class UpdateVirtualGatewayCommand extends $Command< UpdateVirtualGatewayCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVirtualGatewayCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateVirtualNodeCommand.ts b/clients/client-app-mesh/commands/UpdateVirtualNodeCommand.ts index 480b10e609e96..7576dca9c4374 100644 --- a/clients/client-app-mesh/commands/UpdateVirtualNodeCommand.ts +++ b/clients/client-app-mesh/commands/UpdateVirtualNodeCommand.ts @@ -28,6 +28,7 @@ export class UpdateVirtualNodeCommand extends $Command< UpdateVirtualNodeCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVirtualNodeCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateVirtualRouterCommand.ts b/clients/client-app-mesh/commands/UpdateVirtualRouterCommand.ts index 9eccfc24f8d31..75f8dfbcd623e 100644 --- a/clients/client-app-mesh/commands/UpdateVirtualRouterCommand.ts +++ b/clients/client-app-mesh/commands/UpdateVirtualRouterCommand.ts @@ -28,6 +28,7 @@ export class UpdateVirtualRouterCommand extends $Command< UpdateVirtualRouterCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVirtualRouterCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-app-mesh/commands/UpdateVirtualServiceCommand.ts b/clients/client-app-mesh/commands/UpdateVirtualServiceCommand.ts index 0372c4384ff01..c94976cbfeba5 100644 --- a/clients/client-app-mesh/commands/UpdateVirtualServiceCommand.ts +++ b/clients/client-app-mesh/commands/UpdateVirtualServiceCommand.ts @@ -28,6 +28,7 @@ export class UpdateVirtualServiceCommand extends $Command< UpdateVirtualServiceCommandOutput, AppMeshClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVirtualServiceCommand extends $Command< configuration: AppMeshClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/CreateApplicationCommand.ts b/clients/client-appconfig/commands/CreateApplicationCommand.ts index 00e28daa8a230..634cc661da172 100644 --- a/clients/client-appconfig/commands/CreateApplicationCommand.ts +++ b/clients/client-appconfig/commands/CreateApplicationCommand.ts @@ -31,6 +31,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateApplicationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/CreateConfigurationProfileCommand.ts b/clients/client-appconfig/commands/CreateConfigurationProfileCommand.ts index 37555cceb86c5..7c875a3436904 100644 --- a/clients/client-appconfig/commands/CreateConfigurationProfileCommand.ts +++ b/clients/client-appconfig/commands/CreateConfigurationProfileCommand.ts @@ -45,6 +45,7 @@ export class CreateConfigurationProfileCommand extends $Command< CreateConfigurationProfileCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateConfigurationProfileCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/CreateDeploymentStrategyCommand.ts b/clients/client-appconfig/commands/CreateDeploymentStrategyCommand.ts index 910fdb8beb954..a1892f40caa0e 100644 --- a/clients/client-appconfig/commands/CreateDeploymentStrategyCommand.ts +++ b/clients/client-appconfig/commands/CreateDeploymentStrategyCommand.ts @@ -31,6 +31,7 @@ export class CreateDeploymentStrategyCommand extends $Command< CreateDeploymentStrategyCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDeploymentStrategyCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/CreateEnvironmentCommand.ts b/clients/client-appconfig/commands/CreateEnvironmentCommand.ts index 1cf7d06a4a875..d37a16b5833d4 100644 --- a/clients/client-appconfig/commands/CreateEnvironmentCommand.ts +++ b/clients/client-appconfig/commands/CreateEnvironmentCommand.ts @@ -34,6 +34,7 @@ export class CreateEnvironmentCommand extends $Command< CreateEnvironmentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateEnvironmentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/CreateHostedConfigurationVersionCommand.ts b/clients/client-appconfig/commands/CreateHostedConfigurationVersionCommand.ts index 854ec94b8988a..cdb6ce707e8d0 100644 --- a/clients/client-appconfig/commands/CreateHostedConfigurationVersionCommand.ts +++ b/clients/client-appconfig/commands/CreateHostedConfigurationVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateHostedConfigurationVersionCommand extends $Command< CreateHostedConfigurationVersionCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateHostedConfigurationVersionCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/DeleteApplicationCommand.ts b/clients/client-appconfig/commands/DeleteApplicationCommand.ts index cfd3186a072e0..3a89eb125a742 100644 --- a/clients/client-appconfig/commands/DeleteApplicationCommand.ts +++ b/clients/client-appconfig/commands/DeleteApplicationCommand.ts @@ -29,6 +29,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteApplicationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/DeleteConfigurationProfileCommand.ts b/clients/client-appconfig/commands/DeleteConfigurationProfileCommand.ts index f412eadd9f80d..a76ee330a212f 100644 --- a/clients/client-appconfig/commands/DeleteConfigurationProfileCommand.ts +++ b/clients/client-appconfig/commands/DeleteConfigurationProfileCommand.ts @@ -29,6 +29,7 @@ export class DeleteConfigurationProfileCommand extends $Command< DeleteConfigurationProfileCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteConfigurationProfileCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/DeleteDeploymentStrategyCommand.ts b/clients/client-appconfig/commands/DeleteDeploymentStrategyCommand.ts index 3d50558e06ef4..43349784ab3e4 100644 --- a/clients/client-appconfig/commands/DeleteDeploymentStrategyCommand.ts +++ b/clients/client-appconfig/commands/DeleteDeploymentStrategyCommand.ts @@ -29,6 +29,7 @@ export class DeleteDeploymentStrategyCommand extends $Command< DeleteDeploymentStrategyCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDeploymentStrategyCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/DeleteEnvironmentCommand.ts b/clients/client-appconfig/commands/DeleteEnvironmentCommand.ts index ac5d91574cc36..8caf330dd0e4b 100644 --- a/clients/client-appconfig/commands/DeleteEnvironmentCommand.ts +++ b/clients/client-appconfig/commands/DeleteEnvironmentCommand.ts @@ -29,6 +29,7 @@ export class DeleteEnvironmentCommand extends $Command< DeleteEnvironmentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteEnvironmentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/DeleteHostedConfigurationVersionCommand.ts b/clients/client-appconfig/commands/DeleteHostedConfigurationVersionCommand.ts index 316476e1d6f57..8371159264902 100644 --- a/clients/client-appconfig/commands/DeleteHostedConfigurationVersionCommand.ts +++ b/clients/client-appconfig/commands/DeleteHostedConfigurationVersionCommand.ts @@ -28,6 +28,7 @@ export class DeleteHostedConfigurationVersionCommand extends $Command< DeleteHostedConfigurationVersionCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteHostedConfigurationVersionCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetApplicationCommand.ts b/clients/client-appconfig/commands/GetApplicationCommand.ts index c79748a5a6a86..2bebd27c1a998 100644 --- a/clients/client-appconfig/commands/GetApplicationCommand.ts +++ b/clients/client-appconfig/commands/GetApplicationCommand.ts @@ -28,6 +28,7 @@ export class GetApplicationCommand extends $Command< GetApplicationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApplicationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetConfigurationCommand.ts b/clients/client-appconfig/commands/GetConfigurationCommand.ts index 6060faca08ff1..b55fcd0c604cb 100644 --- a/clients/client-appconfig/commands/GetConfigurationCommand.ts +++ b/clients/client-appconfig/commands/GetConfigurationCommand.ts @@ -40,6 +40,7 @@ export class GetConfigurationCommand extends $Command< GetConfigurationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetConfigurationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetConfigurationProfileCommand.ts b/clients/client-appconfig/commands/GetConfigurationProfileCommand.ts index dce99fdd76a1a..9ee41221a6998 100644 --- a/clients/client-appconfig/commands/GetConfigurationProfileCommand.ts +++ b/clients/client-appconfig/commands/GetConfigurationProfileCommand.ts @@ -28,6 +28,7 @@ export class GetConfigurationProfileCommand extends $Command< GetConfigurationProfileCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConfigurationProfileCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetDeploymentCommand.ts b/clients/client-appconfig/commands/GetDeploymentCommand.ts index 1e85711b2d8b5..e88b8c19ed6fc 100644 --- a/clients/client-appconfig/commands/GetDeploymentCommand.ts +++ b/clients/client-appconfig/commands/GetDeploymentCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentCommand extends $Command< GetDeploymentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetDeploymentStrategyCommand.ts b/clients/client-appconfig/commands/GetDeploymentStrategyCommand.ts index 00f05123c9a77..98e6a1a29b63a 100644 --- a/clients/client-appconfig/commands/GetDeploymentStrategyCommand.ts +++ b/clients/client-appconfig/commands/GetDeploymentStrategyCommand.ts @@ -32,6 +32,7 @@ export class GetDeploymentStrategyCommand extends $Command< GetDeploymentStrategyCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetDeploymentStrategyCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetEnvironmentCommand.ts b/clients/client-appconfig/commands/GetEnvironmentCommand.ts index cef73ac7bc1fd..1a4d910bc26ef 100644 --- a/clients/client-appconfig/commands/GetEnvironmentCommand.ts +++ b/clients/client-appconfig/commands/GetEnvironmentCommand.ts @@ -32,6 +32,7 @@ export class GetEnvironmentCommand extends $Command< GetEnvironmentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetEnvironmentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/GetHostedConfigurationVersionCommand.ts b/clients/client-appconfig/commands/GetHostedConfigurationVersionCommand.ts index fad405acba8fe..a07451a220de5 100644 --- a/clients/client-appconfig/commands/GetHostedConfigurationVersionCommand.ts +++ b/clients/client-appconfig/commands/GetHostedConfigurationVersionCommand.ts @@ -28,6 +28,7 @@ export class GetHostedConfigurationVersionCommand extends $Command< GetHostedConfigurationVersionCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHostedConfigurationVersionCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListApplicationsCommand.ts b/clients/client-appconfig/commands/ListApplicationsCommand.ts index 7508ede6e1b68..33d97b933e5af 100644 --- a/clients/client-appconfig/commands/ListApplicationsCommand.ts +++ b/clients/client-appconfig/commands/ListApplicationsCommand.ts @@ -28,6 +28,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListApplicationsCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListConfigurationProfilesCommand.ts b/clients/client-appconfig/commands/ListConfigurationProfilesCommand.ts index 11d618c527925..7174c9a163250 100644 --- a/clients/client-appconfig/commands/ListConfigurationProfilesCommand.ts +++ b/clients/client-appconfig/commands/ListConfigurationProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationProfilesCommand extends $Command< ListConfigurationProfilesCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationProfilesCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListDeploymentStrategiesCommand.ts b/clients/client-appconfig/commands/ListDeploymentStrategiesCommand.ts index 748305ac8e436..de9b27f43c1a0 100644 --- a/clients/client-appconfig/commands/ListDeploymentStrategiesCommand.ts +++ b/clients/client-appconfig/commands/ListDeploymentStrategiesCommand.ts @@ -28,6 +28,7 @@ export class ListDeploymentStrategiesCommand extends $Command< ListDeploymentStrategiesCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeploymentStrategiesCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListDeploymentsCommand.ts b/clients/client-appconfig/commands/ListDeploymentsCommand.ts index 0776bd2a1c747..3774475f99489 100644 --- a/clients/client-appconfig/commands/ListDeploymentsCommand.ts +++ b/clients/client-appconfig/commands/ListDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class ListDeploymentsCommand extends $Command< ListDeploymentsCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeploymentsCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListEnvironmentsCommand.ts b/clients/client-appconfig/commands/ListEnvironmentsCommand.ts index 52b72c5f10595..8861050fc0a62 100644 --- a/clients/client-appconfig/commands/ListEnvironmentsCommand.ts +++ b/clients/client-appconfig/commands/ListEnvironmentsCommand.ts @@ -28,6 +28,7 @@ export class ListEnvironmentsCommand extends $Command< ListEnvironmentsCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEnvironmentsCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListHostedConfigurationVersionsCommand.ts b/clients/client-appconfig/commands/ListHostedConfigurationVersionsCommand.ts index a98c5b97174a4..9d4a62de7ddbc 100644 --- a/clients/client-appconfig/commands/ListHostedConfigurationVersionsCommand.ts +++ b/clients/client-appconfig/commands/ListHostedConfigurationVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListHostedConfigurationVersionsCommand extends $Command< ListHostedConfigurationVersionsCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListHostedConfigurationVersionsCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ListTagsForResourceCommand.ts b/clients/client-appconfig/commands/ListTagsForResourceCommand.ts index 6459dfaae3f7f..a7398bde4425e 100644 --- a/clients/client-appconfig/commands/ListTagsForResourceCommand.ts +++ b/clients/client-appconfig/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/StartDeploymentCommand.ts b/clients/client-appconfig/commands/StartDeploymentCommand.ts index 171d1653a60c7..e4c1370274af0 100644 --- a/clients/client-appconfig/commands/StartDeploymentCommand.ts +++ b/clients/client-appconfig/commands/StartDeploymentCommand.ts @@ -28,6 +28,7 @@ export class StartDeploymentCommand extends $Command< StartDeploymentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartDeploymentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/StopDeploymentCommand.ts b/clients/client-appconfig/commands/StopDeploymentCommand.ts index afada1849af50..0f86e83fd8381 100644 --- a/clients/client-appconfig/commands/StopDeploymentCommand.ts +++ b/clients/client-appconfig/commands/StopDeploymentCommand.ts @@ -30,6 +30,7 @@ export class StopDeploymentCommand extends $Command< StopDeploymentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StopDeploymentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/TagResourceCommand.ts b/clients/client-appconfig/commands/TagResourceCommand.ts index 649161d75cd9a..f356e542a90e0 100644 --- a/clients/client-appconfig/commands/TagResourceCommand.ts +++ b/clients/client-appconfig/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/UntagResourceCommand.ts b/clients/client-appconfig/commands/UntagResourceCommand.ts index 9b557a6c5e857..132f151666f39 100644 --- a/clients/client-appconfig/commands/UntagResourceCommand.ts +++ b/clients/client-appconfig/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/UpdateApplicationCommand.ts b/clients/client-appconfig/commands/UpdateApplicationCommand.ts index d514053af4c5f..21d2bfb3435ca 100644 --- a/clients/client-appconfig/commands/UpdateApplicationCommand.ts +++ b/clients/client-appconfig/commands/UpdateApplicationCommand.ts @@ -28,6 +28,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApplicationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/UpdateConfigurationProfileCommand.ts b/clients/client-appconfig/commands/UpdateConfigurationProfileCommand.ts index 246341690c8f4..16b686146096e 100644 --- a/clients/client-appconfig/commands/UpdateConfigurationProfileCommand.ts +++ b/clients/client-appconfig/commands/UpdateConfigurationProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateConfigurationProfileCommand extends $Command< UpdateConfigurationProfileCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConfigurationProfileCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/UpdateDeploymentStrategyCommand.ts b/clients/client-appconfig/commands/UpdateDeploymentStrategyCommand.ts index 81f1b0165531f..e2877446f5330 100644 --- a/clients/client-appconfig/commands/UpdateDeploymentStrategyCommand.ts +++ b/clients/client-appconfig/commands/UpdateDeploymentStrategyCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeploymentStrategyCommand extends $Command< UpdateDeploymentStrategyCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeploymentStrategyCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/UpdateEnvironmentCommand.ts b/clients/client-appconfig/commands/UpdateEnvironmentCommand.ts index f33a73b57195e..c8f46ae2be211 100644 --- a/clients/client-appconfig/commands/UpdateEnvironmentCommand.ts +++ b/clients/client-appconfig/commands/UpdateEnvironmentCommand.ts @@ -28,6 +28,7 @@ export class UpdateEnvironmentCommand extends $Command< UpdateEnvironmentCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEnvironmentCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appconfig/commands/ValidateConfigurationCommand.ts b/clients/client-appconfig/commands/ValidateConfigurationCommand.ts index 73d0467b4795c..47a60b5835b6f 100644 --- a/clients/client-appconfig/commands/ValidateConfigurationCommand.ts +++ b/clients/client-appconfig/commands/ValidateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class ValidateConfigurationCommand extends $Command< ValidateConfigurationCommandOutput, AppConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ValidateConfigurationCommand extends $Command< configuration: AppConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/CreateConnectorProfileCommand.ts b/clients/client-appflow/commands/CreateConnectorProfileCommand.ts index 65466daed6e76..1fc20fcfcdcdf 100644 --- a/clients/client-appflow/commands/CreateConnectorProfileCommand.ts +++ b/clients/client-appflow/commands/CreateConnectorProfileCommand.ts @@ -30,6 +30,7 @@ export class CreateConnectorProfileCommand extends $Command< CreateConnectorProfileCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateConnectorProfileCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/CreateFlowCommand.ts b/clients/client-appflow/commands/CreateFlowCommand.ts index b480edff8ac46..9fe3d91e55d34 100644 --- a/clients/client-appflow/commands/CreateFlowCommand.ts +++ b/clients/client-appflow/commands/CreateFlowCommand.ts @@ -31,6 +31,7 @@ export class CreateFlowCommand extends $Command< CreateFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DeleteConnectorProfileCommand.ts b/clients/client-appflow/commands/DeleteConnectorProfileCommand.ts index 821fbbda48d67..c9d37d47205b1 100644 --- a/clients/client-appflow/commands/DeleteConnectorProfileCommand.ts +++ b/clients/client-appflow/commands/DeleteConnectorProfileCommand.ts @@ -30,6 +30,7 @@ export class DeleteConnectorProfileCommand extends $Command< DeleteConnectorProfileCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteConnectorProfileCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DeleteFlowCommand.ts b/clients/client-appflow/commands/DeleteFlowCommand.ts index 1e1487388c4c1..54e52244cbef2 100644 --- a/clients/client-appflow/commands/DeleteFlowCommand.ts +++ b/clients/client-appflow/commands/DeleteFlowCommand.ts @@ -31,6 +31,7 @@ export class DeleteFlowCommand extends $Command< DeleteFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DescribeConnectorEntityCommand.ts b/clients/client-appflow/commands/DescribeConnectorEntityCommand.ts index 90d3f2ba8d28a..d8faba486dba2 100644 --- a/clients/client-appflow/commands/DescribeConnectorEntityCommand.ts +++ b/clients/client-appflow/commands/DescribeConnectorEntityCommand.ts @@ -30,6 +30,7 @@ export class DescribeConnectorEntityCommand extends $Command< DescribeConnectorEntityCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeConnectorEntityCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DescribeConnectorProfilesCommand.ts b/clients/client-appflow/commands/DescribeConnectorProfilesCommand.ts index 526a505530ae9..8c9de3259764e 100644 --- a/clients/client-appflow/commands/DescribeConnectorProfilesCommand.ts +++ b/clients/client-appflow/commands/DescribeConnectorProfilesCommand.ts @@ -30,6 +30,7 @@ export class DescribeConnectorProfilesCommand extends $Command< DescribeConnectorProfilesCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeConnectorProfilesCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DescribeConnectorsCommand.ts b/clients/client-appflow/commands/DescribeConnectorsCommand.ts index 515db29a18746..9595ff39f4720 100644 --- a/clients/client-appflow/commands/DescribeConnectorsCommand.ts +++ b/clients/client-appflow/commands/DescribeConnectorsCommand.ts @@ -31,6 +31,7 @@ export class DescribeConnectorsCommand extends $Command< DescribeConnectorsCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeConnectorsCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DescribeFlowCommand.ts b/clients/client-appflow/commands/DescribeFlowCommand.ts index 382f88f2467e3..a38983f4a9d64 100644 --- a/clients/client-appflow/commands/DescribeFlowCommand.ts +++ b/clients/client-appflow/commands/DescribeFlowCommand.ts @@ -31,6 +31,7 @@ export class DescribeFlowCommand extends $Command< DescribeFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/DescribeFlowExecutionRecordsCommand.ts b/clients/client-appflow/commands/DescribeFlowExecutionRecordsCommand.ts index 51efb8462fdbd..2c9a5a9c29431 100644 --- a/clients/client-appflow/commands/DescribeFlowExecutionRecordsCommand.ts +++ b/clients/client-appflow/commands/DescribeFlowExecutionRecordsCommand.ts @@ -30,6 +30,7 @@ export class DescribeFlowExecutionRecordsCommand extends $Command< DescribeFlowExecutionRecordsCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFlowExecutionRecordsCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/ListConnectorEntitiesCommand.ts b/clients/client-appflow/commands/ListConnectorEntitiesCommand.ts index 72646a8e04431..80c0339e4b904 100644 --- a/clients/client-appflow/commands/ListConnectorEntitiesCommand.ts +++ b/clients/client-appflow/commands/ListConnectorEntitiesCommand.ts @@ -30,6 +30,7 @@ export class ListConnectorEntitiesCommand extends $Command< ListConnectorEntitiesCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListConnectorEntitiesCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/ListFlowsCommand.ts b/clients/client-appflow/commands/ListFlowsCommand.ts index 26e0a64115574..26518bf7a4861 100644 --- a/clients/client-appflow/commands/ListFlowsCommand.ts +++ b/clients/client-appflow/commands/ListFlowsCommand.ts @@ -30,6 +30,7 @@ export class ListFlowsCommand extends $Command< ListFlowsCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListFlowsCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/ListTagsForResourceCommand.ts b/clients/client-appflow/commands/ListTagsForResourceCommand.ts index 2067442e1892f..756bdc5bf790d 100644 --- a/clients/client-appflow/commands/ListTagsForResourceCommand.ts +++ b/clients/client-appflow/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/StartFlowCommand.ts b/clients/client-appflow/commands/StartFlowCommand.ts index 339f050e648b8..6e17400e88308 100644 --- a/clients/client-appflow/commands/StartFlowCommand.ts +++ b/clients/client-appflow/commands/StartFlowCommand.ts @@ -31,6 +31,7 @@ export class StartFlowCommand extends $Command< StartFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/StopFlowCommand.ts b/clients/client-appflow/commands/StopFlowCommand.ts index 4c2fb768c80cf..b5eaa3c20f998 100644 --- a/clients/client-appflow/commands/StopFlowCommand.ts +++ b/clients/client-appflow/commands/StopFlowCommand.ts @@ -30,6 +30,7 @@ export class StopFlowCommand extends $Command< StopFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StopFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/TagResourceCommand.ts b/clients/client-appflow/commands/TagResourceCommand.ts index f3cf7870d4bf5..7394732ae55dc 100644 --- a/clients/client-appflow/commands/TagResourceCommand.ts +++ b/clients/client-appflow/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/UntagResourceCommand.ts b/clients/client-appflow/commands/UntagResourceCommand.ts index 4a39513f97484..b9b19a1af35e5 100644 --- a/clients/client-appflow/commands/UntagResourceCommand.ts +++ b/clients/client-appflow/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/UpdateConnectorProfileCommand.ts b/clients/client-appflow/commands/UpdateConnectorProfileCommand.ts index ae18b10dd470e..302402c11b38d 100644 --- a/clients/client-appflow/commands/UpdateConnectorProfileCommand.ts +++ b/clients/client-appflow/commands/UpdateConnectorProfileCommand.ts @@ -30,6 +30,7 @@ export class UpdateConnectorProfileCommand extends $Command< UpdateConnectorProfileCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateConnectorProfileCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appflow/commands/UpdateFlowCommand.ts b/clients/client-appflow/commands/UpdateFlowCommand.ts index 35560336a0f27..a6b34ea54841b 100644 --- a/clients/client-appflow/commands/UpdateFlowCommand.ts +++ b/clients/client-appflow/commands/UpdateFlowCommand.ts @@ -30,6 +30,7 @@ export class UpdateFlowCommand extends $Command< UpdateFlowCommandOutput, AppflowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateFlowCommand extends $Command< configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/CreateEventIntegrationCommand.ts b/clients/client-appintegrations/commands/CreateEventIntegrationCommand.ts index 1c4993a712ab6..b8b0ed726bcc9 100644 --- a/clients/client-appintegrations/commands/CreateEventIntegrationCommand.ts +++ b/clients/client-appintegrations/commands/CreateEventIntegrationCommand.ts @@ -32,6 +32,7 @@ export class CreateEventIntegrationCommand extends $Command< CreateEventIntegrationCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateEventIntegrationCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/DeleteEventIntegrationCommand.ts b/clients/client-appintegrations/commands/DeleteEventIntegrationCommand.ts index 7e8ce1e612b76..648463f52402c 100644 --- a/clients/client-appintegrations/commands/DeleteEventIntegrationCommand.ts +++ b/clients/client-appintegrations/commands/DeleteEventIntegrationCommand.ts @@ -30,6 +30,7 @@ export class DeleteEventIntegrationCommand extends $Command< DeleteEventIntegrationCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEventIntegrationCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/GetEventIntegrationCommand.ts b/clients/client-appintegrations/commands/GetEventIntegrationCommand.ts index 30d31419fa56a..4955a943498c7 100644 --- a/clients/client-appintegrations/commands/GetEventIntegrationCommand.ts +++ b/clients/client-appintegrations/commands/GetEventIntegrationCommand.ts @@ -29,6 +29,7 @@ export class GetEventIntegrationCommand extends $Command< GetEventIntegrationCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetEventIntegrationCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/ListEventIntegrationAssociationsCommand.ts b/clients/client-appintegrations/commands/ListEventIntegrationAssociationsCommand.ts index a884b04bee477..7020ed5cd1766 100644 --- a/clients/client-appintegrations/commands/ListEventIntegrationAssociationsCommand.ts +++ b/clients/client-appintegrations/commands/ListEventIntegrationAssociationsCommand.ts @@ -29,6 +29,7 @@ export class ListEventIntegrationAssociationsCommand extends $Command< ListEventIntegrationAssociationsCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventIntegrationAssociationsCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/ListEventIntegrationsCommand.ts b/clients/client-appintegrations/commands/ListEventIntegrationsCommand.ts index 0f86a67ea1592..441558a8b07cd 100644 --- a/clients/client-appintegrations/commands/ListEventIntegrationsCommand.ts +++ b/clients/client-appintegrations/commands/ListEventIntegrationsCommand.ts @@ -29,6 +29,7 @@ export class ListEventIntegrationsCommand extends $Command< ListEventIntegrationsCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventIntegrationsCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/ListTagsForResourceCommand.ts b/clients/client-appintegrations/commands/ListTagsForResourceCommand.ts index d9a586526cdfe..b57282f52a571 100644 --- a/clients/client-appintegrations/commands/ListTagsForResourceCommand.ts +++ b/clients/client-appintegrations/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/TagResourceCommand.ts b/clients/client-appintegrations/commands/TagResourceCommand.ts index f88a5696ce6a9..9a69f3e0e30fb 100644 --- a/clients/client-appintegrations/commands/TagResourceCommand.ts +++ b/clients/client-appintegrations/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/UntagResourceCommand.ts b/clients/client-appintegrations/commands/UntagResourceCommand.ts index 21b00e4cbc4fe..f6b86a59c98e8 100644 --- a/clients/client-appintegrations/commands/UntagResourceCommand.ts +++ b/clients/client-appintegrations/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appintegrations/commands/UpdateEventIntegrationCommand.ts b/clients/client-appintegrations/commands/UpdateEventIntegrationCommand.ts index 811ea822b3404..2bb7c10ffb17f 100644 --- a/clients/client-appintegrations/commands/UpdateEventIntegrationCommand.ts +++ b/clients/client-appintegrations/commands/UpdateEventIntegrationCommand.ts @@ -29,6 +29,7 @@ export class UpdateEventIntegrationCommand extends $Command< UpdateEventIntegrationCommandOutput, AppIntegrationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateEventIntegrationCommand extends $Command< configuration: AppIntegrationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DeleteScalingPolicyCommand.ts b/clients/client-application-auto-scaling/commands/DeleteScalingPolicyCommand.ts index fff59c4b503f5..d75fc30bc5153 100644 --- a/clients/client-application-auto-scaling/commands/DeleteScalingPolicyCommand.ts +++ b/clients/client-application-auto-scaling/commands/DeleteScalingPolicyCommand.ts @@ -37,6 +37,7 @@ export class DeleteScalingPolicyCommand extends $Command< DeleteScalingPolicyCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteScalingPolicyCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DeleteScheduledActionCommand.ts b/clients/client-application-auto-scaling/commands/DeleteScheduledActionCommand.ts index 9a3842b5e2688..e5f30019a866c 100644 --- a/clients/client-application-auto-scaling/commands/DeleteScheduledActionCommand.ts +++ b/clients/client-application-auto-scaling/commands/DeleteScheduledActionCommand.ts @@ -33,6 +33,7 @@ export class DeleteScheduledActionCommand extends $Command< DeleteScheduledActionCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteScheduledActionCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DeregisterScalableTargetCommand.ts b/clients/client-application-auto-scaling/commands/DeregisterScalableTargetCommand.ts index 3d12c8f65b031..d03c449c78bca 100644 --- a/clients/client-application-auto-scaling/commands/DeregisterScalableTargetCommand.ts +++ b/clients/client-application-auto-scaling/commands/DeregisterScalableTargetCommand.ts @@ -37,6 +37,7 @@ export class DeregisterScalableTargetCommand extends $Command< DeregisterScalableTargetCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeregisterScalableTargetCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DescribeScalableTargetsCommand.ts b/clients/client-application-auto-scaling/commands/DescribeScalableTargetsCommand.ts index 146afb95ce2ef..83e4b44467a91 100644 --- a/clients/client-application-auto-scaling/commands/DescribeScalableTargetsCommand.ts +++ b/clients/client-application-auto-scaling/commands/DescribeScalableTargetsCommand.ts @@ -34,6 +34,7 @@ export class DescribeScalableTargetsCommand extends $Command< DescribeScalableTargetsCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeScalableTargetsCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DescribeScalingActivitiesCommand.ts b/clients/client-application-auto-scaling/commands/DescribeScalingActivitiesCommand.ts index e1f3ad1c5e385..3c0f0300a6068 100644 --- a/clients/client-application-auto-scaling/commands/DescribeScalingActivitiesCommand.ts +++ b/clients/client-application-auto-scaling/commands/DescribeScalingActivitiesCommand.ts @@ -35,6 +35,7 @@ export class DescribeScalingActivitiesCommand extends $Command< DescribeScalingActivitiesCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeScalingActivitiesCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DescribeScalingPoliciesCommand.ts b/clients/client-application-auto-scaling/commands/DescribeScalingPoliciesCommand.ts index 4ed337f2cde90..a0bb8c4ce89fd 100644 --- a/clients/client-application-auto-scaling/commands/DescribeScalingPoliciesCommand.ts +++ b/clients/client-application-auto-scaling/commands/DescribeScalingPoliciesCommand.ts @@ -35,6 +35,7 @@ export class DescribeScalingPoliciesCommand extends $Command< DescribeScalingPoliciesCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeScalingPoliciesCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/DescribeScheduledActionsCommand.ts b/clients/client-application-auto-scaling/commands/DescribeScheduledActionsCommand.ts index 105a44c80fc5a..27e5518bc5eb8 100644 --- a/clients/client-application-auto-scaling/commands/DescribeScheduledActionsCommand.ts +++ b/clients/client-application-auto-scaling/commands/DescribeScheduledActionsCommand.ts @@ -35,6 +35,7 @@ export class DescribeScheduledActionsCommand extends $Command< DescribeScheduledActionsCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeScheduledActionsCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/PutScalingPolicyCommand.ts b/clients/client-application-auto-scaling/commands/PutScalingPolicyCommand.ts index 42168434f79d6..07ce65344bd2b 100644 --- a/clients/client-application-auto-scaling/commands/PutScalingPolicyCommand.ts +++ b/clients/client-application-auto-scaling/commands/PutScalingPolicyCommand.ts @@ -56,6 +56,7 @@ export class PutScalingPolicyCommand extends $Command< PutScalingPolicyCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class PutScalingPolicyCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/PutScheduledActionCommand.ts b/clients/client-application-auto-scaling/commands/PutScheduledActionCommand.ts index 1bcea3568bc87..af57834cfa1ac 100644 --- a/clients/client-application-auto-scaling/commands/PutScheduledActionCommand.ts +++ b/clients/client-application-auto-scaling/commands/PutScheduledActionCommand.ts @@ -46,6 +46,7 @@ export class PutScheduledActionCommand extends $Command< PutScheduledActionCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class PutScheduledActionCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-auto-scaling/commands/RegisterScalableTargetCommand.ts b/clients/client-application-auto-scaling/commands/RegisterScalableTargetCommand.ts index 5cfc231ccf597..cb8472337d38c 100644 --- a/clients/client-application-auto-scaling/commands/RegisterScalableTargetCommand.ts +++ b/clients/client-application-auto-scaling/commands/RegisterScalableTargetCommand.ts @@ -46,6 +46,7 @@ export class RegisterScalableTargetCommand extends $Command< RegisterScalableTargetCommandOutput, ApplicationAutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class RegisterScalableTargetCommand extends $Command< configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/AssociateConfigurationItemsToApplicationCommand.ts b/clients/client-application-discovery-service/commands/AssociateConfigurationItemsToApplicationCommand.ts index f3208d78f0bdd..3ab5be1456e65 100644 --- a/clients/client-application-discovery-service/commands/AssociateConfigurationItemsToApplicationCommand.ts +++ b/clients/client-application-discovery-service/commands/AssociateConfigurationItemsToApplicationCommand.ts @@ -36,6 +36,7 @@ export class AssociateConfigurationItemsToApplicationCommand extends $Command< AssociateConfigurationItemsToApplicationCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AssociateConfigurationItemsToApplicationCommand extends $Command< AssociateConfigurationItemsToApplicationCommandInput, AssociateConfigurationItemsToApplicationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/BatchDeleteImportDataCommand.ts b/clients/client-application-discovery-service/commands/BatchDeleteImportDataCommand.ts index e7343667a53f7..a2aab3b16c5c2 100644 --- a/clients/client-application-discovery-service/commands/BatchDeleteImportDataCommand.ts +++ b/clients/client-application-discovery-service/commands/BatchDeleteImportDataCommand.ts @@ -39,6 +39,7 @@ export class BatchDeleteImportDataCommand extends $Command< BatchDeleteImportDataCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class BatchDeleteImportDataCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/CreateApplicationCommand.ts b/clients/client-application-discovery-service/commands/CreateApplicationCommand.ts index bc66c46c953b9..10755f3b34a75 100644 --- a/clients/client-application-discovery-service/commands/CreateApplicationCommand.ts +++ b/clients/client-application-discovery-service/commands/CreateApplicationCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/CreateTagsCommand.ts b/clients/client-application-discovery-service/commands/CreateTagsCommand.ts index 802714207a44d..f0515cf8fa6ac 100644 --- a/clients/client-application-discovery-service/commands/CreateTagsCommand.ts +++ b/clients/client-application-discovery-service/commands/CreateTagsCommand.ts @@ -33,6 +33,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateTagsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DeleteApplicationsCommand.ts b/clients/client-application-discovery-service/commands/DeleteApplicationsCommand.ts index 2c3dd001207d5..1ccc4beb01c1e 100644 --- a/clients/client-application-discovery-service/commands/DeleteApplicationsCommand.ts +++ b/clients/client-application-discovery-service/commands/DeleteApplicationsCommand.ts @@ -33,6 +33,7 @@ export class DeleteApplicationsCommand extends $Command< DeleteApplicationsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteApplicationsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DeleteTagsCommand.ts b/clients/client-application-discovery-service/commands/DeleteTagsCommand.ts index f8d31bd9ba4fd..b887239c1c6d8 100644 --- a/clients/client-application-discovery-service/commands/DeleteTagsCommand.ts +++ b/clients/client-application-discovery-service/commands/DeleteTagsCommand.ts @@ -33,6 +33,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteTagsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeAgentsCommand.ts b/clients/client-application-discovery-service/commands/DescribeAgentsCommand.ts index c0780b9aed03d..99677b85efe62 100644 --- a/clients/client-application-discovery-service/commands/DescribeAgentsCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeAgentsCommand.ts @@ -34,6 +34,7 @@ export class DescribeAgentsCommand extends $Command< DescribeAgentsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeAgentsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeConfigurationsCommand.ts b/clients/client-application-discovery-service/commands/DescribeConfigurationsCommand.ts index 0af880aa5d9b9..d9c828bacde6b 100644 --- a/clients/client-application-discovery-service/commands/DescribeConfigurationsCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeConfigurationsCommand.ts @@ -57,6 +57,7 @@ export class DescribeConfigurationsCommand extends $Command< DescribeConfigurationsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class DescribeConfigurationsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeContinuousExportsCommand.ts b/clients/client-application-discovery-service/commands/DescribeContinuousExportsCommand.ts index 6a34440cea108..efd5df2e3fb0e 100644 --- a/clients/client-application-discovery-service/commands/DescribeContinuousExportsCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeContinuousExportsCommand.ts @@ -34,6 +34,7 @@ export class DescribeContinuousExportsCommand extends $Command< DescribeContinuousExportsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeContinuousExportsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeExportConfigurationsCommand.ts b/clients/client-application-discovery-service/commands/DescribeExportConfigurationsCommand.ts index 5b2f9e3d0e1ae..9a6c242632e95 100644 --- a/clients/client-application-discovery-service/commands/DescribeExportConfigurationsCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeExportConfigurationsCommand.ts @@ -33,6 +33,7 @@ export class DescribeExportConfigurationsCommand extends $Command< DescribeExportConfigurationsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeExportConfigurationsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeExportTasksCommand.ts b/clients/client-application-discovery-service/commands/DescribeExportTasksCommand.ts index 09efe6920c5b7..a934e789776e9 100644 --- a/clients/client-application-discovery-service/commands/DescribeExportTasksCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeExportTasksCommand.ts @@ -33,6 +33,7 @@ export class DescribeExportTasksCommand extends $Command< DescribeExportTasksCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeExportTasksCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeImportTasksCommand.ts b/clients/client-application-discovery-service/commands/DescribeImportTasksCommand.ts index 45a86e6cb11a4..7ffe46cec265d 100644 --- a/clients/client-application-discovery-service/commands/DescribeImportTasksCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeImportTasksCommand.ts @@ -33,6 +33,7 @@ export class DescribeImportTasksCommand extends $Command< DescribeImportTasksCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeImportTasksCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DescribeTagsCommand.ts b/clients/client-application-discovery-service/commands/DescribeTagsCommand.ts index 08e9e56807775..bfd4bf77beb54 100644 --- a/clients/client-application-discovery-service/commands/DescribeTagsCommand.ts +++ b/clients/client-application-discovery-service/commands/DescribeTagsCommand.ts @@ -47,6 +47,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeTagsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/DisassociateConfigurationItemsFromApplicationCommand.ts b/clients/client-application-discovery-service/commands/DisassociateConfigurationItemsFromApplicationCommand.ts index 894457108fea5..add3e360f6823 100644 --- a/clients/client-application-discovery-service/commands/DisassociateConfigurationItemsFromApplicationCommand.ts +++ b/clients/client-application-discovery-service/commands/DisassociateConfigurationItemsFromApplicationCommand.ts @@ -36,6 +36,7 @@ export class DisassociateConfigurationItemsFromApplicationCommand extends $Comma DisassociateConfigurationItemsFromApplicationCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DisassociateConfigurationItemsFromApplicationCommand extends $Comma DisassociateConfigurationItemsFromApplicationCommandInput, DisassociateConfigurationItemsFromApplicationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/ExportConfigurationsCommand.ts b/clients/client-application-discovery-service/commands/ExportConfigurationsCommand.ts index e313dd90e1872..0b06deed7b75c 100644 --- a/clients/client-application-discovery-service/commands/ExportConfigurationsCommand.ts +++ b/clients/client-application-discovery-service/commands/ExportConfigurationsCommand.ts @@ -37,6 +37,7 @@ export class ExportConfigurationsCommand extends $Command< ExportConfigurationsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ExportConfigurationsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/GetDiscoverySummaryCommand.ts b/clients/client-application-discovery-service/commands/GetDiscoverySummaryCommand.ts index 4005c449410d1..47a7ce1075998 100644 --- a/clients/client-application-discovery-service/commands/GetDiscoverySummaryCommand.ts +++ b/clients/client-application-discovery-service/commands/GetDiscoverySummaryCommand.ts @@ -34,6 +34,7 @@ export class GetDiscoverySummaryCommand extends $Command< GetDiscoverySummaryCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetDiscoverySummaryCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/ListConfigurationsCommand.ts b/clients/client-application-discovery-service/commands/ListConfigurationsCommand.ts index 1a8810156f55d..eee70a6c4d3cb 100644 --- a/clients/client-application-discovery-service/commands/ListConfigurationsCommand.ts +++ b/clients/client-application-discovery-service/commands/ListConfigurationsCommand.ts @@ -34,6 +34,7 @@ export class ListConfigurationsCommand extends $Command< ListConfigurationsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListConfigurationsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/ListServerNeighborsCommand.ts b/clients/client-application-discovery-service/commands/ListServerNeighborsCommand.ts index c51e4d63cf784..2988ecb88077d 100644 --- a/clients/client-application-discovery-service/commands/ListServerNeighborsCommand.ts +++ b/clients/client-application-discovery-service/commands/ListServerNeighborsCommand.ts @@ -33,6 +33,7 @@ export class ListServerNeighborsCommand extends $Command< ListServerNeighborsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListServerNeighborsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StartContinuousExportCommand.ts b/clients/client-application-discovery-service/commands/StartContinuousExportCommand.ts index 7b8df2f8479cd..b9b898cf69c31 100644 --- a/clients/client-application-discovery-service/commands/StartContinuousExportCommand.ts +++ b/clients/client-application-discovery-service/commands/StartContinuousExportCommand.ts @@ -32,6 +32,7 @@ export class StartContinuousExportCommand extends $Command< StartContinuousExportCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartContinuousExportCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StartDataCollectionByAgentIdsCommand.ts b/clients/client-application-discovery-service/commands/StartDataCollectionByAgentIdsCommand.ts index e3433495ceef0..7ce9b89fcfe55 100644 --- a/clients/client-application-discovery-service/commands/StartDataCollectionByAgentIdsCommand.ts +++ b/clients/client-application-discovery-service/commands/StartDataCollectionByAgentIdsCommand.ts @@ -32,6 +32,7 @@ export class StartDataCollectionByAgentIdsCommand extends $Command< StartDataCollectionByAgentIdsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartDataCollectionByAgentIdsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StartExportTaskCommand.ts b/clients/client-application-discovery-service/commands/StartExportTaskCommand.ts index ea7d66acac040..511a219e68ead 100644 --- a/clients/client-application-discovery-service/commands/StartExportTaskCommand.ts +++ b/clients/client-application-discovery-service/commands/StartExportTaskCommand.ts @@ -40,6 +40,7 @@ export class StartExportTaskCommand extends $Command< StartExportTaskCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class StartExportTaskCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StartImportTaskCommand.ts b/clients/client-application-discovery-service/commands/StartImportTaskCommand.ts index 8ca28b3985918..09d9bfc347576 100644 --- a/clients/client-application-discovery-service/commands/StartImportTaskCommand.ts +++ b/clients/client-application-discovery-service/commands/StartImportTaskCommand.ts @@ -67,6 +67,7 @@ export class StartImportTaskCommand extends $Command< StartImportTaskCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class StartImportTaskCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StopContinuousExportCommand.ts b/clients/client-application-discovery-service/commands/StopContinuousExportCommand.ts index bdb391b6b5aa6..d8b524842bef9 100644 --- a/clients/client-application-discovery-service/commands/StopContinuousExportCommand.ts +++ b/clients/client-application-discovery-service/commands/StopContinuousExportCommand.ts @@ -32,6 +32,7 @@ export class StopContinuousExportCommand extends $Command< StopContinuousExportCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopContinuousExportCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/StopDataCollectionByAgentIdsCommand.ts b/clients/client-application-discovery-service/commands/StopDataCollectionByAgentIdsCommand.ts index 8c2908ab42e57..e4c32c34c2c6a 100644 --- a/clients/client-application-discovery-service/commands/StopDataCollectionByAgentIdsCommand.ts +++ b/clients/client-application-discovery-service/commands/StopDataCollectionByAgentIdsCommand.ts @@ -32,6 +32,7 @@ export class StopDataCollectionByAgentIdsCommand extends $Command< StopDataCollectionByAgentIdsCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopDataCollectionByAgentIdsCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-discovery-service/commands/UpdateApplicationCommand.ts b/clients/client-application-discovery-service/commands/UpdateApplicationCommand.ts index c235baac82379..3c657d8ad2f79 100644 --- a/clients/client-application-discovery-service/commands/UpdateApplicationCommand.ts +++ b/clients/client-application-discovery-service/commands/UpdateApplicationCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, ApplicationDiscoveryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationCommand extends $Command< configuration: ApplicationDiscoveryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/CreateApplicationCommand.ts b/clients/client-application-insights/commands/CreateApplicationCommand.ts index fc9d9bedbd32a..3b6965d5f95d9 100644 --- a/clients/client-application-insights/commands/CreateApplicationCommand.ts +++ b/clients/client-application-insights/commands/CreateApplicationCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/CreateComponentCommand.ts b/clients/client-application-insights/commands/CreateComponentCommand.ts index 77170840db286..4fbe5e6302d69 100644 --- a/clients/client-application-insights/commands/CreateComponentCommand.ts +++ b/clients/client-application-insights/commands/CreateComponentCommand.ts @@ -32,6 +32,7 @@ export class CreateComponentCommand extends $Command< CreateComponentCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateComponentCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/CreateLogPatternCommand.ts b/clients/client-application-insights/commands/CreateLogPatternCommand.ts index 286b7ddb20dd5..919345e44664b 100644 --- a/clients/client-application-insights/commands/CreateLogPatternCommand.ts +++ b/clients/client-application-insights/commands/CreateLogPatternCommand.ts @@ -32,6 +32,7 @@ export class CreateLogPatternCommand extends $Command< CreateLogPatternCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateLogPatternCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DeleteApplicationCommand.ts b/clients/client-application-insights/commands/DeleteApplicationCommand.ts index dbe0d95e1b44e..297fb6c5839a3 100644 --- a/clients/client-application-insights/commands/DeleteApplicationCommand.ts +++ b/clients/client-application-insights/commands/DeleteApplicationCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DeleteComponentCommand.ts b/clients/client-application-insights/commands/DeleteComponentCommand.ts index b587c9f747996..d1961bce47949 100644 --- a/clients/client-application-insights/commands/DeleteComponentCommand.ts +++ b/clients/client-application-insights/commands/DeleteComponentCommand.ts @@ -33,6 +33,7 @@ export class DeleteComponentCommand extends $Command< DeleteComponentCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteComponentCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DeleteLogPatternCommand.ts b/clients/client-application-insights/commands/DeleteLogPatternCommand.ts index 4a4f58aeb893b..3fc26721fa3d5 100644 --- a/clients/client-application-insights/commands/DeleteLogPatternCommand.ts +++ b/clients/client-application-insights/commands/DeleteLogPatternCommand.ts @@ -32,6 +32,7 @@ export class DeleteLogPatternCommand extends $Command< DeleteLogPatternCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLogPatternCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeApplicationCommand.ts b/clients/client-application-insights/commands/DescribeApplicationCommand.ts index 98cd3a1a7287e..01f1cf443190c 100644 --- a/clients/client-application-insights/commands/DescribeApplicationCommand.ts +++ b/clients/client-application-insights/commands/DescribeApplicationCommand.ts @@ -32,6 +32,7 @@ export class DescribeApplicationCommand extends $Command< DescribeApplicationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeApplicationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeComponentCommand.ts b/clients/client-application-insights/commands/DescribeComponentCommand.ts index 20b0ea25fc126..f4e3514dd740b 100644 --- a/clients/client-application-insights/commands/DescribeComponentCommand.ts +++ b/clients/client-application-insights/commands/DescribeComponentCommand.ts @@ -32,6 +32,7 @@ export class DescribeComponentCommand extends $Command< DescribeComponentCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeComponentCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeComponentConfigurationCommand.ts b/clients/client-application-insights/commands/DescribeComponentConfigurationCommand.ts index 0c522ef16e643..655a9ba85c88c 100644 --- a/clients/client-application-insights/commands/DescribeComponentConfigurationCommand.ts +++ b/clients/client-application-insights/commands/DescribeComponentConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DescribeComponentConfigurationCommand extends $Command< DescribeComponentConfigurationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeComponentConfigurationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeComponentConfigurationRecommendationCommand.ts b/clients/client-application-insights/commands/DescribeComponentConfigurationRecommendationCommand.ts index 65ee3c816c247..2a9ab779678f9 100644 --- a/clients/client-application-insights/commands/DescribeComponentConfigurationRecommendationCommand.ts +++ b/clients/client-application-insights/commands/DescribeComponentConfigurationRecommendationCommand.ts @@ -36,6 +36,7 @@ export class DescribeComponentConfigurationRecommendationCommand extends $Comman DescribeComponentConfigurationRecommendationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeComponentConfigurationRecommendationCommand extends $Comman DescribeComponentConfigurationRecommendationCommandInput, DescribeComponentConfigurationRecommendationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeLogPatternCommand.ts b/clients/client-application-insights/commands/DescribeLogPatternCommand.ts index 406d141293bc3..6eecb4a1e462c 100644 --- a/clients/client-application-insights/commands/DescribeLogPatternCommand.ts +++ b/clients/client-application-insights/commands/DescribeLogPatternCommand.ts @@ -32,6 +32,7 @@ export class DescribeLogPatternCommand extends $Command< DescribeLogPatternCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeLogPatternCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeObservationCommand.ts b/clients/client-application-insights/commands/DescribeObservationCommand.ts index 326fcee8618f7..557bacae3c044 100644 --- a/clients/client-application-insights/commands/DescribeObservationCommand.ts +++ b/clients/client-application-insights/commands/DescribeObservationCommand.ts @@ -32,6 +32,7 @@ export class DescribeObservationCommand extends $Command< DescribeObservationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeObservationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeProblemCommand.ts b/clients/client-application-insights/commands/DescribeProblemCommand.ts index 87d3f49287bde..8888a26a96ed3 100644 --- a/clients/client-application-insights/commands/DescribeProblemCommand.ts +++ b/clients/client-application-insights/commands/DescribeProblemCommand.ts @@ -32,6 +32,7 @@ export class DescribeProblemCommand extends $Command< DescribeProblemCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeProblemCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/DescribeProblemObservationsCommand.ts b/clients/client-application-insights/commands/DescribeProblemObservationsCommand.ts index e859b2da110c3..273938945c0cb 100644 --- a/clients/client-application-insights/commands/DescribeProblemObservationsCommand.ts +++ b/clients/client-application-insights/commands/DescribeProblemObservationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeProblemObservationsCommand extends $Command< DescribeProblemObservationsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeProblemObservationsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListApplicationsCommand.ts b/clients/client-application-insights/commands/ListApplicationsCommand.ts index f1ce989b073ce..672570d66719a 100644 --- a/clients/client-application-insights/commands/ListApplicationsCommand.ts +++ b/clients/client-application-insights/commands/ListApplicationsCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListComponentsCommand.ts b/clients/client-application-insights/commands/ListComponentsCommand.ts index a82d84898a2a2..59ff16e685711 100644 --- a/clients/client-application-insights/commands/ListComponentsCommand.ts +++ b/clients/client-application-insights/commands/ListComponentsCommand.ts @@ -32,6 +32,7 @@ export class ListComponentsCommand extends $Command< ListComponentsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListComponentsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListConfigurationHistoryCommand.ts b/clients/client-application-insights/commands/ListConfigurationHistoryCommand.ts index 31cf0e47cd29e..17571be7ef6c1 100644 --- a/clients/client-application-insights/commands/ListConfigurationHistoryCommand.ts +++ b/clients/client-application-insights/commands/ListConfigurationHistoryCommand.ts @@ -45,6 +45,7 @@ export class ListConfigurationHistoryCommand extends $Command< ListConfigurationHistoryCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class ListConfigurationHistoryCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListLogPatternSetsCommand.ts b/clients/client-application-insights/commands/ListLogPatternSetsCommand.ts index 573d97f417418..85dcb0464e0d2 100644 --- a/clients/client-application-insights/commands/ListLogPatternSetsCommand.ts +++ b/clients/client-application-insights/commands/ListLogPatternSetsCommand.ts @@ -32,6 +32,7 @@ export class ListLogPatternSetsCommand extends $Command< ListLogPatternSetsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListLogPatternSetsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListLogPatternsCommand.ts b/clients/client-application-insights/commands/ListLogPatternsCommand.ts index c60932a0d3f2c..3f54b68b8e824 100644 --- a/clients/client-application-insights/commands/ListLogPatternsCommand.ts +++ b/clients/client-application-insights/commands/ListLogPatternsCommand.ts @@ -32,6 +32,7 @@ export class ListLogPatternsCommand extends $Command< ListLogPatternsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListLogPatternsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListProblemsCommand.ts b/clients/client-application-insights/commands/ListProblemsCommand.ts index 5639261725b1b..ae7829db127fa 100644 --- a/clients/client-application-insights/commands/ListProblemsCommand.ts +++ b/clients/client-application-insights/commands/ListProblemsCommand.ts @@ -32,6 +32,7 @@ export class ListProblemsCommand extends $Command< ListProblemsCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListProblemsCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/ListTagsForResourceCommand.ts b/clients/client-application-insights/commands/ListTagsForResourceCommand.ts index 944b3e400ac3d..a44725114e2ba 100644 --- a/clients/client-application-insights/commands/ListTagsForResourceCommand.ts +++ b/clients/client-application-insights/commands/ListTagsForResourceCommand.ts @@ -37,6 +37,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/TagResourceCommand.ts b/clients/client-application-insights/commands/TagResourceCommand.ts index e6bd82d1218ed..873e360b8d4e2 100644 --- a/clients/client-application-insights/commands/TagResourceCommand.ts +++ b/clients/client-application-insights/commands/TagResourceCommand.ts @@ -39,6 +39,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class TagResourceCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/UntagResourceCommand.ts b/clients/client-application-insights/commands/UntagResourceCommand.ts index 3562a9975fc8c..e9d6d1985e564 100644 --- a/clients/client-application-insights/commands/UntagResourceCommand.ts +++ b/clients/client-application-insights/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/UpdateApplicationCommand.ts b/clients/client-application-insights/commands/UpdateApplicationCommand.ts index e087733b58d71..eb6f5b3a51f99 100644 --- a/clients/client-application-insights/commands/UpdateApplicationCommand.ts +++ b/clients/client-application-insights/commands/UpdateApplicationCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/UpdateComponentCommand.ts b/clients/client-application-insights/commands/UpdateComponentCommand.ts index 4580bc65485e8..d5552e086806b 100644 --- a/clients/client-application-insights/commands/UpdateComponentCommand.ts +++ b/clients/client-application-insights/commands/UpdateComponentCommand.ts @@ -33,6 +33,7 @@ export class UpdateComponentCommand extends $Command< UpdateComponentCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateComponentCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/UpdateComponentConfigurationCommand.ts b/clients/client-application-insights/commands/UpdateComponentConfigurationCommand.ts index a3f84a9e5bba4..e6331ab9c0801 100644 --- a/clients/client-application-insights/commands/UpdateComponentConfigurationCommand.ts +++ b/clients/client-application-insights/commands/UpdateComponentConfigurationCommand.ts @@ -34,6 +34,7 @@ export class UpdateComponentConfigurationCommand extends $Command< UpdateComponentConfigurationCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateComponentConfigurationCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-application-insights/commands/UpdateLogPatternCommand.ts b/clients/client-application-insights/commands/UpdateLogPatternCommand.ts index f5bdb5e503db8..9c9f88cad2cd2 100644 --- a/clients/client-application-insights/commands/UpdateLogPatternCommand.ts +++ b/clients/client-application-insights/commands/UpdateLogPatternCommand.ts @@ -32,6 +32,7 @@ export class UpdateLogPatternCommand extends $Command< UpdateLogPatternCommandOutput, ApplicationInsightsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateLogPatternCommand extends $Command< configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/AssociateFleetCommand.ts b/clients/client-appstream/commands/AssociateFleetCommand.ts index 1803e85f2bfa9..f6b2b0eac0ecb 100644 --- a/clients/client-appstream/commands/AssociateFleetCommand.ts +++ b/clients/client-appstream/commands/AssociateFleetCommand.ts @@ -28,6 +28,7 @@ export class AssociateFleetCommand extends $Command< AssociateFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/BatchAssociateUserStackCommand.ts b/clients/client-appstream/commands/BatchAssociateUserStackCommand.ts index 7f26f8a071bde..7d04dadec888e 100644 --- a/clients/client-appstream/commands/BatchAssociateUserStackCommand.ts +++ b/clients/client-appstream/commands/BatchAssociateUserStackCommand.ts @@ -28,6 +28,7 @@ export class BatchAssociateUserStackCommand extends $Command< BatchAssociateUserStackCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchAssociateUserStackCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/BatchDisassociateUserStackCommand.ts b/clients/client-appstream/commands/BatchDisassociateUserStackCommand.ts index 98ad0bff9e166..9da7dae7e32c7 100644 --- a/clients/client-appstream/commands/BatchDisassociateUserStackCommand.ts +++ b/clients/client-appstream/commands/BatchDisassociateUserStackCommand.ts @@ -28,6 +28,7 @@ export class BatchDisassociateUserStackCommand extends $Command< BatchDisassociateUserStackCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDisassociateUserStackCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CopyImageCommand.ts b/clients/client-appstream/commands/CopyImageCommand.ts index afd7898e53019..1ec2fe9d31708 100644 --- a/clients/client-appstream/commands/CopyImageCommand.ts +++ b/clients/client-appstream/commands/CopyImageCommand.ts @@ -25,6 +25,7 @@ export class CopyImageCommand extends $Command< CopyImageCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CopyImageCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateDirectoryConfigCommand.ts b/clients/client-appstream/commands/CreateDirectoryConfigCommand.ts index fc75d369f52fa..6e93b0a1212d5 100644 --- a/clients/client-appstream/commands/CreateDirectoryConfigCommand.ts +++ b/clients/client-appstream/commands/CreateDirectoryConfigCommand.ts @@ -28,6 +28,7 @@ export class CreateDirectoryConfigCommand extends $Command< CreateDirectoryConfigCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDirectoryConfigCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateFleetCommand.ts b/clients/client-appstream/commands/CreateFleetCommand.ts index af0a554017742..d0d12c09ffea5 100644 --- a/clients/client-appstream/commands/CreateFleetCommand.ts +++ b/clients/client-appstream/commands/CreateFleetCommand.ts @@ -28,6 +28,7 @@ export class CreateFleetCommand extends $Command< CreateFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateImageBuilderCommand.ts b/clients/client-appstream/commands/CreateImageBuilderCommand.ts index 03460604906c4..fedf00f41a536 100644 --- a/clients/client-appstream/commands/CreateImageBuilderCommand.ts +++ b/clients/client-appstream/commands/CreateImageBuilderCommand.ts @@ -29,6 +29,7 @@ export class CreateImageBuilderCommand extends $Command< CreateImageBuilderCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateImageBuilderCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateImageBuilderStreamingURLCommand.ts b/clients/client-appstream/commands/CreateImageBuilderStreamingURLCommand.ts index f93566349efdd..411c170519d1f 100644 --- a/clients/client-appstream/commands/CreateImageBuilderStreamingURLCommand.ts +++ b/clients/client-appstream/commands/CreateImageBuilderStreamingURLCommand.ts @@ -28,6 +28,7 @@ export class CreateImageBuilderStreamingURLCommand extends $Command< CreateImageBuilderStreamingURLCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImageBuilderStreamingURLCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateStackCommand.ts b/clients/client-appstream/commands/CreateStackCommand.ts index 2cd718a931523..e00c30d3d4764 100644 --- a/clients/client-appstream/commands/CreateStackCommand.ts +++ b/clients/client-appstream/commands/CreateStackCommand.ts @@ -28,6 +28,7 @@ export class CreateStackCommand extends $Command< CreateStackCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateStackCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateStreamingURLCommand.ts b/clients/client-appstream/commands/CreateStreamingURLCommand.ts index 81958e3bbbd5f..ccd33571e8b7f 100644 --- a/clients/client-appstream/commands/CreateStreamingURLCommand.ts +++ b/clients/client-appstream/commands/CreateStreamingURLCommand.ts @@ -28,6 +28,7 @@ export class CreateStreamingURLCommand extends $Command< CreateStreamingURLCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateStreamingURLCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateUsageReportSubscriptionCommand.ts b/clients/client-appstream/commands/CreateUsageReportSubscriptionCommand.ts index dfe8464a30572..8a6868900304c 100644 --- a/clients/client-appstream/commands/CreateUsageReportSubscriptionCommand.ts +++ b/clients/client-appstream/commands/CreateUsageReportSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class CreateUsageReportSubscriptionCommand extends $Command< CreateUsageReportSubscriptionCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUsageReportSubscriptionCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/CreateUserCommand.ts b/clients/client-appstream/commands/CreateUserCommand.ts index 2872b1ad239ad..503bd774fb982 100644 --- a/clients/client-appstream/commands/CreateUserCommand.ts +++ b/clients/client-appstream/commands/CreateUserCommand.ts @@ -28,6 +28,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUserCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteDirectoryConfigCommand.ts b/clients/client-appstream/commands/DeleteDirectoryConfigCommand.ts index ae557922f5a61..e34aca4cd7aaa 100644 --- a/clients/client-appstream/commands/DeleteDirectoryConfigCommand.ts +++ b/clients/client-appstream/commands/DeleteDirectoryConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteDirectoryConfigCommand extends $Command< DeleteDirectoryConfigCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDirectoryConfigCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteFleetCommand.ts b/clients/client-appstream/commands/DeleteFleetCommand.ts index bddc8a1458c4a..6927c99ba92aa 100644 --- a/clients/client-appstream/commands/DeleteFleetCommand.ts +++ b/clients/client-appstream/commands/DeleteFleetCommand.ts @@ -28,6 +28,7 @@ export class DeleteFleetCommand extends $Command< DeleteFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteImageBuilderCommand.ts b/clients/client-appstream/commands/DeleteImageBuilderCommand.ts index f9c8ca3ec747a..281455341f034 100644 --- a/clients/client-appstream/commands/DeleteImageBuilderCommand.ts +++ b/clients/client-appstream/commands/DeleteImageBuilderCommand.ts @@ -28,6 +28,7 @@ export class DeleteImageBuilderCommand extends $Command< DeleteImageBuilderCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteImageBuilderCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteImageCommand.ts b/clients/client-appstream/commands/DeleteImageCommand.ts index 3b2c107f0d8e1..cbbbeb6790fdb 100644 --- a/clients/client-appstream/commands/DeleteImageCommand.ts +++ b/clients/client-appstream/commands/DeleteImageCommand.ts @@ -29,6 +29,7 @@ export class DeleteImageCommand extends $Command< DeleteImageCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteImageCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteImagePermissionsCommand.ts b/clients/client-appstream/commands/DeleteImagePermissionsCommand.ts index 5808a55bba2aa..4863970b5c7a5 100644 --- a/clients/client-appstream/commands/DeleteImagePermissionsCommand.ts +++ b/clients/client-appstream/commands/DeleteImagePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DeleteImagePermissionsCommand extends $Command< DeleteImagePermissionsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteImagePermissionsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteStackCommand.ts b/clients/client-appstream/commands/DeleteStackCommand.ts index dc36ac60ae478..4acc2ee605083 100644 --- a/clients/client-appstream/commands/DeleteStackCommand.ts +++ b/clients/client-appstream/commands/DeleteStackCommand.ts @@ -28,6 +28,7 @@ export class DeleteStackCommand extends $Command< DeleteStackCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteStackCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteUsageReportSubscriptionCommand.ts b/clients/client-appstream/commands/DeleteUsageReportSubscriptionCommand.ts index 46e7d2ec71bd8..31ae582890cb9 100644 --- a/clients/client-appstream/commands/DeleteUsageReportSubscriptionCommand.ts +++ b/clients/client-appstream/commands/DeleteUsageReportSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteUsageReportSubscriptionCommand extends $Command< DeleteUsageReportSubscriptionCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUsageReportSubscriptionCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DeleteUserCommand.ts b/clients/client-appstream/commands/DeleteUserCommand.ts index f90e3eb346f29..d1d5b9345138e 100644 --- a/clients/client-appstream/commands/DeleteUserCommand.ts +++ b/clients/client-appstream/commands/DeleteUserCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeDirectoryConfigsCommand.ts b/clients/client-appstream/commands/DescribeDirectoryConfigsCommand.ts index c4f2506a363fe..eac21e20a5240 100644 --- a/clients/client-appstream/commands/DescribeDirectoryConfigsCommand.ts +++ b/clients/client-appstream/commands/DescribeDirectoryConfigsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDirectoryConfigsCommand extends $Command< DescribeDirectoryConfigsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDirectoryConfigsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeFleetsCommand.ts b/clients/client-appstream/commands/DescribeFleetsCommand.ts index 7a3b0c4f4da7b..21720737115e6 100644 --- a/clients/client-appstream/commands/DescribeFleetsCommand.ts +++ b/clients/client-appstream/commands/DescribeFleetsCommand.ts @@ -28,6 +28,7 @@ export class DescribeFleetsCommand extends $Command< DescribeFleetsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFleetsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeImageBuildersCommand.ts b/clients/client-appstream/commands/DescribeImageBuildersCommand.ts index 1aa4945277bcd..d97fe35c08a05 100644 --- a/clients/client-appstream/commands/DescribeImageBuildersCommand.ts +++ b/clients/client-appstream/commands/DescribeImageBuildersCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageBuildersCommand extends $Command< DescribeImageBuildersCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageBuildersCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeImagePermissionsCommand.ts b/clients/client-appstream/commands/DescribeImagePermissionsCommand.ts index 1fe7498ee4fbd..95d1a321f6051 100644 --- a/clients/client-appstream/commands/DescribeImagePermissionsCommand.ts +++ b/clients/client-appstream/commands/DescribeImagePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeImagePermissionsCommand extends $Command< DescribeImagePermissionsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImagePermissionsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeImagesCommand.ts b/clients/client-appstream/commands/DescribeImagesCommand.ts index 5b41e89e295fc..b4cd440685433 100644 --- a/clients/client-appstream/commands/DescribeImagesCommand.ts +++ b/clients/client-appstream/commands/DescribeImagesCommand.ts @@ -28,6 +28,7 @@ export class DescribeImagesCommand extends $Command< DescribeImagesCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImagesCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeSessionsCommand.ts b/clients/client-appstream/commands/DescribeSessionsCommand.ts index 4093f6ad2736b..f397bd086e673 100644 --- a/clients/client-appstream/commands/DescribeSessionsCommand.ts +++ b/clients/client-appstream/commands/DescribeSessionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeSessionsCommand extends $Command< DescribeSessionsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeSessionsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeStacksCommand.ts b/clients/client-appstream/commands/DescribeStacksCommand.ts index 57e48a530215e..39199e893d8c6 100644 --- a/clients/client-appstream/commands/DescribeStacksCommand.ts +++ b/clients/client-appstream/commands/DescribeStacksCommand.ts @@ -28,6 +28,7 @@ export class DescribeStacksCommand extends $Command< DescribeStacksCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStacksCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeUsageReportSubscriptionsCommand.ts b/clients/client-appstream/commands/DescribeUsageReportSubscriptionsCommand.ts index 265b2c34e978d..116aac2af3bab 100644 --- a/clients/client-appstream/commands/DescribeUsageReportSubscriptionsCommand.ts +++ b/clients/client-appstream/commands/DescribeUsageReportSubscriptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeUsageReportSubscriptionsCommand extends $Command< DescribeUsageReportSubscriptionsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUsageReportSubscriptionsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeUserStackAssociationsCommand.ts b/clients/client-appstream/commands/DescribeUserStackAssociationsCommand.ts index 5a8c4fe168d4c..b2361f044857f 100644 --- a/clients/client-appstream/commands/DescribeUserStackAssociationsCommand.ts +++ b/clients/client-appstream/commands/DescribeUserStackAssociationsCommand.ts @@ -36,6 +36,7 @@ export class DescribeUserStackAssociationsCommand extends $Command< DescribeUserStackAssociationsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeUserStackAssociationsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DescribeUsersCommand.ts b/clients/client-appstream/commands/DescribeUsersCommand.ts index 1915dcb7a31c1..0cae6b1c1c383 100644 --- a/clients/client-appstream/commands/DescribeUsersCommand.ts +++ b/clients/client-appstream/commands/DescribeUsersCommand.ts @@ -28,6 +28,7 @@ export class DescribeUsersCommand extends $Command< DescribeUsersCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUsersCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DisableUserCommand.ts b/clients/client-appstream/commands/DisableUserCommand.ts index 20d92b00945e8..115ca4ce07765 100644 --- a/clients/client-appstream/commands/DisableUserCommand.ts +++ b/clients/client-appstream/commands/DisableUserCommand.ts @@ -28,6 +28,7 @@ export class DisableUserCommand extends $Command< DisableUserCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableUserCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/DisassociateFleetCommand.ts b/clients/client-appstream/commands/DisassociateFleetCommand.ts index 23c835ed9ebd7..b94000ebf0ee4 100644 --- a/clients/client-appstream/commands/DisassociateFleetCommand.ts +++ b/clients/client-appstream/commands/DisassociateFleetCommand.ts @@ -28,6 +28,7 @@ export class DisassociateFleetCommand extends $Command< DisassociateFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/EnableUserCommand.ts b/clients/client-appstream/commands/EnableUserCommand.ts index 334a5a105ae0c..e586e89d7f340 100644 --- a/clients/client-appstream/commands/EnableUserCommand.ts +++ b/clients/client-appstream/commands/EnableUserCommand.ts @@ -28,6 +28,7 @@ export class EnableUserCommand extends $Command< EnableUserCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableUserCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/ExpireSessionCommand.ts b/clients/client-appstream/commands/ExpireSessionCommand.ts index 7112375bf584b..aca64b26e996f 100644 --- a/clients/client-appstream/commands/ExpireSessionCommand.ts +++ b/clients/client-appstream/commands/ExpireSessionCommand.ts @@ -28,6 +28,7 @@ export class ExpireSessionCommand extends $Command< ExpireSessionCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ExpireSessionCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/ListAssociatedFleetsCommand.ts b/clients/client-appstream/commands/ListAssociatedFleetsCommand.ts index f3f89ed64e4a0..cc38d0f352446 100644 --- a/clients/client-appstream/commands/ListAssociatedFleetsCommand.ts +++ b/clients/client-appstream/commands/ListAssociatedFleetsCommand.ts @@ -28,6 +28,7 @@ export class ListAssociatedFleetsCommand extends $Command< ListAssociatedFleetsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssociatedFleetsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/ListAssociatedStacksCommand.ts b/clients/client-appstream/commands/ListAssociatedStacksCommand.ts index ba13de1f1844c..0768bb9d493b4 100644 --- a/clients/client-appstream/commands/ListAssociatedStacksCommand.ts +++ b/clients/client-appstream/commands/ListAssociatedStacksCommand.ts @@ -28,6 +28,7 @@ export class ListAssociatedStacksCommand extends $Command< ListAssociatedStacksCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssociatedStacksCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/ListTagsForResourceCommand.ts b/clients/client-appstream/commands/ListTagsForResourceCommand.ts index 7dca995216ce3..99d9039b1ba7a 100644 --- a/clients/client-appstream/commands/ListTagsForResourceCommand.ts +++ b/clients/client-appstream/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/StartFleetCommand.ts b/clients/client-appstream/commands/StartFleetCommand.ts index a2bdb0591035a..2f3b03cec8a81 100644 --- a/clients/client-appstream/commands/StartFleetCommand.ts +++ b/clients/client-appstream/commands/StartFleetCommand.ts @@ -28,6 +28,7 @@ export class StartFleetCommand extends $Command< StartFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/StartImageBuilderCommand.ts b/clients/client-appstream/commands/StartImageBuilderCommand.ts index bb5c0fe7212f9..d1ad9717bfeb6 100644 --- a/clients/client-appstream/commands/StartImageBuilderCommand.ts +++ b/clients/client-appstream/commands/StartImageBuilderCommand.ts @@ -28,6 +28,7 @@ export class StartImageBuilderCommand extends $Command< StartImageBuilderCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartImageBuilderCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/StopFleetCommand.ts b/clients/client-appstream/commands/StopFleetCommand.ts index 40b1b269dc04c..4f7b92827bc4b 100644 --- a/clients/client-appstream/commands/StopFleetCommand.ts +++ b/clients/client-appstream/commands/StopFleetCommand.ts @@ -25,6 +25,7 @@ export class StopFleetCommand extends $Command< StopFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class StopFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/StopImageBuilderCommand.ts b/clients/client-appstream/commands/StopImageBuilderCommand.ts index b1d07dff37020..220f2688ddae8 100644 --- a/clients/client-appstream/commands/StopImageBuilderCommand.ts +++ b/clients/client-appstream/commands/StopImageBuilderCommand.ts @@ -28,6 +28,7 @@ export class StopImageBuilderCommand extends $Command< StopImageBuilderCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopImageBuilderCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/TagResourceCommand.ts b/clients/client-appstream/commands/TagResourceCommand.ts index 576273781bcce..734857457e26d 100644 --- a/clients/client-appstream/commands/TagResourceCommand.ts +++ b/clients/client-appstream/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/UntagResourceCommand.ts b/clients/client-appstream/commands/UntagResourceCommand.ts index 21fa4fb90b40c..532e7d12ce15a 100644 --- a/clients/client-appstream/commands/UntagResourceCommand.ts +++ b/clients/client-appstream/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/UpdateDirectoryConfigCommand.ts b/clients/client-appstream/commands/UpdateDirectoryConfigCommand.ts index c1286f9e966aa..07a16e18a0d06 100644 --- a/clients/client-appstream/commands/UpdateDirectoryConfigCommand.ts +++ b/clients/client-appstream/commands/UpdateDirectoryConfigCommand.ts @@ -28,6 +28,7 @@ export class UpdateDirectoryConfigCommand extends $Command< UpdateDirectoryConfigCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDirectoryConfigCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/UpdateFleetCommand.ts b/clients/client-appstream/commands/UpdateFleetCommand.ts index 93e99b84e1e7d..f061bfb5247e1 100644 --- a/clients/client-appstream/commands/UpdateFleetCommand.ts +++ b/clients/client-appstream/commands/UpdateFleetCommand.ts @@ -31,6 +31,7 @@ export class UpdateFleetCommand extends $Command< UpdateFleetCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateFleetCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/UpdateImagePermissionsCommand.ts b/clients/client-appstream/commands/UpdateImagePermissionsCommand.ts index 5b8ea2a586606..f72b151be7a2b 100644 --- a/clients/client-appstream/commands/UpdateImagePermissionsCommand.ts +++ b/clients/client-appstream/commands/UpdateImagePermissionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateImagePermissionsCommand extends $Command< UpdateImagePermissionsCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateImagePermissionsCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appstream/commands/UpdateStackCommand.ts b/clients/client-appstream/commands/UpdateStackCommand.ts index c92d2e06d6ac6..6c18b5780a630 100644 --- a/clients/client-appstream/commands/UpdateStackCommand.ts +++ b/clients/client-appstream/commands/UpdateStackCommand.ts @@ -28,6 +28,7 @@ export class UpdateStackCommand extends $Command< UpdateStackCommandOutput, AppStreamClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateStackCommand extends $Command< configuration: AppStreamClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateApiCacheCommand.ts b/clients/client-appsync/commands/CreateApiCacheCommand.ts index c29e1031a0133..be0b38ae3c263 100644 --- a/clients/client-appsync/commands/CreateApiCacheCommand.ts +++ b/clients/client-appsync/commands/CreateApiCacheCommand.ts @@ -28,6 +28,7 @@ export class CreateApiCacheCommand extends $Command< CreateApiCacheCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateApiCacheCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateApiKeyCommand.ts b/clients/client-appsync/commands/CreateApiKeyCommand.ts index ec3ab915d38ce..0c3193b86366d 100644 --- a/clients/client-appsync/commands/CreateApiKeyCommand.ts +++ b/clients/client-appsync/commands/CreateApiKeyCommand.ts @@ -29,6 +29,7 @@ export class CreateApiKeyCommand extends $Command< CreateApiKeyCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateApiKeyCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateDataSourceCommand.ts b/clients/client-appsync/commands/CreateDataSourceCommand.ts index 359b1f14a95e1..c62b55944734d 100644 --- a/clients/client-appsync/commands/CreateDataSourceCommand.ts +++ b/clients/client-appsync/commands/CreateDataSourceCommand.ts @@ -28,6 +28,7 @@ export class CreateDataSourceCommand extends $Command< CreateDataSourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDataSourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateFunctionCommand.ts b/clients/client-appsync/commands/CreateFunctionCommand.ts index feeb450c767b4..e39476f3c0e4c 100644 --- a/clients/client-appsync/commands/CreateFunctionCommand.ts +++ b/clients/client-appsync/commands/CreateFunctionCommand.ts @@ -30,6 +30,7 @@ export class CreateFunctionCommand extends $Command< CreateFunctionCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateFunctionCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateGraphqlApiCommand.ts b/clients/client-appsync/commands/CreateGraphqlApiCommand.ts index 712e9f89fafdc..95d333d746123 100644 --- a/clients/client-appsync/commands/CreateGraphqlApiCommand.ts +++ b/clients/client-appsync/commands/CreateGraphqlApiCommand.ts @@ -28,6 +28,7 @@ export class CreateGraphqlApiCommand extends $Command< CreateGraphqlApiCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGraphqlApiCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateResolverCommand.ts b/clients/client-appsync/commands/CreateResolverCommand.ts index 8b3fe1e479fb1..2c0f7c029acbf 100644 --- a/clients/client-appsync/commands/CreateResolverCommand.ts +++ b/clients/client-appsync/commands/CreateResolverCommand.ts @@ -30,6 +30,7 @@ export class CreateResolverCommand extends $Command< CreateResolverCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateResolverCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/CreateTypeCommand.ts b/clients/client-appsync/commands/CreateTypeCommand.ts index 465b04f97f6a5..cf97443da9aa1 100644 --- a/clients/client-appsync/commands/CreateTypeCommand.ts +++ b/clients/client-appsync/commands/CreateTypeCommand.ts @@ -28,6 +28,7 @@ export class CreateTypeCommand extends $Command< CreateTypeCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTypeCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteApiCacheCommand.ts b/clients/client-appsync/commands/DeleteApiCacheCommand.ts index 96968aa6ecd5c..97e43aab3be33 100644 --- a/clients/client-appsync/commands/DeleteApiCacheCommand.ts +++ b/clients/client-appsync/commands/DeleteApiCacheCommand.ts @@ -28,6 +28,7 @@ export class DeleteApiCacheCommand extends $Command< DeleteApiCacheCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApiCacheCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteApiKeyCommand.ts b/clients/client-appsync/commands/DeleteApiKeyCommand.ts index 6f6676de3424c..a17ca65006fed 100644 --- a/clients/client-appsync/commands/DeleteApiKeyCommand.ts +++ b/clients/client-appsync/commands/DeleteApiKeyCommand.ts @@ -28,6 +28,7 @@ export class DeleteApiKeyCommand extends $Command< DeleteApiKeyCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApiKeyCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteDataSourceCommand.ts b/clients/client-appsync/commands/DeleteDataSourceCommand.ts index b4abbe7f1828e..a39c8fe4f9afa 100644 --- a/clients/client-appsync/commands/DeleteDataSourceCommand.ts +++ b/clients/client-appsync/commands/DeleteDataSourceCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataSourceCommand extends $Command< DeleteDataSourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataSourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteFunctionCommand.ts b/clients/client-appsync/commands/DeleteFunctionCommand.ts index d2638c81e8981..7c669e739368b 100644 --- a/clients/client-appsync/commands/DeleteFunctionCommand.ts +++ b/clients/client-appsync/commands/DeleteFunctionCommand.ts @@ -28,6 +28,7 @@ export class DeleteFunctionCommand extends $Command< DeleteFunctionCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFunctionCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteGraphqlApiCommand.ts b/clients/client-appsync/commands/DeleteGraphqlApiCommand.ts index 5e3ea82a54a0c..ee2a8504612b5 100644 --- a/clients/client-appsync/commands/DeleteGraphqlApiCommand.ts +++ b/clients/client-appsync/commands/DeleteGraphqlApiCommand.ts @@ -28,6 +28,7 @@ export class DeleteGraphqlApiCommand extends $Command< DeleteGraphqlApiCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGraphqlApiCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteResolverCommand.ts b/clients/client-appsync/commands/DeleteResolverCommand.ts index f266a1833f2ed..ccb45748efbbe 100644 --- a/clients/client-appsync/commands/DeleteResolverCommand.ts +++ b/clients/client-appsync/commands/DeleteResolverCommand.ts @@ -28,6 +28,7 @@ export class DeleteResolverCommand extends $Command< DeleteResolverCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResolverCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/DeleteTypeCommand.ts b/clients/client-appsync/commands/DeleteTypeCommand.ts index 91b737b54953d..31c9099840cde 100644 --- a/clients/client-appsync/commands/DeleteTypeCommand.ts +++ b/clients/client-appsync/commands/DeleteTypeCommand.ts @@ -28,6 +28,7 @@ export class DeleteTypeCommand extends $Command< DeleteTypeCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTypeCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/FlushApiCacheCommand.ts b/clients/client-appsync/commands/FlushApiCacheCommand.ts index beee0829c76eb..96f7056c9bf33 100644 --- a/clients/client-appsync/commands/FlushApiCacheCommand.ts +++ b/clients/client-appsync/commands/FlushApiCacheCommand.ts @@ -28,6 +28,7 @@ export class FlushApiCacheCommand extends $Command< FlushApiCacheCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlushApiCacheCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetApiCacheCommand.ts b/clients/client-appsync/commands/GetApiCacheCommand.ts index 8256e4e86a9be..f0d1f8f49b10e 100644 --- a/clients/client-appsync/commands/GetApiCacheCommand.ts +++ b/clients/client-appsync/commands/GetApiCacheCommand.ts @@ -28,6 +28,7 @@ export class GetApiCacheCommand extends $Command< GetApiCacheCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApiCacheCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetDataSourceCommand.ts b/clients/client-appsync/commands/GetDataSourceCommand.ts index 835480fc78643..c33b03188fb69 100644 --- a/clients/client-appsync/commands/GetDataSourceCommand.ts +++ b/clients/client-appsync/commands/GetDataSourceCommand.ts @@ -28,6 +28,7 @@ export class GetDataSourceCommand extends $Command< GetDataSourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataSourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetFunctionCommand.ts b/clients/client-appsync/commands/GetFunctionCommand.ts index 4ea7320030e97..bda0e15a35a5d 100644 --- a/clients/client-appsync/commands/GetFunctionCommand.ts +++ b/clients/client-appsync/commands/GetFunctionCommand.ts @@ -28,6 +28,7 @@ export class GetFunctionCommand extends $Command< GetFunctionCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFunctionCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetGraphqlApiCommand.ts b/clients/client-appsync/commands/GetGraphqlApiCommand.ts index da836eacfb9ef..ff55211703b0c 100644 --- a/clients/client-appsync/commands/GetGraphqlApiCommand.ts +++ b/clients/client-appsync/commands/GetGraphqlApiCommand.ts @@ -28,6 +28,7 @@ export class GetGraphqlApiCommand extends $Command< GetGraphqlApiCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGraphqlApiCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetIntrospectionSchemaCommand.ts b/clients/client-appsync/commands/GetIntrospectionSchemaCommand.ts index 8b8566c9b5dd3..107b2a00d3402 100644 --- a/clients/client-appsync/commands/GetIntrospectionSchemaCommand.ts +++ b/clients/client-appsync/commands/GetIntrospectionSchemaCommand.ts @@ -28,6 +28,7 @@ export class GetIntrospectionSchemaCommand extends $Command< GetIntrospectionSchemaCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntrospectionSchemaCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetResolverCommand.ts b/clients/client-appsync/commands/GetResolverCommand.ts index 1d1903d259ff5..9830a39ca55c6 100644 --- a/clients/client-appsync/commands/GetResolverCommand.ts +++ b/clients/client-appsync/commands/GetResolverCommand.ts @@ -28,6 +28,7 @@ export class GetResolverCommand extends $Command< GetResolverCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResolverCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetSchemaCreationStatusCommand.ts b/clients/client-appsync/commands/GetSchemaCreationStatusCommand.ts index 02d2d15d96801..4c4c822f618fb 100644 --- a/clients/client-appsync/commands/GetSchemaCreationStatusCommand.ts +++ b/clients/client-appsync/commands/GetSchemaCreationStatusCommand.ts @@ -28,6 +28,7 @@ export class GetSchemaCreationStatusCommand extends $Command< GetSchemaCreationStatusCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSchemaCreationStatusCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/GetTypeCommand.ts b/clients/client-appsync/commands/GetTypeCommand.ts index 17b5168aab547..b4182ca2c3739 100644 --- a/clients/client-appsync/commands/GetTypeCommand.ts +++ b/clients/client-appsync/commands/GetTypeCommand.ts @@ -24,6 +24,7 @@ export type GetTypeCommandOutput = GetTypeResponse & __MetadataBearer; *

Retrieves a Type object.

*/ export class GetTypeCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetTypeCommand 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-appsync/commands/ListApiKeysCommand.ts b/clients/client-appsync/commands/ListApiKeysCommand.ts index 42a3357c135bd..cd23d576bf582 100644 --- a/clients/client-appsync/commands/ListApiKeysCommand.ts +++ b/clients/client-appsync/commands/ListApiKeysCommand.ts @@ -34,6 +34,7 @@ export class ListApiKeysCommand extends $Command< ListApiKeysCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListApiKeysCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListDataSourcesCommand.ts b/clients/client-appsync/commands/ListDataSourcesCommand.ts index 31e158a212185..88012e1c30836 100644 --- a/clients/client-appsync/commands/ListDataSourcesCommand.ts +++ b/clients/client-appsync/commands/ListDataSourcesCommand.ts @@ -28,6 +28,7 @@ export class ListDataSourcesCommand extends $Command< ListDataSourcesCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSourcesCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListFunctionsCommand.ts b/clients/client-appsync/commands/ListFunctionsCommand.ts index bdbf0e618e436..d4c5efdd4f5d2 100644 --- a/clients/client-appsync/commands/ListFunctionsCommand.ts +++ b/clients/client-appsync/commands/ListFunctionsCommand.ts @@ -28,6 +28,7 @@ export class ListFunctionsCommand extends $Command< ListFunctionsCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFunctionsCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListGraphqlApisCommand.ts b/clients/client-appsync/commands/ListGraphqlApisCommand.ts index 757a2f6cc6e83..cf719b1d473dc 100644 --- a/clients/client-appsync/commands/ListGraphqlApisCommand.ts +++ b/clients/client-appsync/commands/ListGraphqlApisCommand.ts @@ -28,6 +28,7 @@ export class ListGraphqlApisCommand extends $Command< ListGraphqlApisCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGraphqlApisCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListResolversByFunctionCommand.ts b/clients/client-appsync/commands/ListResolversByFunctionCommand.ts index 812360e573bac..76c9c39a0f88d 100644 --- a/clients/client-appsync/commands/ListResolversByFunctionCommand.ts +++ b/clients/client-appsync/commands/ListResolversByFunctionCommand.ts @@ -28,6 +28,7 @@ export class ListResolversByFunctionCommand extends $Command< ListResolversByFunctionCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolversByFunctionCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListResolversCommand.ts b/clients/client-appsync/commands/ListResolversCommand.ts index f6c83109735f6..2e46d50bddeef 100644 --- a/clients/client-appsync/commands/ListResolversCommand.ts +++ b/clients/client-appsync/commands/ListResolversCommand.ts @@ -28,6 +28,7 @@ export class ListResolversCommand extends $Command< ListResolversCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolversCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListTagsForResourceCommand.ts b/clients/client-appsync/commands/ListTagsForResourceCommand.ts index 44956222f7b50..dd11ed0bfbb34 100644 --- a/clients/client-appsync/commands/ListTagsForResourceCommand.ts +++ b/clients/client-appsync/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/ListTypesCommand.ts b/clients/client-appsync/commands/ListTypesCommand.ts index 6b15360d69a11..b46a1831d05ec 100644 --- a/clients/client-appsync/commands/ListTypesCommand.ts +++ b/clients/client-appsync/commands/ListTypesCommand.ts @@ -28,6 +28,7 @@ export class ListTypesCommand extends $Command< ListTypesCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTypesCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/StartSchemaCreationCommand.ts b/clients/client-appsync/commands/StartSchemaCreationCommand.ts index 59a8d26966c68..baff0538846c4 100644 --- a/clients/client-appsync/commands/StartSchemaCreationCommand.ts +++ b/clients/client-appsync/commands/StartSchemaCreationCommand.ts @@ -30,6 +30,7 @@ export class StartSchemaCreationCommand extends $Command< StartSchemaCreationCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartSchemaCreationCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/TagResourceCommand.ts b/clients/client-appsync/commands/TagResourceCommand.ts index f3f98c166e18f..83a09aaa96f5a 100644 --- a/clients/client-appsync/commands/TagResourceCommand.ts +++ b/clients/client-appsync/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UntagResourceCommand.ts b/clients/client-appsync/commands/UntagResourceCommand.ts index 79b6ccc20360d..834172c3a2345 100644 --- a/clients/client-appsync/commands/UntagResourceCommand.ts +++ b/clients/client-appsync/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateApiCacheCommand.ts b/clients/client-appsync/commands/UpdateApiCacheCommand.ts index caf7108f2707d..b24d8eb076847 100644 --- a/clients/client-appsync/commands/UpdateApiCacheCommand.ts +++ b/clients/client-appsync/commands/UpdateApiCacheCommand.ts @@ -28,6 +28,7 @@ export class UpdateApiCacheCommand extends $Command< UpdateApiCacheCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApiCacheCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateApiKeyCommand.ts b/clients/client-appsync/commands/UpdateApiKeyCommand.ts index b1c76afcaf12c..9cf263c16086b 100644 --- a/clients/client-appsync/commands/UpdateApiKeyCommand.ts +++ b/clients/client-appsync/commands/UpdateApiKeyCommand.ts @@ -28,6 +28,7 @@ export class UpdateApiKeyCommand extends $Command< UpdateApiKeyCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApiKeyCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateDataSourceCommand.ts b/clients/client-appsync/commands/UpdateDataSourceCommand.ts index ad7c629b54d05..8f4bd1a4c6a6a 100644 --- a/clients/client-appsync/commands/UpdateDataSourceCommand.ts +++ b/clients/client-appsync/commands/UpdateDataSourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSourceCommand extends $Command< UpdateDataSourceCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSourceCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateFunctionCommand.ts b/clients/client-appsync/commands/UpdateFunctionCommand.ts index 1b941dfd722a6..3fbe707440bad 100644 --- a/clients/client-appsync/commands/UpdateFunctionCommand.ts +++ b/clients/client-appsync/commands/UpdateFunctionCommand.ts @@ -28,6 +28,7 @@ export class UpdateFunctionCommand extends $Command< UpdateFunctionCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFunctionCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateGraphqlApiCommand.ts b/clients/client-appsync/commands/UpdateGraphqlApiCommand.ts index 4ae9ca733bce1..6b87ce7c97b6f 100644 --- a/clients/client-appsync/commands/UpdateGraphqlApiCommand.ts +++ b/clients/client-appsync/commands/UpdateGraphqlApiCommand.ts @@ -28,6 +28,7 @@ export class UpdateGraphqlApiCommand extends $Command< UpdateGraphqlApiCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGraphqlApiCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateResolverCommand.ts b/clients/client-appsync/commands/UpdateResolverCommand.ts index dbafcd7b1252d..8bca50add8eea 100644 --- a/clients/client-appsync/commands/UpdateResolverCommand.ts +++ b/clients/client-appsync/commands/UpdateResolverCommand.ts @@ -28,6 +28,7 @@ export class UpdateResolverCommand extends $Command< UpdateResolverCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResolverCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-appsync/commands/UpdateTypeCommand.ts b/clients/client-appsync/commands/UpdateTypeCommand.ts index d0c523e7a09f2..17128f48c3b6a 100644 --- a/clients/client-appsync/commands/UpdateTypeCommand.ts +++ b/clients/client-appsync/commands/UpdateTypeCommand.ts @@ -28,6 +28,7 @@ export class UpdateTypeCommand extends $Command< UpdateTypeCommandOutput, AppSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTypeCommand extends $Command< configuration: AppSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/BatchGetNamedQueryCommand.ts b/clients/client-athena/commands/BatchGetNamedQueryCommand.ts index 155b0433ac1ff..d7bcebd582ad8 100644 --- a/clients/client-athena/commands/BatchGetNamedQueryCommand.ts +++ b/clients/client-athena/commands/BatchGetNamedQueryCommand.ts @@ -36,6 +36,7 @@ export class BatchGetNamedQueryCommand extends $Command< BatchGetNamedQueryCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class BatchGetNamedQueryCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/BatchGetQueryExecutionCommand.ts b/clients/client-athena/commands/BatchGetQueryExecutionCommand.ts index f219b8e49e933..79f2719d757c1 100644 --- a/clients/client-athena/commands/BatchGetQueryExecutionCommand.ts +++ b/clients/client-athena/commands/BatchGetQueryExecutionCommand.ts @@ -33,6 +33,7 @@ export class BatchGetQueryExecutionCommand extends $Command< BatchGetQueryExecutionCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class BatchGetQueryExecutionCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/CreateDataCatalogCommand.ts b/clients/client-athena/commands/CreateDataCatalogCommand.ts index 922ae54afdd2c..20ceaabb1276c 100644 --- a/clients/client-athena/commands/CreateDataCatalogCommand.ts +++ b/clients/client-athena/commands/CreateDataCatalogCommand.ts @@ -29,6 +29,7 @@ export class CreateDataCatalogCommand extends $Command< CreateDataCatalogCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDataCatalogCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/CreateNamedQueryCommand.ts b/clients/client-athena/commands/CreateNamedQueryCommand.ts index ccbf67fbbceed..9c561687c2ca7 100644 --- a/clients/client-athena/commands/CreateNamedQueryCommand.ts +++ b/clients/client-athena/commands/CreateNamedQueryCommand.ts @@ -31,6 +31,7 @@ export class CreateNamedQueryCommand extends $Command< CreateNamedQueryCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateNamedQueryCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/CreateWorkGroupCommand.ts b/clients/client-athena/commands/CreateWorkGroupCommand.ts index 8e567e86ed88b..dc2e217eba18b 100644 --- a/clients/client-athena/commands/CreateWorkGroupCommand.ts +++ b/clients/client-athena/commands/CreateWorkGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateWorkGroupCommand extends $Command< CreateWorkGroupCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorkGroupCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/DeleteDataCatalogCommand.ts b/clients/client-athena/commands/DeleteDataCatalogCommand.ts index 6ff381360c23e..4be5bf0ec6b10 100644 --- a/clients/client-athena/commands/DeleteDataCatalogCommand.ts +++ b/clients/client-athena/commands/DeleteDataCatalogCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataCatalogCommand extends $Command< DeleteDataCatalogCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataCatalogCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/DeleteNamedQueryCommand.ts b/clients/client-athena/commands/DeleteNamedQueryCommand.ts index 5a467cb666fb3..3daa79296dba9 100644 --- a/clients/client-athena/commands/DeleteNamedQueryCommand.ts +++ b/clients/client-athena/commands/DeleteNamedQueryCommand.ts @@ -31,6 +31,7 @@ export class DeleteNamedQueryCommand extends $Command< DeleteNamedQueryCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteNamedQueryCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/DeleteWorkGroupCommand.ts b/clients/client-athena/commands/DeleteWorkGroupCommand.ts index 0434c35657807..53b2a3006171f 100644 --- a/clients/client-athena/commands/DeleteWorkGroupCommand.ts +++ b/clients/client-athena/commands/DeleteWorkGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteWorkGroupCommand extends $Command< DeleteWorkGroupCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteWorkGroupCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetDataCatalogCommand.ts b/clients/client-athena/commands/GetDataCatalogCommand.ts index 588f3ca39f686..e0a897191f113 100644 --- a/clients/client-athena/commands/GetDataCatalogCommand.ts +++ b/clients/client-athena/commands/GetDataCatalogCommand.ts @@ -28,6 +28,7 @@ export class GetDataCatalogCommand extends $Command< GetDataCatalogCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataCatalogCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetDatabaseCommand.ts b/clients/client-athena/commands/GetDatabaseCommand.ts index ac8c4eb08f5cc..435d3cc4551b9 100644 --- a/clients/client-athena/commands/GetDatabaseCommand.ts +++ b/clients/client-athena/commands/GetDatabaseCommand.ts @@ -28,6 +28,7 @@ export class GetDatabaseCommand extends $Command< GetDatabaseCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDatabaseCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetNamedQueryCommand.ts b/clients/client-athena/commands/GetNamedQueryCommand.ts index 0684b7f5537a9..6a6ca88310ea1 100644 --- a/clients/client-athena/commands/GetNamedQueryCommand.ts +++ b/clients/client-athena/commands/GetNamedQueryCommand.ts @@ -29,6 +29,7 @@ export class GetNamedQueryCommand extends $Command< GetNamedQueryCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetNamedQueryCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetQueryExecutionCommand.ts b/clients/client-athena/commands/GetQueryExecutionCommand.ts index 11b3681186dd4..386508573aadd 100644 --- a/clients/client-athena/commands/GetQueryExecutionCommand.ts +++ b/clients/client-athena/commands/GetQueryExecutionCommand.ts @@ -30,6 +30,7 @@ export class GetQueryExecutionCommand extends $Command< GetQueryExecutionCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetQueryExecutionCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetQueryResultsCommand.ts b/clients/client-athena/commands/GetQueryResultsCommand.ts index dbd768cdebbc6..f2768069f708b 100644 --- a/clients/client-athena/commands/GetQueryResultsCommand.ts +++ b/clients/client-athena/commands/GetQueryResultsCommand.ts @@ -42,6 +42,7 @@ export class GetQueryResultsCommand extends $Command< GetQueryResultsCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetQueryResultsCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetTableMetadataCommand.ts b/clients/client-athena/commands/GetTableMetadataCommand.ts index 85c2cb01d0476..9c9b35c3593ad 100644 --- a/clients/client-athena/commands/GetTableMetadataCommand.ts +++ b/clients/client-athena/commands/GetTableMetadataCommand.ts @@ -28,6 +28,7 @@ export class GetTableMetadataCommand extends $Command< GetTableMetadataCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTableMetadataCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/GetWorkGroupCommand.ts b/clients/client-athena/commands/GetWorkGroupCommand.ts index 09af5eaaf103c..11cf054c84f77 100644 --- a/clients/client-athena/commands/GetWorkGroupCommand.ts +++ b/clients/client-athena/commands/GetWorkGroupCommand.ts @@ -28,6 +28,7 @@ export class GetWorkGroupCommand extends $Command< GetWorkGroupCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorkGroupCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListDataCatalogsCommand.ts b/clients/client-athena/commands/ListDataCatalogsCommand.ts index 043241e366464..e26a643b1b90b 100644 --- a/clients/client-athena/commands/ListDataCatalogsCommand.ts +++ b/clients/client-athena/commands/ListDataCatalogsCommand.ts @@ -28,6 +28,7 @@ export class ListDataCatalogsCommand extends $Command< ListDataCatalogsCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataCatalogsCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListDatabasesCommand.ts b/clients/client-athena/commands/ListDatabasesCommand.ts index 32b51960a794f..da92621790330 100644 --- a/clients/client-athena/commands/ListDatabasesCommand.ts +++ b/clients/client-athena/commands/ListDatabasesCommand.ts @@ -28,6 +28,7 @@ export class ListDatabasesCommand extends $Command< ListDatabasesCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDatabasesCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListNamedQueriesCommand.ts b/clients/client-athena/commands/ListNamedQueriesCommand.ts index 54171fb240987..60c1f6caad79b 100644 --- a/clients/client-athena/commands/ListNamedQueriesCommand.ts +++ b/clients/client-athena/commands/ListNamedQueriesCommand.ts @@ -32,6 +32,7 @@ export class ListNamedQueriesCommand extends $Command< ListNamedQueriesCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListNamedQueriesCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListQueryExecutionsCommand.ts b/clients/client-athena/commands/ListQueryExecutionsCommand.ts index 49e8fb2ae9a6c..cc6ea2896de7d 100644 --- a/clients/client-athena/commands/ListQueryExecutionsCommand.ts +++ b/clients/client-athena/commands/ListQueryExecutionsCommand.ts @@ -33,6 +33,7 @@ export class ListQueryExecutionsCommand extends $Command< ListQueryExecutionsCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListQueryExecutionsCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListTableMetadataCommand.ts b/clients/client-athena/commands/ListTableMetadataCommand.ts index 307c8f185c84d..e13e230531668 100644 --- a/clients/client-athena/commands/ListTableMetadataCommand.ts +++ b/clients/client-athena/commands/ListTableMetadataCommand.ts @@ -28,6 +28,7 @@ export class ListTableMetadataCommand extends $Command< ListTableMetadataCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTableMetadataCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListTagsForResourceCommand.ts b/clients/client-athena/commands/ListTagsForResourceCommand.ts index 35ca31fe07bdd..79a4bb98c2517 100644 --- a/clients/client-athena/commands/ListTagsForResourceCommand.ts +++ b/clients/client-athena/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/ListWorkGroupsCommand.ts b/clients/client-athena/commands/ListWorkGroupsCommand.ts index 6ad0918a81b89..312e5341fadd3 100644 --- a/clients/client-athena/commands/ListWorkGroupsCommand.ts +++ b/clients/client-athena/commands/ListWorkGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListWorkGroupsCommand extends $Command< ListWorkGroupsCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorkGroupsCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/StartQueryExecutionCommand.ts b/clients/client-athena/commands/StartQueryExecutionCommand.ts index 2fcc36b97db03..480b813dfe09c 100644 --- a/clients/client-athena/commands/StartQueryExecutionCommand.ts +++ b/clients/client-athena/commands/StartQueryExecutionCommand.ts @@ -32,6 +32,7 @@ export class StartQueryExecutionCommand extends $Command< StartQueryExecutionCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartQueryExecutionCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/StopQueryExecutionCommand.ts b/clients/client-athena/commands/StopQueryExecutionCommand.ts index b278ebd2534fb..710ce83685bd4 100644 --- a/clients/client-athena/commands/StopQueryExecutionCommand.ts +++ b/clients/client-athena/commands/StopQueryExecutionCommand.ts @@ -31,6 +31,7 @@ export class StopQueryExecutionCommand extends $Command< StopQueryExecutionCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StopQueryExecutionCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/TagResourceCommand.ts b/clients/client-athena/commands/TagResourceCommand.ts index f4b1aa74da78a..8937f452f16c4 100644 --- a/clients/client-athena/commands/TagResourceCommand.ts +++ b/clients/client-athena/commands/TagResourceCommand.ts @@ -37,6 +37,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagResourceCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/UntagResourceCommand.ts b/clients/client-athena/commands/UntagResourceCommand.ts index 8aa3fa9c92080..1371953221aa3 100644 --- a/clients/client-athena/commands/UntagResourceCommand.ts +++ b/clients/client-athena/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/UpdateDataCatalogCommand.ts b/clients/client-athena/commands/UpdateDataCatalogCommand.ts index 20933d8130a17..3a18044bb0e6a 100644 --- a/clients/client-athena/commands/UpdateDataCatalogCommand.ts +++ b/clients/client-athena/commands/UpdateDataCatalogCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataCatalogCommand extends $Command< UpdateDataCatalogCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataCatalogCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-athena/commands/UpdateWorkGroupCommand.ts b/clients/client-athena/commands/UpdateWorkGroupCommand.ts index 4aef808a615bd..a3b2eb5664fe9 100644 --- a/clients/client-athena/commands/UpdateWorkGroupCommand.ts +++ b/clients/client-athena/commands/UpdateWorkGroupCommand.ts @@ -29,6 +29,7 @@ export class UpdateWorkGroupCommand extends $Command< UpdateWorkGroupCommandOutput, AthenaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateWorkGroupCommand extends $Command< configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/AssociateAssessmentReportEvidenceFolderCommand.ts b/clients/client-auditmanager/commands/AssociateAssessmentReportEvidenceFolderCommand.ts index ae43138b6dc73..85e3d005fa6b6 100644 --- a/clients/client-auditmanager/commands/AssociateAssessmentReportEvidenceFolderCommand.ts +++ b/clients/client-auditmanager/commands/AssociateAssessmentReportEvidenceFolderCommand.ts @@ -34,6 +34,7 @@ export class AssociateAssessmentReportEvidenceFolderCommand extends $Command< AssociateAssessmentReportEvidenceFolderCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AssociateAssessmentReportEvidenceFolderCommand extends $Command< AssociateAssessmentReportEvidenceFolderCommandInput, AssociateAssessmentReportEvidenceFolderCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/BatchAssociateAssessmentReportEvidenceCommand.ts b/clients/client-auditmanager/commands/BatchAssociateAssessmentReportEvidenceCommand.ts index 70004d1579043..d8a2bb241f991 100644 --- a/clients/client-auditmanager/commands/BatchAssociateAssessmentReportEvidenceCommand.ts +++ b/clients/client-auditmanager/commands/BatchAssociateAssessmentReportEvidenceCommand.ts @@ -34,6 +34,7 @@ export class BatchAssociateAssessmentReportEvidenceCommand extends $Command< BatchAssociateAssessmentReportEvidenceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchAssociateAssessmentReportEvidenceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/BatchCreateDelegationByAssessmentCommand.ts b/clients/client-auditmanager/commands/BatchCreateDelegationByAssessmentCommand.ts index 863416f868e07..6406907cfff54 100644 --- a/clients/client-auditmanager/commands/BatchCreateDelegationByAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/BatchCreateDelegationByAssessmentCommand.ts @@ -34,6 +34,7 @@ export class BatchCreateDelegationByAssessmentCommand extends $Command< BatchCreateDelegationByAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchCreateDelegationByAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/BatchDeleteDelegationByAssessmentCommand.ts b/clients/client-auditmanager/commands/BatchDeleteDelegationByAssessmentCommand.ts index 0971cdace29a6..bb724154215db 100644 --- a/clients/client-auditmanager/commands/BatchDeleteDelegationByAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/BatchDeleteDelegationByAssessmentCommand.ts @@ -34,6 +34,7 @@ export class BatchDeleteDelegationByAssessmentCommand extends $Command< BatchDeleteDelegationByAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchDeleteDelegationByAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/BatchDisassociateAssessmentReportEvidenceCommand.ts b/clients/client-auditmanager/commands/BatchDisassociateAssessmentReportEvidenceCommand.ts index 050e7e56d00dd..af99c71a44455 100644 --- a/clients/client-auditmanager/commands/BatchDisassociateAssessmentReportEvidenceCommand.ts +++ b/clients/client-auditmanager/commands/BatchDisassociateAssessmentReportEvidenceCommand.ts @@ -34,6 +34,7 @@ export class BatchDisassociateAssessmentReportEvidenceCommand extends $Command< BatchDisassociateAssessmentReportEvidenceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class BatchDisassociateAssessmentReportEvidenceCommand extends $Command< BatchDisassociateAssessmentReportEvidenceCommandInput, BatchDisassociateAssessmentReportEvidenceCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/BatchImportEvidenceToAssessmentControlCommand.ts b/clients/client-auditmanager/commands/BatchImportEvidenceToAssessmentControlCommand.ts index 654273d2550d0..b9640a11a59c3 100644 --- a/clients/client-auditmanager/commands/BatchImportEvidenceToAssessmentControlCommand.ts +++ b/clients/client-auditmanager/commands/BatchImportEvidenceToAssessmentControlCommand.ts @@ -34,6 +34,7 @@ export class BatchImportEvidenceToAssessmentControlCommand extends $Command< BatchImportEvidenceToAssessmentControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchImportEvidenceToAssessmentControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/CreateAssessmentCommand.ts b/clients/client-auditmanager/commands/CreateAssessmentCommand.ts index ae1f03be3e251..02e75d30dbbdb 100644 --- a/clients/client-auditmanager/commands/CreateAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/CreateAssessmentCommand.ts @@ -30,6 +30,7 @@ export class CreateAssessmentCommand extends $Command< CreateAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/CreateAssessmentFrameworkCommand.ts b/clients/client-auditmanager/commands/CreateAssessmentFrameworkCommand.ts index 0e787550fdbe4..83d882f153c89 100644 --- a/clients/client-auditmanager/commands/CreateAssessmentFrameworkCommand.ts +++ b/clients/client-auditmanager/commands/CreateAssessmentFrameworkCommand.ts @@ -30,6 +30,7 @@ export class CreateAssessmentFrameworkCommand extends $Command< CreateAssessmentFrameworkCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAssessmentFrameworkCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/CreateAssessmentReportCommand.ts b/clients/client-auditmanager/commands/CreateAssessmentReportCommand.ts index a8fe0ca1b50eb..6ee30eb4768b6 100644 --- a/clients/client-auditmanager/commands/CreateAssessmentReportCommand.ts +++ b/clients/client-auditmanager/commands/CreateAssessmentReportCommand.ts @@ -30,6 +30,7 @@ export class CreateAssessmentReportCommand extends $Command< CreateAssessmentReportCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAssessmentReportCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/CreateControlCommand.ts b/clients/client-auditmanager/commands/CreateControlCommand.ts index d9af333207ebf..5e847558daa4c 100644 --- a/clients/client-auditmanager/commands/CreateControlCommand.ts +++ b/clients/client-auditmanager/commands/CreateControlCommand.ts @@ -30,6 +30,7 @@ export class CreateControlCommand extends $Command< CreateControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeleteAssessmentCommand.ts b/clients/client-auditmanager/commands/DeleteAssessmentCommand.ts index b33fffe118217..fc0157429ca7f 100644 --- a/clients/client-auditmanager/commands/DeleteAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/DeleteAssessmentCommand.ts @@ -30,6 +30,7 @@ export class DeleteAssessmentCommand extends $Command< DeleteAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeleteAssessmentFrameworkCommand.ts b/clients/client-auditmanager/commands/DeleteAssessmentFrameworkCommand.ts index da70c6b71ea0f..7999f18441628 100644 --- a/clients/client-auditmanager/commands/DeleteAssessmentFrameworkCommand.ts +++ b/clients/client-auditmanager/commands/DeleteAssessmentFrameworkCommand.ts @@ -30,6 +30,7 @@ export class DeleteAssessmentFrameworkCommand extends $Command< DeleteAssessmentFrameworkCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAssessmentFrameworkCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeleteAssessmentReportCommand.ts b/clients/client-auditmanager/commands/DeleteAssessmentReportCommand.ts index 259eeb2afc10f..98113aa55737a 100644 --- a/clients/client-auditmanager/commands/DeleteAssessmentReportCommand.ts +++ b/clients/client-auditmanager/commands/DeleteAssessmentReportCommand.ts @@ -30,6 +30,7 @@ export class DeleteAssessmentReportCommand extends $Command< DeleteAssessmentReportCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAssessmentReportCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeleteControlCommand.ts b/clients/client-auditmanager/commands/DeleteControlCommand.ts index a14a32dde4bb6..6322b821dc040 100644 --- a/clients/client-auditmanager/commands/DeleteControlCommand.ts +++ b/clients/client-auditmanager/commands/DeleteControlCommand.ts @@ -30,6 +30,7 @@ export class DeleteControlCommand extends $Command< DeleteControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeregisterAccountCommand.ts b/clients/client-auditmanager/commands/DeregisterAccountCommand.ts index 625c2a0ba4209..88f185a5846e6 100644 --- a/clients/client-auditmanager/commands/DeregisterAccountCommand.ts +++ b/clients/client-auditmanager/commands/DeregisterAccountCommand.ts @@ -30,6 +30,7 @@ export class DeregisterAccountCommand extends $Command< DeregisterAccountCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeregisterAccountCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DeregisterOrganizationAdminAccountCommand.ts b/clients/client-auditmanager/commands/DeregisterOrganizationAdminAccountCommand.ts index a5653a7347a31..217e44b622890 100644 --- a/clients/client-auditmanager/commands/DeregisterOrganizationAdminAccountCommand.ts +++ b/clients/client-auditmanager/commands/DeregisterOrganizationAdminAccountCommand.ts @@ -34,6 +34,7 @@ export class DeregisterOrganizationAdminAccountCommand extends $Command< DeregisterOrganizationAdminAccountCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeregisterOrganizationAdminAccountCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/DisassociateAssessmentReportEvidenceFolderCommand.ts b/clients/client-auditmanager/commands/DisassociateAssessmentReportEvidenceFolderCommand.ts index 7b3a3b33578cc..558f13cbc4a30 100644 --- a/clients/client-auditmanager/commands/DisassociateAssessmentReportEvidenceFolderCommand.ts +++ b/clients/client-auditmanager/commands/DisassociateAssessmentReportEvidenceFolderCommand.ts @@ -34,6 +34,7 @@ export class DisassociateAssessmentReportEvidenceFolderCommand extends $Command< DisassociateAssessmentReportEvidenceFolderCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DisassociateAssessmentReportEvidenceFolderCommand extends $Command< DisassociateAssessmentReportEvidenceFolderCommandInput, DisassociateAssessmentReportEvidenceFolderCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetAccountStatusCommand.ts b/clients/client-auditmanager/commands/GetAccountStatusCommand.ts index a0b766b5a08b0..981c81045cb38 100644 --- a/clients/client-auditmanager/commands/GetAccountStatusCommand.ts +++ b/clients/client-auditmanager/commands/GetAccountStatusCommand.ts @@ -30,6 +30,7 @@ export class GetAccountStatusCommand extends $Command< GetAccountStatusCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAccountStatusCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetAssessmentCommand.ts b/clients/client-auditmanager/commands/GetAssessmentCommand.ts index 26a94935b5411..2aefdaa27c903 100644 --- a/clients/client-auditmanager/commands/GetAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/GetAssessmentCommand.ts @@ -30,6 +30,7 @@ export class GetAssessmentCommand extends $Command< GetAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetAssessmentFrameworkCommand.ts b/clients/client-auditmanager/commands/GetAssessmentFrameworkCommand.ts index b106b13a939c1..d243f5319729a 100644 --- a/clients/client-auditmanager/commands/GetAssessmentFrameworkCommand.ts +++ b/clients/client-auditmanager/commands/GetAssessmentFrameworkCommand.ts @@ -30,6 +30,7 @@ export class GetAssessmentFrameworkCommand extends $Command< GetAssessmentFrameworkCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAssessmentFrameworkCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetAssessmentReportUrlCommand.ts b/clients/client-auditmanager/commands/GetAssessmentReportUrlCommand.ts index 91c9655c896cd..d0d9a2b34effb 100644 --- a/clients/client-auditmanager/commands/GetAssessmentReportUrlCommand.ts +++ b/clients/client-auditmanager/commands/GetAssessmentReportUrlCommand.ts @@ -30,6 +30,7 @@ export class GetAssessmentReportUrlCommand extends $Command< GetAssessmentReportUrlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAssessmentReportUrlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetChangeLogsCommand.ts b/clients/client-auditmanager/commands/GetChangeLogsCommand.ts index 457d91a4db386..75c2570df20b7 100644 --- a/clients/client-auditmanager/commands/GetChangeLogsCommand.ts +++ b/clients/client-auditmanager/commands/GetChangeLogsCommand.ts @@ -30,6 +30,7 @@ export class GetChangeLogsCommand extends $Command< GetChangeLogsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetChangeLogsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetControlCommand.ts b/clients/client-auditmanager/commands/GetControlCommand.ts index 9941a04f270bc..e1a7952354ab9 100644 --- a/clients/client-auditmanager/commands/GetControlCommand.ts +++ b/clients/client-auditmanager/commands/GetControlCommand.ts @@ -30,6 +30,7 @@ export class GetControlCommand extends $Command< GetControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetDelegationsCommand.ts b/clients/client-auditmanager/commands/GetDelegationsCommand.ts index 6859a7064387a..506be03cec549 100644 --- a/clients/client-auditmanager/commands/GetDelegationsCommand.ts +++ b/clients/client-auditmanager/commands/GetDelegationsCommand.ts @@ -30,6 +30,7 @@ export class GetDelegationsCommand extends $Command< GetDelegationsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDelegationsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetEvidenceByEvidenceFolderCommand.ts b/clients/client-auditmanager/commands/GetEvidenceByEvidenceFolderCommand.ts index ba09543f9110b..427d4825b39aa 100644 --- a/clients/client-auditmanager/commands/GetEvidenceByEvidenceFolderCommand.ts +++ b/clients/client-auditmanager/commands/GetEvidenceByEvidenceFolderCommand.ts @@ -30,6 +30,7 @@ export class GetEvidenceByEvidenceFolderCommand extends $Command< GetEvidenceByEvidenceFolderCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEvidenceByEvidenceFolderCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetEvidenceCommand.ts b/clients/client-auditmanager/commands/GetEvidenceCommand.ts index 4fbff80ba6039..9f70b8c3e87fc 100644 --- a/clients/client-auditmanager/commands/GetEvidenceCommand.ts +++ b/clients/client-auditmanager/commands/GetEvidenceCommand.ts @@ -30,6 +30,7 @@ export class GetEvidenceCommand extends $Command< GetEvidenceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEvidenceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetEvidenceFolderCommand.ts b/clients/client-auditmanager/commands/GetEvidenceFolderCommand.ts index 52060cabb471e..101c3731c417f 100644 --- a/clients/client-auditmanager/commands/GetEvidenceFolderCommand.ts +++ b/clients/client-auditmanager/commands/GetEvidenceFolderCommand.ts @@ -30,6 +30,7 @@ export class GetEvidenceFolderCommand extends $Command< GetEvidenceFolderCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEvidenceFolderCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentCommand.ts b/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentCommand.ts index d7e4f32559c41..0500366951f57 100644 --- a/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentCommand.ts @@ -30,6 +30,7 @@ export class GetEvidenceFoldersByAssessmentCommand extends $Command< GetEvidenceFoldersByAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEvidenceFoldersByAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentControlCommand.ts b/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentControlCommand.ts index e36c48ea52dbd..7783ff44c34d5 100644 --- a/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentControlCommand.ts +++ b/clients/client-auditmanager/commands/GetEvidenceFoldersByAssessmentControlCommand.ts @@ -34,6 +34,7 @@ export class GetEvidenceFoldersByAssessmentControlCommand extends $Command< GetEvidenceFoldersByAssessmentControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetEvidenceFoldersByAssessmentControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetOrganizationAdminAccountCommand.ts b/clients/client-auditmanager/commands/GetOrganizationAdminAccountCommand.ts index 22e3efe6db081..8559a785564fc 100644 --- a/clients/client-auditmanager/commands/GetOrganizationAdminAccountCommand.ts +++ b/clients/client-auditmanager/commands/GetOrganizationAdminAccountCommand.ts @@ -30,6 +30,7 @@ export class GetOrganizationAdminAccountCommand extends $Command< GetOrganizationAdminAccountCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetOrganizationAdminAccountCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetServicesInScopeCommand.ts b/clients/client-auditmanager/commands/GetServicesInScopeCommand.ts index 34e367cc0cf72..68a38751d044f 100644 --- a/clients/client-auditmanager/commands/GetServicesInScopeCommand.ts +++ b/clients/client-auditmanager/commands/GetServicesInScopeCommand.ts @@ -30,6 +30,7 @@ export class GetServicesInScopeCommand extends $Command< GetServicesInScopeCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetServicesInScopeCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/GetSettingsCommand.ts b/clients/client-auditmanager/commands/GetSettingsCommand.ts index 0069f7ffc7451..457f80c1617b3 100644 --- a/clients/client-auditmanager/commands/GetSettingsCommand.ts +++ b/clients/client-auditmanager/commands/GetSettingsCommand.ts @@ -30,6 +30,7 @@ export class GetSettingsCommand extends $Command< GetSettingsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetSettingsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListAssessmentFrameworksCommand.ts b/clients/client-auditmanager/commands/ListAssessmentFrameworksCommand.ts index a04a9d7612af3..3600d7ce16166 100644 --- a/clients/client-auditmanager/commands/ListAssessmentFrameworksCommand.ts +++ b/clients/client-auditmanager/commands/ListAssessmentFrameworksCommand.ts @@ -30,6 +30,7 @@ export class ListAssessmentFrameworksCommand extends $Command< ListAssessmentFrameworksCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssessmentFrameworksCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListAssessmentReportsCommand.ts b/clients/client-auditmanager/commands/ListAssessmentReportsCommand.ts index e7f1c0c5f17f9..90cc8abc43ffd 100644 --- a/clients/client-auditmanager/commands/ListAssessmentReportsCommand.ts +++ b/clients/client-auditmanager/commands/ListAssessmentReportsCommand.ts @@ -30,6 +30,7 @@ export class ListAssessmentReportsCommand extends $Command< ListAssessmentReportsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssessmentReportsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListAssessmentsCommand.ts b/clients/client-auditmanager/commands/ListAssessmentsCommand.ts index 10e6bedd853ef..58ed5e805630d 100644 --- a/clients/client-auditmanager/commands/ListAssessmentsCommand.ts +++ b/clients/client-auditmanager/commands/ListAssessmentsCommand.ts @@ -30,6 +30,7 @@ export class ListAssessmentsCommand extends $Command< ListAssessmentsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssessmentsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListControlsCommand.ts b/clients/client-auditmanager/commands/ListControlsCommand.ts index c06ecc92de71b..19e6195f521a4 100644 --- a/clients/client-auditmanager/commands/ListControlsCommand.ts +++ b/clients/client-auditmanager/commands/ListControlsCommand.ts @@ -30,6 +30,7 @@ export class ListControlsCommand extends $Command< ListControlsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListControlsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListKeywordsForDataSourceCommand.ts b/clients/client-auditmanager/commands/ListKeywordsForDataSourceCommand.ts index cd9819f007608..1b0999ffea07f 100644 --- a/clients/client-auditmanager/commands/ListKeywordsForDataSourceCommand.ts +++ b/clients/client-auditmanager/commands/ListKeywordsForDataSourceCommand.ts @@ -30,6 +30,7 @@ export class ListKeywordsForDataSourceCommand extends $Command< ListKeywordsForDataSourceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListKeywordsForDataSourceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListNotificationsCommand.ts b/clients/client-auditmanager/commands/ListNotificationsCommand.ts index 23d4ef5da118e..7dee16f7201d2 100644 --- a/clients/client-auditmanager/commands/ListNotificationsCommand.ts +++ b/clients/client-auditmanager/commands/ListNotificationsCommand.ts @@ -30,6 +30,7 @@ export class ListNotificationsCommand extends $Command< ListNotificationsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListNotificationsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ListTagsForResourceCommand.ts b/clients/client-auditmanager/commands/ListTagsForResourceCommand.ts index f2b7bba114a4f..d9b37751b8a1b 100644 --- a/clients/client-auditmanager/commands/ListTagsForResourceCommand.ts +++ b/clients/client-auditmanager/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/RegisterAccountCommand.ts b/clients/client-auditmanager/commands/RegisterAccountCommand.ts index bdfebaf099682..f12bffc6befc1 100644 --- a/clients/client-auditmanager/commands/RegisterAccountCommand.ts +++ b/clients/client-auditmanager/commands/RegisterAccountCommand.ts @@ -30,6 +30,7 @@ export class RegisterAccountCommand extends $Command< RegisterAccountCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RegisterAccountCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/RegisterOrganizationAdminAccountCommand.ts b/clients/client-auditmanager/commands/RegisterOrganizationAdminAccountCommand.ts index 66acf15881798..f55e964045d79 100644 --- a/clients/client-auditmanager/commands/RegisterOrganizationAdminAccountCommand.ts +++ b/clients/client-auditmanager/commands/RegisterOrganizationAdminAccountCommand.ts @@ -30,6 +30,7 @@ export class RegisterOrganizationAdminAccountCommand extends $Command< RegisterOrganizationAdminAccountCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RegisterOrganizationAdminAccountCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/TagResourceCommand.ts b/clients/client-auditmanager/commands/TagResourceCommand.ts index 1e05e0bad80ae..cc04985c0f12f 100644 --- a/clients/client-auditmanager/commands/TagResourceCommand.ts +++ b/clients/client-auditmanager/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UntagResourceCommand.ts b/clients/client-auditmanager/commands/UntagResourceCommand.ts index b81571c977f7b..f7cec1545dcc0 100644 --- a/clients/client-auditmanager/commands/UntagResourceCommand.ts +++ b/clients/client-auditmanager/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateAssessmentCommand.ts b/clients/client-auditmanager/commands/UpdateAssessmentCommand.ts index 243b640438b8f..9a2833a0d79ec 100644 --- a/clients/client-auditmanager/commands/UpdateAssessmentCommand.ts +++ b/clients/client-auditmanager/commands/UpdateAssessmentCommand.ts @@ -30,6 +30,7 @@ export class UpdateAssessmentCommand extends $Command< UpdateAssessmentCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAssessmentCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateAssessmentControlCommand.ts b/clients/client-auditmanager/commands/UpdateAssessmentControlCommand.ts index 629237be5b5ae..7557aa1847b73 100644 --- a/clients/client-auditmanager/commands/UpdateAssessmentControlCommand.ts +++ b/clients/client-auditmanager/commands/UpdateAssessmentControlCommand.ts @@ -30,6 +30,7 @@ export class UpdateAssessmentControlCommand extends $Command< UpdateAssessmentControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAssessmentControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateAssessmentControlSetStatusCommand.ts b/clients/client-auditmanager/commands/UpdateAssessmentControlSetStatusCommand.ts index 79e4ea9f5537b..70da68d19e034 100644 --- a/clients/client-auditmanager/commands/UpdateAssessmentControlSetStatusCommand.ts +++ b/clients/client-auditmanager/commands/UpdateAssessmentControlSetStatusCommand.ts @@ -30,6 +30,7 @@ export class UpdateAssessmentControlSetStatusCommand extends $Command< UpdateAssessmentControlSetStatusCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAssessmentControlSetStatusCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateAssessmentFrameworkCommand.ts b/clients/client-auditmanager/commands/UpdateAssessmentFrameworkCommand.ts index 7d1526e88cd3f..ffa2f40369d2e 100644 --- a/clients/client-auditmanager/commands/UpdateAssessmentFrameworkCommand.ts +++ b/clients/client-auditmanager/commands/UpdateAssessmentFrameworkCommand.ts @@ -30,6 +30,7 @@ export class UpdateAssessmentFrameworkCommand extends $Command< UpdateAssessmentFrameworkCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAssessmentFrameworkCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateAssessmentStatusCommand.ts b/clients/client-auditmanager/commands/UpdateAssessmentStatusCommand.ts index b3810c8ff59c1..cb729aa556f53 100644 --- a/clients/client-auditmanager/commands/UpdateAssessmentStatusCommand.ts +++ b/clients/client-auditmanager/commands/UpdateAssessmentStatusCommand.ts @@ -30,6 +30,7 @@ export class UpdateAssessmentStatusCommand extends $Command< UpdateAssessmentStatusCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAssessmentStatusCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateControlCommand.ts b/clients/client-auditmanager/commands/UpdateControlCommand.ts index a84568783de4c..8482d42340f9f 100644 --- a/clients/client-auditmanager/commands/UpdateControlCommand.ts +++ b/clients/client-auditmanager/commands/UpdateControlCommand.ts @@ -30,6 +30,7 @@ export class UpdateControlCommand extends $Command< UpdateControlCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateControlCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/UpdateSettingsCommand.ts b/clients/client-auditmanager/commands/UpdateSettingsCommand.ts index fbeca66ab7068..7a93c84fd6698 100644 --- a/clients/client-auditmanager/commands/UpdateSettingsCommand.ts +++ b/clients/client-auditmanager/commands/UpdateSettingsCommand.ts @@ -30,6 +30,7 @@ export class UpdateSettingsCommand extends $Command< UpdateSettingsCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateSettingsCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auditmanager/commands/ValidateAssessmentReportIntegrityCommand.ts b/clients/client-auditmanager/commands/ValidateAssessmentReportIntegrityCommand.ts index 74c7d21b9e54a..8959afafd29eb 100644 --- a/clients/client-auditmanager/commands/ValidateAssessmentReportIntegrityCommand.ts +++ b/clients/client-auditmanager/commands/ValidateAssessmentReportIntegrityCommand.ts @@ -34,6 +34,7 @@ export class ValidateAssessmentReportIntegrityCommand extends $Command< ValidateAssessmentReportIntegrityCommandOutput, AuditManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ValidateAssessmentReportIntegrityCommand extends $Command< configuration: AuditManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/CreateScalingPlanCommand.ts b/clients/client-auto-scaling-plans/commands/CreateScalingPlanCommand.ts index 7a073711919ad..f571c9e2d9699 100644 --- a/clients/client-auto-scaling-plans/commands/CreateScalingPlanCommand.ts +++ b/clients/client-auto-scaling-plans/commands/CreateScalingPlanCommand.ts @@ -28,6 +28,7 @@ export class CreateScalingPlanCommand extends $Command< CreateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateScalingPlanCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/DeleteScalingPlanCommand.ts b/clients/client-auto-scaling-plans/commands/DeleteScalingPlanCommand.ts index 31afbdeec564c..0a949f316c725 100644 --- a/clients/client-auto-scaling-plans/commands/DeleteScalingPlanCommand.ts +++ b/clients/client-auto-scaling-plans/commands/DeleteScalingPlanCommand.ts @@ -32,6 +32,7 @@ export class DeleteScalingPlanCommand extends $Command< DeleteScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteScalingPlanCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/DescribeScalingPlanResourcesCommand.ts b/clients/client-auto-scaling-plans/commands/DescribeScalingPlanResourcesCommand.ts index b0b8bb55805d7..fb5752cccd202 100644 --- a/clients/client-auto-scaling-plans/commands/DescribeScalingPlanResourcesCommand.ts +++ b/clients/client-auto-scaling-plans/commands/DescribeScalingPlanResourcesCommand.ts @@ -28,6 +28,7 @@ export class DescribeScalingPlanResourcesCommand extends $Command< DescribeScalingPlanResourcesCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScalingPlanResourcesCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/DescribeScalingPlansCommand.ts b/clients/client-auto-scaling-plans/commands/DescribeScalingPlansCommand.ts index 999b613e25ff4..b27fe2ebd44fc 100644 --- a/clients/client-auto-scaling-plans/commands/DescribeScalingPlansCommand.ts +++ b/clients/client-auto-scaling-plans/commands/DescribeScalingPlansCommand.ts @@ -28,6 +28,7 @@ export class DescribeScalingPlansCommand extends $Command< DescribeScalingPlansCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScalingPlansCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/GetScalingPlanResourceForecastDataCommand.ts b/clients/client-auto-scaling-plans/commands/GetScalingPlanResourceForecastDataCommand.ts index 27949d25c57f7..eefcac0c417bc 100644 --- a/clients/client-auto-scaling-plans/commands/GetScalingPlanResourceForecastDataCommand.ts +++ b/clients/client-auto-scaling-plans/commands/GetScalingPlanResourceForecastDataCommand.ts @@ -37,6 +37,7 @@ export class GetScalingPlanResourceForecastDataCommand extends $Command< GetScalingPlanResourceForecastDataCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetScalingPlanResourceForecastDataCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling-plans/commands/UpdateScalingPlanCommand.ts b/clients/client-auto-scaling-plans/commands/UpdateScalingPlanCommand.ts index 47bab565e1534..bb02ee61cfc2f 100644 --- a/clients/client-auto-scaling-plans/commands/UpdateScalingPlanCommand.ts +++ b/clients/client-auto-scaling-plans/commands/UpdateScalingPlanCommand.ts @@ -30,6 +30,7 @@ export class UpdateScalingPlanCommand extends $Command< UpdateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateScalingPlanCommand extends $Command< configuration: AutoScalingPlansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/AttachInstancesCommand.ts b/clients/client-auto-scaling/commands/AttachInstancesCommand.ts index 0ff4078edfc13..9e7a044f1b35f 100644 --- a/clients/client-auto-scaling/commands/AttachInstancesCommand.ts +++ b/clients/client-auto-scaling/commands/AttachInstancesCommand.ts @@ -37,6 +37,7 @@ export class AttachInstancesCommand extends $Command< AttachInstancesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AttachInstancesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/AttachLoadBalancerTargetGroupsCommand.ts b/clients/client-auto-scaling/commands/AttachLoadBalancerTargetGroupsCommand.ts index 1b4fceb14460f..ff9d7bf800186 100644 --- a/clients/client-auto-scaling/commands/AttachLoadBalancerTargetGroupsCommand.ts +++ b/clients/client-auto-scaling/commands/AttachLoadBalancerTargetGroupsCommand.ts @@ -46,6 +46,7 @@ export class AttachLoadBalancerTargetGroupsCommand extends $Command< AttachLoadBalancerTargetGroupsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class AttachLoadBalancerTargetGroupsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/AttachLoadBalancersCommand.ts b/clients/client-auto-scaling/commands/AttachLoadBalancersCommand.ts index c34d58b7fcffb..4f46cc30cf5c6 100644 --- a/clients/client-auto-scaling/commands/AttachLoadBalancersCommand.ts +++ b/clients/client-auto-scaling/commands/AttachLoadBalancersCommand.ts @@ -38,6 +38,7 @@ export class AttachLoadBalancersCommand extends $Command< AttachLoadBalancersCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AttachLoadBalancersCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/BatchDeleteScheduledActionCommand.ts b/clients/client-auto-scaling/commands/BatchDeleteScheduledActionCommand.ts index 05db8091acd06..e70fedbc2389d 100644 --- a/clients/client-auto-scaling/commands/BatchDeleteScheduledActionCommand.ts +++ b/clients/client-auto-scaling/commands/BatchDeleteScheduledActionCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteScheduledActionCommand extends $Command< BatchDeleteScheduledActionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteScheduledActionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/BatchPutScheduledUpdateGroupActionCommand.ts b/clients/client-auto-scaling/commands/BatchPutScheduledUpdateGroupActionCommand.ts index b2e3c323d53c2..7ff1e4bddb4e2 100644 --- a/clients/client-auto-scaling/commands/BatchPutScheduledUpdateGroupActionCommand.ts +++ b/clients/client-auto-scaling/commands/BatchPutScheduledUpdateGroupActionCommand.ts @@ -31,6 +31,7 @@ export class BatchPutScheduledUpdateGroupActionCommand extends $Command< BatchPutScheduledUpdateGroupActionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class BatchPutScheduledUpdateGroupActionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/CancelInstanceRefreshCommand.ts b/clients/client-auto-scaling/commands/CancelInstanceRefreshCommand.ts index 7e22c1f2f425a..81f99fc37180f 100644 --- a/clients/client-auto-scaling/commands/CancelInstanceRefreshCommand.ts +++ b/clients/client-auto-scaling/commands/CancelInstanceRefreshCommand.ts @@ -32,6 +32,7 @@ export class CancelInstanceRefreshCommand extends $Command< CancelInstanceRefreshCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelInstanceRefreshCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/CompleteLifecycleActionCommand.ts b/clients/client-auto-scaling/commands/CompleteLifecycleActionCommand.ts index 211cf60eaa050..f67c845ebe932 100644 --- a/clients/client-auto-scaling/commands/CompleteLifecycleActionCommand.ts +++ b/clients/client-auto-scaling/commands/CompleteLifecycleActionCommand.ts @@ -59,6 +59,7 @@ export class CompleteLifecycleActionCommand extends $Command< CompleteLifecycleActionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CompleteLifecycleActionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/CreateAutoScalingGroupCommand.ts b/clients/client-auto-scaling/commands/CreateAutoScalingGroupCommand.ts index 7ef2159c3c4e2..ecae7472759b7 100644 --- a/clients/client-auto-scaling/commands/CreateAutoScalingGroupCommand.ts +++ b/clients/client-auto-scaling/commands/CreateAutoScalingGroupCommand.ts @@ -42,6 +42,7 @@ export class CreateAutoScalingGroupCommand extends $Command< CreateAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateAutoScalingGroupCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/CreateLaunchConfigurationCommand.ts b/clients/client-auto-scaling/commands/CreateLaunchConfigurationCommand.ts index fe67d02acd1bb..87444e8f232ac 100644 --- a/clients/client-auto-scaling/commands/CreateLaunchConfigurationCommand.ts +++ b/clients/client-auto-scaling/commands/CreateLaunchConfigurationCommand.ts @@ -34,6 +34,7 @@ export class CreateLaunchConfigurationCommand extends $Command< CreateLaunchConfigurationCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateLaunchConfigurationCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/CreateOrUpdateTagsCommand.ts b/clients/client-auto-scaling/commands/CreateOrUpdateTagsCommand.ts index f367702da5c7e..04df0a168fc75 100644 --- a/clients/client-auto-scaling/commands/CreateOrUpdateTagsCommand.ts +++ b/clients/client-auto-scaling/commands/CreateOrUpdateTagsCommand.ts @@ -32,6 +32,7 @@ export class CreateOrUpdateTagsCommand extends $Command< CreateOrUpdateTagsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateOrUpdateTagsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteAutoScalingGroupCommand.ts b/clients/client-auto-scaling/commands/DeleteAutoScalingGroupCommand.ts index 7666e5c3e7697..bc3ecd6887488 100644 --- a/clients/client-auto-scaling/commands/DeleteAutoScalingGroupCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteAutoScalingGroupCommand.ts @@ -37,6 +37,7 @@ export class DeleteAutoScalingGroupCommand extends $Command< DeleteAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteAutoScalingGroupCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteLaunchConfigurationCommand.ts b/clients/client-auto-scaling/commands/DeleteLaunchConfigurationCommand.ts index c9e6c164c98f8..5a0617ebf7643 100644 --- a/clients/client-auto-scaling/commands/DeleteLaunchConfigurationCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteLaunchConfigurationCommand.ts @@ -30,6 +30,7 @@ export class DeleteLaunchConfigurationCommand extends $Command< DeleteLaunchConfigurationCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteLaunchConfigurationCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteLifecycleHookCommand.ts b/clients/client-auto-scaling/commands/DeleteLifecycleHookCommand.ts index 3b46a3c0b1fca..8a5f12f15d620 100644 --- a/clients/client-auto-scaling/commands/DeleteLifecycleHookCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteLifecycleHookCommand.ts @@ -31,6 +31,7 @@ export class DeleteLifecycleHookCommand extends $Command< DeleteLifecycleHookCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteLifecycleHookCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteNotificationConfigurationCommand.ts b/clients/client-auto-scaling/commands/DeleteNotificationConfigurationCommand.ts index 4ec654b54266a..c508ab3c2ec4e 100644 --- a/clients/client-auto-scaling/commands/DeleteNotificationConfigurationCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteNotificationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteNotificationConfigurationCommand extends $Command< DeleteNotificationConfigurationCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNotificationConfigurationCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeletePolicyCommand.ts b/clients/client-auto-scaling/commands/DeletePolicyCommand.ts index 9ddfdefd1fff6..d8458f0ecc936 100644 --- a/clients/client-auto-scaling/commands/DeletePolicyCommand.ts +++ b/clients/client-auto-scaling/commands/DeletePolicyCommand.ts @@ -30,6 +30,7 @@ export class DeletePolicyCommand extends $Command< DeletePolicyCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeletePolicyCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteScheduledActionCommand.ts b/clients/client-auto-scaling/commands/DeleteScheduledActionCommand.ts index 332a375cb3877..e93a39dbc22af 100644 --- a/clients/client-auto-scaling/commands/DeleteScheduledActionCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteScheduledActionCommand.ts @@ -28,6 +28,7 @@ export class DeleteScheduledActionCommand extends $Command< DeleteScheduledActionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteScheduledActionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DeleteTagsCommand.ts b/clients/client-auto-scaling/commands/DeleteTagsCommand.ts index 6e668df55fa0a..ff2a96d520f2d 100644 --- a/clients/client-auto-scaling/commands/DeleteTagsCommand.ts +++ b/clients/client-auto-scaling/commands/DeleteTagsCommand.ts @@ -25,6 +25,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteTagsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeAccountLimitsCommand.ts b/clients/client-auto-scaling/commands/DescribeAccountLimitsCommand.ts index 5ed7703358e4f..c0272b25d06db 100644 --- a/clients/client-auto-scaling/commands/DescribeAccountLimitsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeAccountLimitsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAccountLimitsCommand extends $Command< DescribeAccountLimitsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAccountLimitsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeAdjustmentTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeAdjustmentTypesCommand.ts index 1bb0006c7d991..52c9c584063ed 100644 --- a/clients/client-auto-scaling/commands/DescribeAdjustmentTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeAdjustmentTypesCommand.ts @@ -42,6 +42,7 @@ export class DescribeAdjustmentTypesCommand extends $Command< DescribeAdjustmentTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeAdjustmentTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeAutoScalingGroupsCommand.ts b/clients/client-auto-scaling/commands/DescribeAutoScalingGroupsCommand.ts index 84c7263e85898..2bc8cba57e867 100644 --- a/clients/client-auto-scaling/commands/DescribeAutoScalingGroupsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeAutoScalingGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAutoScalingGroupsCommand extends $Command< DescribeAutoScalingGroupsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAutoScalingGroupsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeAutoScalingInstancesCommand.ts b/clients/client-auto-scaling/commands/DescribeAutoScalingInstancesCommand.ts index f66c1e4086a32..420ed1a7401b7 100644 --- a/clients/client-auto-scaling/commands/DescribeAutoScalingInstancesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeAutoScalingInstancesCommand.ts @@ -28,6 +28,7 @@ export class DescribeAutoScalingInstancesCommand extends $Command< DescribeAutoScalingInstancesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAutoScalingInstancesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeAutoScalingNotificationTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeAutoScalingNotificationTypesCommand.ts index ba317e8374688..ecb576727e52e 100644 --- a/clients/client-auto-scaling/commands/DescribeAutoScalingNotificationTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeAutoScalingNotificationTypesCommand.ts @@ -29,6 +29,7 @@ export class DescribeAutoScalingNotificationTypesCommand extends $Command< DescribeAutoScalingNotificationTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAutoScalingNotificationTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeInstanceRefreshesCommand.ts b/clients/client-auto-scaling/commands/DescribeInstanceRefreshesCommand.ts index 59f7087f03a04..119e6a0009753 100644 --- a/clients/client-auto-scaling/commands/DescribeInstanceRefreshesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeInstanceRefreshesCommand.ts @@ -62,6 +62,7 @@ export class DescribeInstanceRefreshesCommand extends $Command< DescribeInstanceRefreshesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribeInstanceRefreshesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeLaunchConfigurationsCommand.ts b/clients/client-auto-scaling/commands/DescribeLaunchConfigurationsCommand.ts index 90058a010cbaa..fe2bb5dea09e1 100644 --- a/clients/client-auto-scaling/commands/DescribeLaunchConfigurationsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeLaunchConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLaunchConfigurationsCommand extends $Command< DescribeLaunchConfigurationsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLaunchConfigurationsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeLifecycleHookTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeLifecycleHookTypesCommand.ts index 26b85469e32f5..4a1e29f2676da 100644 --- a/clients/client-auto-scaling/commands/DescribeLifecycleHookTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeLifecycleHookTypesCommand.ts @@ -37,6 +37,7 @@ export class DescribeLifecycleHookTypesCommand extends $Command< DescribeLifecycleHookTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeLifecycleHookTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeLifecycleHooksCommand.ts b/clients/client-auto-scaling/commands/DescribeLifecycleHooksCommand.ts index 12d97eefd0082..7e29e24d9b9ab 100644 --- a/clients/client-auto-scaling/commands/DescribeLifecycleHooksCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeLifecycleHooksCommand.ts @@ -28,6 +28,7 @@ export class DescribeLifecycleHooksCommand extends $Command< DescribeLifecycleHooksCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLifecycleHooksCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeLoadBalancerTargetGroupsCommand.ts b/clients/client-auto-scaling/commands/DescribeLoadBalancerTargetGroupsCommand.ts index 6e48147300553..1a21ea1cfe9b0 100644 --- a/clients/client-auto-scaling/commands/DescribeLoadBalancerTargetGroupsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeLoadBalancerTargetGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLoadBalancerTargetGroupsCommand extends $Command< DescribeLoadBalancerTargetGroupsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLoadBalancerTargetGroupsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeLoadBalancersCommand.ts b/clients/client-auto-scaling/commands/DescribeLoadBalancersCommand.ts index 490b732a90274..7f7fa04ffa6f1 100644 --- a/clients/client-auto-scaling/commands/DescribeLoadBalancersCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeLoadBalancersCommand.ts @@ -30,6 +30,7 @@ export class DescribeLoadBalancersCommand extends $Command< DescribeLoadBalancersCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeLoadBalancersCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeMetricCollectionTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeMetricCollectionTypesCommand.ts index 9408ee15cd088..9c07df497b9c9 100644 --- a/clients/client-auto-scaling/commands/DescribeMetricCollectionTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeMetricCollectionTypesCommand.ts @@ -30,6 +30,7 @@ export class DescribeMetricCollectionTypesCommand extends $Command< DescribeMetricCollectionTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeMetricCollectionTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeNotificationConfigurationsCommand.ts b/clients/client-auto-scaling/commands/DescribeNotificationConfigurationsCommand.ts index 71e4298b2d25e..b0c5fac9ead39 100644 --- a/clients/client-auto-scaling/commands/DescribeNotificationConfigurationsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeNotificationConfigurationsCommand.ts @@ -29,6 +29,7 @@ export class DescribeNotificationConfigurationsCommand extends $Command< DescribeNotificationConfigurationsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeNotificationConfigurationsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribePoliciesCommand.ts b/clients/client-auto-scaling/commands/DescribePoliciesCommand.ts index 2c4d177bcbba0..277d046f288e0 100644 --- a/clients/client-auto-scaling/commands/DescribePoliciesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribePoliciesCommand.ts @@ -28,6 +28,7 @@ export class DescribePoliciesCommand extends $Command< DescribePoliciesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePoliciesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeScalingActivitiesCommand.ts b/clients/client-auto-scaling/commands/DescribeScalingActivitiesCommand.ts index eba19fcc449a7..c5f42dde5f6ca 100644 --- a/clients/client-auto-scaling/commands/DescribeScalingActivitiesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeScalingActivitiesCommand.ts @@ -28,6 +28,7 @@ export class DescribeScalingActivitiesCommand extends $Command< DescribeScalingActivitiesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScalingActivitiesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeScalingProcessTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeScalingProcessTypesCommand.ts index 6a01a17a3c5a7..81db9dbb3f4e6 100644 --- a/clients/client-auto-scaling/commands/DescribeScalingProcessTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeScalingProcessTypesCommand.ts @@ -29,6 +29,7 @@ export class DescribeScalingProcessTypesCommand extends $Command< DescribeScalingProcessTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeScalingProcessTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeScheduledActionsCommand.ts b/clients/client-auto-scaling/commands/DescribeScheduledActionsCommand.ts index 0d092fb6a9804..99a458f2bb7a1 100644 --- a/clients/client-auto-scaling/commands/DescribeScheduledActionsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeScheduledActionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeScheduledActionsCommand extends $Command< DescribeScheduledActionsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeScheduledActionsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeTagsCommand.ts b/clients/client-auto-scaling/commands/DescribeTagsCommand.ts index 27bcc0db58bea..9bf245199f6ea 100644 --- a/clients/client-auto-scaling/commands/DescribeTagsCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeTagsCommand.ts @@ -33,6 +33,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeTagsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DescribeTerminationPolicyTypesCommand.ts b/clients/client-auto-scaling/commands/DescribeTerminationPolicyTypesCommand.ts index 8fa9b15b135bf..d2b547b51baad 100644 --- a/clients/client-auto-scaling/commands/DescribeTerminationPolicyTypesCommand.ts +++ b/clients/client-auto-scaling/commands/DescribeTerminationPolicyTypesCommand.ts @@ -31,6 +31,7 @@ export class DescribeTerminationPolicyTypesCommand extends $Command< DescribeTerminationPolicyTypesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTerminationPolicyTypesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DetachInstancesCommand.ts b/clients/client-auto-scaling/commands/DetachInstancesCommand.ts index 4a5fe402c4982..9eebfce600cfd 100644 --- a/clients/client-auto-scaling/commands/DetachInstancesCommand.ts +++ b/clients/client-auto-scaling/commands/DetachInstancesCommand.ts @@ -37,6 +37,7 @@ export class DetachInstancesCommand extends $Command< DetachInstancesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DetachInstancesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DetachLoadBalancerTargetGroupsCommand.ts b/clients/client-auto-scaling/commands/DetachLoadBalancerTargetGroupsCommand.ts index 43f8e1647beb6..2d460392bf5cb 100644 --- a/clients/client-auto-scaling/commands/DetachLoadBalancerTargetGroupsCommand.ts +++ b/clients/client-auto-scaling/commands/DetachLoadBalancerTargetGroupsCommand.ts @@ -28,6 +28,7 @@ export class DetachLoadBalancerTargetGroupsCommand extends $Command< DetachLoadBalancerTargetGroupsCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachLoadBalancerTargetGroupsCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DetachLoadBalancersCommand.ts b/clients/client-auto-scaling/commands/DetachLoadBalancersCommand.ts index 3a63c07328848..4048c0bf9ed3f 100644 --- a/clients/client-auto-scaling/commands/DetachLoadBalancersCommand.ts +++ b/clients/client-auto-scaling/commands/DetachLoadBalancersCommand.ts @@ -33,6 +33,7 @@ export class DetachLoadBalancersCommand extends $Command< DetachLoadBalancersCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DetachLoadBalancersCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/DisableMetricsCollectionCommand.ts b/clients/client-auto-scaling/commands/DisableMetricsCollectionCommand.ts index 7a218b0dd56e1..5bdac102a13f7 100644 --- a/clients/client-auto-scaling/commands/DisableMetricsCollectionCommand.ts +++ b/clients/client-auto-scaling/commands/DisableMetricsCollectionCommand.ts @@ -28,6 +28,7 @@ export class DisableMetricsCollectionCommand extends $Command< DisableMetricsCollectionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableMetricsCollectionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/EnableMetricsCollectionCommand.ts b/clients/client-auto-scaling/commands/EnableMetricsCollectionCommand.ts index d55137fbfd349..fad9eb32a5bea 100644 --- a/clients/client-auto-scaling/commands/EnableMetricsCollectionCommand.ts +++ b/clients/client-auto-scaling/commands/EnableMetricsCollectionCommand.ts @@ -29,6 +29,7 @@ export class EnableMetricsCollectionCommand extends $Command< EnableMetricsCollectionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableMetricsCollectionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/EnterStandbyCommand.ts b/clients/client-auto-scaling/commands/EnterStandbyCommand.ts index 92ee319a69d93..3327b844fe01c 100644 --- a/clients/client-auto-scaling/commands/EnterStandbyCommand.ts +++ b/clients/client-auto-scaling/commands/EnterStandbyCommand.ts @@ -34,6 +34,7 @@ export class EnterStandbyCommand extends $Command< EnterStandbyCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class EnterStandbyCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/ExecutePolicyCommand.ts b/clients/client-auto-scaling/commands/ExecutePolicyCommand.ts index 2fcdc18dbc5bb..44e82b9e143fe 100644 --- a/clients/client-auto-scaling/commands/ExecutePolicyCommand.ts +++ b/clients/client-auto-scaling/commands/ExecutePolicyCommand.ts @@ -29,6 +29,7 @@ export class ExecutePolicyCommand extends $Command< ExecutePolicyCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ExecutePolicyCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/ExitStandbyCommand.ts b/clients/client-auto-scaling/commands/ExitStandbyCommand.ts index 57376b531068b..edc8d4fec537c 100644 --- a/clients/client-auto-scaling/commands/ExitStandbyCommand.ts +++ b/clients/client-auto-scaling/commands/ExitStandbyCommand.ts @@ -30,6 +30,7 @@ export class ExitStandbyCommand extends $Command< ExitStandbyCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ExitStandbyCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/PutLifecycleHookCommand.ts b/clients/client-auto-scaling/commands/PutLifecycleHookCommand.ts index c0f01bf1b1d89..6118927d7a0ba 100644 --- a/clients/client-auto-scaling/commands/PutLifecycleHookCommand.ts +++ b/clients/client-auto-scaling/commands/PutLifecycleHookCommand.ts @@ -65,6 +65,7 @@ export class PutLifecycleHookCommand extends $Command< PutLifecycleHookCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class PutLifecycleHookCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/PutNotificationConfigurationCommand.ts b/clients/client-auto-scaling/commands/PutNotificationConfigurationCommand.ts index bad6216d12509..1e56498de93b4 100644 --- a/clients/client-auto-scaling/commands/PutNotificationConfigurationCommand.ts +++ b/clients/client-auto-scaling/commands/PutNotificationConfigurationCommand.ts @@ -36,6 +36,7 @@ export class PutNotificationConfigurationCommand extends $Command< PutNotificationConfigurationCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PutNotificationConfigurationCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/PutScalingPolicyCommand.ts b/clients/client-auto-scaling/commands/PutScalingPolicyCommand.ts index 836eb635e47cd..9f02c492ba0df 100644 --- a/clients/client-auto-scaling/commands/PutScalingPolicyCommand.ts +++ b/clients/client-auto-scaling/commands/PutScalingPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutScalingPolicyCommand extends $Command< PutScalingPolicyCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutScalingPolicyCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/PutScheduledUpdateGroupActionCommand.ts b/clients/client-auto-scaling/commands/PutScheduledUpdateGroupActionCommand.ts index 96d34cc34198a..4f26cbc5a3dbc 100644 --- a/clients/client-auto-scaling/commands/PutScheduledUpdateGroupActionCommand.ts +++ b/clients/client-auto-scaling/commands/PutScheduledUpdateGroupActionCommand.ts @@ -32,6 +32,7 @@ export class PutScheduledUpdateGroupActionCommand extends $Command< PutScheduledUpdateGroupActionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutScheduledUpdateGroupActionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/RecordLifecycleActionHeartbeatCommand.ts b/clients/client-auto-scaling/commands/RecordLifecycleActionHeartbeatCommand.ts index eb4dd154e0f85..1093673f47501 100644 --- a/clients/client-auto-scaling/commands/RecordLifecycleActionHeartbeatCommand.ts +++ b/clients/client-auto-scaling/commands/RecordLifecycleActionHeartbeatCommand.ts @@ -60,6 +60,7 @@ export class RecordLifecycleActionHeartbeatCommand extends $Command< RecordLifecycleActionHeartbeatCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class RecordLifecycleActionHeartbeatCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/ResumeProcessesCommand.ts b/clients/client-auto-scaling/commands/ResumeProcessesCommand.ts index 2a838cdb3afe0..0a28950862431 100644 --- a/clients/client-auto-scaling/commands/ResumeProcessesCommand.ts +++ b/clients/client-auto-scaling/commands/ResumeProcessesCommand.ts @@ -31,6 +31,7 @@ export class ResumeProcessesCommand extends $Command< ResumeProcessesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResumeProcessesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/SetDesiredCapacityCommand.ts b/clients/client-auto-scaling/commands/SetDesiredCapacityCommand.ts index 3f351c2875fcc..47b3a641702b8 100644 --- a/clients/client-auto-scaling/commands/SetDesiredCapacityCommand.ts +++ b/clients/client-auto-scaling/commands/SetDesiredCapacityCommand.ts @@ -33,6 +33,7 @@ export class SetDesiredCapacityCommand extends $Command< SetDesiredCapacityCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetDesiredCapacityCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/SetInstanceHealthCommand.ts b/clients/client-auto-scaling/commands/SetInstanceHealthCommand.ts index 1cba299c87d5f..7d47fb00bf5d0 100644 --- a/clients/client-auto-scaling/commands/SetInstanceHealthCommand.ts +++ b/clients/client-auto-scaling/commands/SetInstanceHealthCommand.ts @@ -30,6 +30,7 @@ export class SetInstanceHealthCommand extends $Command< SetInstanceHealthCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetInstanceHealthCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/SetInstanceProtectionCommand.ts b/clients/client-auto-scaling/commands/SetInstanceProtectionCommand.ts index 2180b4e63e5c7..98eaf062c32f3 100644 --- a/clients/client-auto-scaling/commands/SetInstanceProtectionCommand.ts +++ b/clients/client-auto-scaling/commands/SetInstanceProtectionCommand.ts @@ -33,6 +33,7 @@ export class SetInstanceProtectionCommand extends $Command< SetInstanceProtectionCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetInstanceProtectionCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/StartInstanceRefreshCommand.ts b/clients/client-auto-scaling/commands/StartInstanceRefreshCommand.ts index d6d783d3e2de6..dae12bb09e297 100644 --- a/clients/client-auto-scaling/commands/StartInstanceRefreshCommand.ts +++ b/clients/client-auto-scaling/commands/StartInstanceRefreshCommand.ts @@ -36,6 +36,7 @@ export class StartInstanceRefreshCommand extends $Command< StartInstanceRefreshCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartInstanceRefreshCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/SuspendProcessesCommand.ts b/clients/client-auto-scaling/commands/SuspendProcessesCommand.ts index 3b1f2986c028b..40783c0409a5b 100644 --- a/clients/client-auto-scaling/commands/SuspendProcessesCommand.ts +++ b/clients/client-auto-scaling/commands/SuspendProcessesCommand.ts @@ -34,6 +34,7 @@ export class SuspendProcessesCommand extends $Command< SuspendProcessesCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SuspendProcessesCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/TerminateInstanceInAutoScalingGroupCommand.ts b/clients/client-auto-scaling/commands/TerminateInstanceInAutoScalingGroupCommand.ts index 000840d3aedce..f975a02a3d5f5 100644 --- a/clients/client-auto-scaling/commands/TerminateInstanceInAutoScalingGroupCommand.ts +++ b/clients/client-auto-scaling/commands/TerminateInstanceInAutoScalingGroupCommand.ts @@ -38,6 +38,7 @@ export class TerminateInstanceInAutoScalingGroupCommand extends $Command< TerminateInstanceInAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class TerminateInstanceInAutoScalingGroupCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-auto-scaling/commands/UpdateAutoScalingGroupCommand.ts b/clients/client-auto-scaling/commands/UpdateAutoScalingGroupCommand.ts index a06d4dc176f38..ff694ca4b1514 100644 --- a/clients/client-auto-scaling/commands/UpdateAutoScalingGroupCommand.ts +++ b/clients/client-auto-scaling/commands/UpdateAutoScalingGroupCommand.ts @@ -68,6 +68,7 @@ export class UpdateAutoScalingGroupCommand extends $Command< UpdateAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class UpdateAutoScalingGroupCommand extends $Command< configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/CreateBackupPlanCommand.ts b/clients/client-backup/commands/CreateBackupPlanCommand.ts index 555387762ad21..d175c820b9ff9 100644 --- a/clients/client-backup/commands/CreateBackupPlanCommand.ts +++ b/clients/client-backup/commands/CreateBackupPlanCommand.ts @@ -31,6 +31,7 @@ export class CreateBackupPlanCommand extends $Command< CreateBackupPlanCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateBackupPlanCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/CreateBackupSelectionCommand.ts b/clients/client-backup/commands/CreateBackupSelectionCommand.ts index 97ecbd1c3c7b7..32b47866382cb 100644 --- a/clients/client-backup/commands/CreateBackupSelectionCommand.ts +++ b/clients/client-backup/commands/CreateBackupSelectionCommand.ts @@ -67,6 +67,7 @@ export class CreateBackupSelectionCommand extends $Command< CreateBackupSelectionCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class CreateBackupSelectionCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/CreateBackupVaultCommand.ts b/clients/client-backup/commands/CreateBackupVaultCommand.ts index d05c6674d61ff..a3cb5261a64d7 100644 --- a/clients/client-backup/commands/CreateBackupVaultCommand.ts +++ b/clients/client-backup/commands/CreateBackupVaultCommand.ts @@ -34,6 +34,7 @@ export class CreateBackupVaultCommand extends $Command< CreateBackupVaultCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateBackupVaultCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteBackupPlanCommand.ts b/clients/client-backup/commands/DeleteBackupPlanCommand.ts index 79bb812c6066f..a8368ed2a4a2f 100644 --- a/clients/client-backup/commands/DeleteBackupPlanCommand.ts +++ b/clients/client-backup/commands/DeleteBackupPlanCommand.ts @@ -30,6 +30,7 @@ export class DeleteBackupPlanCommand extends $Command< DeleteBackupPlanCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteBackupPlanCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteBackupSelectionCommand.ts b/clients/client-backup/commands/DeleteBackupSelectionCommand.ts index 0ae6d9a8223dd..35084c0d8352f 100644 --- a/clients/client-backup/commands/DeleteBackupSelectionCommand.ts +++ b/clients/client-backup/commands/DeleteBackupSelectionCommand.ts @@ -29,6 +29,7 @@ export class DeleteBackupSelectionCommand extends $Command< DeleteBackupSelectionCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteBackupSelectionCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteBackupVaultAccessPolicyCommand.ts b/clients/client-backup/commands/DeleteBackupVaultAccessPolicyCommand.ts index a42fe49942992..2ca3e75de5219 100644 --- a/clients/client-backup/commands/DeleteBackupVaultAccessPolicyCommand.ts +++ b/clients/client-backup/commands/DeleteBackupVaultAccessPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteBackupVaultAccessPolicyCommand extends $Command< DeleteBackupVaultAccessPolicyCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBackupVaultAccessPolicyCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteBackupVaultCommand.ts b/clients/client-backup/commands/DeleteBackupVaultCommand.ts index 863914415de33..b77409fcbdbac 100644 --- a/clients/client-backup/commands/DeleteBackupVaultCommand.ts +++ b/clients/client-backup/commands/DeleteBackupVaultCommand.ts @@ -29,6 +29,7 @@ export class DeleteBackupVaultCommand extends $Command< DeleteBackupVaultCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteBackupVaultCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteBackupVaultNotificationsCommand.ts b/clients/client-backup/commands/DeleteBackupVaultNotificationsCommand.ts index 9a315b85d4567..782f5e0e138d4 100644 --- a/clients/client-backup/commands/DeleteBackupVaultNotificationsCommand.ts +++ b/clients/client-backup/commands/DeleteBackupVaultNotificationsCommand.ts @@ -28,6 +28,7 @@ export class DeleteBackupVaultNotificationsCommand extends $Command< DeleteBackupVaultNotificationsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBackupVaultNotificationsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DeleteRecoveryPointCommand.ts b/clients/client-backup/commands/DeleteRecoveryPointCommand.ts index 3d25b391351ed..074ec7164f904 100644 --- a/clients/client-backup/commands/DeleteRecoveryPointCommand.ts +++ b/clients/client-backup/commands/DeleteRecoveryPointCommand.ts @@ -28,6 +28,7 @@ export class DeleteRecoveryPointCommand extends $Command< DeleteRecoveryPointCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRecoveryPointCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeBackupJobCommand.ts b/clients/client-backup/commands/DescribeBackupJobCommand.ts index cd220f5632516..1c7508435518d 100644 --- a/clients/client-backup/commands/DescribeBackupJobCommand.ts +++ b/clients/client-backup/commands/DescribeBackupJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeBackupJobCommand extends $Command< DescribeBackupJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBackupJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeBackupVaultCommand.ts b/clients/client-backup/commands/DescribeBackupVaultCommand.ts index a5ce01f6e774d..da2bd3a58cca8 100644 --- a/clients/client-backup/commands/DescribeBackupVaultCommand.ts +++ b/clients/client-backup/commands/DescribeBackupVaultCommand.ts @@ -28,6 +28,7 @@ export class DescribeBackupVaultCommand extends $Command< DescribeBackupVaultCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBackupVaultCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeCopyJobCommand.ts b/clients/client-backup/commands/DescribeCopyJobCommand.ts index 5fa71cacf7507..a3aa59c8d9c09 100644 --- a/clients/client-backup/commands/DescribeCopyJobCommand.ts +++ b/clients/client-backup/commands/DescribeCopyJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeCopyJobCommand extends $Command< DescribeCopyJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCopyJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeGlobalSettingsCommand.ts b/clients/client-backup/commands/DescribeGlobalSettingsCommand.ts index 85bfd2793d6b0..e87eef3739a22 100644 --- a/clients/client-backup/commands/DescribeGlobalSettingsCommand.ts +++ b/clients/client-backup/commands/DescribeGlobalSettingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeGlobalSettingsCommand extends $Command< DescribeGlobalSettingsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGlobalSettingsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeProtectedResourceCommand.ts b/clients/client-backup/commands/DescribeProtectedResourceCommand.ts index 3e3016f9a05a2..61e5fdbcd7e7c 100644 --- a/clients/client-backup/commands/DescribeProtectedResourceCommand.ts +++ b/clients/client-backup/commands/DescribeProtectedResourceCommand.ts @@ -29,6 +29,7 @@ export class DescribeProtectedResourceCommand extends $Command< DescribeProtectedResourceCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeProtectedResourceCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeRecoveryPointCommand.ts b/clients/client-backup/commands/DescribeRecoveryPointCommand.ts index c3b9fd1a82926..19bfc71dc8895 100644 --- a/clients/client-backup/commands/DescribeRecoveryPointCommand.ts +++ b/clients/client-backup/commands/DescribeRecoveryPointCommand.ts @@ -29,6 +29,7 @@ export class DescribeRecoveryPointCommand extends $Command< DescribeRecoveryPointCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeRecoveryPointCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeRegionSettingsCommand.ts b/clients/client-backup/commands/DescribeRegionSettingsCommand.ts index 8027659fcf4ec..bcf10a8061a3c 100644 --- a/clients/client-backup/commands/DescribeRegionSettingsCommand.ts +++ b/clients/client-backup/commands/DescribeRegionSettingsCommand.ts @@ -31,6 +31,7 @@ export class DescribeRegionSettingsCommand extends $Command< DescribeRegionSettingsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeRegionSettingsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/DescribeRestoreJobCommand.ts b/clients/client-backup/commands/DescribeRestoreJobCommand.ts index 3beae3c717621..772ceee5617d2 100644 --- a/clients/client-backup/commands/DescribeRestoreJobCommand.ts +++ b/clients/client-backup/commands/DescribeRestoreJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeRestoreJobCommand extends $Command< DescribeRestoreJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRestoreJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ExportBackupPlanTemplateCommand.ts b/clients/client-backup/commands/ExportBackupPlanTemplateCommand.ts index 74f92fc401681..b7f3501654110 100644 --- a/clients/client-backup/commands/ExportBackupPlanTemplateCommand.ts +++ b/clients/client-backup/commands/ExportBackupPlanTemplateCommand.ts @@ -28,6 +28,7 @@ export class ExportBackupPlanTemplateCommand extends $Command< ExportBackupPlanTemplateCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ExportBackupPlanTemplateCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupPlanCommand.ts b/clients/client-backup/commands/GetBackupPlanCommand.ts index 73a417310803b..b7c1c418a2a6e 100644 --- a/clients/client-backup/commands/GetBackupPlanCommand.ts +++ b/clients/client-backup/commands/GetBackupPlanCommand.ts @@ -30,6 +30,7 @@ export class GetBackupPlanCommand extends $Command< GetBackupPlanCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetBackupPlanCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupPlanFromJSONCommand.ts b/clients/client-backup/commands/GetBackupPlanFromJSONCommand.ts index c776d9207aa1a..9bd583943d8f2 100644 --- a/clients/client-backup/commands/GetBackupPlanFromJSONCommand.ts +++ b/clients/client-backup/commands/GetBackupPlanFromJSONCommand.ts @@ -28,6 +28,7 @@ export class GetBackupPlanFromJSONCommand extends $Command< GetBackupPlanFromJSONCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBackupPlanFromJSONCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupPlanFromTemplateCommand.ts b/clients/client-backup/commands/GetBackupPlanFromTemplateCommand.ts index 3a67c56ab2d11..aac9cca88604b 100644 --- a/clients/client-backup/commands/GetBackupPlanFromTemplateCommand.ts +++ b/clients/client-backup/commands/GetBackupPlanFromTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetBackupPlanFromTemplateCommand extends $Command< GetBackupPlanFromTemplateCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBackupPlanFromTemplateCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupSelectionCommand.ts b/clients/client-backup/commands/GetBackupSelectionCommand.ts index d912f4f5ed452..2b43ffc254617 100644 --- a/clients/client-backup/commands/GetBackupSelectionCommand.ts +++ b/clients/client-backup/commands/GetBackupSelectionCommand.ts @@ -29,6 +29,7 @@ export class GetBackupSelectionCommand extends $Command< GetBackupSelectionCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetBackupSelectionCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupVaultAccessPolicyCommand.ts b/clients/client-backup/commands/GetBackupVaultAccessPolicyCommand.ts index 6db8098da91d4..6a04125e767bc 100644 --- a/clients/client-backup/commands/GetBackupVaultAccessPolicyCommand.ts +++ b/clients/client-backup/commands/GetBackupVaultAccessPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetBackupVaultAccessPolicyCommand extends $Command< GetBackupVaultAccessPolicyCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetBackupVaultAccessPolicyCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetBackupVaultNotificationsCommand.ts b/clients/client-backup/commands/GetBackupVaultNotificationsCommand.ts index 2c24e79615a0a..2de439f0184bc 100644 --- a/clients/client-backup/commands/GetBackupVaultNotificationsCommand.ts +++ b/clients/client-backup/commands/GetBackupVaultNotificationsCommand.ts @@ -28,6 +28,7 @@ export class GetBackupVaultNotificationsCommand extends $Command< GetBackupVaultNotificationsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBackupVaultNotificationsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetRecoveryPointRestoreMetadataCommand.ts b/clients/client-backup/commands/GetRecoveryPointRestoreMetadataCommand.ts index 1826d594522de..7933fdba355a3 100644 --- a/clients/client-backup/commands/GetRecoveryPointRestoreMetadataCommand.ts +++ b/clients/client-backup/commands/GetRecoveryPointRestoreMetadataCommand.ts @@ -28,6 +28,7 @@ export class GetRecoveryPointRestoreMetadataCommand extends $Command< GetRecoveryPointRestoreMetadataCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRecoveryPointRestoreMetadataCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/GetSupportedResourceTypesCommand.ts b/clients/client-backup/commands/GetSupportedResourceTypesCommand.ts index df97e657659d7..e05792464e4a7 100644 --- a/clients/client-backup/commands/GetSupportedResourceTypesCommand.ts +++ b/clients/client-backup/commands/GetSupportedResourceTypesCommand.ts @@ -28,6 +28,7 @@ export class GetSupportedResourceTypesCommand extends $Command< GetSupportedResourceTypesCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSupportedResourceTypesCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupJobsCommand.ts b/clients/client-backup/commands/ListBackupJobsCommand.ts index 6cd60ce70babc..1ecd1afb7b9a0 100644 --- a/clients/client-backup/commands/ListBackupJobsCommand.ts +++ b/clients/client-backup/commands/ListBackupJobsCommand.ts @@ -28,6 +28,7 @@ export class ListBackupJobsCommand extends $Command< ListBackupJobsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBackupJobsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupPlanTemplatesCommand.ts b/clients/client-backup/commands/ListBackupPlanTemplatesCommand.ts index d76f6addc4be4..c1fdcfe369fcc 100644 --- a/clients/client-backup/commands/ListBackupPlanTemplatesCommand.ts +++ b/clients/client-backup/commands/ListBackupPlanTemplatesCommand.ts @@ -29,6 +29,7 @@ export class ListBackupPlanTemplatesCommand extends $Command< ListBackupPlanTemplatesCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBackupPlanTemplatesCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupPlanVersionsCommand.ts b/clients/client-backup/commands/ListBackupPlanVersionsCommand.ts index 49d110bebe634..e631025d1e926 100644 --- a/clients/client-backup/commands/ListBackupPlanVersionsCommand.ts +++ b/clients/client-backup/commands/ListBackupPlanVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListBackupPlanVersionsCommand extends $Command< ListBackupPlanVersionsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBackupPlanVersionsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupPlansCommand.ts b/clients/client-backup/commands/ListBackupPlansCommand.ts index 6f67344e1459e..504019c4dacee 100644 --- a/clients/client-backup/commands/ListBackupPlansCommand.ts +++ b/clients/client-backup/commands/ListBackupPlansCommand.ts @@ -31,6 +31,7 @@ export class ListBackupPlansCommand extends $Command< ListBackupPlansCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListBackupPlansCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupSelectionsCommand.ts b/clients/client-backup/commands/ListBackupSelectionsCommand.ts index ed47d72411be8..2a953e8d4d220 100644 --- a/clients/client-backup/commands/ListBackupSelectionsCommand.ts +++ b/clients/client-backup/commands/ListBackupSelectionsCommand.ts @@ -29,6 +29,7 @@ export class ListBackupSelectionsCommand extends $Command< ListBackupSelectionsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBackupSelectionsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListBackupVaultsCommand.ts b/clients/client-backup/commands/ListBackupVaultsCommand.ts index 49554d077da67..18cdba5eb3b1c 100644 --- a/clients/client-backup/commands/ListBackupVaultsCommand.ts +++ b/clients/client-backup/commands/ListBackupVaultsCommand.ts @@ -29,6 +29,7 @@ export class ListBackupVaultsCommand extends $Command< ListBackupVaultsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBackupVaultsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListCopyJobsCommand.ts b/clients/client-backup/commands/ListCopyJobsCommand.ts index aea4d1ec0b0aa..caf40a47c702d 100644 --- a/clients/client-backup/commands/ListCopyJobsCommand.ts +++ b/clients/client-backup/commands/ListCopyJobsCommand.ts @@ -28,6 +28,7 @@ export class ListCopyJobsCommand extends $Command< ListCopyJobsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCopyJobsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListProtectedResourcesCommand.ts b/clients/client-backup/commands/ListProtectedResourcesCommand.ts index e61c5a03517cb..9a3789d48fb83 100644 --- a/clients/client-backup/commands/ListProtectedResourcesCommand.ts +++ b/clients/client-backup/commands/ListProtectedResourcesCommand.ts @@ -30,6 +30,7 @@ export class ListProtectedResourcesCommand extends $Command< ListProtectedResourcesCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListProtectedResourcesCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListRecoveryPointsByBackupVaultCommand.ts b/clients/client-backup/commands/ListRecoveryPointsByBackupVaultCommand.ts index 7823c780fe947..9d299154d212f 100644 --- a/clients/client-backup/commands/ListRecoveryPointsByBackupVaultCommand.ts +++ b/clients/client-backup/commands/ListRecoveryPointsByBackupVaultCommand.ts @@ -28,6 +28,7 @@ export class ListRecoveryPointsByBackupVaultCommand extends $Command< ListRecoveryPointsByBackupVaultCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRecoveryPointsByBackupVaultCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListRecoveryPointsByResourceCommand.ts b/clients/client-backup/commands/ListRecoveryPointsByResourceCommand.ts index 018aef8c1d618..74f5dc555b08c 100644 --- a/clients/client-backup/commands/ListRecoveryPointsByResourceCommand.ts +++ b/clients/client-backup/commands/ListRecoveryPointsByResourceCommand.ts @@ -29,6 +29,7 @@ export class ListRecoveryPointsByResourceCommand extends $Command< ListRecoveryPointsByResourceCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRecoveryPointsByResourceCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListRestoreJobsCommand.ts b/clients/client-backup/commands/ListRestoreJobsCommand.ts index 0d716938f26eb..ab0c07d3a3428 100644 --- a/clients/client-backup/commands/ListRestoreJobsCommand.ts +++ b/clients/client-backup/commands/ListRestoreJobsCommand.ts @@ -29,6 +29,7 @@ export class ListRestoreJobsCommand extends $Command< ListRestoreJobsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRestoreJobsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/ListTagsCommand.ts b/clients/client-backup/commands/ListTagsCommand.ts index ed72203856272..bcc583c6aba6b 100644 --- a/clients/client-backup/commands/ListTagsCommand.ts +++ b/clients/client-backup/commands/ListTagsCommand.ts @@ -29,6 +29,7 @@ export type ListTagsCommandOutput = ListTagsOutput & __MetadataBearer; * */ export class ListTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,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-backup/commands/PutBackupVaultAccessPolicyCommand.ts b/clients/client-backup/commands/PutBackupVaultAccessPolicyCommand.ts index 45f27dfb52673..af256563f6542 100644 --- a/clients/client-backup/commands/PutBackupVaultAccessPolicyCommand.ts +++ b/clients/client-backup/commands/PutBackupVaultAccessPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutBackupVaultAccessPolicyCommand extends $Command< PutBackupVaultAccessPolicyCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutBackupVaultAccessPolicyCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/PutBackupVaultNotificationsCommand.ts b/clients/client-backup/commands/PutBackupVaultNotificationsCommand.ts index 9e4f5618aedac..3b94e892b6f8f 100644 --- a/clients/client-backup/commands/PutBackupVaultNotificationsCommand.ts +++ b/clients/client-backup/commands/PutBackupVaultNotificationsCommand.ts @@ -28,6 +28,7 @@ export class PutBackupVaultNotificationsCommand extends $Command< PutBackupVaultNotificationsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutBackupVaultNotificationsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/StartBackupJobCommand.ts b/clients/client-backup/commands/StartBackupJobCommand.ts index ffa8977268822..15ac4486ca28c 100644 --- a/clients/client-backup/commands/StartBackupJobCommand.ts +++ b/clients/client-backup/commands/StartBackupJobCommand.ts @@ -28,6 +28,7 @@ export class StartBackupJobCommand extends $Command< StartBackupJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartBackupJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/StartCopyJobCommand.ts b/clients/client-backup/commands/StartCopyJobCommand.ts index 9b0f89a7ef535..88bcccd6dd089 100644 --- a/clients/client-backup/commands/StartCopyJobCommand.ts +++ b/clients/client-backup/commands/StartCopyJobCommand.ts @@ -28,6 +28,7 @@ export class StartCopyJobCommand extends $Command< StartCopyJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartCopyJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/StartRestoreJobCommand.ts b/clients/client-backup/commands/StartRestoreJobCommand.ts index fc52274bb573e..cc1c403ee8bf6 100644 --- a/clients/client-backup/commands/StartRestoreJobCommand.ts +++ b/clients/client-backup/commands/StartRestoreJobCommand.ts @@ -28,6 +28,7 @@ export class StartRestoreJobCommand extends $Command< StartRestoreJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartRestoreJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/StopBackupJobCommand.ts b/clients/client-backup/commands/StopBackupJobCommand.ts index 47394314557e9..81e6cd6c6768f 100644 --- a/clients/client-backup/commands/StopBackupJobCommand.ts +++ b/clients/client-backup/commands/StopBackupJobCommand.ts @@ -28,6 +28,7 @@ export class StopBackupJobCommand extends $Command< StopBackupJobCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopBackupJobCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/TagResourceCommand.ts b/clients/client-backup/commands/TagResourceCommand.ts index e0c1240ef8ebf..30e739d8de962 100644 --- a/clients/client-backup/commands/TagResourceCommand.ts +++ b/clients/client-backup/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/UntagResourceCommand.ts b/clients/client-backup/commands/UntagResourceCommand.ts index 82bd505ad8dc4..b3fa2fd76fe6e 100644 --- a/clients/client-backup/commands/UntagResourceCommand.ts +++ b/clients/client-backup/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/UpdateBackupPlanCommand.ts b/clients/client-backup/commands/UpdateBackupPlanCommand.ts index f38329482c87f..e109dc1675888 100644 --- a/clients/client-backup/commands/UpdateBackupPlanCommand.ts +++ b/clients/client-backup/commands/UpdateBackupPlanCommand.ts @@ -30,6 +30,7 @@ export class UpdateBackupPlanCommand extends $Command< UpdateBackupPlanCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateBackupPlanCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/UpdateGlobalSettingsCommand.ts b/clients/client-backup/commands/UpdateGlobalSettingsCommand.ts index 1bd5a79269539..a144a246c9c13 100644 --- a/clients/client-backup/commands/UpdateGlobalSettingsCommand.ts +++ b/clients/client-backup/commands/UpdateGlobalSettingsCommand.ts @@ -29,6 +29,7 @@ export class UpdateGlobalSettingsCommand extends $Command< UpdateGlobalSettingsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateGlobalSettingsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/UpdateRecoveryPointLifecycleCommand.ts b/clients/client-backup/commands/UpdateRecoveryPointLifecycleCommand.ts index 5a302a4a18d23..de72165cca57f 100644 --- a/clients/client-backup/commands/UpdateRecoveryPointLifecycleCommand.ts +++ b/clients/client-backup/commands/UpdateRecoveryPointLifecycleCommand.ts @@ -35,6 +35,7 @@ export class UpdateRecoveryPointLifecycleCommand extends $Command< UpdateRecoveryPointLifecycleCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateRecoveryPointLifecycleCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-backup/commands/UpdateRegionSettingsCommand.ts b/clients/client-backup/commands/UpdateRegionSettingsCommand.ts index 61f68a8ca286c..927fe6e873d8b 100644 --- a/clients/client-backup/commands/UpdateRegionSettingsCommand.ts +++ b/clients/client-backup/commands/UpdateRegionSettingsCommand.ts @@ -31,6 +31,7 @@ export class UpdateRegionSettingsCommand extends $Command< UpdateRegionSettingsCommandOutput, BackupClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateRegionSettingsCommand extends $Command< configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/CancelJobCommand.ts b/clients/client-batch/commands/CancelJobCommand.ts index 33bac7878c42f..f1713f5d231da 100644 --- a/clients/client-batch/commands/CancelJobCommand.ts +++ b/clients/client-batch/commands/CancelJobCommand.ts @@ -31,6 +31,7 @@ export class CancelJobCommand extends $Command< CancelJobCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelJobCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/CreateComputeEnvironmentCommand.ts b/clients/client-batch/commands/CreateComputeEnvironmentCommand.ts index 17cdcfcc0a6b7..f131c80248258 100644 --- a/clients/client-batch/commands/CreateComputeEnvironmentCommand.ts +++ b/clients/client-batch/commands/CreateComputeEnvironmentCommand.ts @@ -67,6 +67,7 @@ export class CreateComputeEnvironmentCommand extends $Command< CreateComputeEnvironmentCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class CreateComputeEnvironmentCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/CreateJobQueueCommand.ts b/clients/client-batch/commands/CreateJobQueueCommand.ts index b65acf9ec6dd8..60bbb5b1b0db1 100644 --- a/clients/client-batch/commands/CreateJobQueueCommand.ts +++ b/clients/client-batch/commands/CreateJobQueueCommand.ts @@ -33,6 +33,7 @@ export class CreateJobQueueCommand extends $Command< CreateJobQueueCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateJobQueueCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DeleteComputeEnvironmentCommand.ts b/clients/client-batch/commands/DeleteComputeEnvironmentCommand.ts index a0998e32da5a3..2ca3188b2a717 100644 --- a/clients/client-batch/commands/DeleteComputeEnvironmentCommand.ts +++ b/clients/client-batch/commands/DeleteComputeEnvironmentCommand.ts @@ -31,6 +31,7 @@ export class DeleteComputeEnvironmentCommand extends $Command< DeleteComputeEnvironmentCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteComputeEnvironmentCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DeleteJobQueueCommand.ts b/clients/client-batch/commands/DeleteJobQueueCommand.ts index e34775e97994b..85a72bd735c5b 100644 --- a/clients/client-batch/commands/DeleteJobQueueCommand.ts +++ b/clients/client-batch/commands/DeleteJobQueueCommand.ts @@ -30,6 +30,7 @@ export class DeleteJobQueueCommand extends $Command< DeleteJobQueueCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteJobQueueCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DeregisterJobDefinitionCommand.ts b/clients/client-batch/commands/DeregisterJobDefinitionCommand.ts index 2e808d1ab49bf..8a8a817f66bd7 100644 --- a/clients/client-batch/commands/DeregisterJobDefinitionCommand.ts +++ b/clients/client-batch/commands/DeregisterJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeregisterJobDefinitionCommand extends $Command< DeregisterJobDefinitionCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterJobDefinitionCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DescribeComputeEnvironmentsCommand.ts b/clients/client-batch/commands/DescribeComputeEnvironmentsCommand.ts index 0ae3b5bd7928d..f6c2ed97884ee 100644 --- a/clients/client-batch/commands/DescribeComputeEnvironmentsCommand.ts +++ b/clients/client-batch/commands/DescribeComputeEnvironmentsCommand.ts @@ -31,6 +31,7 @@ export class DescribeComputeEnvironmentsCommand extends $Command< DescribeComputeEnvironmentsCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeComputeEnvironmentsCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DescribeJobDefinitionsCommand.ts b/clients/client-batch/commands/DescribeJobDefinitionsCommand.ts index 91e44f78c4f3b..b8968a8d64e31 100644 --- a/clients/client-batch/commands/DescribeJobDefinitionsCommand.ts +++ b/clients/client-batch/commands/DescribeJobDefinitionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeJobDefinitionsCommand extends $Command< DescribeJobDefinitionsCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeJobDefinitionsCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DescribeJobQueuesCommand.ts b/clients/client-batch/commands/DescribeJobQueuesCommand.ts index a3a4f471fe2d4..27bc3d32edec0 100644 --- a/clients/client-batch/commands/DescribeJobQueuesCommand.ts +++ b/clients/client-batch/commands/DescribeJobQueuesCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobQueuesCommand extends $Command< DescribeJobQueuesCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobQueuesCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/DescribeJobsCommand.ts b/clients/client-batch/commands/DescribeJobsCommand.ts index eb3ccbb98ecf5..ddc013af95056 100644 --- a/clients/client-batch/commands/DescribeJobsCommand.ts +++ b/clients/client-batch/commands/DescribeJobsCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobsCommand extends $Command< DescribeJobsCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobsCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/ListJobsCommand.ts b/clients/client-batch/commands/ListJobsCommand.ts index 96d83a8d36a36..711e3e6dbcf57 100644 --- a/clients/client-batch/commands/ListJobsCommand.ts +++ b/clients/client-batch/commands/ListJobsCommand.ts @@ -38,6 +38,7 @@ export type ListJobsCommandOutput = ListJobsResponse & __MetadataBearer; * status, only RUNNING jobs are returned.

*/ export class ListJobsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListJobsCommand 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-batch/commands/ListTagsForResourceCommand.ts b/clients/client-batch/commands/ListTagsForResourceCommand.ts index 673539582b3ba..61c81ee765173 100644 --- a/clients/client-batch/commands/ListTagsForResourceCommand.ts +++ b/clients/client-batch/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/RegisterJobDefinitionCommand.ts b/clients/client-batch/commands/RegisterJobDefinitionCommand.ts index 90631b42cce12..8c5be346bc3fd 100644 --- a/clients/client-batch/commands/RegisterJobDefinitionCommand.ts +++ b/clients/client-batch/commands/RegisterJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class RegisterJobDefinitionCommand extends $Command< RegisterJobDefinitionCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterJobDefinitionCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/SubmitJobCommand.ts b/clients/client-batch/commands/SubmitJobCommand.ts index ca02312c882c4..d318e784b689c 100644 --- a/clients/client-batch/commands/SubmitJobCommand.ts +++ b/clients/client-batch/commands/SubmitJobCommand.ts @@ -35,6 +35,7 @@ export class SubmitJobCommand extends $Command< SubmitJobCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SubmitJobCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/TagResourceCommand.ts b/clients/client-batch/commands/TagResourceCommand.ts index c2e699819b0a9..afaf0dac663f0 100644 --- a/clients/client-batch/commands/TagResourceCommand.ts +++ b/clients/client-batch/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/TerminateJobCommand.ts b/clients/client-batch/commands/TerminateJobCommand.ts index dc1fe9acf71ee..52b142036adaa 100644 --- a/clients/client-batch/commands/TerminateJobCommand.ts +++ b/clients/client-batch/commands/TerminateJobCommand.ts @@ -30,6 +30,7 @@ export class TerminateJobCommand extends $Command< TerminateJobCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TerminateJobCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/UntagResourceCommand.ts b/clients/client-batch/commands/UntagResourceCommand.ts index ccd3070420e92..29231238fb182 100644 --- a/clients/client-batch/commands/UntagResourceCommand.ts +++ b/clients/client-batch/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/UpdateComputeEnvironmentCommand.ts b/clients/client-batch/commands/UpdateComputeEnvironmentCommand.ts index 5beaca197c6c4..765439e13ede8 100644 --- a/clients/client-batch/commands/UpdateComputeEnvironmentCommand.ts +++ b/clients/client-batch/commands/UpdateComputeEnvironmentCommand.ts @@ -28,6 +28,7 @@ export class UpdateComputeEnvironmentCommand extends $Command< UpdateComputeEnvironmentCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateComputeEnvironmentCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-batch/commands/UpdateJobQueueCommand.ts b/clients/client-batch/commands/UpdateJobQueueCommand.ts index 9afdc7220122c..4eb1048a1630d 100644 --- a/clients/client-batch/commands/UpdateJobQueueCommand.ts +++ b/clients/client-batch/commands/UpdateJobQueueCommand.ts @@ -28,6 +28,7 @@ export class UpdateJobQueueCommand extends $Command< UpdateJobQueueCommandOutput, BatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJobQueueCommand extends $Command< configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/CancelQuantumTaskCommand.ts b/clients/client-braket/commands/CancelQuantumTaskCommand.ts index b4b6e41d16c70..dfac665bf93a9 100644 --- a/clients/client-braket/commands/CancelQuantumTaskCommand.ts +++ b/clients/client-braket/commands/CancelQuantumTaskCommand.ts @@ -28,6 +28,7 @@ export class CancelQuantumTaskCommand extends $Command< CancelQuantumTaskCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelQuantumTaskCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/CreateQuantumTaskCommand.ts b/clients/client-braket/commands/CreateQuantumTaskCommand.ts index 725b13c161352..46c7678dcf870 100644 --- a/clients/client-braket/commands/CreateQuantumTaskCommand.ts +++ b/clients/client-braket/commands/CreateQuantumTaskCommand.ts @@ -28,6 +28,7 @@ export class CreateQuantumTaskCommand extends $Command< CreateQuantumTaskCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateQuantumTaskCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/GetDeviceCommand.ts b/clients/client-braket/commands/GetDeviceCommand.ts index 806805720aa26..505b9a4166a5e 100644 --- a/clients/client-braket/commands/GetDeviceCommand.ts +++ b/clients/client-braket/commands/GetDeviceCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceCommand extends $Command< GetDeviceCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/GetQuantumTaskCommand.ts b/clients/client-braket/commands/GetQuantumTaskCommand.ts index 9c3782eed3efc..5ae7897872c22 100644 --- a/clients/client-braket/commands/GetQuantumTaskCommand.ts +++ b/clients/client-braket/commands/GetQuantumTaskCommand.ts @@ -28,6 +28,7 @@ export class GetQuantumTaskCommand extends $Command< GetQuantumTaskCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetQuantumTaskCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/SearchDevicesCommand.ts b/clients/client-braket/commands/SearchDevicesCommand.ts index ea3a5a107212b..1e279b4e20f99 100644 --- a/clients/client-braket/commands/SearchDevicesCommand.ts +++ b/clients/client-braket/commands/SearchDevicesCommand.ts @@ -28,6 +28,7 @@ export class SearchDevicesCommand extends $Command< SearchDevicesCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchDevicesCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-braket/commands/SearchQuantumTasksCommand.ts b/clients/client-braket/commands/SearchQuantumTasksCommand.ts index 338f5ba4dbeda..67c149f592f09 100644 --- a/clients/client-braket/commands/SearchQuantumTasksCommand.ts +++ b/clients/client-braket/commands/SearchQuantumTasksCommand.ts @@ -28,6 +28,7 @@ export class SearchQuantumTasksCommand extends $Command< SearchQuantumTasksCommandOutput, BraketClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchQuantumTasksCommand extends $Command< configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/CreateBudgetActionCommand.ts b/clients/client-budgets/commands/CreateBudgetActionCommand.ts index cfde8c7aa52ec..198f61564d36c 100644 --- a/clients/client-budgets/commands/CreateBudgetActionCommand.ts +++ b/clients/client-budgets/commands/CreateBudgetActionCommand.ts @@ -30,6 +30,7 @@ export class CreateBudgetActionCommand extends $Command< CreateBudgetActionCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateBudgetActionCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/CreateBudgetCommand.ts b/clients/client-budgets/commands/CreateBudgetCommand.ts index 3a9faff8082e9..4d355780173aa 100644 --- a/clients/client-budgets/commands/CreateBudgetCommand.ts +++ b/clients/client-budgets/commands/CreateBudgetCommand.ts @@ -31,6 +31,7 @@ export class CreateBudgetCommand extends $Command< CreateBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/CreateNotificationCommand.ts b/clients/client-budgets/commands/CreateNotificationCommand.ts index 6334efac3dc4f..69327d24afdad 100644 --- a/clients/client-budgets/commands/CreateNotificationCommand.ts +++ b/clients/client-budgets/commands/CreateNotificationCommand.ts @@ -28,6 +28,7 @@ export class CreateNotificationCommand extends $Command< CreateNotificationCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateNotificationCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/CreateSubscriberCommand.ts b/clients/client-budgets/commands/CreateSubscriberCommand.ts index c6af8238ce814..fb9efe2142ff1 100644 --- a/clients/client-budgets/commands/CreateSubscriberCommand.ts +++ b/clients/client-budgets/commands/CreateSubscriberCommand.ts @@ -28,6 +28,7 @@ export class CreateSubscriberCommand extends $Command< CreateSubscriberCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSubscriberCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DeleteBudgetActionCommand.ts b/clients/client-budgets/commands/DeleteBudgetActionCommand.ts index 4ad7265691b5e..8f426a56dc770 100644 --- a/clients/client-budgets/commands/DeleteBudgetActionCommand.ts +++ b/clients/client-budgets/commands/DeleteBudgetActionCommand.ts @@ -30,6 +30,7 @@ export class DeleteBudgetActionCommand extends $Command< DeleteBudgetActionCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteBudgetActionCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DeleteBudgetCommand.ts b/clients/client-budgets/commands/DeleteBudgetCommand.ts index adc48086947a0..1122ceb041493 100644 --- a/clients/client-budgets/commands/DeleteBudgetCommand.ts +++ b/clients/client-budgets/commands/DeleteBudgetCommand.ts @@ -31,6 +31,7 @@ export class DeleteBudgetCommand extends $Command< DeleteBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DeleteNotificationCommand.ts b/clients/client-budgets/commands/DeleteNotificationCommand.ts index d0240ad09a486..521aaf90f44c1 100644 --- a/clients/client-budgets/commands/DeleteNotificationCommand.ts +++ b/clients/client-budgets/commands/DeleteNotificationCommand.ts @@ -31,6 +31,7 @@ export class DeleteNotificationCommand extends $Command< DeleteNotificationCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteNotificationCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DeleteSubscriberCommand.ts b/clients/client-budgets/commands/DeleteSubscriberCommand.ts index e14fae5694b37..fd3e4aee3e6d1 100644 --- a/clients/client-budgets/commands/DeleteSubscriberCommand.ts +++ b/clients/client-budgets/commands/DeleteSubscriberCommand.ts @@ -31,6 +31,7 @@ export class DeleteSubscriberCommand extends $Command< DeleteSubscriberCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteSubscriberCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetActionCommand.ts b/clients/client-budgets/commands/DescribeBudgetActionCommand.ts index 16662f7b7447c..d52e663dfe44b 100644 --- a/clients/client-budgets/commands/DescribeBudgetActionCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetActionCommand.ts @@ -30,6 +30,7 @@ export class DescribeBudgetActionCommand extends $Command< DescribeBudgetActionCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBudgetActionCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetActionHistoriesCommand.ts b/clients/client-budgets/commands/DescribeBudgetActionHistoriesCommand.ts index 864fb3e7c4014..0629f451ca075 100644 --- a/clients/client-budgets/commands/DescribeBudgetActionHistoriesCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetActionHistoriesCommand.ts @@ -30,6 +30,7 @@ export class DescribeBudgetActionHistoriesCommand extends $Command< DescribeBudgetActionHistoriesCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBudgetActionHistoriesCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetActionsForAccountCommand.ts b/clients/client-budgets/commands/DescribeBudgetActionsForAccountCommand.ts index 6a1de3b96b3d8..539b8d8f56870 100644 --- a/clients/client-budgets/commands/DescribeBudgetActionsForAccountCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetActionsForAccountCommand.ts @@ -30,6 +30,7 @@ export class DescribeBudgetActionsForAccountCommand extends $Command< DescribeBudgetActionsForAccountCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBudgetActionsForAccountCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetActionsForBudgetCommand.ts b/clients/client-budgets/commands/DescribeBudgetActionsForBudgetCommand.ts index c951de61ac6ac..66d5389ddeafa 100644 --- a/clients/client-budgets/commands/DescribeBudgetActionsForBudgetCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetActionsForBudgetCommand.ts @@ -30,6 +30,7 @@ export class DescribeBudgetActionsForBudgetCommand extends $Command< DescribeBudgetActionsForBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBudgetActionsForBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetCommand.ts b/clients/client-budgets/commands/DescribeBudgetCommand.ts index a7d9a488419e1..dedb1b4beaa12 100644 --- a/clients/client-budgets/commands/DescribeBudgetCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetCommand.ts @@ -31,6 +31,7 @@ export class DescribeBudgetCommand extends $Command< DescribeBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetPerformanceHistoryCommand.ts b/clients/client-budgets/commands/DescribeBudgetPerformanceHistoryCommand.ts index 59b8cfc4db1b6..470b94d62d8d4 100644 --- a/clients/client-budgets/commands/DescribeBudgetPerformanceHistoryCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetPerformanceHistoryCommand.ts @@ -28,6 +28,7 @@ export class DescribeBudgetPerformanceHistoryCommand extends $Command< DescribeBudgetPerformanceHistoryCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBudgetPerformanceHistoryCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeBudgetsCommand.ts b/clients/client-budgets/commands/DescribeBudgetsCommand.ts index f8bb214a22697..ae30ecb201086 100644 --- a/clients/client-budgets/commands/DescribeBudgetsCommand.ts +++ b/clients/client-budgets/commands/DescribeBudgetsCommand.ts @@ -31,6 +31,7 @@ export class DescribeBudgetsCommand extends $Command< DescribeBudgetsCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeBudgetsCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeNotificationsForBudgetCommand.ts b/clients/client-budgets/commands/DescribeNotificationsForBudgetCommand.ts index 0e08c15b4833f..4e97841f97c9b 100644 --- a/clients/client-budgets/commands/DescribeNotificationsForBudgetCommand.ts +++ b/clients/client-budgets/commands/DescribeNotificationsForBudgetCommand.ts @@ -28,6 +28,7 @@ export class DescribeNotificationsForBudgetCommand extends $Command< DescribeNotificationsForBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNotificationsForBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/DescribeSubscribersForNotificationCommand.ts b/clients/client-budgets/commands/DescribeSubscribersForNotificationCommand.ts index 5b1eda28506c2..6a75c8230afeb 100644 --- a/clients/client-budgets/commands/DescribeSubscribersForNotificationCommand.ts +++ b/clients/client-budgets/commands/DescribeSubscribersForNotificationCommand.ts @@ -32,6 +32,7 @@ export class DescribeSubscribersForNotificationCommand extends $Command< DescribeSubscribersForNotificationCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeSubscribersForNotificationCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/ExecuteBudgetActionCommand.ts b/clients/client-budgets/commands/ExecuteBudgetActionCommand.ts index 687791f24a999..d6abb63f991b4 100644 --- a/clients/client-budgets/commands/ExecuteBudgetActionCommand.ts +++ b/clients/client-budgets/commands/ExecuteBudgetActionCommand.ts @@ -30,6 +30,7 @@ export class ExecuteBudgetActionCommand extends $Command< ExecuteBudgetActionCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ExecuteBudgetActionCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/UpdateBudgetActionCommand.ts b/clients/client-budgets/commands/UpdateBudgetActionCommand.ts index a134e00e135f6..5f3f13bf7a289 100644 --- a/clients/client-budgets/commands/UpdateBudgetActionCommand.ts +++ b/clients/client-budgets/commands/UpdateBudgetActionCommand.ts @@ -30,6 +30,7 @@ export class UpdateBudgetActionCommand extends $Command< UpdateBudgetActionCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateBudgetActionCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/UpdateBudgetCommand.ts b/clients/client-budgets/commands/UpdateBudgetCommand.ts index 2b4a56dbd5478..96f4a351c5ff5 100644 --- a/clients/client-budgets/commands/UpdateBudgetCommand.ts +++ b/clients/client-budgets/commands/UpdateBudgetCommand.ts @@ -31,6 +31,7 @@ export class UpdateBudgetCommand extends $Command< UpdateBudgetCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateBudgetCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/UpdateNotificationCommand.ts b/clients/client-budgets/commands/UpdateNotificationCommand.ts index 8136fc7fe61f8..867f1d478bbdc 100644 --- a/clients/client-budgets/commands/UpdateNotificationCommand.ts +++ b/clients/client-budgets/commands/UpdateNotificationCommand.ts @@ -28,6 +28,7 @@ export class UpdateNotificationCommand extends $Command< UpdateNotificationCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateNotificationCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-budgets/commands/UpdateSubscriberCommand.ts b/clients/client-budgets/commands/UpdateSubscriberCommand.ts index b876b87d6dab4..94dd08951816d 100644 --- a/clients/client-budgets/commands/UpdateSubscriberCommand.ts +++ b/clients/client-budgets/commands/UpdateSubscriberCommand.ts @@ -28,6 +28,7 @@ export class UpdateSubscriberCommand extends $Command< UpdateSubscriberCommandOutput, BudgetsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSubscriberCommand extends $Command< configuration: BudgetsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/AssociatePhoneNumberWithUserCommand.ts b/clients/client-chime/commands/AssociatePhoneNumberWithUserCommand.ts index 3041577ba1aec..ad3ff74d3aaad 100644 --- a/clients/client-chime/commands/AssociatePhoneNumberWithUserCommand.ts +++ b/clients/client-chime/commands/AssociatePhoneNumberWithUserCommand.ts @@ -28,6 +28,7 @@ export class AssociatePhoneNumberWithUserCommand extends $Command< AssociatePhoneNumberWithUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociatePhoneNumberWithUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorCommand.ts b/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorCommand.ts index 0f9bbe87dc453..9f52ef75e4911 100644 --- a/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorCommand.ts @@ -32,6 +32,7 @@ export class AssociatePhoneNumbersWithVoiceConnectorCommand extends $Command< AssociatePhoneNumbersWithVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociatePhoneNumbersWithVoiceConnectorCommand extends $Command< AssociatePhoneNumbersWithVoiceConnectorCommandInput, AssociatePhoneNumbersWithVoiceConnectorCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand.ts index 694b5d303ad07..c8564ed61ba4a 100644 --- a/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand.ts @@ -32,6 +32,7 @@ export class AssociatePhoneNumbersWithVoiceConnectorGroupCommand extends $Comman AssociatePhoneNumbersWithVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociatePhoneNumbersWithVoiceConnectorGroupCommand extends $Comman AssociatePhoneNumbersWithVoiceConnectorGroupCommandInput, AssociatePhoneNumbersWithVoiceConnectorGroupCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/AssociateSigninDelegateGroupsWithAccountCommand.ts b/clients/client-chime/commands/AssociateSigninDelegateGroupsWithAccountCommand.ts index 8a206b18941e6..919cd06671926 100644 --- a/clients/client-chime/commands/AssociateSigninDelegateGroupsWithAccountCommand.ts +++ b/clients/client-chime/commands/AssociateSigninDelegateGroupsWithAccountCommand.ts @@ -32,6 +32,7 @@ export class AssociateSigninDelegateGroupsWithAccountCommand extends $Command< AssociateSigninDelegateGroupsWithAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociateSigninDelegateGroupsWithAccountCommand extends $Command< AssociateSigninDelegateGroupsWithAccountCommandInput, AssociateSigninDelegateGroupsWithAccountCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchCreateAttendeeCommand.ts b/clients/client-chime/commands/BatchCreateAttendeeCommand.ts index 03efe818bc92b..480e252dabe95 100644 --- a/clients/client-chime/commands/BatchCreateAttendeeCommand.ts +++ b/clients/client-chime/commands/BatchCreateAttendeeCommand.ts @@ -28,6 +28,7 @@ export class BatchCreateAttendeeCommand extends $Command< BatchCreateAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchCreateAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchCreateRoomMembershipCommand.ts b/clients/client-chime/commands/BatchCreateRoomMembershipCommand.ts index c2769b255e615..d6cf32e1bdfd4 100644 --- a/clients/client-chime/commands/BatchCreateRoomMembershipCommand.ts +++ b/clients/client-chime/commands/BatchCreateRoomMembershipCommand.ts @@ -28,6 +28,7 @@ export class BatchCreateRoomMembershipCommand extends $Command< BatchCreateRoomMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchCreateRoomMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchDeletePhoneNumberCommand.ts b/clients/client-chime/commands/BatchDeletePhoneNumberCommand.ts index d35a4c37d203f..76f02082a32f2 100644 --- a/clients/client-chime/commands/BatchDeletePhoneNumberCommand.ts +++ b/clients/client-chime/commands/BatchDeletePhoneNumberCommand.ts @@ -32,6 +32,7 @@ export class BatchDeletePhoneNumberCommand extends $Command< BatchDeletePhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class BatchDeletePhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchSuspendUserCommand.ts b/clients/client-chime/commands/BatchSuspendUserCommand.ts index 9e37ed7a055c7..00b85a7d27454 100644 --- a/clients/client-chime/commands/BatchSuspendUserCommand.ts +++ b/clients/client-chime/commands/BatchSuspendUserCommand.ts @@ -42,6 +42,7 @@ export class BatchSuspendUserCommand extends $Command< BatchSuspendUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class BatchSuspendUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchUnsuspendUserCommand.ts b/clients/client-chime/commands/BatchUnsuspendUserCommand.ts index f9d0d75bc10a0..3d0b90d56889b 100644 --- a/clients/client-chime/commands/BatchUnsuspendUserCommand.ts +++ b/clients/client-chime/commands/BatchUnsuspendUserCommand.ts @@ -34,6 +34,7 @@ export class BatchUnsuspendUserCommand extends $Command< BatchUnsuspendUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchUnsuspendUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchUpdatePhoneNumberCommand.ts b/clients/client-chime/commands/BatchUpdatePhoneNumberCommand.ts index 9c8b6c60d0d6f..3ab14d0b84906 100644 --- a/clients/client-chime/commands/BatchUpdatePhoneNumberCommand.ts +++ b/clients/client-chime/commands/BatchUpdatePhoneNumberCommand.ts @@ -32,6 +32,7 @@ export class BatchUpdatePhoneNumberCommand extends $Command< BatchUpdatePhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class BatchUpdatePhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/BatchUpdateUserCommand.ts b/clients/client-chime/commands/BatchUpdateUserCommand.ts index 35481d8e31d02..b46af5f8423a9 100644 --- a/clients/client-chime/commands/BatchUpdateUserCommand.ts +++ b/clients/client-chime/commands/BatchUpdateUserCommand.ts @@ -29,6 +29,7 @@ export class BatchUpdateUserCommand extends $Command< BatchUpdateUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BatchUpdateUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateAccountCommand.ts b/clients/client-chime/commands/CreateAccountCommand.ts index 5b6d538c486fb..c6f903758f37d 100644 --- a/clients/client-chime/commands/CreateAccountCommand.ts +++ b/clients/client-chime/commands/CreateAccountCommand.ts @@ -32,6 +32,7 @@ export class CreateAccountCommand extends $Command< CreateAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateAccountCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateAppInstanceAdminCommand.ts b/clients/client-chime/commands/CreateAppInstanceAdminCommand.ts index 44f3d1b3cc4e6..23dc1efd7f484 100644 --- a/clients/client-chime/commands/CreateAppInstanceAdminCommand.ts +++ b/clients/client-chime/commands/CreateAppInstanceAdminCommand.ts @@ -39,6 +39,7 @@ export class CreateAppInstanceAdminCommand extends $Command< CreateAppInstanceAdminCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateAppInstanceAdminCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateAppInstanceCommand.ts b/clients/client-chime/commands/CreateAppInstanceCommand.ts index b6171235485d1..3db9920d85d5d 100644 --- a/clients/client-chime/commands/CreateAppInstanceCommand.ts +++ b/clients/client-chime/commands/CreateAppInstanceCommand.ts @@ -29,6 +29,7 @@ export class CreateAppInstanceCommand extends $Command< CreateAppInstanceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAppInstanceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateAppInstanceUserCommand.ts b/clients/client-chime/commands/CreateAppInstanceUserCommand.ts index f96877d0c1abd..fe46d076940c2 100644 --- a/clients/client-chime/commands/CreateAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/CreateAppInstanceUserCommand.ts @@ -29,6 +29,7 @@ export class CreateAppInstanceUserCommand extends $Command< CreateAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAppInstanceUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateAttendeeCommand.ts b/clients/client-chime/commands/CreateAttendeeCommand.ts index c7558d3f86fda..c681d0e2366d2 100644 --- a/clients/client-chime/commands/CreateAttendeeCommand.ts +++ b/clients/client-chime/commands/CreateAttendeeCommand.ts @@ -28,6 +28,7 @@ export class CreateAttendeeCommand extends $Command< CreateAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateBotCommand.ts b/clients/client-chime/commands/CreateBotCommand.ts index 1722474da26fe..a817e528156f2 100644 --- a/clients/client-chime/commands/CreateBotCommand.ts +++ b/clients/client-chime/commands/CreateBotCommand.ts @@ -28,6 +28,7 @@ export class CreateBotCommand extends $Command< CreateBotCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateBotCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateChannelBanCommand.ts b/clients/client-chime/commands/CreateChannelBanCommand.ts index 5b73e109820f6..c926230384c69 100644 --- a/clients/client-chime/commands/CreateChannelBanCommand.ts +++ b/clients/client-chime/commands/CreateChannelBanCommand.ts @@ -32,6 +32,7 @@ export class CreateChannelBanCommand extends $Command< CreateChannelBanCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateChannelBanCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateChannelCommand.ts b/clients/client-chime/commands/CreateChannelCommand.ts index cfd7c3409eff9..f14260b4261d8 100644 --- a/clients/client-chime/commands/CreateChannelCommand.ts +++ b/clients/client-chime/commands/CreateChannelCommand.ts @@ -30,6 +30,7 @@ export class CreateChannelCommand extends $Command< CreateChannelCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateChannelCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateChannelMembershipCommand.ts b/clients/client-chime/commands/CreateChannelMembershipCommand.ts index 833b6e45e80fd..30661a1252ff1 100644 --- a/clients/client-chime/commands/CreateChannelMembershipCommand.ts +++ b/clients/client-chime/commands/CreateChannelMembershipCommand.ts @@ -55,6 +55,7 @@ export class CreateChannelMembershipCommand extends $Command< CreateChannelMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateChannelMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateChannelModeratorCommand.ts b/clients/client-chime/commands/CreateChannelModeratorCommand.ts index b244afda36f41..28b727acc7bf4 100644 --- a/clients/client-chime/commands/CreateChannelModeratorCommand.ts +++ b/clients/client-chime/commands/CreateChannelModeratorCommand.ts @@ -45,6 +45,7 @@ export class CreateChannelModeratorCommand extends $Command< CreateChannelModeratorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateChannelModeratorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateMeetingCommand.ts b/clients/client-chime/commands/CreateMeetingCommand.ts index f5a812399c144..0917398c02508 100644 --- a/clients/client-chime/commands/CreateMeetingCommand.ts +++ b/clients/client-chime/commands/CreateMeetingCommand.ts @@ -28,6 +28,7 @@ export class CreateMeetingCommand extends $Command< CreateMeetingCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateMeetingCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateMeetingDialOutCommand.ts b/clients/client-chime/commands/CreateMeetingDialOutCommand.ts index f242f395dc4f1..9c28cedac0548 100644 --- a/clients/client-chime/commands/CreateMeetingDialOutCommand.ts +++ b/clients/client-chime/commands/CreateMeetingDialOutCommand.ts @@ -33,6 +33,7 @@ export class CreateMeetingDialOutCommand extends $Command< CreateMeetingDialOutCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateMeetingDialOutCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateMeetingWithAttendeesCommand.ts b/clients/client-chime/commands/CreateMeetingWithAttendeesCommand.ts index 1ebb0d4ce5aff..78ade790606c8 100644 --- a/clients/client-chime/commands/CreateMeetingWithAttendeesCommand.ts +++ b/clients/client-chime/commands/CreateMeetingWithAttendeesCommand.ts @@ -32,6 +32,7 @@ export class CreateMeetingWithAttendeesCommand extends $Command< CreateMeetingWithAttendeesCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateMeetingWithAttendeesCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreatePhoneNumberOrderCommand.ts b/clients/client-chime/commands/CreatePhoneNumberOrderCommand.ts index 8ab0ed4da529f..60bb935b9b8cc 100644 --- a/clients/client-chime/commands/CreatePhoneNumberOrderCommand.ts +++ b/clients/client-chime/commands/CreatePhoneNumberOrderCommand.ts @@ -30,6 +30,7 @@ export class CreatePhoneNumberOrderCommand extends $Command< CreatePhoneNumberOrderCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreatePhoneNumberOrderCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateProxySessionCommand.ts b/clients/client-chime/commands/CreateProxySessionCommand.ts index 61a82c4822304..e35d618ea6604 100644 --- a/clients/client-chime/commands/CreateProxySessionCommand.ts +++ b/clients/client-chime/commands/CreateProxySessionCommand.ts @@ -28,6 +28,7 @@ export class CreateProxySessionCommand extends $Command< CreateProxySessionCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProxySessionCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateRoomCommand.ts b/clients/client-chime/commands/CreateRoomCommand.ts index 27532c69d5bba..579df5f0003e9 100644 --- a/clients/client-chime/commands/CreateRoomCommand.ts +++ b/clients/client-chime/commands/CreateRoomCommand.ts @@ -28,6 +28,7 @@ export class CreateRoomCommand extends $Command< CreateRoomCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRoomCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateRoomMembershipCommand.ts b/clients/client-chime/commands/CreateRoomMembershipCommand.ts index 446f97c850731..07a8d97345f99 100644 --- a/clients/client-chime/commands/CreateRoomMembershipCommand.ts +++ b/clients/client-chime/commands/CreateRoomMembershipCommand.ts @@ -28,6 +28,7 @@ export class CreateRoomMembershipCommand extends $Command< CreateRoomMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRoomMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateSipMediaApplicationCallCommand.ts b/clients/client-chime/commands/CreateSipMediaApplicationCallCommand.ts index 65cb75c1b5ef4..8e08d0132e2b5 100644 --- a/clients/client-chime/commands/CreateSipMediaApplicationCallCommand.ts +++ b/clients/client-chime/commands/CreateSipMediaApplicationCallCommand.ts @@ -29,6 +29,7 @@ export class CreateSipMediaApplicationCallCommand extends $Command< CreateSipMediaApplicationCallCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateSipMediaApplicationCallCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateSipMediaApplicationCommand.ts b/clients/client-chime/commands/CreateSipMediaApplicationCommand.ts index f3678a8554c3c..caa172c25fe50 100644 --- a/clients/client-chime/commands/CreateSipMediaApplicationCommand.ts +++ b/clients/client-chime/commands/CreateSipMediaApplicationCommand.ts @@ -28,6 +28,7 @@ export class CreateSipMediaApplicationCommand extends $Command< CreateSipMediaApplicationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSipMediaApplicationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateSipRuleCommand.ts b/clients/client-chime/commands/CreateSipRuleCommand.ts index 222441ae4dec6..008f30303873e 100644 --- a/clients/client-chime/commands/CreateSipRuleCommand.ts +++ b/clients/client-chime/commands/CreateSipRuleCommand.ts @@ -29,6 +29,7 @@ export class CreateSipRuleCommand extends $Command< CreateSipRuleCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateSipRuleCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateUserCommand.ts b/clients/client-chime/commands/CreateUserCommand.ts index 2bfebd5f668b7..77d3903ee6bba 100644 --- a/clients/client-chime/commands/CreateUserCommand.ts +++ b/clients/client-chime/commands/CreateUserCommand.ts @@ -28,6 +28,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateVoiceConnectorCommand.ts b/clients/client-chime/commands/CreateVoiceConnectorCommand.ts index 179cef9fe8163..3d0cf7d09153c 100644 --- a/clients/client-chime/commands/CreateVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/CreateVoiceConnectorCommand.ts @@ -30,6 +30,7 @@ export class CreateVoiceConnectorCommand extends $Command< CreateVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateVoiceConnectorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/CreateVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/CreateVoiceConnectorGroupCommand.ts index 9cc160121f2af..35f51753cceb6 100644 --- a/clients/client-chime/commands/CreateVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/CreateVoiceConnectorGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateVoiceConnectorGroupCommand extends $Command< CreateVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateVoiceConnectorGroupCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAccountCommand.ts b/clients/client-chime/commands/DeleteAccountCommand.ts index 53a2b12e9d65c..25e06601ecc13 100644 --- a/clients/client-chime/commands/DeleteAccountCommand.ts +++ b/clients/client-chime/commands/DeleteAccountCommand.ts @@ -37,6 +37,7 @@ export class DeleteAccountCommand extends $Command< DeleteAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteAccountCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAppInstanceAdminCommand.ts b/clients/client-chime/commands/DeleteAppInstanceAdminCommand.ts index fdc2e21abf830..5ae8494222615 100644 --- a/clients/client-chime/commands/DeleteAppInstanceAdminCommand.ts +++ b/clients/client-chime/commands/DeleteAppInstanceAdminCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppInstanceAdminCommand extends $Command< DeleteAppInstanceAdminCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppInstanceAdminCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAppInstanceCommand.ts b/clients/client-chime/commands/DeleteAppInstanceCommand.ts index 0acad0407c578..642e61c5485b6 100644 --- a/clients/client-chime/commands/DeleteAppInstanceCommand.ts +++ b/clients/client-chime/commands/DeleteAppInstanceCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppInstanceCommand extends $Command< DeleteAppInstanceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppInstanceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAppInstanceStreamingConfigurationsCommand.ts b/clients/client-chime/commands/DeleteAppInstanceStreamingConfigurationsCommand.ts index b5fcbd64091f5..34f4200415e41 100644 --- a/clients/client-chime/commands/DeleteAppInstanceStreamingConfigurationsCommand.ts +++ b/clients/client-chime/commands/DeleteAppInstanceStreamingConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppInstanceStreamingConfigurationsCommand extends $Command< DeleteAppInstanceStreamingConfigurationsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteAppInstanceStreamingConfigurationsCommand extends $Command< DeleteAppInstanceStreamingConfigurationsCommandInput, DeleteAppInstanceStreamingConfigurationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAppInstanceUserCommand.ts b/clients/client-chime/commands/DeleteAppInstanceUserCommand.ts index 73cd7d0026e17..f8d49a3be5dd8 100644 --- a/clients/client-chime/commands/DeleteAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/DeleteAppInstanceUserCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppInstanceUserCommand extends $Command< DeleteAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppInstanceUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteAttendeeCommand.ts b/clients/client-chime/commands/DeleteAttendeeCommand.ts index e77c7b93f1a46..590de9a91629f 100644 --- a/clients/client-chime/commands/DeleteAttendeeCommand.ts +++ b/clients/client-chime/commands/DeleteAttendeeCommand.ts @@ -28,6 +28,7 @@ export class DeleteAttendeeCommand extends $Command< DeleteAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteChannelBanCommand.ts b/clients/client-chime/commands/DeleteChannelBanCommand.ts index 013166f3bc1f6..64c46ea5a4a6f 100644 --- a/clients/client-chime/commands/DeleteChannelBanCommand.ts +++ b/clients/client-chime/commands/DeleteChannelBanCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelBanCommand extends $Command< DeleteChannelBanCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelBanCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteChannelCommand.ts b/clients/client-chime/commands/DeleteChannelCommand.ts index e39fa9cbf5717..b0ea2f20b10dd 100644 --- a/clients/client-chime/commands/DeleteChannelCommand.ts +++ b/clients/client-chime/commands/DeleteChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelCommand extends $Command< DeleteChannelCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteChannelMembershipCommand.ts b/clients/client-chime/commands/DeleteChannelMembershipCommand.ts index 574310c814910..7a94ffc8436e6 100644 --- a/clients/client-chime/commands/DeleteChannelMembershipCommand.ts +++ b/clients/client-chime/commands/DeleteChannelMembershipCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelMembershipCommand extends $Command< DeleteChannelMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteChannelMessageCommand.ts b/clients/client-chime/commands/DeleteChannelMessageCommand.ts index 53fd6069fa26d..0a81114aa69f6 100644 --- a/clients/client-chime/commands/DeleteChannelMessageCommand.ts +++ b/clients/client-chime/commands/DeleteChannelMessageCommand.ts @@ -29,6 +29,7 @@ export class DeleteChannelMessageCommand extends $Command< DeleteChannelMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteChannelMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteChannelModeratorCommand.ts b/clients/client-chime/commands/DeleteChannelModeratorCommand.ts index 505f50ad0d004..181e53b12d165 100644 --- a/clients/client-chime/commands/DeleteChannelModeratorCommand.ts +++ b/clients/client-chime/commands/DeleteChannelModeratorCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelModeratorCommand extends $Command< DeleteChannelModeratorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelModeratorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteEventsConfigurationCommand.ts b/clients/client-chime/commands/DeleteEventsConfigurationCommand.ts index 633f986516a63..6468d95ebc157 100644 --- a/clients/client-chime/commands/DeleteEventsConfigurationCommand.ts +++ b/clients/client-chime/commands/DeleteEventsConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteEventsConfigurationCommand extends $Command< DeleteEventsConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEventsConfigurationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteMeetingCommand.ts b/clients/client-chime/commands/DeleteMeetingCommand.ts index 53b5a283b3683..fecb226fb18be 100644 --- a/clients/client-chime/commands/DeleteMeetingCommand.ts +++ b/clients/client-chime/commands/DeleteMeetingCommand.ts @@ -28,6 +28,7 @@ export class DeleteMeetingCommand extends $Command< DeleteMeetingCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMeetingCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeletePhoneNumberCommand.ts b/clients/client-chime/commands/DeletePhoneNumberCommand.ts index 02ca481a38743..6eb12c11f575c 100644 --- a/clients/client-chime/commands/DeletePhoneNumberCommand.ts +++ b/clients/client-chime/commands/DeletePhoneNumberCommand.ts @@ -32,6 +32,7 @@ export class DeletePhoneNumberCommand extends $Command< DeletePhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeletePhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteProxySessionCommand.ts b/clients/client-chime/commands/DeleteProxySessionCommand.ts index 4b196c1ea9e87..9150cd8e546fc 100644 --- a/clients/client-chime/commands/DeleteProxySessionCommand.ts +++ b/clients/client-chime/commands/DeleteProxySessionCommand.ts @@ -28,6 +28,7 @@ export class DeleteProxySessionCommand extends $Command< DeleteProxySessionCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProxySessionCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteRoomCommand.ts b/clients/client-chime/commands/DeleteRoomCommand.ts index e854e73c5afca..dc0465e2d2445 100644 --- a/clients/client-chime/commands/DeleteRoomCommand.ts +++ b/clients/client-chime/commands/DeleteRoomCommand.ts @@ -28,6 +28,7 @@ export class DeleteRoomCommand extends $Command< DeleteRoomCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRoomCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteRoomMembershipCommand.ts b/clients/client-chime/commands/DeleteRoomMembershipCommand.ts index 6220d7554ff49..6843e9dcd9a41 100644 --- a/clients/client-chime/commands/DeleteRoomMembershipCommand.ts +++ b/clients/client-chime/commands/DeleteRoomMembershipCommand.ts @@ -28,6 +28,7 @@ export class DeleteRoomMembershipCommand extends $Command< DeleteRoomMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRoomMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteSipMediaApplicationCommand.ts b/clients/client-chime/commands/DeleteSipMediaApplicationCommand.ts index 26e5889a99c65..677e90bec673a 100644 --- a/clients/client-chime/commands/DeleteSipMediaApplicationCommand.ts +++ b/clients/client-chime/commands/DeleteSipMediaApplicationCommand.ts @@ -28,6 +28,7 @@ export class DeleteSipMediaApplicationCommand extends $Command< DeleteSipMediaApplicationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSipMediaApplicationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteSipRuleCommand.ts b/clients/client-chime/commands/DeleteSipRuleCommand.ts index 9d9a51237a79a..dbcf40343c15f 100644 --- a/clients/client-chime/commands/DeleteSipRuleCommand.ts +++ b/clients/client-chime/commands/DeleteSipRuleCommand.ts @@ -28,6 +28,7 @@ export class DeleteSipRuleCommand extends $Command< DeleteSipRuleCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSipRuleCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorCommand.ts index 53d73ea7463cb..784913cb17e18 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorCommand.ts @@ -29,6 +29,7 @@ export class DeleteVoiceConnectorCommand extends $Command< DeleteVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteVoiceConnectorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.ts index 38276faca7c55..acc80587e9d52 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceConnectorEmergencyCallingConfigurationCommand extends $C DeleteVoiceConnectorEmergencyCallingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVoiceConnectorEmergencyCallingConfigurationCommand extends $C DeleteVoiceConnectorEmergencyCallingConfigurationCommandInput, DeleteVoiceConnectorEmergencyCallingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorGroupCommand.ts index 8c1d6cb11deea..c897261c5ff83 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceConnectorGroupCommand extends $Command< DeleteVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVoiceConnectorGroupCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorOriginationCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorOriginationCommand.ts index 97d816f2e43ca..8e872213eb86f 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorOriginationCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorOriginationCommand.ts @@ -31,6 +31,7 @@ export class DeleteVoiceConnectorOriginationCommand extends $Command< DeleteVoiceConnectorOriginationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVoiceConnectorOriginationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorProxyCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorProxyCommand.ts index 43806b2142e56..d56a432f6a9bc 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorProxyCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorProxyCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceConnectorProxyCommand extends $Command< DeleteVoiceConnectorProxyCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVoiceConnectorProxyCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorStreamingConfigurationCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorStreamingConfigurationCommand.ts index 7d5ed06ab2dd2..8d4e0bca4ac5a 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorStreamingConfigurationCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorStreamingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceConnectorStreamingConfigurationCommand extends $Command< DeleteVoiceConnectorStreamingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVoiceConnectorStreamingConfigurationCommand extends $Command< DeleteVoiceConnectorStreamingConfigurationCommandInput, DeleteVoiceConnectorStreamingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorTerminationCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorTerminationCommand.ts index 096b8413de7d6..600a8a27a4c13 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorTerminationCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorTerminationCommand.ts @@ -31,6 +31,7 @@ export class DeleteVoiceConnectorTerminationCommand extends $Command< DeleteVoiceConnectorTerminationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVoiceConnectorTerminationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DeleteVoiceConnectorTerminationCredentialsCommand.ts b/clients/client-chime/commands/DeleteVoiceConnectorTerminationCredentialsCommand.ts index 516475b0592ba..ee598050f6b3b 100644 --- a/clients/client-chime/commands/DeleteVoiceConnectorTerminationCredentialsCommand.ts +++ b/clients/client-chime/commands/DeleteVoiceConnectorTerminationCredentialsCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceConnectorTerminationCredentialsCommand extends $Command< DeleteVoiceConnectorTerminationCredentialsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVoiceConnectorTerminationCredentialsCommand extends $Command< DeleteVoiceConnectorTerminationCredentialsCommandInput, DeleteVoiceConnectorTerminationCredentialsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeAppInstanceAdminCommand.ts b/clients/client-chime/commands/DescribeAppInstanceAdminCommand.ts index 3cde1e7c4b41c..41279a88b2492 100644 --- a/clients/client-chime/commands/DescribeAppInstanceAdminCommand.ts +++ b/clients/client-chime/commands/DescribeAppInstanceAdminCommand.ts @@ -28,6 +28,7 @@ export class DescribeAppInstanceAdminCommand extends $Command< DescribeAppInstanceAdminCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAppInstanceAdminCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeAppInstanceCommand.ts b/clients/client-chime/commands/DescribeAppInstanceCommand.ts index 406258ad38ea3..666484d139ccd 100644 --- a/clients/client-chime/commands/DescribeAppInstanceCommand.ts +++ b/clients/client-chime/commands/DescribeAppInstanceCommand.ts @@ -28,6 +28,7 @@ export class DescribeAppInstanceCommand extends $Command< DescribeAppInstanceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAppInstanceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeAppInstanceUserCommand.ts b/clients/client-chime/commands/DescribeAppInstanceUserCommand.ts index 4bcd1f06c2877..6682c0e8b82d6 100644 --- a/clients/client-chime/commands/DescribeAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/DescribeAppInstanceUserCommand.ts @@ -28,6 +28,7 @@ export class DescribeAppInstanceUserCommand extends $Command< DescribeAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAppInstanceUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelBanCommand.ts b/clients/client-chime/commands/DescribeChannelBanCommand.ts index b2a380c1cb8c2..fe5eb0113f4a2 100644 --- a/clients/client-chime/commands/DescribeChannelBanCommand.ts +++ b/clients/client-chime/commands/DescribeChannelBanCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelBanCommand extends $Command< DescribeChannelBanCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelBanCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelCommand.ts b/clients/client-chime/commands/DescribeChannelCommand.ts index ff9941b2e6f91..9d971e6bfc73d 100644 --- a/clients/client-chime/commands/DescribeChannelCommand.ts +++ b/clients/client-chime/commands/DescribeChannelCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelCommand extends $Command< DescribeChannelCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelMembershipCommand.ts b/clients/client-chime/commands/DescribeChannelMembershipCommand.ts index b29d5f9136d95..c9bb06b2e4dcf 100644 --- a/clients/client-chime/commands/DescribeChannelMembershipCommand.ts +++ b/clients/client-chime/commands/DescribeChannelMembershipCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelMembershipCommand extends $Command< DescribeChannelMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelMembershipForAppInstanceUserCommand.ts b/clients/client-chime/commands/DescribeChannelMembershipForAppInstanceUserCommand.ts index 43341dc336cd6..83af80414f931 100644 --- a/clients/client-chime/commands/DescribeChannelMembershipForAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/DescribeChannelMembershipForAppInstanceUserCommand.ts @@ -32,6 +32,7 @@ export class DescribeChannelMembershipForAppInstanceUserCommand extends $Command DescribeChannelMembershipForAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeChannelMembershipForAppInstanceUserCommand extends $Command DescribeChannelMembershipForAppInstanceUserCommandInput, DescribeChannelMembershipForAppInstanceUserCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelModeratedByAppInstanceUserCommand.ts b/clients/client-chime/commands/DescribeChannelModeratedByAppInstanceUserCommand.ts index fb84f7116247d..37a044c1cd19b 100644 --- a/clients/client-chime/commands/DescribeChannelModeratedByAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/DescribeChannelModeratedByAppInstanceUserCommand.ts @@ -32,6 +32,7 @@ export class DescribeChannelModeratedByAppInstanceUserCommand extends $Command< DescribeChannelModeratedByAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeChannelModeratedByAppInstanceUserCommand extends $Command< DescribeChannelModeratedByAppInstanceUserCommandInput, DescribeChannelModeratedByAppInstanceUserCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DescribeChannelModeratorCommand.ts b/clients/client-chime/commands/DescribeChannelModeratorCommand.ts index e2397a402ba58..29c6e8174c304 100644 --- a/clients/client-chime/commands/DescribeChannelModeratorCommand.ts +++ b/clients/client-chime/commands/DescribeChannelModeratorCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelModeratorCommand extends $Command< DescribeChannelModeratorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelModeratorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DisassociatePhoneNumberFromUserCommand.ts b/clients/client-chime/commands/DisassociatePhoneNumberFromUserCommand.ts index 8420b72fd9950..6d29179784a93 100644 --- a/clients/client-chime/commands/DisassociatePhoneNumberFromUserCommand.ts +++ b/clients/client-chime/commands/DisassociatePhoneNumberFromUserCommand.ts @@ -29,6 +29,7 @@ export class DisassociatePhoneNumberFromUserCommand extends $Command< DisassociatePhoneNumberFromUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociatePhoneNumberFromUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorCommand.ts b/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorCommand.ts index 220b150bb8da6..bfcebe6d3c5ce 100644 --- a/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorCommand.ts @@ -32,6 +32,7 @@ export class DisassociatePhoneNumbersFromVoiceConnectorCommand extends $Command< DisassociatePhoneNumbersFromVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociatePhoneNumbersFromVoiceConnectorCommand extends $Command< DisassociatePhoneNumbersFromVoiceConnectorCommandInput, DisassociatePhoneNumbersFromVoiceConnectorCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand.ts index 4dfc0c113b737..ea88a0988ef5c 100644 --- a/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand.ts @@ -32,6 +32,7 @@ export class DisassociatePhoneNumbersFromVoiceConnectorGroupCommand extends $Com DisassociatePhoneNumbersFromVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociatePhoneNumbersFromVoiceConnectorGroupCommand extends $Com DisassociatePhoneNumbersFromVoiceConnectorGroupCommandInput, DisassociatePhoneNumbersFromVoiceConnectorGroupCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/DisassociateSigninDelegateGroupsFromAccountCommand.ts b/clients/client-chime/commands/DisassociateSigninDelegateGroupsFromAccountCommand.ts index eb8831317baa4..0b6b10f1a370c 100644 --- a/clients/client-chime/commands/DisassociateSigninDelegateGroupsFromAccountCommand.ts +++ b/clients/client-chime/commands/DisassociateSigninDelegateGroupsFromAccountCommand.ts @@ -32,6 +32,7 @@ export class DisassociateSigninDelegateGroupsFromAccountCommand extends $Command DisassociateSigninDelegateGroupsFromAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociateSigninDelegateGroupsFromAccountCommand extends $Command DisassociateSigninDelegateGroupsFromAccountCommandInput, DisassociateSigninDelegateGroupsFromAccountCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetAccountCommand.ts b/clients/client-chime/commands/GetAccountCommand.ts index 2b850d5c0e4d2..1d4ca60d31f18 100644 --- a/clients/client-chime/commands/GetAccountCommand.ts +++ b/clients/client-chime/commands/GetAccountCommand.ts @@ -29,6 +29,7 @@ export class GetAccountCommand extends $Command< GetAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccountCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetAccountSettingsCommand.ts b/clients/client-chime/commands/GetAccountSettingsCommand.ts index c3581462cdbf8..d15f74c222fe1 100644 --- a/clients/client-chime/commands/GetAccountSettingsCommand.ts +++ b/clients/client-chime/commands/GetAccountSettingsCommand.ts @@ -31,6 +31,7 @@ export class GetAccountSettingsCommand extends $Command< GetAccountSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetAccountSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetAppInstanceRetentionSettingsCommand.ts b/clients/client-chime/commands/GetAppInstanceRetentionSettingsCommand.ts index e8a96a1279bef..a17c23151ee52 100644 --- a/clients/client-chime/commands/GetAppInstanceRetentionSettingsCommand.ts +++ b/clients/client-chime/commands/GetAppInstanceRetentionSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetAppInstanceRetentionSettingsCommand extends $Command< GetAppInstanceRetentionSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppInstanceRetentionSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetAppInstanceStreamingConfigurationsCommand.ts b/clients/client-chime/commands/GetAppInstanceStreamingConfigurationsCommand.ts index 7604bcaef40ff..6e66070f4f299 100644 --- a/clients/client-chime/commands/GetAppInstanceStreamingConfigurationsCommand.ts +++ b/clients/client-chime/commands/GetAppInstanceStreamingConfigurationsCommand.ts @@ -32,6 +32,7 @@ export class GetAppInstanceStreamingConfigurationsCommand extends $Command< GetAppInstanceStreamingConfigurationsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetAppInstanceStreamingConfigurationsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetAttendeeCommand.ts b/clients/client-chime/commands/GetAttendeeCommand.ts index c80d0fb9b7642..19042e45e908e 100644 --- a/clients/client-chime/commands/GetAttendeeCommand.ts +++ b/clients/client-chime/commands/GetAttendeeCommand.ts @@ -28,6 +28,7 @@ export class GetAttendeeCommand extends $Command< GetAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetBotCommand.ts b/clients/client-chime/commands/GetBotCommand.ts index 1bbdf0d8b65eb..566df4daed67b 100644 --- a/clients/client-chime/commands/GetBotCommand.ts +++ b/clients/client-chime/commands/GetBotCommand.ts @@ -21,6 +21,7 @@ export type GetBotCommandOutput = GetBotResponse & __MetadataBearer; *

Retrieves details for the specified bot, such as bot email address, bot type, status, and display name.

*/ export class GetBotCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetBotCommand 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-chime/commands/GetChannelMessageCommand.ts b/clients/client-chime/commands/GetChannelMessageCommand.ts index 8ccfaab340f5f..6bb1a13d8bf43 100644 --- a/clients/client-chime/commands/GetChannelMessageCommand.ts +++ b/clients/client-chime/commands/GetChannelMessageCommand.ts @@ -28,6 +28,7 @@ export class GetChannelMessageCommand extends $Command< GetChannelMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetChannelMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetEventsConfigurationCommand.ts b/clients/client-chime/commands/GetEventsConfigurationCommand.ts index 3cf0fcd513660..6a23abfd159dc 100644 --- a/clients/client-chime/commands/GetEventsConfigurationCommand.ts +++ b/clients/client-chime/commands/GetEventsConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetEventsConfigurationCommand extends $Command< GetEventsConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEventsConfigurationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetGlobalSettingsCommand.ts b/clients/client-chime/commands/GetGlobalSettingsCommand.ts index 4f5b66544799f..51b8c602fb56d 100644 --- a/clients/client-chime/commands/GetGlobalSettingsCommand.ts +++ b/clients/client-chime/commands/GetGlobalSettingsCommand.ts @@ -29,6 +29,7 @@ export class GetGlobalSettingsCommand extends $Command< GetGlobalSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetGlobalSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetMeetingCommand.ts b/clients/client-chime/commands/GetMeetingCommand.ts index 8e1e3023f36a8..7f0191b4a8f17 100644 --- a/clients/client-chime/commands/GetMeetingCommand.ts +++ b/clients/client-chime/commands/GetMeetingCommand.ts @@ -28,6 +28,7 @@ export class GetMeetingCommand extends $Command< GetMeetingCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMeetingCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetMessagingSessionEndpointCommand.ts b/clients/client-chime/commands/GetMessagingSessionEndpointCommand.ts index 74494a766627a..6ef07d395ed67 100644 --- a/clients/client-chime/commands/GetMessagingSessionEndpointCommand.ts +++ b/clients/client-chime/commands/GetMessagingSessionEndpointCommand.ts @@ -28,6 +28,7 @@ export class GetMessagingSessionEndpointCommand extends $Command< GetMessagingSessionEndpointCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMessagingSessionEndpointCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetPhoneNumberCommand.ts b/clients/client-chime/commands/GetPhoneNumberCommand.ts index 485e923d8657c..dbbbe8a114231 100644 --- a/clients/client-chime/commands/GetPhoneNumberCommand.ts +++ b/clients/client-chime/commands/GetPhoneNumberCommand.ts @@ -29,6 +29,7 @@ export class GetPhoneNumberCommand extends $Command< GetPhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetPhoneNumberOrderCommand.ts b/clients/client-chime/commands/GetPhoneNumberOrderCommand.ts index d5a69fb8ccf4c..91c9a82ea5081 100644 --- a/clients/client-chime/commands/GetPhoneNumberOrderCommand.ts +++ b/clients/client-chime/commands/GetPhoneNumberOrderCommand.ts @@ -29,6 +29,7 @@ export class GetPhoneNumberOrderCommand extends $Command< GetPhoneNumberOrderCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPhoneNumberOrderCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetPhoneNumberSettingsCommand.ts b/clients/client-chime/commands/GetPhoneNumberSettingsCommand.ts index 77056b38132ce..bd432da426b00 100644 --- a/clients/client-chime/commands/GetPhoneNumberSettingsCommand.ts +++ b/clients/client-chime/commands/GetPhoneNumberSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetPhoneNumberSettingsCommand extends $Command< GetPhoneNumberSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPhoneNumberSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetProxySessionCommand.ts b/clients/client-chime/commands/GetProxySessionCommand.ts index b4033e0b72118..23b1d0e0aacf1 100644 --- a/clients/client-chime/commands/GetProxySessionCommand.ts +++ b/clients/client-chime/commands/GetProxySessionCommand.ts @@ -28,6 +28,7 @@ export class GetProxySessionCommand extends $Command< GetProxySessionCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProxySessionCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetRetentionSettingsCommand.ts b/clients/client-chime/commands/GetRetentionSettingsCommand.ts index 93cafc67d2866..2e97928cf4f62 100644 --- a/clients/client-chime/commands/GetRetentionSettingsCommand.ts +++ b/clients/client-chime/commands/GetRetentionSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetRetentionSettingsCommand extends $Command< GetRetentionSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRetentionSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetRoomCommand.ts b/clients/client-chime/commands/GetRoomCommand.ts index 64ef8d0bc1db4..66cd992f75f8c 100644 --- a/clients/client-chime/commands/GetRoomCommand.ts +++ b/clients/client-chime/commands/GetRoomCommand.ts @@ -24,6 +24,7 @@ export type GetRoomCommandOutput = GetRoomResponse & __MetadataBearer; *

Retrieves room details, such as the room name, for a room in an Amazon Chime Enterprise account.

*/ export class GetRoomCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetRoomCommand 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-chime/commands/GetSipMediaApplicationCommand.ts b/clients/client-chime/commands/GetSipMediaApplicationCommand.ts index 13cdf7363c523..8e043be8f61b3 100644 --- a/clients/client-chime/commands/GetSipMediaApplicationCommand.ts +++ b/clients/client-chime/commands/GetSipMediaApplicationCommand.ts @@ -29,6 +29,7 @@ export class GetSipMediaApplicationCommand extends $Command< GetSipMediaApplicationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSipMediaApplicationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetSipMediaApplicationLoggingConfigurationCommand.ts b/clients/client-chime/commands/GetSipMediaApplicationLoggingConfigurationCommand.ts index 8d4cc330e46e3..66d082aeee970 100644 --- a/clients/client-chime/commands/GetSipMediaApplicationLoggingConfigurationCommand.ts +++ b/clients/client-chime/commands/GetSipMediaApplicationLoggingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class GetSipMediaApplicationLoggingConfigurationCommand extends $Command< GetSipMediaApplicationLoggingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetSipMediaApplicationLoggingConfigurationCommand extends $Command< GetSipMediaApplicationLoggingConfigurationCommandInput, GetSipMediaApplicationLoggingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetSipRuleCommand.ts b/clients/client-chime/commands/GetSipRuleCommand.ts index bdf6cc275f44d..8c0952aabd781 100644 --- a/clients/client-chime/commands/GetSipRuleCommand.ts +++ b/clients/client-chime/commands/GetSipRuleCommand.ts @@ -29,6 +29,7 @@ export class GetSipRuleCommand extends $Command< GetSipRuleCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSipRuleCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetUserCommand.ts b/clients/client-chime/commands/GetUserCommand.ts index e548629c3b948..94d9473d1c075 100644 --- a/clients/client-chime/commands/GetUserCommand.ts +++ b/clients/client-chime/commands/GetUserCommand.ts @@ -26,6 +26,7 @@ export type GetUserCommandOutput = GetUserResponse & __MetadataBearer; *

To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address.

*/ export class GetUserCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class GetUserCommand 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-chime/commands/GetUserSettingsCommand.ts b/clients/client-chime/commands/GetUserSettingsCommand.ts index e57cfe72f33f6..41adfa9683ad0 100644 --- a/clients/client-chime/commands/GetUserSettingsCommand.ts +++ b/clients/client-chime/commands/GetUserSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetUserSettingsCommand extends $Command< GetUserSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUserSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorCommand.ts b/clients/client-chime/commands/GetVoiceConnectorCommand.ts index 3b8080ecef572..04e7b66012c61 100644 --- a/clients/client-chime/commands/GetVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorCommand.ts @@ -29,6 +29,7 @@ export class GetVoiceConnectorCommand extends $Command< GetVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetVoiceConnectorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.ts b/clients/client-chime/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.ts index 1d498b45f3e18..285862bda3b24 100644 --- a/clients/client-chime/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class GetVoiceConnectorEmergencyCallingConfigurationCommand extends $Comm GetVoiceConnectorEmergencyCallingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetVoiceConnectorEmergencyCallingConfigurationCommand extends $Comm GetVoiceConnectorEmergencyCallingConfigurationCommandInput, GetVoiceConnectorEmergencyCallingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/GetVoiceConnectorGroupCommand.ts index 8e90ee2122a24..f8bab2f5ed180 100644 --- a/clients/client-chime/commands/GetVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorGroupCommand.ts @@ -29,6 +29,7 @@ export class GetVoiceConnectorGroupCommand extends $Command< GetVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetVoiceConnectorGroupCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorLoggingConfigurationCommand.ts b/clients/client-chime/commands/GetVoiceConnectorLoggingConfigurationCommand.ts index 2a09495067bb1..4b0b1b463eb52 100644 --- a/clients/client-chime/commands/GetVoiceConnectorLoggingConfigurationCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorLoggingConfigurationCommand.ts @@ -33,6 +33,7 @@ export class GetVoiceConnectorLoggingConfigurationCommand extends $Command< GetVoiceConnectorLoggingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetVoiceConnectorLoggingConfigurationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorOriginationCommand.ts b/clients/client-chime/commands/GetVoiceConnectorOriginationCommand.ts index 02a6a78dfc824..78938f1d4c2d1 100644 --- a/clients/client-chime/commands/GetVoiceConnectorOriginationCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorOriginationCommand.ts @@ -28,6 +28,7 @@ export class GetVoiceConnectorOriginationCommand extends $Command< GetVoiceConnectorOriginationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVoiceConnectorOriginationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorProxyCommand.ts b/clients/client-chime/commands/GetVoiceConnectorProxyCommand.ts index 26dbbffcd3198..33ad25683355b 100644 --- a/clients/client-chime/commands/GetVoiceConnectorProxyCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorProxyCommand.ts @@ -28,6 +28,7 @@ export class GetVoiceConnectorProxyCommand extends $Command< GetVoiceConnectorProxyCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVoiceConnectorProxyCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorStreamingConfigurationCommand.ts b/clients/client-chime/commands/GetVoiceConnectorStreamingConfigurationCommand.ts index d7adef89c2655..c5b63f1c0aaad 100644 --- a/clients/client-chime/commands/GetVoiceConnectorStreamingConfigurationCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorStreamingConfigurationCommand.ts @@ -34,6 +34,7 @@ export class GetVoiceConnectorStreamingConfigurationCommand extends $Command< GetVoiceConnectorStreamingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetVoiceConnectorStreamingConfigurationCommand extends $Command< GetVoiceConnectorStreamingConfigurationCommandInput, GetVoiceConnectorStreamingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorTerminationCommand.ts b/clients/client-chime/commands/GetVoiceConnectorTerminationCommand.ts index fad328a07cc91..369582e4241f8 100644 --- a/clients/client-chime/commands/GetVoiceConnectorTerminationCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorTerminationCommand.ts @@ -28,6 +28,7 @@ export class GetVoiceConnectorTerminationCommand extends $Command< GetVoiceConnectorTerminationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVoiceConnectorTerminationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/GetVoiceConnectorTerminationHealthCommand.ts b/clients/client-chime/commands/GetVoiceConnectorTerminationHealthCommand.ts index 76dc9829fbfd7..1bcab795b5037 100644 --- a/clients/client-chime/commands/GetVoiceConnectorTerminationHealthCommand.ts +++ b/clients/client-chime/commands/GetVoiceConnectorTerminationHealthCommand.ts @@ -33,6 +33,7 @@ export class GetVoiceConnectorTerminationHealthCommand extends $Command< GetVoiceConnectorTerminationHealthCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetVoiceConnectorTerminationHealthCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/InviteUsersCommand.ts b/clients/client-chime/commands/InviteUsersCommand.ts index 9e3e6615a4977..9a1b9dc43d65d 100644 --- a/clients/client-chime/commands/InviteUsersCommand.ts +++ b/clients/client-chime/commands/InviteUsersCommand.ts @@ -30,6 +30,7 @@ export class InviteUsersCommand extends $Command< InviteUsersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class InviteUsersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAccountsCommand.ts b/clients/client-chime/commands/ListAccountsCommand.ts index e50d0bf78c0f4..8d9474395ae8a 100644 --- a/clients/client-chime/commands/ListAccountsCommand.ts +++ b/clients/client-chime/commands/ListAccountsCommand.ts @@ -30,6 +30,7 @@ export class ListAccountsCommand extends $Command< ListAccountsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAccountsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAppInstanceAdminsCommand.ts b/clients/client-chime/commands/ListAppInstanceAdminsCommand.ts index e16442064118c..848865e5d265c 100644 --- a/clients/client-chime/commands/ListAppInstanceAdminsCommand.ts +++ b/clients/client-chime/commands/ListAppInstanceAdminsCommand.ts @@ -28,6 +28,7 @@ export class ListAppInstanceAdminsCommand extends $Command< ListAppInstanceAdminsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAppInstanceAdminsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAppInstanceUsersCommand.ts b/clients/client-chime/commands/ListAppInstanceUsersCommand.ts index 2d7c6faf73c43..afe979ad3c96d 100644 --- a/clients/client-chime/commands/ListAppInstanceUsersCommand.ts +++ b/clients/client-chime/commands/ListAppInstanceUsersCommand.ts @@ -28,6 +28,7 @@ export class ListAppInstanceUsersCommand extends $Command< ListAppInstanceUsersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAppInstanceUsersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAppInstancesCommand.ts b/clients/client-chime/commands/ListAppInstancesCommand.ts index f45baa6b2ea3c..1f61488dfd217 100644 --- a/clients/client-chime/commands/ListAppInstancesCommand.ts +++ b/clients/client-chime/commands/ListAppInstancesCommand.ts @@ -28,6 +28,7 @@ export class ListAppInstancesCommand extends $Command< ListAppInstancesCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAppInstancesCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAttendeeTagsCommand.ts b/clients/client-chime/commands/ListAttendeeTagsCommand.ts index 316e14bf8bfce..eb7820fce0ca2 100644 --- a/clients/client-chime/commands/ListAttendeeTagsCommand.ts +++ b/clients/client-chime/commands/ListAttendeeTagsCommand.ts @@ -28,6 +28,7 @@ export class ListAttendeeTagsCommand extends $Command< ListAttendeeTagsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAttendeeTagsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListAttendeesCommand.ts b/clients/client-chime/commands/ListAttendeesCommand.ts index 8228b0cebe445..f43f40236907e 100644 --- a/clients/client-chime/commands/ListAttendeesCommand.ts +++ b/clients/client-chime/commands/ListAttendeesCommand.ts @@ -28,6 +28,7 @@ export class ListAttendeesCommand extends $Command< ListAttendeesCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAttendeesCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListBotsCommand.ts b/clients/client-chime/commands/ListBotsCommand.ts index 161134fa16466..5befc6d9a98cc 100644 --- a/clients/client-chime/commands/ListBotsCommand.ts +++ b/clients/client-chime/commands/ListBotsCommand.ts @@ -24,6 +24,7 @@ export type ListBotsCommandOutput = ListBotsResponse & __MetadataBearer; *

Lists the bots associated with the administrator's Amazon Chime Enterprise account ID.

*/ export class ListBotsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class ListBotsCommand 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-chime/commands/ListChannelBansCommand.ts b/clients/client-chime/commands/ListChannelBansCommand.ts index a117a29e9d762..bd31882daa760 100644 --- a/clients/client-chime/commands/ListChannelBansCommand.ts +++ b/clients/client-chime/commands/ListChannelBansCommand.ts @@ -28,6 +28,7 @@ export class ListChannelBansCommand extends $Command< ListChannelBansCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelBansCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelMembershipsCommand.ts b/clients/client-chime/commands/ListChannelMembershipsCommand.ts index 387852284e138..28108617c5c11 100644 --- a/clients/client-chime/commands/ListChannelMembershipsCommand.ts +++ b/clients/client-chime/commands/ListChannelMembershipsCommand.ts @@ -28,6 +28,7 @@ export class ListChannelMembershipsCommand extends $Command< ListChannelMembershipsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelMembershipsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelMembershipsForAppInstanceUserCommand.ts b/clients/client-chime/commands/ListChannelMembershipsForAppInstanceUserCommand.ts index 63d24f221a07b..31ff4e4ef1915 100644 --- a/clients/client-chime/commands/ListChannelMembershipsForAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/ListChannelMembershipsForAppInstanceUserCommand.ts @@ -33,6 +33,7 @@ export class ListChannelMembershipsForAppInstanceUserCommand extends $Command< ListChannelMembershipsForAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListChannelMembershipsForAppInstanceUserCommand extends $Command< ListChannelMembershipsForAppInstanceUserCommandInput, ListChannelMembershipsForAppInstanceUserCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelMessagesCommand.ts b/clients/client-chime/commands/ListChannelMessagesCommand.ts index 5fbb78d736923..17a54cc4ad057 100644 --- a/clients/client-chime/commands/ListChannelMessagesCommand.ts +++ b/clients/client-chime/commands/ListChannelMessagesCommand.ts @@ -33,6 +33,7 @@ export class ListChannelMessagesCommand extends $Command< ListChannelMessagesCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListChannelMessagesCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelModeratorsCommand.ts b/clients/client-chime/commands/ListChannelModeratorsCommand.ts index 3add5ce1b8d77..2e6506834d376 100644 --- a/clients/client-chime/commands/ListChannelModeratorsCommand.ts +++ b/clients/client-chime/commands/ListChannelModeratorsCommand.ts @@ -28,6 +28,7 @@ export class ListChannelModeratorsCommand extends $Command< ListChannelModeratorsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelModeratorsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelsCommand.ts b/clients/client-chime/commands/ListChannelsCommand.ts index 8cca3b520803c..2547029e1c206 100644 --- a/clients/client-chime/commands/ListChannelsCommand.ts +++ b/clients/client-chime/commands/ListChannelsCommand.ts @@ -40,6 +40,7 @@ export class ListChannelsCommand extends $Command< ListChannelsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListChannelsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListChannelsModeratedByAppInstanceUserCommand.ts b/clients/client-chime/commands/ListChannelsModeratedByAppInstanceUserCommand.ts index 30e2a922bfd6a..a592658dfbc54 100644 --- a/clients/client-chime/commands/ListChannelsModeratedByAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/ListChannelsModeratedByAppInstanceUserCommand.ts @@ -32,6 +32,7 @@ export class ListChannelsModeratedByAppInstanceUserCommand extends $Command< ListChannelsModeratedByAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListChannelsModeratedByAppInstanceUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListMeetingTagsCommand.ts b/clients/client-chime/commands/ListMeetingTagsCommand.ts index e632c3d080b10..2da88e222823f 100644 --- a/clients/client-chime/commands/ListMeetingTagsCommand.ts +++ b/clients/client-chime/commands/ListMeetingTagsCommand.ts @@ -28,6 +28,7 @@ export class ListMeetingTagsCommand extends $Command< ListMeetingTagsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMeetingTagsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListMeetingsCommand.ts b/clients/client-chime/commands/ListMeetingsCommand.ts index 05f8d75a08ec9..a37db60a710f7 100644 --- a/clients/client-chime/commands/ListMeetingsCommand.ts +++ b/clients/client-chime/commands/ListMeetingsCommand.ts @@ -28,6 +28,7 @@ export class ListMeetingsCommand extends $Command< ListMeetingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMeetingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListPhoneNumberOrdersCommand.ts b/clients/client-chime/commands/ListPhoneNumberOrdersCommand.ts index 335c059c556fe..89b69ed7856c6 100644 --- a/clients/client-chime/commands/ListPhoneNumberOrdersCommand.ts +++ b/clients/client-chime/commands/ListPhoneNumberOrdersCommand.ts @@ -28,6 +28,7 @@ export class ListPhoneNumberOrdersCommand extends $Command< ListPhoneNumberOrdersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPhoneNumberOrdersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListPhoneNumbersCommand.ts b/clients/client-chime/commands/ListPhoneNumbersCommand.ts index c37445b0e5ac9..ea1c1490d1b67 100644 --- a/clients/client-chime/commands/ListPhoneNumbersCommand.ts +++ b/clients/client-chime/commands/ListPhoneNumbersCommand.ts @@ -28,6 +28,7 @@ export class ListPhoneNumbersCommand extends $Command< ListPhoneNumbersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPhoneNumbersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListProxySessionsCommand.ts b/clients/client-chime/commands/ListProxySessionsCommand.ts index 167bd082c3ae2..a9218bada6687 100644 --- a/clients/client-chime/commands/ListProxySessionsCommand.ts +++ b/clients/client-chime/commands/ListProxySessionsCommand.ts @@ -28,6 +28,7 @@ export class ListProxySessionsCommand extends $Command< ListProxySessionsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProxySessionsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListRoomMembershipsCommand.ts b/clients/client-chime/commands/ListRoomMembershipsCommand.ts index 7b875105918a8..3119610509785 100644 --- a/clients/client-chime/commands/ListRoomMembershipsCommand.ts +++ b/clients/client-chime/commands/ListRoomMembershipsCommand.ts @@ -29,6 +29,7 @@ export class ListRoomMembershipsCommand extends $Command< ListRoomMembershipsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRoomMembershipsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListRoomsCommand.ts b/clients/client-chime/commands/ListRoomsCommand.ts index 0dc21a9e7033e..3f4f1911a01a2 100644 --- a/clients/client-chime/commands/ListRoomsCommand.ts +++ b/clients/client-chime/commands/ListRoomsCommand.ts @@ -28,6 +28,7 @@ export class ListRoomsCommand extends $Command< ListRoomsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRoomsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListSipMediaApplicationsCommand.ts b/clients/client-chime/commands/ListSipMediaApplicationsCommand.ts index 586349ad1ada4..6af9ca8db4f39 100644 --- a/clients/client-chime/commands/ListSipMediaApplicationsCommand.ts +++ b/clients/client-chime/commands/ListSipMediaApplicationsCommand.ts @@ -28,6 +28,7 @@ export class ListSipMediaApplicationsCommand extends $Command< ListSipMediaApplicationsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSipMediaApplicationsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListSipRulesCommand.ts b/clients/client-chime/commands/ListSipRulesCommand.ts index 4774f9a812d1b..703167f9b19a7 100644 --- a/clients/client-chime/commands/ListSipRulesCommand.ts +++ b/clients/client-chime/commands/ListSipRulesCommand.ts @@ -28,6 +28,7 @@ export class ListSipRulesCommand extends $Command< ListSipRulesCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSipRulesCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListTagsForResourceCommand.ts b/clients/client-chime/commands/ListTagsForResourceCommand.ts index aa4bb3b63dab4..8e6785ae214a1 100644 --- a/clients/client-chime/commands/ListTagsForResourceCommand.ts +++ b/clients/client-chime/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListUsersCommand.ts b/clients/client-chime/commands/ListUsersCommand.ts index 912dbcf6148d9..0e72620002da2 100644 --- a/clients/client-chime/commands/ListUsersCommand.ts +++ b/clients/client-chime/commands/ListUsersCommand.ts @@ -29,6 +29,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListUsersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListVoiceConnectorGroupsCommand.ts b/clients/client-chime/commands/ListVoiceConnectorGroupsCommand.ts index 0d6c2bec5ebe8..5ebd8d3d7fe6d 100644 --- a/clients/client-chime/commands/ListVoiceConnectorGroupsCommand.ts +++ b/clients/client-chime/commands/ListVoiceConnectorGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListVoiceConnectorGroupsCommand extends $Command< ListVoiceConnectorGroupsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVoiceConnectorGroupsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListVoiceConnectorTerminationCredentialsCommand.ts b/clients/client-chime/commands/ListVoiceConnectorTerminationCredentialsCommand.ts index 9415b831220b2..a521f35cc097f 100644 --- a/clients/client-chime/commands/ListVoiceConnectorTerminationCredentialsCommand.ts +++ b/clients/client-chime/commands/ListVoiceConnectorTerminationCredentialsCommand.ts @@ -32,6 +32,7 @@ export class ListVoiceConnectorTerminationCredentialsCommand extends $Command< ListVoiceConnectorTerminationCredentialsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListVoiceConnectorTerminationCredentialsCommand extends $Command< ListVoiceConnectorTerminationCredentialsCommandInput, ListVoiceConnectorTerminationCredentialsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ListVoiceConnectorsCommand.ts b/clients/client-chime/commands/ListVoiceConnectorsCommand.ts index 7a11dfab5bffd..6aea67219a4da 100644 --- a/clients/client-chime/commands/ListVoiceConnectorsCommand.ts +++ b/clients/client-chime/commands/ListVoiceConnectorsCommand.ts @@ -28,6 +28,7 @@ export class ListVoiceConnectorsCommand extends $Command< ListVoiceConnectorsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVoiceConnectorsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/LogoutUserCommand.ts b/clients/client-chime/commands/LogoutUserCommand.ts index 0f728dd08700d..0d142c49fb69d 100644 --- a/clients/client-chime/commands/LogoutUserCommand.ts +++ b/clients/client-chime/commands/LogoutUserCommand.ts @@ -28,6 +28,7 @@ export class LogoutUserCommand extends $Command< LogoutUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class LogoutUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutAppInstanceRetentionSettingsCommand.ts b/clients/client-chime/commands/PutAppInstanceRetentionSettingsCommand.ts index 73da3720bf034..8a47b469c32ce 100644 --- a/clients/client-chime/commands/PutAppInstanceRetentionSettingsCommand.ts +++ b/clients/client-chime/commands/PutAppInstanceRetentionSettingsCommand.ts @@ -28,6 +28,7 @@ export class PutAppInstanceRetentionSettingsCommand extends $Command< PutAppInstanceRetentionSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAppInstanceRetentionSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutAppInstanceStreamingConfigurationsCommand.ts b/clients/client-chime/commands/PutAppInstanceStreamingConfigurationsCommand.ts index fcba20cccd517..2a98ec5693042 100644 --- a/clients/client-chime/commands/PutAppInstanceStreamingConfigurationsCommand.ts +++ b/clients/client-chime/commands/PutAppInstanceStreamingConfigurationsCommand.ts @@ -32,6 +32,7 @@ export class PutAppInstanceStreamingConfigurationsCommand extends $Command< PutAppInstanceStreamingConfigurationsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutAppInstanceStreamingConfigurationsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutEventsConfigurationCommand.ts b/clients/client-chime/commands/PutEventsConfigurationCommand.ts index b5ec6233f9133..c3005f5c048a8 100644 --- a/clients/client-chime/commands/PutEventsConfigurationCommand.ts +++ b/clients/client-chime/commands/PutEventsConfigurationCommand.ts @@ -29,6 +29,7 @@ export class PutEventsConfigurationCommand extends $Command< PutEventsConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutEventsConfigurationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutRetentionSettingsCommand.ts b/clients/client-chime/commands/PutRetentionSettingsCommand.ts index 9d6c9dbbce8a8..1f7da8d4cc6ce 100644 --- a/clients/client-chime/commands/PutRetentionSettingsCommand.ts +++ b/clients/client-chime/commands/PutRetentionSettingsCommand.ts @@ -29,6 +29,7 @@ export class PutRetentionSettingsCommand extends $Command< PutRetentionSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutRetentionSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutSipMediaApplicationLoggingConfigurationCommand.ts b/clients/client-chime/commands/PutSipMediaApplicationLoggingConfigurationCommand.ts index 52966debdd38c..1d480a7bfbc0d 100644 --- a/clients/client-chime/commands/PutSipMediaApplicationLoggingConfigurationCommand.ts +++ b/clients/client-chime/commands/PutSipMediaApplicationLoggingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class PutSipMediaApplicationLoggingConfigurationCommand extends $Command< PutSipMediaApplicationLoggingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutSipMediaApplicationLoggingConfigurationCommand extends $Command< PutSipMediaApplicationLoggingConfigurationCommandInput, PutSipMediaApplicationLoggingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorEmergencyCallingConfigurationCommand.ts b/clients/client-chime/commands/PutVoiceConnectorEmergencyCallingConfigurationCommand.ts index 29757a0c3d971..076aea6415073 100644 --- a/clients/client-chime/commands/PutVoiceConnectorEmergencyCallingConfigurationCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorEmergencyCallingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class PutVoiceConnectorEmergencyCallingConfigurationCommand extends $Comm PutVoiceConnectorEmergencyCallingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutVoiceConnectorEmergencyCallingConfigurationCommand extends $Comm PutVoiceConnectorEmergencyCallingConfigurationCommandInput, PutVoiceConnectorEmergencyCallingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorLoggingConfigurationCommand.ts b/clients/client-chime/commands/PutVoiceConnectorLoggingConfigurationCommand.ts index 3555c9c48de03..153a9eb6a8710 100644 --- a/clients/client-chime/commands/PutVoiceConnectorLoggingConfigurationCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorLoggingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class PutVoiceConnectorLoggingConfigurationCommand extends $Command< PutVoiceConnectorLoggingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutVoiceConnectorLoggingConfigurationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorOriginationCommand.ts b/clients/client-chime/commands/PutVoiceConnectorOriginationCommand.ts index 46faf2b010f57..bb16e44ddf906 100644 --- a/clients/client-chime/commands/PutVoiceConnectorOriginationCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorOriginationCommand.ts @@ -31,6 +31,7 @@ export class PutVoiceConnectorOriginationCommand extends $Command< PutVoiceConnectorOriginationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutVoiceConnectorOriginationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorProxyCommand.ts b/clients/client-chime/commands/PutVoiceConnectorProxyCommand.ts index 7fb3326a1dd33..1bf036868a005 100644 --- a/clients/client-chime/commands/PutVoiceConnectorProxyCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorProxyCommand.ts @@ -28,6 +28,7 @@ export class PutVoiceConnectorProxyCommand extends $Command< PutVoiceConnectorProxyCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutVoiceConnectorProxyCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorStreamingConfigurationCommand.ts b/clients/client-chime/commands/PutVoiceConnectorStreamingConfigurationCommand.ts index 61ba59686591c..cbe625a644b67 100644 --- a/clients/client-chime/commands/PutVoiceConnectorStreamingConfigurationCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorStreamingConfigurationCommand.ts @@ -34,6 +34,7 @@ export class PutVoiceConnectorStreamingConfigurationCommand extends $Command< PutVoiceConnectorStreamingConfigurationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutVoiceConnectorStreamingConfigurationCommand extends $Command< PutVoiceConnectorStreamingConfigurationCommandInput, PutVoiceConnectorStreamingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorTerminationCommand.ts b/clients/client-chime/commands/PutVoiceConnectorTerminationCommand.ts index 8ae007a5420bf..ef0b5d95eb73a 100644 --- a/clients/client-chime/commands/PutVoiceConnectorTerminationCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorTerminationCommand.ts @@ -31,6 +31,7 @@ export class PutVoiceConnectorTerminationCommand extends $Command< PutVoiceConnectorTerminationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutVoiceConnectorTerminationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/PutVoiceConnectorTerminationCredentialsCommand.ts b/clients/client-chime/commands/PutVoiceConnectorTerminationCredentialsCommand.ts index dec3c9576a2bb..94e50cab9feb8 100644 --- a/clients/client-chime/commands/PutVoiceConnectorTerminationCredentialsCommand.ts +++ b/clients/client-chime/commands/PutVoiceConnectorTerminationCredentialsCommand.ts @@ -28,6 +28,7 @@ export class PutVoiceConnectorTerminationCredentialsCommand extends $Command< PutVoiceConnectorTerminationCredentialsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutVoiceConnectorTerminationCredentialsCommand extends $Command< PutVoiceConnectorTerminationCredentialsCommandInput, PutVoiceConnectorTerminationCredentialsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/RedactChannelMessageCommand.ts b/clients/client-chime/commands/RedactChannelMessageCommand.ts index 3ef44cd6b1139..540127caff140 100644 --- a/clients/client-chime/commands/RedactChannelMessageCommand.ts +++ b/clients/client-chime/commands/RedactChannelMessageCommand.ts @@ -29,6 +29,7 @@ export class RedactChannelMessageCommand extends $Command< RedactChannelMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RedactChannelMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/RedactConversationMessageCommand.ts b/clients/client-chime/commands/RedactConversationMessageCommand.ts index 5c89496114538..d432a778aa128 100644 --- a/clients/client-chime/commands/RedactConversationMessageCommand.ts +++ b/clients/client-chime/commands/RedactConversationMessageCommand.ts @@ -28,6 +28,7 @@ export class RedactConversationMessageCommand extends $Command< RedactConversationMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RedactConversationMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/RedactRoomMessageCommand.ts b/clients/client-chime/commands/RedactRoomMessageCommand.ts index 9959448e7f38e..3182cc76e91cb 100644 --- a/clients/client-chime/commands/RedactRoomMessageCommand.ts +++ b/clients/client-chime/commands/RedactRoomMessageCommand.ts @@ -28,6 +28,7 @@ export class RedactRoomMessageCommand extends $Command< RedactRoomMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RedactRoomMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/RegenerateSecurityTokenCommand.ts b/clients/client-chime/commands/RegenerateSecurityTokenCommand.ts index a7233e5ddac42..13bcb682d0622 100644 --- a/clients/client-chime/commands/RegenerateSecurityTokenCommand.ts +++ b/clients/client-chime/commands/RegenerateSecurityTokenCommand.ts @@ -28,6 +28,7 @@ export class RegenerateSecurityTokenCommand extends $Command< RegenerateSecurityTokenCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegenerateSecurityTokenCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/ResetPersonalPINCommand.ts b/clients/client-chime/commands/ResetPersonalPINCommand.ts index 4bc0d5623c446..39c3b5ccd4276 100644 --- a/clients/client-chime/commands/ResetPersonalPINCommand.ts +++ b/clients/client-chime/commands/ResetPersonalPINCommand.ts @@ -29,6 +29,7 @@ export class ResetPersonalPINCommand extends $Command< ResetPersonalPINCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ResetPersonalPINCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/RestorePhoneNumberCommand.ts b/clients/client-chime/commands/RestorePhoneNumberCommand.ts index cadd955c9fabe..1570cab143d39 100644 --- a/clients/client-chime/commands/RestorePhoneNumberCommand.ts +++ b/clients/client-chime/commands/RestorePhoneNumberCommand.ts @@ -29,6 +29,7 @@ export class RestorePhoneNumberCommand extends $Command< RestorePhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RestorePhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/SearchAvailablePhoneNumbersCommand.ts b/clients/client-chime/commands/SearchAvailablePhoneNumbersCommand.ts index cb8e515941eb8..a1cd7dd945024 100644 --- a/clients/client-chime/commands/SearchAvailablePhoneNumbersCommand.ts +++ b/clients/client-chime/commands/SearchAvailablePhoneNumbersCommand.ts @@ -28,6 +28,7 @@ export class SearchAvailablePhoneNumbersCommand extends $Command< SearchAvailablePhoneNumbersCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchAvailablePhoneNumbersCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/SendChannelMessageCommand.ts b/clients/client-chime/commands/SendChannelMessageCommand.ts index 7738086ec4bd0..676d0ffe521cb 100644 --- a/clients/client-chime/commands/SendChannelMessageCommand.ts +++ b/clients/client-chime/commands/SendChannelMessageCommand.ts @@ -34,6 +34,7 @@ export class SendChannelMessageCommand extends $Command< SendChannelMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SendChannelMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/TagAttendeeCommand.ts b/clients/client-chime/commands/TagAttendeeCommand.ts index 3d61218bb95a1..aaadc8bd75fcd 100644 --- a/clients/client-chime/commands/TagAttendeeCommand.ts +++ b/clients/client-chime/commands/TagAttendeeCommand.ts @@ -28,6 +28,7 @@ export class TagAttendeeCommand extends $Command< TagAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/TagMeetingCommand.ts b/clients/client-chime/commands/TagMeetingCommand.ts index 73e5287587b89..283968b66b569 100644 --- a/clients/client-chime/commands/TagMeetingCommand.ts +++ b/clients/client-chime/commands/TagMeetingCommand.ts @@ -28,6 +28,7 @@ export class TagMeetingCommand extends $Command< TagMeetingCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagMeetingCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/TagResourceCommand.ts b/clients/client-chime/commands/TagResourceCommand.ts index b6698e1592078..a2dad9c2d15e2 100644 --- a/clients/client-chime/commands/TagResourceCommand.ts +++ b/clients/client-chime/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UntagAttendeeCommand.ts b/clients/client-chime/commands/UntagAttendeeCommand.ts index 9bee373d7cb1c..f41258b46989a 100644 --- a/clients/client-chime/commands/UntagAttendeeCommand.ts +++ b/clients/client-chime/commands/UntagAttendeeCommand.ts @@ -28,6 +28,7 @@ export class UntagAttendeeCommand extends $Command< UntagAttendeeCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagAttendeeCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UntagMeetingCommand.ts b/clients/client-chime/commands/UntagMeetingCommand.ts index 01dd8f1c331b9..38df1c1c98ee9 100644 --- a/clients/client-chime/commands/UntagMeetingCommand.ts +++ b/clients/client-chime/commands/UntagMeetingCommand.ts @@ -28,6 +28,7 @@ export class UntagMeetingCommand extends $Command< UntagMeetingCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagMeetingCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UntagResourceCommand.ts b/clients/client-chime/commands/UntagResourceCommand.ts index 18f6389785b89..470743908e1b9 100644 --- a/clients/client-chime/commands/UntagResourceCommand.ts +++ b/clients/client-chime/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateAccountCommand.ts b/clients/client-chime/commands/UpdateAccountCommand.ts index 27ea85616b4cc..9e46b5a940792 100644 --- a/clients/client-chime/commands/UpdateAccountCommand.ts +++ b/clients/client-chime/commands/UpdateAccountCommand.ts @@ -29,6 +29,7 @@ export class UpdateAccountCommand extends $Command< UpdateAccountCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateAccountCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateAccountSettingsCommand.ts b/clients/client-chime/commands/UpdateAccountSettingsCommand.ts index 5bd2e96034287..0665bd302b2ec 100644 --- a/clients/client-chime/commands/UpdateAccountSettingsCommand.ts +++ b/clients/client-chime/commands/UpdateAccountSettingsCommand.ts @@ -32,6 +32,7 @@ export class UpdateAccountSettingsCommand extends $Command< UpdateAccountSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateAccountSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateAppInstanceCommand.ts b/clients/client-chime/commands/UpdateAppInstanceCommand.ts index 3160415d68fed..0e21fd4b2e667 100644 --- a/clients/client-chime/commands/UpdateAppInstanceCommand.ts +++ b/clients/client-chime/commands/UpdateAppInstanceCommand.ts @@ -28,6 +28,7 @@ export class UpdateAppInstanceCommand extends $Command< UpdateAppInstanceCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAppInstanceCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateAppInstanceUserCommand.ts b/clients/client-chime/commands/UpdateAppInstanceUserCommand.ts index ddb5f66ebe42d..850e7907f1852 100644 --- a/clients/client-chime/commands/UpdateAppInstanceUserCommand.ts +++ b/clients/client-chime/commands/UpdateAppInstanceUserCommand.ts @@ -28,6 +28,7 @@ export class UpdateAppInstanceUserCommand extends $Command< UpdateAppInstanceUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAppInstanceUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateBotCommand.ts b/clients/client-chime/commands/UpdateBotCommand.ts index ccf92b0b21523..c9196d6bac544 100644 --- a/clients/client-chime/commands/UpdateBotCommand.ts +++ b/clients/client-chime/commands/UpdateBotCommand.ts @@ -28,6 +28,7 @@ export class UpdateBotCommand extends $Command< UpdateBotCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBotCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateChannelCommand.ts b/clients/client-chime/commands/UpdateChannelCommand.ts index 18e8550758eda..d02db75e623c9 100644 --- a/clients/client-chime/commands/UpdateChannelCommand.ts +++ b/clients/client-chime/commands/UpdateChannelCommand.ts @@ -30,6 +30,7 @@ export class UpdateChannelCommand extends $Command< UpdateChannelCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateChannelCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateChannelMessageCommand.ts b/clients/client-chime/commands/UpdateChannelMessageCommand.ts index 5c92558d9f80f..9ab28b0c4b4c3 100644 --- a/clients/client-chime/commands/UpdateChannelMessageCommand.ts +++ b/clients/client-chime/commands/UpdateChannelMessageCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelMessageCommand extends $Command< UpdateChannelMessageCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelMessageCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateChannelReadMarkerCommand.ts b/clients/client-chime/commands/UpdateChannelReadMarkerCommand.ts index 4a31b84c3edf9..99cea46a1c14b 100644 --- a/clients/client-chime/commands/UpdateChannelReadMarkerCommand.ts +++ b/clients/client-chime/commands/UpdateChannelReadMarkerCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelReadMarkerCommand extends $Command< UpdateChannelReadMarkerCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelReadMarkerCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateGlobalSettingsCommand.ts b/clients/client-chime/commands/UpdateGlobalSettingsCommand.ts index 7d6a2cde36e97..9cdabbb35f5b9 100644 --- a/clients/client-chime/commands/UpdateGlobalSettingsCommand.ts +++ b/clients/client-chime/commands/UpdateGlobalSettingsCommand.ts @@ -29,6 +29,7 @@ export class UpdateGlobalSettingsCommand extends $Command< UpdateGlobalSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateGlobalSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdatePhoneNumberCommand.ts b/clients/client-chime/commands/UpdatePhoneNumberCommand.ts index 42347fca793c8..95198829cc607 100644 --- a/clients/client-chime/commands/UpdatePhoneNumberCommand.ts +++ b/clients/client-chime/commands/UpdatePhoneNumberCommand.ts @@ -31,6 +31,7 @@ export class UpdatePhoneNumberCommand extends $Command< UpdatePhoneNumberCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdatePhoneNumberCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdatePhoneNumberSettingsCommand.ts b/clients/client-chime/commands/UpdatePhoneNumberSettingsCommand.ts index 907723d22bc5b..0a67c714513bc 100644 --- a/clients/client-chime/commands/UpdatePhoneNumberSettingsCommand.ts +++ b/clients/client-chime/commands/UpdatePhoneNumberSettingsCommand.ts @@ -30,6 +30,7 @@ export class UpdatePhoneNumberSettingsCommand extends $Command< UpdatePhoneNumberSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdatePhoneNumberSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateProxySessionCommand.ts b/clients/client-chime/commands/UpdateProxySessionCommand.ts index acdc9fede9f2b..653767c76c663 100644 --- a/clients/client-chime/commands/UpdateProxySessionCommand.ts +++ b/clients/client-chime/commands/UpdateProxySessionCommand.ts @@ -28,6 +28,7 @@ export class UpdateProxySessionCommand extends $Command< UpdateProxySessionCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProxySessionCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateRoomCommand.ts b/clients/client-chime/commands/UpdateRoomCommand.ts index 7566d19134cd3..e8c16ee0421d7 100644 --- a/clients/client-chime/commands/UpdateRoomCommand.ts +++ b/clients/client-chime/commands/UpdateRoomCommand.ts @@ -28,6 +28,7 @@ export class UpdateRoomCommand extends $Command< UpdateRoomCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRoomCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateRoomMembershipCommand.ts b/clients/client-chime/commands/UpdateRoomMembershipCommand.ts index 5317d57cb0fad..c0b43662695a5 100644 --- a/clients/client-chime/commands/UpdateRoomMembershipCommand.ts +++ b/clients/client-chime/commands/UpdateRoomMembershipCommand.ts @@ -30,6 +30,7 @@ export class UpdateRoomMembershipCommand extends $Command< UpdateRoomMembershipCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateRoomMembershipCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateSipMediaApplicationCommand.ts b/clients/client-chime/commands/UpdateSipMediaApplicationCommand.ts index fb89c11e56776..f73e1df7c83ab 100644 --- a/clients/client-chime/commands/UpdateSipMediaApplicationCommand.ts +++ b/clients/client-chime/commands/UpdateSipMediaApplicationCommand.ts @@ -28,6 +28,7 @@ export class UpdateSipMediaApplicationCommand extends $Command< UpdateSipMediaApplicationCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSipMediaApplicationCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateSipRuleCommand.ts b/clients/client-chime/commands/UpdateSipRuleCommand.ts index 5b64a98bb4cc9..0719ff6686a84 100644 --- a/clients/client-chime/commands/UpdateSipRuleCommand.ts +++ b/clients/client-chime/commands/UpdateSipRuleCommand.ts @@ -28,6 +28,7 @@ export class UpdateSipRuleCommand extends $Command< UpdateSipRuleCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSipRuleCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateUserCommand.ts b/clients/client-chime/commands/UpdateUserCommand.ts index 0b6ff82db40a4..d61ed0d5c7613 100644 --- a/clients/client-chime/commands/UpdateUserCommand.ts +++ b/clients/client-chime/commands/UpdateUserCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateUserSettingsCommand.ts b/clients/client-chime/commands/UpdateUserSettingsCommand.ts index 01385aafdd69e..328f45fcf0968 100644 --- a/clients/client-chime/commands/UpdateUserSettingsCommand.ts +++ b/clients/client-chime/commands/UpdateUserSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserSettingsCommand extends $Command< UpdateUserSettingsCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserSettingsCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateVoiceConnectorCommand.ts b/clients/client-chime/commands/UpdateVoiceConnectorCommand.ts index 2387e32170d3a..3ed453588aa22 100644 --- a/clients/client-chime/commands/UpdateVoiceConnectorCommand.ts +++ b/clients/client-chime/commands/UpdateVoiceConnectorCommand.ts @@ -28,6 +28,7 @@ export class UpdateVoiceConnectorCommand extends $Command< UpdateVoiceConnectorCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVoiceConnectorCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-chime/commands/UpdateVoiceConnectorGroupCommand.ts b/clients/client-chime/commands/UpdateVoiceConnectorGroupCommand.ts index f2df770b13471..11c6c978c8fbe 100644 --- a/clients/client-chime/commands/UpdateVoiceConnectorGroupCommand.ts +++ b/clients/client-chime/commands/UpdateVoiceConnectorGroupCommand.ts @@ -29,6 +29,7 @@ export class UpdateVoiceConnectorGroupCommand extends $Command< UpdateVoiceConnectorGroupCommandOutput, ChimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateVoiceConnectorGroupCommand extends $Command< configuration: ChimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/CreateEnvironmentEC2Command.ts b/clients/client-cloud9/commands/CreateEnvironmentEC2Command.ts index cdf9a5388b09b..1f858020e0e57 100644 --- a/clients/client-cloud9/commands/CreateEnvironmentEC2Command.ts +++ b/clients/client-cloud9/commands/CreateEnvironmentEC2Command.ts @@ -28,6 +28,7 @@ export class CreateEnvironmentEC2Command extends $Command< CreateEnvironmentEC2CommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateEnvironmentEC2Command extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/CreateEnvironmentMembershipCommand.ts b/clients/client-cloud9/commands/CreateEnvironmentMembershipCommand.ts index e08a284d6ee8e..64b981b3a7c00 100644 --- a/clients/client-cloud9/commands/CreateEnvironmentMembershipCommand.ts +++ b/clients/client-cloud9/commands/CreateEnvironmentMembershipCommand.ts @@ -28,6 +28,7 @@ export class CreateEnvironmentMembershipCommand extends $Command< CreateEnvironmentMembershipCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateEnvironmentMembershipCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/DeleteEnvironmentCommand.ts b/clients/client-cloud9/commands/DeleteEnvironmentCommand.ts index 5d14412fc6dad..81dfd152cafa9 100644 --- a/clients/client-cloud9/commands/DeleteEnvironmentCommand.ts +++ b/clients/client-cloud9/commands/DeleteEnvironmentCommand.ts @@ -28,6 +28,7 @@ export class DeleteEnvironmentCommand extends $Command< DeleteEnvironmentCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEnvironmentCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/DeleteEnvironmentMembershipCommand.ts b/clients/client-cloud9/commands/DeleteEnvironmentMembershipCommand.ts index 483bf97335591..34cbb2b498b08 100644 --- a/clients/client-cloud9/commands/DeleteEnvironmentMembershipCommand.ts +++ b/clients/client-cloud9/commands/DeleteEnvironmentMembershipCommand.ts @@ -28,6 +28,7 @@ export class DeleteEnvironmentMembershipCommand extends $Command< DeleteEnvironmentMembershipCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEnvironmentMembershipCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/DescribeEnvironmentMembershipsCommand.ts b/clients/client-cloud9/commands/DescribeEnvironmentMembershipsCommand.ts index 740b1e485df4d..444b97536dc5a 100644 --- a/clients/client-cloud9/commands/DescribeEnvironmentMembershipsCommand.ts +++ b/clients/client-cloud9/commands/DescribeEnvironmentMembershipsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentMembershipsCommand extends $Command< DescribeEnvironmentMembershipsCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentMembershipsCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/DescribeEnvironmentStatusCommand.ts b/clients/client-cloud9/commands/DescribeEnvironmentStatusCommand.ts index b4533d03ea48c..025668c48f75e 100644 --- a/clients/client-cloud9/commands/DescribeEnvironmentStatusCommand.ts +++ b/clients/client-cloud9/commands/DescribeEnvironmentStatusCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentStatusCommand extends $Command< DescribeEnvironmentStatusCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentStatusCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/DescribeEnvironmentsCommand.ts b/clients/client-cloud9/commands/DescribeEnvironmentsCommand.ts index 16623032e29de..53f3f08bcbe19 100644 --- a/clients/client-cloud9/commands/DescribeEnvironmentsCommand.ts +++ b/clients/client-cloud9/commands/DescribeEnvironmentsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentsCommand extends $Command< DescribeEnvironmentsCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentsCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/ListEnvironmentsCommand.ts b/clients/client-cloud9/commands/ListEnvironmentsCommand.ts index 10d37516679a3..a65d3ae68e4f2 100644 --- a/clients/client-cloud9/commands/ListEnvironmentsCommand.ts +++ b/clients/client-cloud9/commands/ListEnvironmentsCommand.ts @@ -28,6 +28,7 @@ export class ListEnvironmentsCommand extends $Command< ListEnvironmentsCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEnvironmentsCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/ListTagsForResourceCommand.ts b/clients/client-cloud9/commands/ListTagsForResourceCommand.ts index f8b42d8512d95..730945d374c89 100644 --- a/clients/client-cloud9/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloud9/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/TagResourceCommand.ts b/clients/client-cloud9/commands/TagResourceCommand.ts index 5209276f52014..30085996a853f 100644 --- a/clients/client-cloud9/commands/TagResourceCommand.ts +++ b/clients/client-cloud9/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/UntagResourceCommand.ts b/clients/client-cloud9/commands/UntagResourceCommand.ts index e7e31857f8531..e98a47880408f 100644 --- a/clients/client-cloud9/commands/UntagResourceCommand.ts +++ b/clients/client-cloud9/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/UpdateEnvironmentCommand.ts b/clients/client-cloud9/commands/UpdateEnvironmentCommand.ts index 2915208637f63..fe56315b24d8d 100644 --- a/clients/client-cloud9/commands/UpdateEnvironmentCommand.ts +++ b/clients/client-cloud9/commands/UpdateEnvironmentCommand.ts @@ -28,6 +28,7 @@ export class UpdateEnvironmentCommand extends $Command< UpdateEnvironmentCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEnvironmentCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloud9/commands/UpdateEnvironmentMembershipCommand.ts b/clients/client-cloud9/commands/UpdateEnvironmentMembershipCommand.ts index 910467b160fc7..7b959278ee87d 100644 --- a/clients/client-cloud9/commands/UpdateEnvironmentMembershipCommand.ts +++ b/clients/client-cloud9/commands/UpdateEnvironmentMembershipCommand.ts @@ -28,6 +28,7 @@ export class UpdateEnvironmentMembershipCommand extends $Command< UpdateEnvironmentMembershipCommandOutput, Cloud9ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEnvironmentMembershipCommand extends $Command< configuration: Cloud9ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/AddFacetToObjectCommand.ts b/clients/client-clouddirectory/commands/AddFacetToObjectCommand.ts index d3572c538d4ce..7cd695d57d760 100644 --- a/clients/client-clouddirectory/commands/AddFacetToObjectCommand.ts +++ b/clients/client-clouddirectory/commands/AddFacetToObjectCommand.ts @@ -28,6 +28,7 @@ export class AddFacetToObjectCommand extends $Command< AddFacetToObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddFacetToObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ApplySchemaCommand.ts b/clients/client-clouddirectory/commands/ApplySchemaCommand.ts index e80c56b5c671e..d742d562f385a 100644 --- a/clients/client-clouddirectory/commands/ApplySchemaCommand.ts +++ b/clients/client-clouddirectory/commands/ApplySchemaCommand.ts @@ -29,6 +29,7 @@ export class ApplySchemaCommand extends $Command< ApplySchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ApplySchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/AttachObjectCommand.ts b/clients/client-clouddirectory/commands/AttachObjectCommand.ts index 402067a65ef40..d4a019d6fd425 100644 --- a/clients/client-clouddirectory/commands/AttachObjectCommand.ts +++ b/clients/client-clouddirectory/commands/AttachObjectCommand.ts @@ -38,6 +38,7 @@ export class AttachObjectCommand extends $Command< AttachObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AttachObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/AttachPolicyCommand.ts b/clients/client-clouddirectory/commands/AttachPolicyCommand.ts index ae42a66f6db1b..f2d9b6e5f2f2f 100644 --- a/clients/client-clouddirectory/commands/AttachPolicyCommand.ts +++ b/clients/client-clouddirectory/commands/AttachPolicyCommand.ts @@ -29,6 +29,7 @@ export class AttachPolicyCommand extends $Command< AttachPolicyCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AttachPolicyCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/AttachToIndexCommand.ts b/clients/client-clouddirectory/commands/AttachToIndexCommand.ts index 9ceaaadf5044d..6c64676dbe5f3 100644 --- a/clients/client-clouddirectory/commands/AttachToIndexCommand.ts +++ b/clients/client-clouddirectory/commands/AttachToIndexCommand.ts @@ -28,6 +28,7 @@ export class AttachToIndexCommand extends $Command< AttachToIndexCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AttachToIndexCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/AttachTypedLinkCommand.ts b/clients/client-clouddirectory/commands/AttachTypedLinkCommand.ts index 9bc9008b10556..53173ab661746 100644 --- a/clients/client-clouddirectory/commands/AttachTypedLinkCommand.ts +++ b/clients/client-clouddirectory/commands/AttachTypedLinkCommand.ts @@ -28,6 +28,7 @@ export class AttachTypedLinkCommand extends $Command< AttachTypedLinkCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AttachTypedLinkCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/BatchReadCommand.ts b/clients/client-clouddirectory/commands/BatchReadCommand.ts index 93f1887f72977..f73ad5652bca4 100644 --- a/clients/client-clouddirectory/commands/BatchReadCommand.ts +++ b/clients/client-clouddirectory/commands/BatchReadCommand.ts @@ -28,6 +28,7 @@ export class BatchReadCommand extends $Command< BatchReadCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchReadCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/BatchWriteCommand.ts b/clients/client-clouddirectory/commands/BatchWriteCommand.ts index 413cc730bef1f..2f115f3899470 100644 --- a/clients/client-clouddirectory/commands/BatchWriteCommand.ts +++ b/clients/client-clouddirectory/commands/BatchWriteCommand.ts @@ -29,6 +29,7 @@ export class BatchWriteCommand extends $Command< BatchWriteCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BatchWriteCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateDirectoryCommand.ts b/clients/client-clouddirectory/commands/CreateDirectoryCommand.ts index 8f1d72fd4a66c..fcb40c654b09d 100644 --- a/clients/client-clouddirectory/commands/CreateDirectoryCommand.ts +++ b/clients/client-clouddirectory/commands/CreateDirectoryCommand.ts @@ -31,6 +31,7 @@ export class CreateDirectoryCommand extends $Command< CreateDirectoryCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDirectoryCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateFacetCommand.ts b/clients/client-clouddirectory/commands/CreateFacetCommand.ts index 3f159e628d3d5..b880994a5b396 100644 --- a/clients/client-clouddirectory/commands/CreateFacetCommand.ts +++ b/clients/client-clouddirectory/commands/CreateFacetCommand.ts @@ -29,6 +29,7 @@ export class CreateFacetCommand extends $Command< CreateFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateIndexCommand.ts b/clients/client-clouddirectory/commands/CreateIndexCommand.ts index e48f6bc313a67..1dac7e065ff20 100644 --- a/clients/client-clouddirectory/commands/CreateIndexCommand.ts +++ b/clients/client-clouddirectory/commands/CreateIndexCommand.ts @@ -28,6 +28,7 @@ export class CreateIndexCommand extends $Command< CreateIndexCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateIndexCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateObjectCommand.ts b/clients/client-clouddirectory/commands/CreateObjectCommand.ts index 201287f7f1bee..8ff6ebbca177e 100644 --- a/clients/client-clouddirectory/commands/CreateObjectCommand.ts +++ b/clients/client-clouddirectory/commands/CreateObjectCommand.ts @@ -31,6 +31,7 @@ export class CreateObjectCommand extends $Command< CreateObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateSchemaCommand.ts b/clients/client-clouddirectory/commands/CreateSchemaCommand.ts index 513b7d5850975..dabf9800da1b2 100644 --- a/clients/client-clouddirectory/commands/CreateSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/CreateSchemaCommand.ts @@ -48,6 +48,7 @@ export class CreateSchemaCommand extends $Command< CreateSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/CreateTypedLinkFacetCommand.ts b/clients/client-clouddirectory/commands/CreateTypedLinkFacetCommand.ts index 279c4c9cdd180..2f867ad3b802e 100644 --- a/clients/client-clouddirectory/commands/CreateTypedLinkFacetCommand.ts +++ b/clients/client-clouddirectory/commands/CreateTypedLinkFacetCommand.ts @@ -28,6 +28,7 @@ export class CreateTypedLinkFacetCommand extends $Command< CreateTypedLinkFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTypedLinkFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DeleteDirectoryCommand.ts b/clients/client-clouddirectory/commands/DeleteDirectoryCommand.ts index 49bd174933038..225a1797a8def 100644 --- a/clients/client-clouddirectory/commands/DeleteDirectoryCommand.ts +++ b/clients/client-clouddirectory/commands/DeleteDirectoryCommand.ts @@ -30,6 +30,7 @@ export class DeleteDirectoryCommand extends $Command< DeleteDirectoryCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDirectoryCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DeleteFacetCommand.ts b/clients/client-clouddirectory/commands/DeleteFacetCommand.ts index 0dbeac3e9e48c..732649dcfff3b 100644 --- a/clients/client-clouddirectory/commands/DeleteFacetCommand.ts +++ b/clients/client-clouddirectory/commands/DeleteFacetCommand.ts @@ -30,6 +30,7 @@ export class DeleteFacetCommand extends $Command< DeleteFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DeleteObjectCommand.ts b/clients/client-clouddirectory/commands/DeleteObjectCommand.ts index 613d25fd3fd36..449f60d0d7c80 100644 --- a/clients/client-clouddirectory/commands/DeleteObjectCommand.ts +++ b/clients/client-clouddirectory/commands/DeleteObjectCommand.ts @@ -29,6 +29,7 @@ export class DeleteObjectCommand extends $Command< DeleteObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DeleteSchemaCommand.ts b/clients/client-clouddirectory/commands/DeleteSchemaCommand.ts index 7b5307974894c..d2a1710682b96 100644 --- a/clients/client-clouddirectory/commands/DeleteSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/DeleteSchemaCommand.ts @@ -28,6 +28,7 @@ export class DeleteSchemaCommand extends $Command< DeleteSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DeleteTypedLinkFacetCommand.ts b/clients/client-clouddirectory/commands/DeleteTypedLinkFacetCommand.ts index f70515312bf66..38a5d98ccf50c 100644 --- a/clients/client-clouddirectory/commands/DeleteTypedLinkFacetCommand.ts +++ b/clients/client-clouddirectory/commands/DeleteTypedLinkFacetCommand.ts @@ -28,6 +28,7 @@ export class DeleteTypedLinkFacetCommand extends $Command< DeleteTypedLinkFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTypedLinkFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DetachFromIndexCommand.ts b/clients/client-clouddirectory/commands/DetachFromIndexCommand.ts index 6cf1364f705cb..36edd4196953d 100644 --- a/clients/client-clouddirectory/commands/DetachFromIndexCommand.ts +++ b/clients/client-clouddirectory/commands/DetachFromIndexCommand.ts @@ -28,6 +28,7 @@ export class DetachFromIndexCommand extends $Command< DetachFromIndexCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachFromIndexCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DetachObjectCommand.ts b/clients/client-clouddirectory/commands/DetachObjectCommand.ts index eadbf9749cc11..3a8e53e426863 100644 --- a/clients/client-clouddirectory/commands/DetachObjectCommand.ts +++ b/clients/client-clouddirectory/commands/DetachObjectCommand.ts @@ -29,6 +29,7 @@ export class DetachObjectCommand extends $Command< DetachObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetachObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DetachPolicyCommand.ts b/clients/client-clouddirectory/commands/DetachPolicyCommand.ts index 6209a12e37c7b..c3ce7c45bf2b2 100644 --- a/clients/client-clouddirectory/commands/DetachPolicyCommand.ts +++ b/clients/client-clouddirectory/commands/DetachPolicyCommand.ts @@ -28,6 +28,7 @@ export class DetachPolicyCommand extends $Command< DetachPolicyCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachPolicyCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DetachTypedLinkCommand.ts b/clients/client-clouddirectory/commands/DetachTypedLinkCommand.ts index 7ef8c739994f9..738c0328f63ad 100644 --- a/clients/client-clouddirectory/commands/DetachTypedLinkCommand.ts +++ b/clients/client-clouddirectory/commands/DetachTypedLinkCommand.ts @@ -28,6 +28,7 @@ export class DetachTypedLinkCommand extends $Command< DetachTypedLinkCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachTypedLinkCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/DisableDirectoryCommand.ts b/clients/client-clouddirectory/commands/DisableDirectoryCommand.ts index 614e6d8bfea24..5aca9093d528a 100644 --- a/clients/client-clouddirectory/commands/DisableDirectoryCommand.ts +++ b/clients/client-clouddirectory/commands/DisableDirectoryCommand.ts @@ -29,6 +29,7 @@ export class DisableDirectoryCommand extends $Command< DisableDirectoryCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableDirectoryCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/EnableDirectoryCommand.ts b/clients/client-clouddirectory/commands/EnableDirectoryCommand.ts index a5f545ba64792..b94cf3576a066 100644 --- a/clients/client-clouddirectory/commands/EnableDirectoryCommand.ts +++ b/clients/client-clouddirectory/commands/EnableDirectoryCommand.ts @@ -29,6 +29,7 @@ export class EnableDirectoryCommand extends $Command< EnableDirectoryCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableDirectoryCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetAppliedSchemaVersionCommand.ts b/clients/client-clouddirectory/commands/GetAppliedSchemaVersionCommand.ts index b3270fbb49e4d..dc0bc2b29a38d 100644 --- a/clients/client-clouddirectory/commands/GetAppliedSchemaVersionCommand.ts +++ b/clients/client-clouddirectory/commands/GetAppliedSchemaVersionCommand.ts @@ -28,6 +28,7 @@ export class GetAppliedSchemaVersionCommand extends $Command< GetAppliedSchemaVersionCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppliedSchemaVersionCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetDirectoryCommand.ts b/clients/client-clouddirectory/commands/GetDirectoryCommand.ts index bf15f9f90caa4..90b819843d6cd 100644 --- a/clients/client-clouddirectory/commands/GetDirectoryCommand.ts +++ b/clients/client-clouddirectory/commands/GetDirectoryCommand.ts @@ -28,6 +28,7 @@ export class GetDirectoryCommand extends $Command< GetDirectoryCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDirectoryCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetFacetCommand.ts b/clients/client-clouddirectory/commands/GetFacetCommand.ts index b45a6a94fae77..8a46a599bd24b 100644 --- a/clients/client-clouddirectory/commands/GetFacetCommand.ts +++ b/clients/client-clouddirectory/commands/GetFacetCommand.ts @@ -29,6 +29,7 @@ export class GetFacetCommand extends $Command< GetFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetLinkAttributesCommand.ts b/clients/client-clouddirectory/commands/GetLinkAttributesCommand.ts index 12cabd7623059..0cbe2df3133ec 100644 --- a/clients/client-clouddirectory/commands/GetLinkAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/GetLinkAttributesCommand.ts @@ -28,6 +28,7 @@ export class GetLinkAttributesCommand extends $Command< GetLinkAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLinkAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetObjectAttributesCommand.ts b/clients/client-clouddirectory/commands/GetObjectAttributesCommand.ts index bc6c2e3182ccd..96e63130dabd3 100644 --- a/clients/client-clouddirectory/commands/GetObjectAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/GetObjectAttributesCommand.ts @@ -28,6 +28,7 @@ export class GetObjectAttributesCommand extends $Command< GetObjectAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetObjectAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetObjectInformationCommand.ts b/clients/client-clouddirectory/commands/GetObjectInformationCommand.ts index 20965423215f0..ceb99e3339ff0 100644 --- a/clients/client-clouddirectory/commands/GetObjectInformationCommand.ts +++ b/clients/client-clouddirectory/commands/GetObjectInformationCommand.ts @@ -28,6 +28,7 @@ export class GetObjectInformationCommand extends $Command< GetObjectInformationCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetObjectInformationCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetSchemaAsJsonCommand.ts b/clients/client-clouddirectory/commands/GetSchemaAsJsonCommand.ts index b4c44f7ce01e7..3bd901063116b 100644 --- a/clients/client-clouddirectory/commands/GetSchemaAsJsonCommand.ts +++ b/clients/client-clouddirectory/commands/GetSchemaAsJsonCommand.ts @@ -28,6 +28,7 @@ export class GetSchemaAsJsonCommand extends $Command< GetSchemaAsJsonCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSchemaAsJsonCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/GetTypedLinkFacetInformationCommand.ts b/clients/client-clouddirectory/commands/GetTypedLinkFacetInformationCommand.ts index ce37d34684f0d..13da82dd73b93 100644 --- a/clients/client-clouddirectory/commands/GetTypedLinkFacetInformationCommand.ts +++ b/clients/client-clouddirectory/commands/GetTypedLinkFacetInformationCommand.ts @@ -28,6 +28,7 @@ export class GetTypedLinkFacetInformationCommand extends $Command< GetTypedLinkFacetInformationCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTypedLinkFacetInformationCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListAppliedSchemaArnsCommand.ts b/clients/client-clouddirectory/commands/ListAppliedSchemaArnsCommand.ts index ceff9a8ebbd4e..12370ac9302a3 100644 --- a/clients/client-clouddirectory/commands/ListAppliedSchemaArnsCommand.ts +++ b/clients/client-clouddirectory/commands/ListAppliedSchemaArnsCommand.ts @@ -28,6 +28,7 @@ export class ListAppliedSchemaArnsCommand extends $Command< ListAppliedSchemaArnsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAppliedSchemaArnsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListAttachedIndicesCommand.ts b/clients/client-clouddirectory/commands/ListAttachedIndicesCommand.ts index f4feab55e6d91..02bdc7860488d 100644 --- a/clients/client-clouddirectory/commands/ListAttachedIndicesCommand.ts +++ b/clients/client-clouddirectory/commands/ListAttachedIndicesCommand.ts @@ -28,6 +28,7 @@ export class ListAttachedIndicesCommand extends $Command< ListAttachedIndicesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAttachedIndicesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListDevelopmentSchemaArnsCommand.ts b/clients/client-clouddirectory/commands/ListDevelopmentSchemaArnsCommand.ts index 0bcfb8974d99b..94f94693a687a 100644 --- a/clients/client-clouddirectory/commands/ListDevelopmentSchemaArnsCommand.ts +++ b/clients/client-clouddirectory/commands/ListDevelopmentSchemaArnsCommand.ts @@ -29,6 +29,7 @@ export class ListDevelopmentSchemaArnsCommand extends $Command< ListDevelopmentSchemaArnsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDevelopmentSchemaArnsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListDirectoriesCommand.ts b/clients/client-clouddirectory/commands/ListDirectoriesCommand.ts index d148578c0393b..913e65bc9d362 100644 --- a/clients/client-clouddirectory/commands/ListDirectoriesCommand.ts +++ b/clients/client-clouddirectory/commands/ListDirectoriesCommand.ts @@ -28,6 +28,7 @@ export class ListDirectoriesCommand extends $Command< ListDirectoriesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDirectoriesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListFacetAttributesCommand.ts b/clients/client-clouddirectory/commands/ListFacetAttributesCommand.ts index 4e8ae5ada16b5..ec522c0b00bd3 100644 --- a/clients/client-clouddirectory/commands/ListFacetAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/ListFacetAttributesCommand.ts @@ -28,6 +28,7 @@ export class ListFacetAttributesCommand extends $Command< ListFacetAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFacetAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListFacetNamesCommand.ts b/clients/client-clouddirectory/commands/ListFacetNamesCommand.ts index 675c075e3bc6f..c758f95d5e7dd 100644 --- a/clients/client-clouddirectory/commands/ListFacetNamesCommand.ts +++ b/clients/client-clouddirectory/commands/ListFacetNamesCommand.ts @@ -28,6 +28,7 @@ export class ListFacetNamesCommand extends $Command< ListFacetNamesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFacetNamesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListIncomingTypedLinksCommand.ts b/clients/client-clouddirectory/commands/ListIncomingTypedLinksCommand.ts index 39581f46d65f5..2e7ebaf2ec16a 100644 --- a/clients/client-clouddirectory/commands/ListIncomingTypedLinksCommand.ts +++ b/clients/client-clouddirectory/commands/ListIncomingTypedLinksCommand.ts @@ -30,6 +30,7 @@ export class ListIncomingTypedLinksCommand extends $Command< ListIncomingTypedLinksCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListIncomingTypedLinksCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListIndexCommand.ts b/clients/client-clouddirectory/commands/ListIndexCommand.ts index 5eca11f70dd22..8836efa244dfe 100644 --- a/clients/client-clouddirectory/commands/ListIndexCommand.ts +++ b/clients/client-clouddirectory/commands/ListIndexCommand.ts @@ -28,6 +28,7 @@ export class ListIndexCommand extends $Command< ListIndexCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIndexCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListManagedSchemaArnsCommand.ts b/clients/client-clouddirectory/commands/ListManagedSchemaArnsCommand.ts index e38c0e66e2341..24c5d740c1439 100644 --- a/clients/client-clouddirectory/commands/ListManagedSchemaArnsCommand.ts +++ b/clients/client-clouddirectory/commands/ListManagedSchemaArnsCommand.ts @@ -28,6 +28,7 @@ export class ListManagedSchemaArnsCommand extends $Command< ListManagedSchemaArnsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListManagedSchemaArnsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListObjectAttributesCommand.ts b/clients/client-clouddirectory/commands/ListObjectAttributesCommand.ts index 369e1fc517039..5475a48f4508c 100644 --- a/clients/client-clouddirectory/commands/ListObjectAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/ListObjectAttributesCommand.ts @@ -29,6 +29,7 @@ export class ListObjectAttributesCommand extends $Command< ListObjectAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListObjectAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListObjectChildrenCommand.ts b/clients/client-clouddirectory/commands/ListObjectChildrenCommand.ts index 2fcdab6ab16b8..1f5458384453e 100644 --- a/clients/client-clouddirectory/commands/ListObjectChildrenCommand.ts +++ b/clients/client-clouddirectory/commands/ListObjectChildrenCommand.ts @@ -29,6 +29,7 @@ export class ListObjectChildrenCommand extends $Command< ListObjectChildrenCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListObjectChildrenCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListObjectParentPathsCommand.ts b/clients/client-clouddirectory/commands/ListObjectParentPathsCommand.ts index 6a4ea353c59bf..a25d3aa77b041 100644 --- a/clients/client-clouddirectory/commands/ListObjectParentPathsCommand.ts +++ b/clients/client-clouddirectory/commands/ListObjectParentPathsCommand.ts @@ -35,6 +35,7 @@ export class ListObjectParentPathsCommand extends $Command< ListObjectParentPathsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListObjectParentPathsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListObjectParentsCommand.ts b/clients/client-clouddirectory/commands/ListObjectParentsCommand.ts index 62c97760b6cb0..759ce12c6e54f 100644 --- a/clients/client-clouddirectory/commands/ListObjectParentsCommand.ts +++ b/clients/client-clouddirectory/commands/ListObjectParentsCommand.ts @@ -29,6 +29,7 @@ export class ListObjectParentsCommand extends $Command< ListObjectParentsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListObjectParentsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListObjectPoliciesCommand.ts b/clients/client-clouddirectory/commands/ListObjectPoliciesCommand.ts index 0e7d62c09406d..1020cdc8e5e52 100644 --- a/clients/client-clouddirectory/commands/ListObjectPoliciesCommand.ts +++ b/clients/client-clouddirectory/commands/ListObjectPoliciesCommand.ts @@ -28,6 +28,7 @@ export class ListObjectPoliciesCommand extends $Command< ListObjectPoliciesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListObjectPoliciesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListOutgoingTypedLinksCommand.ts b/clients/client-clouddirectory/commands/ListOutgoingTypedLinksCommand.ts index fd2eb998fe312..c06190913c4fb 100644 --- a/clients/client-clouddirectory/commands/ListOutgoingTypedLinksCommand.ts +++ b/clients/client-clouddirectory/commands/ListOutgoingTypedLinksCommand.ts @@ -30,6 +30,7 @@ export class ListOutgoingTypedLinksCommand extends $Command< ListOutgoingTypedLinksCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListOutgoingTypedLinksCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListPolicyAttachmentsCommand.ts b/clients/client-clouddirectory/commands/ListPolicyAttachmentsCommand.ts index daef28c7dfcf0..364b3b076f1c3 100644 --- a/clients/client-clouddirectory/commands/ListPolicyAttachmentsCommand.ts +++ b/clients/client-clouddirectory/commands/ListPolicyAttachmentsCommand.ts @@ -28,6 +28,7 @@ export class ListPolicyAttachmentsCommand extends $Command< ListPolicyAttachmentsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPolicyAttachmentsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListPublishedSchemaArnsCommand.ts b/clients/client-clouddirectory/commands/ListPublishedSchemaArnsCommand.ts index 7b7b651652ef5..a720d89e07927 100644 --- a/clients/client-clouddirectory/commands/ListPublishedSchemaArnsCommand.ts +++ b/clients/client-clouddirectory/commands/ListPublishedSchemaArnsCommand.ts @@ -28,6 +28,7 @@ export class ListPublishedSchemaArnsCommand extends $Command< ListPublishedSchemaArnsCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPublishedSchemaArnsCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListTagsForResourceCommand.ts b/clients/client-clouddirectory/commands/ListTagsForResourceCommand.ts index bd0ea140c7432..04e29608240db 100644 --- a/clients/client-clouddirectory/commands/ListTagsForResourceCommand.ts +++ b/clients/client-clouddirectory/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListTypedLinkFacetAttributesCommand.ts b/clients/client-clouddirectory/commands/ListTypedLinkFacetAttributesCommand.ts index 9548911b79696..9e33281ffb5d9 100644 --- a/clients/client-clouddirectory/commands/ListTypedLinkFacetAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/ListTypedLinkFacetAttributesCommand.ts @@ -28,6 +28,7 @@ export class ListTypedLinkFacetAttributesCommand extends $Command< ListTypedLinkFacetAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTypedLinkFacetAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/ListTypedLinkFacetNamesCommand.ts b/clients/client-clouddirectory/commands/ListTypedLinkFacetNamesCommand.ts index 919ff8bbdb1de..6c127c642fd4a 100644 --- a/clients/client-clouddirectory/commands/ListTypedLinkFacetNamesCommand.ts +++ b/clients/client-clouddirectory/commands/ListTypedLinkFacetNamesCommand.ts @@ -29,6 +29,7 @@ export class ListTypedLinkFacetNamesCommand extends $Command< ListTypedLinkFacetNamesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTypedLinkFacetNamesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/LookupPolicyCommand.ts b/clients/client-clouddirectory/commands/LookupPolicyCommand.ts index 1fbcf15aa1ba4..2eff764f5a675 100644 --- a/clients/client-clouddirectory/commands/LookupPolicyCommand.ts +++ b/clients/client-clouddirectory/commands/LookupPolicyCommand.ts @@ -33,6 +33,7 @@ export class LookupPolicyCommand extends $Command< LookupPolicyCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class LookupPolicyCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/PublishSchemaCommand.ts b/clients/client-clouddirectory/commands/PublishSchemaCommand.ts index ab339ea2cbdbc..32c441c780696 100644 --- a/clients/client-clouddirectory/commands/PublishSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/PublishSchemaCommand.ts @@ -28,6 +28,7 @@ export class PublishSchemaCommand extends $Command< PublishSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PublishSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/PutSchemaFromJsonCommand.ts b/clients/client-clouddirectory/commands/PutSchemaFromJsonCommand.ts index 13feb593d107b..5a17d6d17f7db 100644 --- a/clients/client-clouddirectory/commands/PutSchemaFromJsonCommand.ts +++ b/clients/client-clouddirectory/commands/PutSchemaFromJsonCommand.ts @@ -28,6 +28,7 @@ export class PutSchemaFromJsonCommand extends $Command< PutSchemaFromJsonCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutSchemaFromJsonCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/RemoveFacetFromObjectCommand.ts b/clients/client-clouddirectory/commands/RemoveFacetFromObjectCommand.ts index 57e374f937d17..52f56383c4b5b 100644 --- a/clients/client-clouddirectory/commands/RemoveFacetFromObjectCommand.ts +++ b/clients/client-clouddirectory/commands/RemoveFacetFromObjectCommand.ts @@ -28,6 +28,7 @@ export class RemoveFacetFromObjectCommand extends $Command< RemoveFacetFromObjectCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveFacetFromObjectCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/TagResourceCommand.ts b/clients/client-clouddirectory/commands/TagResourceCommand.ts index 97ff1cdb94225..3068debf19ec6 100644 --- a/clients/client-clouddirectory/commands/TagResourceCommand.ts +++ b/clients/client-clouddirectory/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UntagResourceCommand.ts b/clients/client-clouddirectory/commands/UntagResourceCommand.ts index 1e5ba1afcd824..9a53facfec7e8 100644 --- a/clients/client-clouddirectory/commands/UntagResourceCommand.ts +++ b/clients/client-clouddirectory/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpdateFacetCommand.ts b/clients/client-clouddirectory/commands/UpdateFacetCommand.ts index d6bc6ffb4a3b5..4844de28b8896 100644 --- a/clients/client-clouddirectory/commands/UpdateFacetCommand.ts +++ b/clients/client-clouddirectory/commands/UpdateFacetCommand.ts @@ -39,6 +39,7 @@ export class UpdateFacetCommand extends $Command< UpdateFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class UpdateFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpdateLinkAttributesCommand.ts b/clients/client-clouddirectory/commands/UpdateLinkAttributesCommand.ts index f02d9ca9ebcf4..f100abe80b59d 100644 --- a/clients/client-clouddirectory/commands/UpdateLinkAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/UpdateLinkAttributesCommand.ts @@ -28,6 +28,7 @@ export class UpdateLinkAttributesCommand extends $Command< UpdateLinkAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateLinkAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpdateObjectAttributesCommand.ts b/clients/client-clouddirectory/commands/UpdateObjectAttributesCommand.ts index e2708f3adb72e..45234f8be0a87 100644 --- a/clients/client-clouddirectory/commands/UpdateObjectAttributesCommand.ts +++ b/clients/client-clouddirectory/commands/UpdateObjectAttributesCommand.ts @@ -28,6 +28,7 @@ export class UpdateObjectAttributesCommand extends $Command< UpdateObjectAttributesCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateObjectAttributesCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpdateSchemaCommand.ts b/clients/client-clouddirectory/commands/UpdateSchemaCommand.ts index 4f1ded2abc94a..31582a1db8263 100644 --- a/clients/client-clouddirectory/commands/UpdateSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/UpdateSchemaCommand.ts @@ -29,6 +29,7 @@ export class UpdateSchemaCommand extends $Command< UpdateSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpdateTypedLinkFacetCommand.ts b/clients/client-clouddirectory/commands/UpdateTypedLinkFacetCommand.ts index 5154684603d8f..30e65043bb731 100644 --- a/clients/client-clouddirectory/commands/UpdateTypedLinkFacetCommand.ts +++ b/clients/client-clouddirectory/commands/UpdateTypedLinkFacetCommand.ts @@ -28,6 +28,7 @@ export class UpdateTypedLinkFacetCommand extends $Command< UpdateTypedLinkFacetCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTypedLinkFacetCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpgradeAppliedSchemaCommand.ts b/clients/client-clouddirectory/commands/UpgradeAppliedSchemaCommand.ts index f4ce2b03387e5..5b4c043a54218 100644 --- a/clients/client-clouddirectory/commands/UpgradeAppliedSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/UpgradeAppliedSchemaCommand.ts @@ -28,6 +28,7 @@ export class UpgradeAppliedSchemaCommand extends $Command< UpgradeAppliedSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpgradeAppliedSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-clouddirectory/commands/UpgradePublishedSchemaCommand.ts b/clients/client-clouddirectory/commands/UpgradePublishedSchemaCommand.ts index 56d08e337d419..247b99706fc95 100644 --- a/clients/client-clouddirectory/commands/UpgradePublishedSchemaCommand.ts +++ b/clients/client-clouddirectory/commands/UpgradePublishedSchemaCommand.ts @@ -28,6 +28,7 @@ export class UpgradePublishedSchemaCommand extends $Command< UpgradePublishedSchemaCommandOutput, CloudDirectoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpgradePublishedSchemaCommand extends $Command< configuration: CloudDirectoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/CancelUpdateStackCommand.ts b/clients/client-cloudformation/commands/CancelUpdateStackCommand.ts index ee1b2ff1d39fd..dd310915fe85d 100644 --- a/clients/client-cloudformation/commands/CancelUpdateStackCommand.ts +++ b/clients/client-cloudformation/commands/CancelUpdateStackCommand.ts @@ -32,6 +32,7 @@ export class CancelUpdateStackCommand extends $Command< CancelUpdateStackCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelUpdateStackCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ContinueUpdateRollbackCommand.ts b/clients/client-cloudformation/commands/ContinueUpdateRollbackCommand.ts index bf91fcfa765b0..6ef011dff51a5 100644 --- a/clients/client-cloudformation/commands/ContinueUpdateRollbackCommand.ts +++ b/clients/client-cloudformation/commands/ContinueUpdateRollbackCommand.ts @@ -38,6 +38,7 @@ export class ContinueUpdateRollbackCommand extends $Command< ContinueUpdateRollbackCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ContinueUpdateRollbackCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/CreateChangeSetCommand.ts b/clients/client-cloudformation/commands/CreateChangeSetCommand.ts index da3ab45f710f2..33ad1d34e785d 100644 --- a/clients/client-cloudformation/commands/CreateChangeSetCommand.ts +++ b/clients/client-cloudformation/commands/CreateChangeSetCommand.ts @@ -48,6 +48,7 @@ export class CreateChangeSetCommand extends $Command< CreateChangeSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateChangeSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/CreateStackCommand.ts b/clients/client-cloudformation/commands/CreateStackCommand.ts index cacdc73528458..4d9537a3e637d 100644 --- a/clients/client-cloudformation/commands/CreateStackCommand.ts +++ b/clients/client-cloudformation/commands/CreateStackCommand.ts @@ -26,6 +26,7 @@ export class CreateStackCommand extends $Command< CreateStackCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CreateStackCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/CreateStackInstancesCommand.ts b/clients/client-cloudformation/commands/CreateStackInstancesCommand.ts index 9faced1b13205..e2a9258a330bc 100644 --- a/clients/client-cloudformation/commands/CreateStackInstancesCommand.ts +++ b/clients/client-cloudformation/commands/CreateStackInstancesCommand.ts @@ -29,6 +29,7 @@ export class CreateStackInstancesCommand extends $Command< CreateStackInstancesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateStackInstancesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/CreateStackSetCommand.ts b/clients/client-cloudformation/commands/CreateStackSetCommand.ts index 20caa0e0f6acf..054bde8c7993f 100644 --- a/clients/client-cloudformation/commands/CreateStackSetCommand.ts +++ b/clients/client-cloudformation/commands/CreateStackSetCommand.ts @@ -28,6 +28,7 @@ export class CreateStackSetCommand extends $Command< CreateStackSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateStackSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DeleteChangeSetCommand.ts b/clients/client-cloudformation/commands/DeleteChangeSetCommand.ts index 07be4a068e365..bfaac76a2a25e 100644 --- a/clients/client-cloudformation/commands/DeleteChangeSetCommand.ts +++ b/clients/client-cloudformation/commands/DeleteChangeSetCommand.ts @@ -34,6 +34,7 @@ export class DeleteChangeSetCommand extends $Command< DeleteChangeSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteChangeSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DeleteStackCommand.ts b/clients/client-cloudformation/commands/DeleteStackCommand.ts index 192fb3f556f8b..efd13059a6a31 100644 --- a/clients/client-cloudformation/commands/DeleteStackCommand.ts +++ b/clients/client-cloudformation/commands/DeleteStackCommand.ts @@ -27,6 +27,7 @@ export class DeleteStackCommand extends $Command< DeleteStackCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class DeleteStackCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DeleteStackInstancesCommand.ts b/clients/client-cloudformation/commands/DeleteStackInstancesCommand.ts index 2d50c81fff25c..13daa3571c08e 100644 --- a/clients/client-cloudformation/commands/DeleteStackInstancesCommand.ts +++ b/clients/client-cloudformation/commands/DeleteStackInstancesCommand.ts @@ -28,6 +28,7 @@ export class DeleteStackInstancesCommand extends $Command< DeleteStackInstancesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteStackInstancesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DeleteStackSetCommand.ts b/clients/client-cloudformation/commands/DeleteStackSetCommand.ts index 9382df1056f81..acd24946e6aff 100644 --- a/clients/client-cloudformation/commands/DeleteStackSetCommand.ts +++ b/clients/client-cloudformation/commands/DeleteStackSetCommand.ts @@ -29,6 +29,7 @@ export class DeleteStackSetCommand extends $Command< DeleteStackSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteStackSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DeregisterTypeCommand.ts b/clients/client-cloudformation/commands/DeregisterTypeCommand.ts index 1a90f4505b698..0755a041beaaf 100644 --- a/clients/client-cloudformation/commands/DeregisterTypeCommand.ts +++ b/clients/client-cloudformation/commands/DeregisterTypeCommand.ts @@ -30,6 +30,7 @@ export class DeregisterTypeCommand extends $Command< DeregisterTypeCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeregisterTypeCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeAccountLimitsCommand.ts b/clients/client-cloudformation/commands/DescribeAccountLimitsCommand.ts index 73239e6578874..784fc078979fb 100644 --- a/clients/client-cloudformation/commands/DescribeAccountLimitsCommand.ts +++ b/clients/client-cloudformation/commands/DescribeAccountLimitsCommand.ts @@ -31,6 +31,7 @@ export class DescribeAccountLimitsCommand extends $Command< DescribeAccountLimitsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeAccountLimitsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeChangeSetCommand.ts b/clients/client-cloudformation/commands/DescribeChangeSetCommand.ts index 699be51e8ea04..bca7e65c72b0e 100644 --- a/clients/client-cloudformation/commands/DescribeChangeSetCommand.ts +++ b/clients/client-cloudformation/commands/DescribeChangeSetCommand.ts @@ -30,6 +30,7 @@ export class DescribeChangeSetCommand extends $Command< DescribeChangeSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeChangeSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackDriftDetectionStatusCommand.ts b/clients/client-cloudformation/commands/DescribeStackDriftDetectionStatusCommand.ts index c6334d2f7258f..9a5109a3d9454 100644 --- a/clients/client-cloudformation/commands/DescribeStackDriftDetectionStatusCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackDriftDetectionStatusCommand.ts @@ -40,6 +40,7 @@ export class DescribeStackDriftDetectionStatusCommand extends $Command< DescribeStackDriftDetectionStatusCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeStackDriftDetectionStatusCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackEventsCommand.ts b/clients/client-cloudformation/commands/DescribeStackEventsCommand.ts index 64954399ba8d3..ab138a333136e 100644 --- a/clients/client-cloudformation/commands/DescribeStackEventsCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackEventsCommand.ts @@ -33,6 +33,7 @@ export class DescribeStackEventsCommand extends $Command< DescribeStackEventsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeStackEventsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackInstanceCommand.ts b/clients/client-cloudformation/commands/DescribeStackInstanceCommand.ts index cd9172818e5cb..3bd0c7dbf8635 100644 --- a/clients/client-cloudformation/commands/DescribeStackInstanceCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackInstanceCommand.ts @@ -31,6 +31,7 @@ export class DescribeStackInstanceCommand extends $Command< DescribeStackInstanceCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeStackInstanceCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackResourceCommand.ts b/clients/client-cloudformation/commands/DescribeStackResourceCommand.ts index dffd264dac03c..166a54014b358 100644 --- a/clients/client-cloudformation/commands/DescribeStackResourceCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackResourceCommand.ts @@ -30,6 +30,7 @@ export class DescribeStackResourceCommand extends $Command< DescribeStackResourceCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeStackResourceCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackResourceDriftsCommand.ts b/clients/client-cloudformation/commands/DescribeStackResourceDriftsCommand.ts index f80a443755cd8..6ad255eddc182 100644 --- a/clients/client-cloudformation/commands/DescribeStackResourceDriftsCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackResourceDriftsCommand.ts @@ -38,6 +38,7 @@ export class DescribeStackResourceDriftsCommand extends $Command< DescribeStackResourceDriftsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeStackResourceDriftsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackResourcesCommand.ts b/clients/client-cloudformation/commands/DescribeStackResourcesCommand.ts index 93fcb924a56fa..b0a4309716f65 100644 --- a/clients/client-cloudformation/commands/DescribeStackResourcesCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackResourcesCommand.ts @@ -47,6 +47,7 @@ export class DescribeStackResourcesCommand extends $Command< DescribeStackResourcesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeStackResourcesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackSetCommand.ts b/clients/client-cloudformation/commands/DescribeStackSetCommand.ts index f45ff02a74922..72ede89851f3e 100644 --- a/clients/client-cloudformation/commands/DescribeStackSetCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackSetCommand.ts @@ -28,6 +28,7 @@ export class DescribeStackSetCommand extends $Command< DescribeStackSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStackSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStackSetOperationCommand.ts b/clients/client-cloudformation/commands/DescribeStackSetOperationCommand.ts index 538df776fc8db..853a8c5a4cb92 100644 --- a/clients/client-cloudformation/commands/DescribeStackSetOperationCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStackSetOperationCommand.ts @@ -28,6 +28,7 @@ export class DescribeStackSetOperationCommand extends $Command< DescribeStackSetOperationCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStackSetOperationCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeStacksCommand.ts b/clients/client-cloudformation/commands/DescribeStacksCommand.ts index 907c3a6e6cec7..9db747725f1b0 100644 --- a/clients/client-cloudformation/commands/DescribeStacksCommand.ts +++ b/clients/client-cloudformation/commands/DescribeStacksCommand.ts @@ -33,6 +33,7 @@ export class DescribeStacksCommand extends $Command< DescribeStacksCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeStacksCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeTypeCommand.ts b/clients/client-cloudformation/commands/DescribeTypeCommand.ts index d025bf5c0bbae..7a2d9be126a6d 100644 --- a/clients/client-cloudformation/commands/DescribeTypeCommand.ts +++ b/clients/client-cloudformation/commands/DescribeTypeCommand.ts @@ -26,6 +26,7 @@ export class DescribeTypeCommand extends $Command< DescribeTypeCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DescribeTypeCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DescribeTypeRegistrationCommand.ts b/clients/client-cloudformation/commands/DescribeTypeRegistrationCommand.ts index 2b91305a7dfdf..e743fcbca24df 100644 --- a/clients/client-cloudformation/commands/DescribeTypeRegistrationCommand.ts +++ b/clients/client-cloudformation/commands/DescribeTypeRegistrationCommand.ts @@ -36,6 +36,7 @@ export class DescribeTypeRegistrationCommand extends $Command< DescribeTypeRegistrationCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeTypeRegistrationCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DetectStackDriftCommand.ts b/clients/client-cloudformation/commands/DetectStackDriftCommand.ts index 46972197ab957..7b5059cafdb78 100644 --- a/clients/client-cloudformation/commands/DetectStackDriftCommand.ts +++ b/clients/client-cloudformation/commands/DetectStackDriftCommand.ts @@ -48,6 +48,7 @@ export class DetectStackDriftCommand extends $Command< DetectStackDriftCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DetectStackDriftCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DetectStackResourceDriftCommand.ts b/clients/client-cloudformation/commands/DetectStackResourceDriftCommand.ts index caa3d452a120d..a6f28940777ac 100644 --- a/clients/client-cloudformation/commands/DetectStackResourceDriftCommand.ts +++ b/clients/client-cloudformation/commands/DetectStackResourceDriftCommand.ts @@ -39,6 +39,7 @@ export class DetectStackResourceDriftCommand extends $Command< DetectStackResourceDriftCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DetectStackResourceDriftCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/DetectStackSetDriftCommand.ts b/clients/client-cloudformation/commands/DetectStackSetDriftCommand.ts index 4a940488a89e0..5284ded017f4c 100644 --- a/clients/client-cloudformation/commands/DetectStackSetDriftCommand.ts +++ b/clients/client-cloudformation/commands/DetectStackSetDriftCommand.ts @@ -72,6 +72,7 @@ export class DetectStackSetDriftCommand extends $Command< DetectStackSetDriftCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class DetectStackSetDriftCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/EstimateTemplateCostCommand.ts b/clients/client-cloudformation/commands/EstimateTemplateCostCommand.ts index b541191fb4192..eadbbe2724a66 100644 --- a/clients/client-cloudformation/commands/EstimateTemplateCostCommand.ts +++ b/clients/client-cloudformation/commands/EstimateTemplateCostCommand.ts @@ -30,6 +30,7 @@ export class EstimateTemplateCostCommand extends $Command< EstimateTemplateCostCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class EstimateTemplateCostCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ExecuteChangeSetCommand.ts b/clients/client-cloudformation/commands/ExecuteChangeSetCommand.ts index ae7fce2718af2..8874a1a5a1a81 100644 --- a/clients/client-cloudformation/commands/ExecuteChangeSetCommand.ts +++ b/clients/client-cloudformation/commands/ExecuteChangeSetCommand.ts @@ -38,6 +38,7 @@ export class ExecuteChangeSetCommand extends $Command< ExecuteChangeSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ExecuteChangeSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/GetStackPolicyCommand.ts b/clients/client-cloudformation/commands/GetStackPolicyCommand.ts index b0a791205891b..d680d9fb80d39 100644 --- a/clients/client-cloudformation/commands/GetStackPolicyCommand.ts +++ b/clients/client-cloudformation/commands/GetStackPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetStackPolicyCommand extends $Command< GetStackPolicyCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetStackPolicyCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/GetTemplateCommand.ts b/clients/client-cloudformation/commands/GetTemplateCommand.ts index bc75252f8c74f..5433b5ff292b5 100644 --- a/clients/client-cloudformation/commands/GetTemplateCommand.ts +++ b/clients/client-cloudformation/commands/GetTemplateCommand.ts @@ -32,6 +32,7 @@ export class GetTemplateCommand extends $Command< GetTemplateCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetTemplateCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/GetTemplateSummaryCommand.ts b/clients/client-cloudformation/commands/GetTemplateSummaryCommand.ts index 2131cc062df86..ed669017a4da0 100644 --- a/clients/client-cloudformation/commands/GetTemplateSummaryCommand.ts +++ b/clients/client-cloudformation/commands/GetTemplateSummaryCommand.ts @@ -36,6 +36,7 @@ export class GetTemplateSummaryCommand extends $Command< GetTemplateSummaryCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetTemplateSummaryCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListChangeSetsCommand.ts b/clients/client-cloudformation/commands/ListChangeSetsCommand.ts index 1e7179543568e..6473e48476073 100644 --- a/clients/client-cloudformation/commands/ListChangeSetsCommand.ts +++ b/clients/client-cloudformation/commands/ListChangeSetsCommand.ts @@ -30,6 +30,7 @@ export class ListChangeSetsCommand extends $Command< ListChangeSetsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListChangeSetsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListExportsCommand.ts b/clients/client-cloudformation/commands/ListExportsCommand.ts index 5d59245d68c82..2829352305a17 100644 --- a/clients/client-cloudformation/commands/ListExportsCommand.ts +++ b/clients/client-cloudformation/commands/ListExportsCommand.ts @@ -31,6 +31,7 @@ export class ListExportsCommand extends $Command< ListExportsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListExportsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListImportsCommand.ts b/clients/client-cloudformation/commands/ListImportsCommand.ts index 21b2879f5af46..aafac7b03cbae 100644 --- a/clients/client-cloudformation/commands/ListImportsCommand.ts +++ b/clients/client-cloudformation/commands/ListImportsCommand.ts @@ -30,6 +30,7 @@ export class ListImportsCommand extends $Command< ListImportsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListImportsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStackInstancesCommand.ts b/clients/client-cloudformation/commands/ListStackInstancesCommand.ts index 59b7d2415af8f..9e18acac7894b 100644 --- a/clients/client-cloudformation/commands/ListStackInstancesCommand.ts +++ b/clients/client-cloudformation/commands/ListStackInstancesCommand.ts @@ -30,6 +30,7 @@ export class ListStackInstancesCommand extends $Command< ListStackInstancesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListStackInstancesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStackResourcesCommand.ts b/clients/client-cloudformation/commands/ListStackResourcesCommand.ts index 6d046a9f8f190..77c66f5c45d1c 100644 --- a/clients/client-cloudformation/commands/ListStackResourcesCommand.ts +++ b/clients/client-cloudformation/commands/ListStackResourcesCommand.ts @@ -30,6 +30,7 @@ export class ListStackResourcesCommand extends $Command< ListStackResourcesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListStackResourcesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStackSetOperationResultsCommand.ts b/clients/client-cloudformation/commands/ListStackSetOperationResultsCommand.ts index 4139763cd100e..bac3dcaa0c572 100644 --- a/clients/client-cloudformation/commands/ListStackSetOperationResultsCommand.ts +++ b/clients/client-cloudformation/commands/ListStackSetOperationResultsCommand.ts @@ -28,6 +28,7 @@ export class ListStackSetOperationResultsCommand extends $Command< ListStackSetOperationResultsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStackSetOperationResultsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStackSetOperationsCommand.ts b/clients/client-cloudformation/commands/ListStackSetOperationsCommand.ts index ee419bcb7f0e2..7007cf735b0d6 100644 --- a/clients/client-cloudformation/commands/ListStackSetOperationsCommand.ts +++ b/clients/client-cloudformation/commands/ListStackSetOperationsCommand.ts @@ -28,6 +28,7 @@ export class ListStackSetOperationsCommand extends $Command< ListStackSetOperationsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStackSetOperationsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStackSetsCommand.ts b/clients/client-cloudformation/commands/ListStackSetsCommand.ts index c4f4fc5e62792..8b204c723bc0e 100644 --- a/clients/client-cloudformation/commands/ListStackSetsCommand.ts +++ b/clients/client-cloudformation/commands/ListStackSetsCommand.ts @@ -29,6 +29,7 @@ export class ListStackSetsCommand extends $Command< ListStackSetsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListStackSetsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListStacksCommand.ts b/clients/client-cloudformation/commands/ListStacksCommand.ts index 4684b49857a76..9b7c601ab0eec 100644 --- a/clients/client-cloudformation/commands/ListStacksCommand.ts +++ b/clients/client-cloudformation/commands/ListStacksCommand.ts @@ -29,6 +29,7 @@ export class ListStacksCommand extends $Command< ListStacksCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListStacksCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListTypeRegistrationsCommand.ts b/clients/client-cloudformation/commands/ListTypeRegistrationsCommand.ts index 43e058c0c740e..0a070ea53f062 100644 --- a/clients/client-cloudformation/commands/ListTypeRegistrationsCommand.ts +++ b/clients/client-cloudformation/commands/ListTypeRegistrationsCommand.ts @@ -28,6 +28,7 @@ export class ListTypeRegistrationsCommand extends $Command< ListTypeRegistrationsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTypeRegistrationsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListTypeVersionsCommand.ts b/clients/client-cloudformation/commands/ListTypeVersionsCommand.ts index 28c2e25c1756c..767e37fec652b 100644 --- a/clients/client-cloudformation/commands/ListTypeVersionsCommand.ts +++ b/clients/client-cloudformation/commands/ListTypeVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListTypeVersionsCommand extends $Command< ListTypeVersionsCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTypeVersionsCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ListTypesCommand.ts b/clients/client-cloudformation/commands/ListTypesCommand.ts index 98a78a4d20c2d..8c656e0808ee9 100644 --- a/clients/client-cloudformation/commands/ListTypesCommand.ts +++ b/clients/client-cloudformation/commands/ListTypesCommand.ts @@ -25,6 +25,7 @@ export class ListTypesCommand extends $Command< ListTypesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTypesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/RecordHandlerProgressCommand.ts b/clients/client-cloudformation/commands/RecordHandlerProgressCommand.ts index bc99ba679fe45..9a3f3263ad6bc 100644 --- a/clients/client-cloudformation/commands/RecordHandlerProgressCommand.ts +++ b/clients/client-cloudformation/commands/RecordHandlerProgressCommand.ts @@ -29,6 +29,7 @@ export class RecordHandlerProgressCommand extends $Command< RecordHandlerProgressCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RecordHandlerProgressCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/RegisterTypeCommand.ts b/clients/client-cloudformation/commands/RegisterTypeCommand.ts index 04be5455fe0b2..222db726ed3fa 100644 --- a/clients/client-cloudformation/commands/RegisterTypeCommand.ts +++ b/clients/client-cloudformation/commands/RegisterTypeCommand.ts @@ -43,6 +43,7 @@ export class RegisterTypeCommand extends $Command< RegisterTypeCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class RegisterTypeCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/SetStackPolicyCommand.ts b/clients/client-cloudformation/commands/SetStackPolicyCommand.ts index 9256caff609fb..0f8aef7c39660 100644 --- a/clients/client-cloudformation/commands/SetStackPolicyCommand.ts +++ b/clients/client-cloudformation/commands/SetStackPolicyCommand.ts @@ -28,6 +28,7 @@ export class SetStackPolicyCommand extends $Command< SetStackPolicyCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SetStackPolicyCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/SetTypeDefaultVersionCommand.ts b/clients/client-cloudformation/commands/SetTypeDefaultVersionCommand.ts index 58e3c7fac39e9..178f3b345db58 100644 --- a/clients/client-cloudformation/commands/SetTypeDefaultVersionCommand.ts +++ b/clients/client-cloudformation/commands/SetTypeDefaultVersionCommand.ts @@ -28,6 +28,7 @@ export class SetTypeDefaultVersionCommand extends $Command< SetTypeDefaultVersionCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SetTypeDefaultVersionCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/SignalResourceCommand.ts b/clients/client-cloudformation/commands/SignalResourceCommand.ts index dfc522f259100..f5c8fa5bd814b 100644 --- a/clients/client-cloudformation/commands/SignalResourceCommand.ts +++ b/clients/client-cloudformation/commands/SignalResourceCommand.ts @@ -33,6 +33,7 @@ export class SignalResourceCommand extends $Command< SignalResourceCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SignalResourceCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/StopStackSetOperationCommand.ts b/clients/client-cloudformation/commands/StopStackSetOperationCommand.ts index 63d9bf6c9a26e..670bcceb9f57d 100644 --- a/clients/client-cloudformation/commands/StopStackSetOperationCommand.ts +++ b/clients/client-cloudformation/commands/StopStackSetOperationCommand.ts @@ -28,6 +28,7 @@ export class StopStackSetOperationCommand extends $Command< StopStackSetOperationCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopStackSetOperationCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/UpdateStackCommand.ts b/clients/client-cloudformation/commands/UpdateStackCommand.ts index 37c45f76f9eb8..2a4db08747ade 100644 --- a/clients/client-cloudformation/commands/UpdateStackCommand.ts +++ b/clients/client-cloudformation/commands/UpdateStackCommand.ts @@ -30,6 +30,7 @@ export class UpdateStackCommand extends $Command< UpdateStackCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateStackCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/UpdateStackInstancesCommand.ts b/clients/client-cloudformation/commands/UpdateStackInstancesCommand.ts index 6cdd6ef0f9c41..cf8ddc0f123ab 100644 --- a/clients/client-cloudformation/commands/UpdateStackInstancesCommand.ts +++ b/clients/client-cloudformation/commands/UpdateStackInstancesCommand.ts @@ -40,6 +40,7 @@ export class UpdateStackInstancesCommand extends $Command< UpdateStackInstancesCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateStackInstancesCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/UpdateStackSetCommand.ts b/clients/client-cloudformation/commands/UpdateStackSetCommand.ts index f274eae91779e..23bc35cd6e87f 100644 --- a/clients/client-cloudformation/commands/UpdateStackSetCommand.ts +++ b/clients/client-cloudformation/commands/UpdateStackSetCommand.ts @@ -33,6 +33,7 @@ export class UpdateStackSetCommand extends $Command< UpdateStackSetCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateStackSetCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/UpdateTerminationProtectionCommand.ts b/clients/client-cloudformation/commands/UpdateTerminationProtectionCommand.ts index ab66d17b42112..4dfc246e84155 100644 --- a/clients/client-cloudformation/commands/UpdateTerminationProtectionCommand.ts +++ b/clients/client-cloudformation/commands/UpdateTerminationProtectionCommand.ts @@ -34,6 +34,7 @@ export class UpdateTerminationProtectionCommand extends $Command< UpdateTerminationProtectionCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateTerminationProtectionCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudformation/commands/ValidateTemplateCommand.ts b/clients/client-cloudformation/commands/ValidateTemplateCommand.ts index 0152bbd07111c..1a8c8cca40827 100644 --- a/clients/client-cloudformation/commands/ValidateTemplateCommand.ts +++ b/clients/client-cloudformation/commands/ValidateTemplateCommand.ts @@ -30,6 +30,7 @@ export class ValidateTemplateCommand extends $Command< ValidateTemplateCommandOutput, CloudFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ValidateTemplateCommand extends $Command< configuration: CloudFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateCachePolicyCommand.ts b/clients/client-cloudfront/commands/CreateCachePolicyCommand.ts index 611d69f30cdbc..b0b1bf6497d0f 100644 --- a/clients/client-cloudfront/commands/CreateCachePolicyCommand.ts +++ b/clients/client-cloudfront/commands/CreateCachePolicyCommand.ts @@ -48,6 +48,7 @@ export class CreateCachePolicyCommand extends $Command< CreateCachePolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateCachePolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/commands/CreateCloudFrontOriginAccessIdentityCommand.ts index c72aba9b351e4..b644e18fb480a 100644 --- a/clients/client-cloudfront/commands/CreateCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/commands/CreateCloudFrontOriginAccessIdentityCommand.ts @@ -35,6 +35,7 @@ export class CreateCloudFrontOriginAccessIdentityCommand extends $Command< CreateCloudFrontOriginAccessIdentityCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateCloudFrontOriginAccessIdentityCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateDistributionCommand.ts b/clients/client-cloudfront/commands/CreateDistributionCommand.ts index 9534bbc93fe31..b693ecc05a076 100644 --- a/clients/client-cloudfront/commands/CreateDistributionCommand.ts +++ b/clients/client-cloudfront/commands/CreateDistributionCommand.ts @@ -40,6 +40,7 @@ export class CreateDistributionCommand extends $Command< CreateDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateDistributionWithTagsCommand.ts b/clients/client-cloudfront/commands/CreateDistributionWithTagsCommand.ts index a42f667205538..59064bafbe085 100644 --- a/clients/client-cloudfront/commands/CreateDistributionWithTagsCommand.ts +++ b/clients/client-cloudfront/commands/CreateDistributionWithTagsCommand.ts @@ -28,6 +28,7 @@ export class CreateDistributionWithTagsCommand extends $Command< CreateDistributionWithTagsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDistributionWithTagsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/commands/CreateFieldLevelEncryptionConfigCommand.ts index a1291ab7db336..c4369cd971524 100644 --- a/clients/client-cloudfront/commands/CreateFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/commands/CreateFieldLevelEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class CreateFieldLevelEncryptionConfigCommand extends $Command< CreateFieldLevelEncryptionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFieldLevelEncryptionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/commands/CreateFieldLevelEncryptionProfileCommand.ts index c242dcc2c2e8e..a21f376ae0208 100644 --- a/clients/client-cloudfront/commands/CreateFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/commands/CreateFieldLevelEncryptionProfileCommand.ts @@ -28,6 +28,7 @@ export class CreateFieldLevelEncryptionProfileCommand extends $Command< CreateFieldLevelEncryptionProfileCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFieldLevelEncryptionProfileCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateInvalidationCommand.ts b/clients/client-cloudfront/commands/CreateInvalidationCommand.ts index af46a3d64696d..db9a73da3b43d 100644 --- a/clients/client-cloudfront/commands/CreateInvalidationCommand.ts +++ b/clients/client-cloudfront/commands/CreateInvalidationCommand.ts @@ -28,6 +28,7 @@ export class CreateInvalidationCommand extends $Command< CreateInvalidationCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateInvalidationCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateKeyGroupCommand.ts b/clients/client-cloudfront/commands/CreateKeyGroupCommand.ts index d771f6d72e173..f9b7348edb75d 100644 --- a/clients/client-cloudfront/commands/CreateKeyGroupCommand.ts +++ b/clients/client-cloudfront/commands/CreateKeyGroupCommand.ts @@ -35,6 +35,7 @@ export class CreateKeyGroupCommand extends $Command< CreateKeyGroupCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateKeyGroupCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/commands/CreateMonitoringSubscriptionCommand.ts index 00fcaa256fba0..3c0f893fc6377 100644 --- a/clients/client-cloudfront/commands/CreateMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/commands/CreateMonitoringSubscriptionCommand.ts @@ -31,6 +31,7 @@ export class CreateMonitoringSubscriptionCommand extends $Command< CreateMonitoringSubscriptionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateMonitoringSubscriptionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateOriginRequestPolicyCommand.ts b/clients/client-cloudfront/commands/CreateOriginRequestPolicyCommand.ts index 7f6c429727b72..3bfb637d3dafa 100644 --- a/clients/client-cloudfront/commands/CreateOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/commands/CreateOriginRequestPolicyCommand.ts @@ -52,6 +52,7 @@ export class CreateOriginRequestPolicyCommand extends $Command< CreateOriginRequestPolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class CreateOriginRequestPolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreatePublicKeyCommand.ts b/clients/client-cloudfront/commands/CreatePublicKeyCommand.ts index 5570984098399..56f8f1dd4b3b0 100644 --- a/clients/client-cloudfront/commands/CreatePublicKeyCommand.ts +++ b/clients/client-cloudfront/commands/CreatePublicKeyCommand.ts @@ -28,6 +28,7 @@ export class CreatePublicKeyCommand extends $Command< CreatePublicKeyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePublicKeyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateRealtimeLogConfigCommand.ts b/clients/client-cloudfront/commands/CreateRealtimeLogConfigCommand.ts index 2d8fd1dc6c632..9adbea7e4158a 100644 --- a/clients/client-cloudfront/commands/CreateRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/commands/CreateRealtimeLogConfigCommand.ts @@ -31,6 +31,7 @@ export class CreateRealtimeLogConfigCommand extends $Command< CreateRealtimeLogConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateRealtimeLogConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateStreamingDistributionCommand.ts b/clients/client-cloudfront/commands/CreateStreamingDistributionCommand.ts index 7307f2a2402eb..5e9a5dbb91737 100644 --- a/clients/client-cloudfront/commands/CreateStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/commands/CreateStreamingDistributionCommand.ts @@ -52,6 +52,7 @@ export class CreateStreamingDistributionCommand extends $Command< CreateStreamingDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class CreateStreamingDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/CreateStreamingDistributionWithTagsCommand.ts b/clients/client-cloudfront/commands/CreateStreamingDistributionWithTagsCommand.ts index 8448fcd7e5f1e..47ef4186cb765 100644 --- a/clients/client-cloudfront/commands/CreateStreamingDistributionWithTagsCommand.ts +++ b/clients/client-cloudfront/commands/CreateStreamingDistributionWithTagsCommand.ts @@ -32,6 +32,7 @@ export class CreateStreamingDistributionWithTagsCommand extends $Command< CreateStreamingDistributionWithTagsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateStreamingDistributionWithTagsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteCachePolicyCommand.ts b/clients/client-cloudfront/commands/DeleteCachePolicyCommand.ts index 6cf8a14e1a753..59047ff49252c 100644 --- a/clients/client-cloudfront/commands/DeleteCachePolicyCommand.ts +++ b/clients/client-cloudfront/commands/DeleteCachePolicyCommand.ts @@ -34,6 +34,7 @@ export class DeleteCachePolicyCommand extends $Command< DeleteCachePolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteCachePolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts index 01ceac4c1a14d..1d52c8d6db484 100644 --- a/clients/client-cloudfront/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts @@ -28,6 +28,7 @@ export class DeleteCloudFrontOriginAccessIdentityCommand extends $Command< DeleteCloudFrontOriginAccessIdentityCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCloudFrontOriginAccessIdentityCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteDistributionCommand.ts b/clients/client-cloudfront/commands/DeleteDistributionCommand.ts index ff44733cd9ea8..c890771e52953 100644 --- a/clients/client-cloudfront/commands/DeleteDistributionCommand.ts +++ b/clients/client-cloudfront/commands/DeleteDistributionCommand.ts @@ -28,6 +28,7 @@ export class DeleteDistributionCommand extends $Command< DeleteDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionConfigCommand.ts index 597f9798e0593..97be7edb2b099 100644 --- a/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteFieldLevelEncryptionConfigCommand extends $Command< DeleteFieldLevelEncryptionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFieldLevelEncryptionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionProfileCommand.ts index fde2ebd6c2703..4859992f2696e 100644 --- a/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/commands/DeleteFieldLevelEncryptionProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteFieldLevelEncryptionProfileCommand extends $Command< DeleteFieldLevelEncryptionProfileCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFieldLevelEncryptionProfileCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteKeyGroupCommand.ts b/clients/client-cloudfront/commands/DeleteKeyGroupCommand.ts index dc41210b941e7..b31d9a8a988a8 100644 --- a/clients/client-cloudfront/commands/DeleteKeyGroupCommand.ts +++ b/clients/client-cloudfront/commands/DeleteKeyGroupCommand.ts @@ -34,6 +34,7 @@ export class DeleteKeyGroupCommand extends $Command< DeleteKeyGroupCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteKeyGroupCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/commands/DeleteMonitoringSubscriptionCommand.ts index 8048fe6d3e862..7f459b4fe30ef 100644 --- a/clients/client-cloudfront/commands/DeleteMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/commands/DeleteMonitoringSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteMonitoringSubscriptionCommand extends $Command< DeleteMonitoringSubscriptionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMonitoringSubscriptionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteOriginRequestPolicyCommand.ts b/clients/client-cloudfront/commands/DeleteOriginRequestPolicyCommand.ts index 1e53ec6c848d8..5c1e90122e094 100644 --- a/clients/client-cloudfront/commands/DeleteOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/commands/DeleteOriginRequestPolicyCommand.ts @@ -34,6 +34,7 @@ export class DeleteOriginRequestPolicyCommand extends $Command< DeleteOriginRequestPolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteOriginRequestPolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeletePublicKeyCommand.ts b/clients/client-cloudfront/commands/DeletePublicKeyCommand.ts index 1cc1eadfed5df..03c133f4749db 100644 --- a/clients/client-cloudfront/commands/DeletePublicKeyCommand.ts +++ b/clients/client-cloudfront/commands/DeletePublicKeyCommand.ts @@ -28,6 +28,7 @@ export class DeletePublicKeyCommand extends $Command< DeletePublicKeyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePublicKeyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteRealtimeLogConfigCommand.ts b/clients/client-cloudfront/commands/DeleteRealtimeLogConfigCommand.ts index 805907363f7bf..14fa58ef0a3dc 100644 --- a/clients/client-cloudfront/commands/DeleteRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/commands/DeleteRealtimeLogConfigCommand.ts @@ -34,6 +34,7 @@ export class DeleteRealtimeLogConfigCommand extends $Command< DeleteRealtimeLogConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteRealtimeLogConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/DeleteStreamingDistributionCommand.ts b/clients/client-cloudfront/commands/DeleteStreamingDistributionCommand.ts index 127993627b863..798d69bad8d0c 100644 --- a/clients/client-cloudfront/commands/DeleteStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/commands/DeleteStreamingDistributionCommand.ts @@ -75,6 +75,7 @@ export class DeleteStreamingDistributionCommand extends $Command< DeleteStreamingDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class DeleteStreamingDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetCachePolicyCommand.ts b/clients/client-cloudfront/commands/GetCachePolicyCommand.ts index 1c39f7e92fbc9..116195f613a84 100644 --- a/clients/client-cloudfront/commands/GetCachePolicyCommand.ts +++ b/clients/client-cloudfront/commands/GetCachePolicyCommand.ts @@ -41,6 +41,7 @@ export class GetCachePolicyCommand extends $Command< GetCachePolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetCachePolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetCachePolicyConfigCommand.ts b/clients/client-cloudfront/commands/GetCachePolicyConfigCommand.ts index d97a74d735e29..adcb018681271 100644 --- a/clients/client-cloudfront/commands/GetCachePolicyConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetCachePolicyConfigCommand.ts @@ -33,6 +33,7 @@ export class GetCachePolicyConfigCommand extends $Command< GetCachePolicyConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetCachePolicyConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityCommand.ts index 41974753f4e7c..8869d7da9fc3a 100644 --- a/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityCommand.ts @@ -28,6 +28,7 @@ export class GetCloudFrontOriginAccessIdentityCommand extends $Command< GetCloudFrontOriginAccessIdentityCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCloudFrontOriginAccessIdentityCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts b/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts index 0fa7ddc8f9cb0..3b2edb3835440 100644 --- a/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts @@ -32,6 +32,7 @@ export class GetCloudFrontOriginAccessIdentityConfigCommand extends $Command< GetCloudFrontOriginAccessIdentityConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetCloudFrontOriginAccessIdentityConfigCommand extends $Command< GetCloudFrontOriginAccessIdentityConfigCommandInput, GetCloudFrontOriginAccessIdentityConfigCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetDistributionCommand.ts b/clients/client-cloudfront/commands/GetDistributionCommand.ts index 24e44e85e3e8c..9d8b6ec477843 100644 --- a/clients/client-cloudfront/commands/GetDistributionCommand.ts +++ b/clients/client-cloudfront/commands/GetDistributionCommand.ts @@ -28,6 +28,7 @@ export class GetDistributionCommand extends $Command< GetDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetDistributionConfigCommand.ts b/clients/client-cloudfront/commands/GetDistributionConfigCommand.ts index b9e40542f7043..ddfc9ad58c1e4 100644 --- a/clients/client-cloudfront/commands/GetDistributionConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetDistributionConfigCommand.ts @@ -28,6 +28,7 @@ export class GetDistributionConfigCommand extends $Command< GetDistributionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDistributionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetFieldLevelEncryptionCommand.ts b/clients/client-cloudfront/commands/GetFieldLevelEncryptionCommand.ts index dae12ddbf27fa..d7791f75aec6e 100644 --- a/clients/client-cloudfront/commands/GetFieldLevelEncryptionCommand.ts +++ b/clients/client-cloudfront/commands/GetFieldLevelEncryptionCommand.ts @@ -28,6 +28,7 @@ export class GetFieldLevelEncryptionCommand extends $Command< GetFieldLevelEncryptionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFieldLevelEncryptionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/commands/GetFieldLevelEncryptionConfigCommand.ts index ab08ef78ccac5..3c16879acf80a 100644 --- a/clients/client-cloudfront/commands/GetFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetFieldLevelEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class GetFieldLevelEncryptionConfigCommand extends $Command< GetFieldLevelEncryptionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFieldLevelEncryptionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileCommand.ts index 95b2df7bd7275..33b65f38ec158 100644 --- a/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileCommand.ts @@ -28,6 +28,7 @@ export class GetFieldLevelEncryptionProfileCommand extends $Command< GetFieldLevelEncryptionProfileCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFieldLevelEncryptionProfileCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileConfigCommand.ts b/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileConfigCommand.ts index 1dd5e59caa70b..807a558c1dbbf 100644 --- a/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetFieldLevelEncryptionProfileConfigCommand.ts @@ -32,6 +32,7 @@ export class GetFieldLevelEncryptionProfileConfigCommand extends $Command< GetFieldLevelEncryptionProfileConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetFieldLevelEncryptionProfileConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetInvalidationCommand.ts b/clients/client-cloudfront/commands/GetInvalidationCommand.ts index 129052fb74c35..182632a258a3f 100644 --- a/clients/client-cloudfront/commands/GetInvalidationCommand.ts +++ b/clients/client-cloudfront/commands/GetInvalidationCommand.ts @@ -28,6 +28,7 @@ export class GetInvalidationCommand extends $Command< GetInvalidationCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInvalidationCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetKeyGroupCommand.ts b/clients/client-cloudfront/commands/GetKeyGroupCommand.ts index 5879ecc41dfe7..bffdd6e17de40 100644 --- a/clients/client-cloudfront/commands/GetKeyGroupCommand.ts +++ b/clients/client-cloudfront/commands/GetKeyGroupCommand.ts @@ -33,6 +33,7 @@ export class GetKeyGroupCommand extends $Command< GetKeyGroupCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetKeyGroupCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetKeyGroupConfigCommand.ts b/clients/client-cloudfront/commands/GetKeyGroupConfigCommand.ts index 508d040524af5..c286a38e0d9cf 100644 --- a/clients/client-cloudfront/commands/GetKeyGroupConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetKeyGroupConfigCommand.ts @@ -33,6 +33,7 @@ export class GetKeyGroupConfigCommand extends $Command< GetKeyGroupConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetKeyGroupConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/commands/GetMonitoringSubscriptionCommand.ts index 4ec1e419858cd..10bab13126bd2 100644 --- a/clients/client-cloudfront/commands/GetMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/commands/GetMonitoringSubscriptionCommand.ts @@ -29,6 +29,7 @@ export class GetMonitoringSubscriptionCommand extends $Command< GetMonitoringSubscriptionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetMonitoringSubscriptionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetOriginRequestPolicyCommand.ts b/clients/client-cloudfront/commands/GetOriginRequestPolicyCommand.ts index de351bd5eba8e..94087fff788bd 100644 --- a/clients/client-cloudfront/commands/GetOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/commands/GetOriginRequestPolicyCommand.ts @@ -41,6 +41,7 @@ export class GetOriginRequestPolicyCommand extends $Command< GetOriginRequestPolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetOriginRequestPolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetOriginRequestPolicyConfigCommand.ts b/clients/client-cloudfront/commands/GetOriginRequestPolicyConfigCommand.ts index 339dde19964f9..ef7a84d3182fc 100644 --- a/clients/client-cloudfront/commands/GetOriginRequestPolicyConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetOriginRequestPolicyConfigCommand.ts @@ -34,6 +34,7 @@ export class GetOriginRequestPolicyConfigCommand extends $Command< GetOriginRequestPolicyConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetOriginRequestPolicyConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetPublicKeyCommand.ts b/clients/client-cloudfront/commands/GetPublicKeyCommand.ts index 933d3a7a168d9..1b44ce61b19e8 100644 --- a/clients/client-cloudfront/commands/GetPublicKeyCommand.ts +++ b/clients/client-cloudfront/commands/GetPublicKeyCommand.ts @@ -28,6 +28,7 @@ export class GetPublicKeyCommand extends $Command< GetPublicKeyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPublicKeyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetPublicKeyConfigCommand.ts b/clients/client-cloudfront/commands/GetPublicKeyConfigCommand.ts index 1969894c093c1..d5ad148d35cdf 100644 --- a/clients/client-cloudfront/commands/GetPublicKeyConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetPublicKeyConfigCommand.ts @@ -28,6 +28,7 @@ export class GetPublicKeyConfigCommand extends $Command< GetPublicKeyConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPublicKeyConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetRealtimeLogConfigCommand.ts b/clients/client-cloudfront/commands/GetRealtimeLogConfigCommand.ts index 6f06b1d40b95b..c4893f1e7cfb9 100644 --- a/clients/client-cloudfront/commands/GetRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetRealtimeLogConfigCommand.ts @@ -32,6 +32,7 @@ export class GetRealtimeLogConfigCommand extends $Command< GetRealtimeLogConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetRealtimeLogConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetStreamingDistributionCommand.ts b/clients/client-cloudfront/commands/GetStreamingDistributionCommand.ts index 26db18583148e..a82955ffc67b2 100644 --- a/clients/client-cloudfront/commands/GetStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/commands/GetStreamingDistributionCommand.ts @@ -28,6 +28,7 @@ export class GetStreamingDistributionCommand extends $Command< GetStreamingDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStreamingDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/GetStreamingDistributionConfigCommand.ts b/clients/client-cloudfront/commands/GetStreamingDistributionConfigCommand.ts index 2b918ceafb08d..b2764acf84b72 100644 --- a/clients/client-cloudfront/commands/GetStreamingDistributionConfigCommand.ts +++ b/clients/client-cloudfront/commands/GetStreamingDistributionConfigCommand.ts @@ -28,6 +28,7 @@ export class GetStreamingDistributionConfigCommand extends $Command< GetStreamingDistributionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStreamingDistributionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListCachePoliciesCommand.ts b/clients/client-cloudfront/commands/ListCachePoliciesCommand.ts index f930e4a4ae359..cb79903d670bd 100644 --- a/clients/client-cloudfront/commands/ListCachePoliciesCommand.ts +++ b/clients/client-cloudfront/commands/ListCachePoliciesCommand.ts @@ -35,6 +35,7 @@ export class ListCachePoliciesCommand extends $Command< ListCachePoliciesCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListCachePoliciesCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts b/clients/client-cloudfront/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts index b5ccbcbdd9912..f7de66c497619 100644 --- a/clients/client-cloudfront/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts +++ b/clients/client-cloudfront/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts @@ -32,6 +32,7 @@ export class ListCloudFrontOriginAccessIdentitiesCommand extends $Command< ListCloudFrontOriginAccessIdentitiesCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListCloudFrontOriginAccessIdentitiesCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsByCachePolicyIdCommand.ts b/clients/client-cloudfront/commands/ListDistributionsByCachePolicyIdCommand.ts index 666435f6d8ca2..3f7ffe0bc2764 100644 --- a/clients/client-cloudfront/commands/ListDistributionsByCachePolicyIdCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsByCachePolicyIdCommand.ts @@ -34,6 +34,7 @@ export class ListDistributionsByCachePolicyIdCommand extends $Command< ListDistributionsByCachePolicyIdCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListDistributionsByCachePolicyIdCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsByKeyGroupCommand.ts b/clients/client-cloudfront/commands/ListDistributionsByKeyGroupCommand.ts index c1296ad80aad3..c8dbca483b272 100644 --- a/clients/client-cloudfront/commands/ListDistributionsByKeyGroupCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsByKeyGroupCommand.ts @@ -34,6 +34,7 @@ export class ListDistributionsByKeyGroupCommand extends $Command< ListDistributionsByKeyGroupCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListDistributionsByKeyGroupCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts b/clients/client-cloudfront/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts index 499348bce9296..eb9132b0cd682 100644 --- a/clients/client-cloudfront/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts @@ -38,6 +38,7 @@ export class ListDistributionsByOriginRequestPolicyIdCommand extends $Command< ListDistributionsByOriginRequestPolicyIdCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListDistributionsByOriginRequestPolicyIdCommand extends $Command< ListDistributionsByOriginRequestPolicyIdCommandInput, ListDistributionsByOriginRequestPolicyIdCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsByRealtimeLogConfigCommand.ts b/clients/client-cloudfront/commands/ListDistributionsByRealtimeLogConfigCommand.ts index 5240453c585a1..1051091b72353 100644 --- a/clients/client-cloudfront/commands/ListDistributionsByRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsByRealtimeLogConfigCommand.ts @@ -41,6 +41,7 @@ export class ListDistributionsByRealtimeLogConfigCommand extends $Command< ListDistributionsByRealtimeLogConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListDistributionsByRealtimeLogConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsByWebACLIdCommand.ts b/clients/client-cloudfront/commands/ListDistributionsByWebACLIdCommand.ts index 11b6b84488830..036ce7946020d 100644 --- a/clients/client-cloudfront/commands/ListDistributionsByWebACLIdCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsByWebACLIdCommand.ts @@ -28,6 +28,7 @@ export class ListDistributionsByWebACLIdCommand extends $Command< ListDistributionsByWebACLIdCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDistributionsByWebACLIdCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListDistributionsCommand.ts b/clients/client-cloudfront/commands/ListDistributionsCommand.ts index 9dfd64f2ee280..bb5694371cb25 100644 --- a/clients/client-cloudfront/commands/ListDistributionsCommand.ts +++ b/clients/client-cloudfront/commands/ListDistributionsCommand.ts @@ -28,6 +28,7 @@ export class ListDistributionsCommand extends $Command< ListDistributionsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDistributionsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListFieldLevelEncryptionConfigsCommand.ts b/clients/client-cloudfront/commands/ListFieldLevelEncryptionConfigsCommand.ts index 93efd6006fe1f..595b86b4015b1 100644 --- a/clients/client-cloudfront/commands/ListFieldLevelEncryptionConfigsCommand.ts +++ b/clients/client-cloudfront/commands/ListFieldLevelEncryptionConfigsCommand.ts @@ -28,6 +28,7 @@ export class ListFieldLevelEncryptionConfigsCommand extends $Command< ListFieldLevelEncryptionConfigsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFieldLevelEncryptionConfigsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListFieldLevelEncryptionProfilesCommand.ts b/clients/client-cloudfront/commands/ListFieldLevelEncryptionProfilesCommand.ts index d1d622016ff37..ac3ee3e9405da 100644 --- a/clients/client-cloudfront/commands/ListFieldLevelEncryptionProfilesCommand.ts +++ b/clients/client-cloudfront/commands/ListFieldLevelEncryptionProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListFieldLevelEncryptionProfilesCommand extends $Command< ListFieldLevelEncryptionProfilesCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFieldLevelEncryptionProfilesCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListInvalidationsCommand.ts b/clients/client-cloudfront/commands/ListInvalidationsCommand.ts index b364014a2421c..e890488bab881 100644 --- a/clients/client-cloudfront/commands/ListInvalidationsCommand.ts +++ b/clients/client-cloudfront/commands/ListInvalidationsCommand.ts @@ -28,6 +28,7 @@ export class ListInvalidationsCommand extends $Command< ListInvalidationsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInvalidationsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListKeyGroupsCommand.ts b/clients/client-cloudfront/commands/ListKeyGroupsCommand.ts index 12f8a43703a50..31b582436658b 100644 --- a/clients/client-cloudfront/commands/ListKeyGroupsCommand.ts +++ b/clients/client-cloudfront/commands/ListKeyGroupsCommand.ts @@ -33,6 +33,7 @@ export class ListKeyGroupsCommand extends $Command< ListKeyGroupsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListKeyGroupsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListOriginRequestPoliciesCommand.ts b/clients/client-cloudfront/commands/ListOriginRequestPoliciesCommand.ts index 24e055143a27b..b1383103cb730 100644 --- a/clients/client-cloudfront/commands/ListOriginRequestPoliciesCommand.ts +++ b/clients/client-cloudfront/commands/ListOriginRequestPoliciesCommand.ts @@ -35,6 +35,7 @@ export class ListOriginRequestPoliciesCommand extends $Command< ListOriginRequestPoliciesCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListOriginRequestPoliciesCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListPublicKeysCommand.ts b/clients/client-cloudfront/commands/ListPublicKeysCommand.ts index 68f6a6a7c1619..26e8130830627 100644 --- a/clients/client-cloudfront/commands/ListPublicKeysCommand.ts +++ b/clients/client-cloudfront/commands/ListPublicKeysCommand.ts @@ -28,6 +28,7 @@ export class ListPublicKeysCommand extends $Command< ListPublicKeysCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPublicKeysCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListRealtimeLogConfigsCommand.ts b/clients/client-cloudfront/commands/ListRealtimeLogConfigsCommand.ts index 4a9877249548a..812fee9c4d670 100644 --- a/clients/client-cloudfront/commands/ListRealtimeLogConfigsCommand.ts +++ b/clients/client-cloudfront/commands/ListRealtimeLogConfigsCommand.ts @@ -33,6 +33,7 @@ export class ListRealtimeLogConfigsCommand extends $Command< ListRealtimeLogConfigsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListRealtimeLogConfigsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListStreamingDistributionsCommand.ts b/clients/client-cloudfront/commands/ListStreamingDistributionsCommand.ts index 52f7317a60a0a..682f9b6f99521 100644 --- a/clients/client-cloudfront/commands/ListStreamingDistributionsCommand.ts +++ b/clients/client-cloudfront/commands/ListStreamingDistributionsCommand.ts @@ -28,6 +28,7 @@ export class ListStreamingDistributionsCommand extends $Command< ListStreamingDistributionsCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStreamingDistributionsCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/ListTagsForResourceCommand.ts b/clients/client-cloudfront/commands/ListTagsForResourceCommand.ts index af65570684196..3159e77d8f5a0 100644 --- a/clients/client-cloudfront/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudfront/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/TagResourceCommand.ts b/clients/client-cloudfront/commands/TagResourceCommand.ts index 5e7d55e16cf08..eb01c651aef08 100644 --- a/clients/client-cloudfront/commands/TagResourceCommand.ts +++ b/clients/client-cloudfront/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UntagResourceCommand.ts b/clients/client-cloudfront/commands/UntagResourceCommand.ts index 645a81bc2ed27..58f413a6232bc 100644 --- a/clients/client-cloudfront/commands/UntagResourceCommand.ts +++ b/clients/client-cloudfront/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateCachePolicyCommand.ts b/clients/client-cloudfront/commands/UpdateCachePolicyCommand.ts index b5ec534273621..5c4c42c8dc20a 100644 --- a/clients/client-cloudfront/commands/UpdateCachePolicyCommand.ts +++ b/clients/client-cloudfront/commands/UpdateCachePolicyCommand.ts @@ -45,6 +45,7 @@ export class UpdateCachePolicyCommand extends $Command< UpdateCachePolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class UpdateCachePolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts index e9300beed974f..3bf8d43037827 100644 --- a/clients/client-cloudfront/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts @@ -32,6 +32,7 @@ export class UpdateCloudFrontOriginAccessIdentityCommand extends $Command< UpdateCloudFrontOriginAccessIdentityCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateCloudFrontOriginAccessIdentityCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateDistributionCommand.ts b/clients/client-cloudfront/commands/UpdateDistributionCommand.ts index a7e51608cb764..684b5acb78a21 100644 --- a/clients/client-cloudfront/commands/UpdateDistributionCommand.ts +++ b/clients/client-cloudfront/commands/UpdateDistributionCommand.ts @@ -106,6 +106,7 @@ export class UpdateDistributionCommand extends $Command< UpdateDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -123,7 +124,10 @@ export class UpdateDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionConfigCommand.ts index 50dbdf98c14d9..3f90605550c8b 100644 --- a/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class UpdateFieldLevelEncryptionConfigCommand extends $Command< UpdateFieldLevelEncryptionConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFieldLevelEncryptionConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionProfileCommand.ts index f1f64fb843b90..2e32dbbf70c3b 100644 --- a/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/commands/UpdateFieldLevelEncryptionProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateFieldLevelEncryptionProfileCommand extends $Command< UpdateFieldLevelEncryptionProfileCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFieldLevelEncryptionProfileCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateKeyGroupCommand.ts b/clients/client-cloudfront/commands/UpdateKeyGroupCommand.ts index edb1388848fc6..3988850ec211a 100644 --- a/clients/client-cloudfront/commands/UpdateKeyGroupCommand.ts +++ b/clients/client-cloudfront/commands/UpdateKeyGroupCommand.ts @@ -45,6 +45,7 @@ export class UpdateKeyGroupCommand extends $Command< UpdateKeyGroupCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class UpdateKeyGroupCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateOriginRequestPolicyCommand.ts b/clients/client-cloudfront/commands/UpdateOriginRequestPolicyCommand.ts index 466c59e6a75be..0a1937026a38b 100644 --- a/clients/client-cloudfront/commands/UpdateOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/commands/UpdateOriginRequestPolicyCommand.ts @@ -45,6 +45,7 @@ export class UpdateOriginRequestPolicyCommand extends $Command< UpdateOriginRequestPolicyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class UpdateOriginRequestPolicyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdatePublicKeyCommand.ts b/clients/client-cloudfront/commands/UpdatePublicKeyCommand.ts index 996d255507699..0aa95bcc2ae73 100644 --- a/clients/client-cloudfront/commands/UpdatePublicKeyCommand.ts +++ b/clients/client-cloudfront/commands/UpdatePublicKeyCommand.ts @@ -28,6 +28,7 @@ export class UpdatePublicKeyCommand extends $Command< UpdatePublicKeyCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePublicKeyCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateRealtimeLogConfigCommand.ts b/clients/client-cloudfront/commands/UpdateRealtimeLogConfigCommand.ts index a5e0b01bd6fcc..70c61cb3e2b9b 100644 --- a/clients/client-cloudfront/commands/UpdateRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/commands/UpdateRealtimeLogConfigCommand.ts @@ -48,6 +48,7 @@ export class UpdateRealtimeLogConfigCommand extends $Command< UpdateRealtimeLogConfigCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class UpdateRealtimeLogConfigCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/commands/UpdateStreamingDistributionCommand.ts b/clients/client-cloudfront/commands/UpdateStreamingDistributionCommand.ts index e5281698af17c..3d9bd3cc02965 100644 --- a/clients/client-cloudfront/commands/UpdateStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/commands/UpdateStreamingDistributionCommand.ts @@ -28,6 +28,7 @@ export class UpdateStreamingDistributionCommand extends $Command< UpdateStreamingDistributionCommandOutput, CloudFrontClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateStreamingDistributionCommand extends $Command< configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/CopyBackupToRegionCommand.ts b/clients/client-cloudhsm-v2/commands/CopyBackupToRegionCommand.ts index baefd0a4e1afb..1f1d87ac9a1c2 100644 --- a/clients/client-cloudhsm-v2/commands/CopyBackupToRegionCommand.ts +++ b/clients/client-cloudhsm-v2/commands/CopyBackupToRegionCommand.ts @@ -28,6 +28,7 @@ export class CopyBackupToRegionCommand extends $Command< CopyBackupToRegionCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyBackupToRegionCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/CreateClusterCommand.ts b/clients/client-cloudhsm-v2/commands/CreateClusterCommand.ts index 3c699009594dc..a9d32b3dede78 100644 --- a/clients/client-cloudhsm-v2/commands/CreateClusterCommand.ts +++ b/clients/client-cloudhsm-v2/commands/CreateClusterCommand.ts @@ -28,6 +28,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateClusterCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/CreateHsmCommand.ts b/clients/client-cloudhsm-v2/commands/CreateHsmCommand.ts index 5919ecd221cc8..989d1cd0113fe 100644 --- a/clients/client-cloudhsm-v2/commands/CreateHsmCommand.ts +++ b/clients/client-cloudhsm-v2/commands/CreateHsmCommand.ts @@ -26,6 +26,7 @@ export class CreateHsmCommand extends $Command< CreateHsmCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CreateHsmCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/DeleteBackupCommand.ts b/clients/client-cloudhsm-v2/commands/DeleteBackupCommand.ts index 813b25a27abad..70ebb51c3c39f 100644 --- a/clients/client-cloudhsm-v2/commands/DeleteBackupCommand.ts +++ b/clients/client-cloudhsm-v2/commands/DeleteBackupCommand.ts @@ -30,6 +30,7 @@ export class DeleteBackupCommand extends $Command< DeleteBackupCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteBackupCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/DeleteClusterCommand.ts b/clients/client-cloudhsm-v2/commands/DeleteClusterCommand.ts index e11bad2bcebcf..ff855a5b37361 100644 --- a/clients/client-cloudhsm-v2/commands/DeleteClusterCommand.ts +++ b/clients/client-cloudhsm-v2/commands/DeleteClusterCommand.ts @@ -29,6 +29,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteClusterCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/DeleteHsmCommand.ts b/clients/client-cloudhsm-v2/commands/DeleteHsmCommand.ts index 1d8f0c455bf8c..30f5a07d4a3a5 100644 --- a/clients/client-cloudhsm-v2/commands/DeleteHsmCommand.ts +++ b/clients/client-cloudhsm-v2/commands/DeleteHsmCommand.ts @@ -27,6 +27,7 @@ export class DeleteHsmCommand extends $Command< DeleteHsmCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class DeleteHsmCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/DescribeBackupsCommand.ts b/clients/client-cloudhsm-v2/commands/DescribeBackupsCommand.ts index 2f6424b054bbd..1188ebfd90b51 100644 --- a/clients/client-cloudhsm-v2/commands/DescribeBackupsCommand.ts +++ b/clients/client-cloudhsm-v2/commands/DescribeBackupsCommand.ts @@ -33,6 +33,7 @@ export class DescribeBackupsCommand extends $Command< DescribeBackupsCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeBackupsCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/DescribeClustersCommand.ts b/clients/client-cloudhsm-v2/commands/DescribeClustersCommand.ts index c5663bb763db2..3946a25cb6263 100644 --- a/clients/client-cloudhsm-v2/commands/DescribeClustersCommand.ts +++ b/clients/client-cloudhsm-v2/commands/DescribeClustersCommand.ts @@ -33,6 +33,7 @@ export class DescribeClustersCommand extends $Command< DescribeClustersCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeClustersCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/InitializeClusterCommand.ts b/clients/client-cloudhsm-v2/commands/InitializeClusterCommand.ts index ef05d66e6d744..ebd2aebfbf3d1 100644 --- a/clients/client-cloudhsm-v2/commands/InitializeClusterCommand.ts +++ b/clients/client-cloudhsm-v2/commands/InitializeClusterCommand.ts @@ -31,6 +31,7 @@ export class InitializeClusterCommand extends $Command< InitializeClusterCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class InitializeClusterCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/ListTagsCommand.ts b/clients/client-cloudhsm-v2/commands/ListTagsCommand.ts index 7dbd06d192ea1..958faf5031d9e 100644 --- a/clients/client-cloudhsm-v2/commands/ListTagsCommand.ts +++ b/clients/client-cloudhsm-v2/commands/ListTagsCommand.ts @@ -30,6 +30,7 @@ export class ListTagsCommand extends $Command< ListTagsCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/ModifyBackupAttributesCommand.ts b/clients/client-cloudhsm-v2/commands/ModifyBackupAttributesCommand.ts index 51c208e4134ab..141fc0f764634 100644 --- a/clients/client-cloudhsm-v2/commands/ModifyBackupAttributesCommand.ts +++ b/clients/client-cloudhsm-v2/commands/ModifyBackupAttributesCommand.ts @@ -28,6 +28,7 @@ export class ModifyBackupAttributesCommand extends $Command< ModifyBackupAttributesCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyBackupAttributesCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/ModifyClusterCommand.ts b/clients/client-cloudhsm-v2/commands/ModifyClusterCommand.ts index 7a9edcbd3f4d2..5a1d60305026a 100644 --- a/clients/client-cloudhsm-v2/commands/ModifyClusterCommand.ts +++ b/clients/client-cloudhsm-v2/commands/ModifyClusterCommand.ts @@ -28,6 +28,7 @@ export class ModifyClusterCommand extends $Command< ModifyClusterCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyClusterCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/RestoreBackupCommand.ts b/clients/client-cloudhsm-v2/commands/RestoreBackupCommand.ts index 15cfe7ca6c541..d8920133f9dc2 100644 --- a/clients/client-cloudhsm-v2/commands/RestoreBackupCommand.ts +++ b/clients/client-cloudhsm-v2/commands/RestoreBackupCommand.ts @@ -30,6 +30,7 @@ export class RestoreBackupCommand extends $Command< RestoreBackupCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RestoreBackupCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/TagResourceCommand.ts b/clients/client-cloudhsm-v2/commands/TagResourceCommand.ts index b949b6648e086..7561363390176 100644 --- a/clients/client-cloudhsm-v2/commands/TagResourceCommand.ts +++ b/clients/client-cloudhsm-v2/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm-v2/commands/UntagResourceCommand.ts b/clients/client-cloudhsm-v2/commands/UntagResourceCommand.ts index 2c4ad772bf356..fcfeb8f7e8811 100644 --- a/clients/client-cloudhsm-v2/commands/UntagResourceCommand.ts +++ b/clients/client-cloudhsm-v2/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CloudHSMV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/AddTagsToResourceCommand.ts b/clients/client-cloudhsm/commands/AddTagsToResourceCommand.ts index e5e3c8a50feba..6238fcc7af8ed 100644 --- a/clients/client-cloudhsm/commands/AddTagsToResourceCommand.ts +++ b/clients/client-cloudhsm/commands/AddTagsToResourceCommand.ts @@ -40,6 +40,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/CreateHapgCommand.ts b/clients/client-cloudhsm/commands/CreateHapgCommand.ts index 19d5fb1067d00..1cacd3476e510 100644 --- a/clients/client-cloudhsm/commands/CreateHapgCommand.ts +++ b/clients/client-cloudhsm/commands/CreateHapgCommand.ts @@ -39,6 +39,7 @@ export class CreateHapgCommand extends $Command< CreateHapgCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateHapgCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/CreateHsmCommand.ts b/clients/client-cloudhsm/commands/CreateHsmCommand.ts index b1e54118fdaab..7f76686496400 100644 --- a/clients/client-cloudhsm/commands/CreateHsmCommand.ts +++ b/clients/client-cloudhsm/commands/CreateHsmCommand.ts @@ -44,6 +44,7 @@ export class CreateHsmCommand extends $Command< CreateHsmCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateHsmCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/CreateLunaClientCommand.ts b/clients/client-cloudhsm/commands/CreateLunaClientCommand.ts index 1f7af5674602b..bd4c07772c7d6 100644 --- a/clients/client-cloudhsm/commands/CreateLunaClientCommand.ts +++ b/clients/client-cloudhsm/commands/CreateLunaClientCommand.ts @@ -38,6 +38,7 @@ export class CreateLunaClientCommand extends $Command< CreateLunaClientCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateLunaClientCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DeleteHapgCommand.ts b/clients/client-cloudhsm/commands/DeleteHapgCommand.ts index 326bf6a749601..3fc7a62202007 100644 --- a/clients/client-cloudhsm/commands/DeleteHapgCommand.ts +++ b/clients/client-cloudhsm/commands/DeleteHapgCommand.ts @@ -38,6 +38,7 @@ export class DeleteHapgCommand extends $Command< DeleteHapgCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteHapgCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DeleteHsmCommand.ts b/clients/client-cloudhsm/commands/DeleteHsmCommand.ts index aa904558ec88d..7a9200ba5959c 100644 --- a/clients/client-cloudhsm/commands/DeleteHsmCommand.ts +++ b/clients/client-cloudhsm/commands/DeleteHsmCommand.ts @@ -36,6 +36,7 @@ export class DeleteHsmCommand extends $Command< DeleteHsmCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteHsmCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DeleteLunaClientCommand.ts b/clients/client-cloudhsm/commands/DeleteLunaClientCommand.ts index adbac5c6bea0d..2abb29a303075 100644 --- a/clients/client-cloudhsm/commands/DeleteLunaClientCommand.ts +++ b/clients/client-cloudhsm/commands/DeleteLunaClientCommand.ts @@ -38,6 +38,7 @@ export class DeleteLunaClientCommand extends $Command< DeleteLunaClientCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteLunaClientCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DescribeHapgCommand.ts b/clients/client-cloudhsm/commands/DescribeHapgCommand.ts index 039bca77dc8e4..910e45bbffb8e 100644 --- a/clients/client-cloudhsm/commands/DescribeHapgCommand.ts +++ b/clients/client-cloudhsm/commands/DescribeHapgCommand.ts @@ -38,6 +38,7 @@ export class DescribeHapgCommand extends $Command< DescribeHapgCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeHapgCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DescribeHsmCommand.ts b/clients/client-cloudhsm/commands/DescribeHsmCommand.ts index b0e1b800a44b8..fe89e73d61071 100644 --- a/clients/client-cloudhsm/commands/DescribeHsmCommand.ts +++ b/clients/client-cloudhsm/commands/DescribeHsmCommand.ts @@ -39,6 +39,7 @@ export class DescribeHsmCommand extends $Command< DescribeHsmCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeHsmCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/DescribeLunaClientCommand.ts b/clients/client-cloudhsm/commands/DescribeLunaClientCommand.ts index 60951bcccbdf1..4efcd05e3bb89 100644 --- a/clients/client-cloudhsm/commands/DescribeLunaClientCommand.ts +++ b/clients/client-cloudhsm/commands/DescribeLunaClientCommand.ts @@ -38,6 +38,7 @@ export class DescribeLunaClientCommand extends $Command< DescribeLunaClientCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeLunaClientCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/GetConfigCommand.ts b/clients/client-cloudhsm/commands/GetConfigCommand.ts index c59de235ef262..fbcf4f49f19eb 100644 --- a/clients/client-cloudhsm/commands/GetConfigCommand.ts +++ b/clients/client-cloudhsm/commands/GetConfigCommand.ts @@ -36,6 +36,7 @@ export class GetConfigCommand extends $Command< GetConfigCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetConfigCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ListAvailableZonesCommand.ts b/clients/client-cloudhsm/commands/ListAvailableZonesCommand.ts index a21aeb9bb9890..4081d1840bb57 100644 --- a/clients/client-cloudhsm/commands/ListAvailableZonesCommand.ts +++ b/clients/client-cloudhsm/commands/ListAvailableZonesCommand.ts @@ -38,6 +38,7 @@ export class ListAvailableZonesCommand extends $Command< ListAvailableZonesCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListAvailableZonesCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ListHapgsCommand.ts b/clients/client-cloudhsm/commands/ListHapgsCommand.ts index 030c34704881a..c385f4a57e85f 100644 --- a/clients/client-cloudhsm/commands/ListHapgsCommand.ts +++ b/clients/client-cloudhsm/commands/ListHapgsCommand.ts @@ -39,6 +39,7 @@ export class ListHapgsCommand extends $Command< ListHapgsCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListHapgsCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ListHsmsCommand.ts b/clients/client-cloudhsm/commands/ListHsmsCommand.ts index 3d4fe5a333e12..8215f844ce3ae 100644 --- a/clients/client-cloudhsm/commands/ListHsmsCommand.ts +++ b/clients/client-cloudhsm/commands/ListHsmsCommand.ts @@ -40,6 +40,7 @@ export class ListHsmsCommand extends $Command< ListHsmsCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListHsmsCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ListLunaClientsCommand.ts b/clients/client-cloudhsm/commands/ListLunaClientsCommand.ts index 2703fe06f7f18..b8f5370ad6430 100644 --- a/clients/client-cloudhsm/commands/ListLunaClientsCommand.ts +++ b/clients/client-cloudhsm/commands/ListLunaClientsCommand.ts @@ -42,6 +42,7 @@ export class ListLunaClientsCommand extends $Command< ListLunaClientsCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListLunaClientsCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ListTagsForResourceCommand.ts b/clients/client-cloudhsm/commands/ListTagsForResourceCommand.ts index 97dfc7f49554e..9c74b63f97a93 100644 --- a/clients/client-cloudhsm/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudhsm/commands/ListTagsForResourceCommand.ts @@ -38,6 +38,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ModifyHapgCommand.ts b/clients/client-cloudhsm/commands/ModifyHapgCommand.ts index 7311fc33d3343..56502cdbc601b 100644 --- a/clients/client-cloudhsm/commands/ModifyHapgCommand.ts +++ b/clients/client-cloudhsm/commands/ModifyHapgCommand.ts @@ -38,6 +38,7 @@ export class ModifyHapgCommand extends $Command< ModifyHapgCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ModifyHapgCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ModifyHsmCommand.ts b/clients/client-cloudhsm/commands/ModifyHsmCommand.ts index fb26c9d7d893b..76dc33c3369b7 100644 --- a/clients/client-cloudhsm/commands/ModifyHsmCommand.ts +++ b/clients/client-cloudhsm/commands/ModifyHsmCommand.ts @@ -41,6 +41,7 @@ export class ModifyHsmCommand extends $Command< ModifyHsmCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ModifyHsmCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/ModifyLunaClientCommand.ts b/clients/client-cloudhsm/commands/ModifyLunaClientCommand.ts index eae7a9c4ff08e..c65fb628bbf26 100644 --- a/clients/client-cloudhsm/commands/ModifyLunaClientCommand.ts +++ b/clients/client-cloudhsm/commands/ModifyLunaClientCommand.ts @@ -40,6 +40,7 @@ export class ModifyLunaClientCommand extends $Command< ModifyLunaClientCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ModifyLunaClientCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudhsm/commands/RemoveTagsFromResourceCommand.ts b/clients/client-cloudhsm/commands/RemoveTagsFromResourceCommand.ts index 2da4db55ba8ab..00274e849d0d1 100644 --- a/clients/client-cloudhsm/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-cloudhsm/commands/RemoveTagsFromResourceCommand.ts @@ -40,6 +40,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, CloudHSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: CloudHSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch-domain/commands/SearchCommand.ts b/clients/client-cloudsearch-domain/commands/SearchCommand.ts index 4aecf766829b7..4db65920ec1d8 100644 --- a/clients/client-cloudsearch-domain/commands/SearchCommand.ts +++ b/clients/client-cloudsearch-domain/commands/SearchCommand.ts @@ -37,6 +37,7 @@ export class SearchCommand extends $Command< SearchCommandOutput, CloudSearchDomainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class SearchCommand extends $Command< configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch-domain/commands/SuggestCommand.ts b/clients/client-cloudsearch-domain/commands/SuggestCommand.ts index 6a5d61d77feae..59ca17eab2425 100644 --- a/clients/client-cloudsearch-domain/commands/SuggestCommand.ts +++ b/clients/client-cloudsearch-domain/commands/SuggestCommand.ts @@ -35,6 +35,7 @@ export class SuggestCommand extends $Command< SuggestCommandOutput, CloudSearchDomainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SuggestCommand extends $Command< configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch-domain/commands/UploadDocumentsCommand.ts b/clients/client-cloudsearch-domain/commands/UploadDocumentsCommand.ts index f5e90e6a6817f..ee360d7dae212 100644 --- a/clients/client-cloudsearch-domain/commands/UploadDocumentsCommand.ts +++ b/clients/client-cloudsearch-domain/commands/UploadDocumentsCommand.ts @@ -37,6 +37,7 @@ export class UploadDocumentsCommand extends $Command< UploadDocumentsCommandOutput, CloudSearchDomainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UploadDocumentsCommand extends $Command< configuration: CloudSearchDomainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/BuildSuggestersCommand.ts b/clients/client-cloudsearch/commands/BuildSuggestersCommand.ts index c6c3cc66ee55a..89ade6c1e772d 100644 --- a/clients/client-cloudsearch/commands/BuildSuggestersCommand.ts +++ b/clients/client-cloudsearch/commands/BuildSuggestersCommand.ts @@ -28,6 +28,7 @@ export class BuildSuggestersCommand extends $Command< BuildSuggestersCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BuildSuggestersCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/CreateDomainCommand.ts b/clients/client-cloudsearch/commands/CreateDomainCommand.ts index 8aed75779dacd..40fdf18118f71 100644 --- a/clients/client-cloudsearch/commands/CreateDomainCommand.ts +++ b/clients/client-cloudsearch/commands/CreateDomainCommand.ts @@ -26,6 +26,7 @@ export class CreateDomainCommand extends $Command< CreateDomainCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CreateDomainCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DefineAnalysisSchemeCommand.ts b/clients/client-cloudsearch/commands/DefineAnalysisSchemeCommand.ts index 13deed1c25ae8..c709ae5117c80 100644 --- a/clients/client-cloudsearch/commands/DefineAnalysisSchemeCommand.ts +++ b/clients/client-cloudsearch/commands/DefineAnalysisSchemeCommand.ts @@ -28,6 +28,7 @@ export class DefineAnalysisSchemeCommand extends $Command< DefineAnalysisSchemeCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DefineAnalysisSchemeCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DefineExpressionCommand.ts b/clients/client-cloudsearch/commands/DefineExpressionCommand.ts index 316e8f8902997..5f54073007567 100644 --- a/clients/client-cloudsearch/commands/DefineExpressionCommand.ts +++ b/clients/client-cloudsearch/commands/DefineExpressionCommand.ts @@ -28,6 +28,7 @@ export class DefineExpressionCommand extends $Command< DefineExpressionCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DefineExpressionCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DefineIndexFieldCommand.ts b/clients/client-cloudsearch/commands/DefineIndexFieldCommand.ts index f1ae0ee3d8099..92a1a3c036a06 100644 --- a/clients/client-cloudsearch/commands/DefineIndexFieldCommand.ts +++ b/clients/client-cloudsearch/commands/DefineIndexFieldCommand.ts @@ -28,6 +28,7 @@ export class DefineIndexFieldCommand extends $Command< DefineIndexFieldCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DefineIndexFieldCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DefineSuggesterCommand.ts b/clients/client-cloudsearch/commands/DefineSuggesterCommand.ts index 74258fb45c1ff..08ceaaa67353b 100644 --- a/clients/client-cloudsearch/commands/DefineSuggesterCommand.ts +++ b/clients/client-cloudsearch/commands/DefineSuggesterCommand.ts @@ -28,6 +28,7 @@ export class DefineSuggesterCommand extends $Command< DefineSuggesterCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DefineSuggesterCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DeleteAnalysisSchemeCommand.ts b/clients/client-cloudsearch/commands/DeleteAnalysisSchemeCommand.ts index ec88e0c9b6f33..419acc701dfa7 100644 --- a/clients/client-cloudsearch/commands/DeleteAnalysisSchemeCommand.ts +++ b/clients/client-cloudsearch/commands/DeleteAnalysisSchemeCommand.ts @@ -28,6 +28,7 @@ export class DeleteAnalysisSchemeCommand extends $Command< DeleteAnalysisSchemeCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAnalysisSchemeCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DeleteDomainCommand.ts b/clients/client-cloudsearch/commands/DeleteDomainCommand.ts index a7a8360a07268..f6e0ec527ece5 100644 --- a/clients/client-cloudsearch/commands/DeleteDomainCommand.ts +++ b/clients/client-cloudsearch/commands/DeleteDomainCommand.ts @@ -26,6 +26,7 @@ export class DeleteDomainCommand extends $Command< DeleteDomainCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteDomainCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DeleteExpressionCommand.ts b/clients/client-cloudsearch/commands/DeleteExpressionCommand.ts index 4ca34b9bfb5e3..a7630b461ec7d 100644 --- a/clients/client-cloudsearch/commands/DeleteExpressionCommand.ts +++ b/clients/client-cloudsearch/commands/DeleteExpressionCommand.ts @@ -28,6 +28,7 @@ export class DeleteExpressionCommand extends $Command< DeleteExpressionCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteExpressionCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DeleteIndexFieldCommand.ts b/clients/client-cloudsearch/commands/DeleteIndexFieldCommand.ts index 7c5f225f323d8..18dca4b7115be 100644 --- a/clients/client-cloudsearch/commands/DeleteIndexFieldCommand.ts +++ b/clients/client-cloudsearch/commands/DeleteIndexFieldCommand.ts @@ -28,6 +28,7 @@ export class DeleteIndexFieldCommand extends $Command< DeleteIndexFieldCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteIndexFieldCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DeleteSuggesterCommand.ts b/clients/client-cloudsearch/commands/DeleteSuggesterCommand.ts index 8b0b77723f3dd..467b070591988 100644 --- a/clients/client-cloudsearch/commands/DeleteSuggesterCommand.ts +++ b/clients/client-cloudsearch/commands/DeleteSuggesterCommand.ts @@ -28,6 +28,7 @@ export class DeleteSuggesterCommand extends $Command< DeleteSuggesterCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSuggesterCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeAnalysisSchemesCommand.ts b/clients/client-cloudsearch/commands/DescribeAnalysisSchemesCommand.ts index 14142c8a798c0..fe9972687e3c2 100644 --- a/clients/client-cloudsearch/commands/DescribeAnalysisSchemesCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeAnalysisSchemesCommand.ts @@ -28,6 +28,7 @@ export class DescribeAnalysisSchemesCommand extends $Command< DescribeAnalysisSchemesCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAnalysisSchemesCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeAvailabilityOptionsCommand.ts b/clients/client-cloudsearch/commands/DescribeAvailabilityOptionsCommand.ts index 500e82a4e4989..008001c714223 100644 --- a/clients/client-cloudsearch/commands/DescribeAvailabilityOptionsCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeAvailabilityOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAvailabilityOptionsCommand extends $Command< DescribeAvailabilityOptionsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAvailabilityOptionsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeDomainEndpointOptionsCommand.ts b/clients/client-cloudsearch/commands/DescribeDomainEndpointOptionsCommand.ts index 2ad2ca5bdbb12..c325557c91df9 100644 --- a/clients/client-cloudsearch/commands/DescribeDomainEndpointOptionsCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeDomainEndpointOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDomainEndpointOptionsCommand extends $Command< DescribeDomainEndpointOptionsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDomainEndpointOptionsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeDomainsCommand.ts b/clients/client-cloudsearch/commands/DescribeDomainsCommand.ts index 7cad42fee775f..f75a08dad6b0d 100644 --- a/clients/client-cloudsearch/commands/DescribeDomainsCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeDomainsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDomainsCommand extends $Command< DescribeDomainsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDomainsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeExpressionsCommand.ts b/clients/client-cloudsearch/commands/DescribeExpressionsCommand.ts index bd9607e89d751..824c0e5295fbd 100644 --- a/clients/client-cloudsearch/commands/DescribeExpressionsCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeExpressionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeExpressionsCommand extends $Command< DescribeExpressionsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExpressionsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeIndexFieldsCommand.ts b/clients/client-cloudsearch/commands/DescribeIndexFieldsCommand.ts index 97d98b4d92d46..8ae2c7487d687 100644 --- a/clients/client-cloudsearch/commands/DescribeIndexFieldsCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeIndexFieldsCommand.ts @@ -30,6 +30,7 @@ export class DescribeIndexFieldsCommand extends $Command< DescribeIndexFieldsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeIndexFieldsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeScalingParametersCommand.ts b/clients/client-cloudsearch/commands/DescribeScalingParametersCommand.ts index 6b31533ebe5d2..5c6f98b8466a6 100644 --- a/clients/client-cloudsearch/commands/DescribeScalingParametersCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeScalingParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeScalingParametersCommand extends $Command< DescribeScalingParametersCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScalingParametersCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeServiceAccessPoliciesCommand.ts b/clients/client-cloudsearch/commands/DescribeServiceAccessPoliciesCommand.ts index 53d0da649846b..8f3306ba2dcc4 100644 --- a/clients/client-cloudsearch/commands/DescribeServiceAccessPoliciesCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeServiceAccessPoliciesCommand.ts @@ -29,6 +29,7 @@ export class DescribeServiceAccessPoliciesCommand extends $Command< DescribeServiceAccessPoliciesCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeServiceAccessPoliciesCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/DescribeSuggestersCommand.ts b/clients/client-cloudsearch/commands/DescribeSuggestersCommand.ts index 11c3c07df944f..b5b6c00aaf22b 100644 --- a/clients/client-cloudsearch/commands/DescribeSuggestersCommand.ts +++ b/clients/client-cloudsearch/commands/DescribeSuggestersCommand.ts @@ -28,6 +28,7 @@ export class DescribeSuggestersCommand extends $Command< DescribeSuggestersCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSuggestersCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/IndexDocumentsCommand.ts b/clients/client-cloudsearch/commands/IndexDocumentsCommand.ts index 67bc72349b174..32efd57beb1f1 100644 --- a/clients/client-cloudsearch/commands/IndexDocumentsCommand.ts +++ b/clients/client-cloudsearch/commands/IndexDocumentsCommand.ts @@ -28,6 +28,7 @@ export class IndexDocumentsCommand extends $Command< IndexDocumentsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class IndexDocumentsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/ListDomainNamesCommand.ts b/clients/client-cloudsearch/commands/ListDomainNamesCommand.ts index b9d11bded3373..8aed35e7b343f 100644 --- a/clients/client-cloudsearch/commands/ListDomainNamesCommand.ts +++ b/clients/client-cloudsearch/commands/ListDomainNamesCommand.ts @@ -28,6 +28,7 @@ export class ListDomainNamesCommand extends $Command< ListDomainNamesCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDomainNamesCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/UpdateAvailabilityOptionsCommand.ts b/clients/client-cloudsearch/commands/UpdateAvailabilityOptionsCommand.ts index adbe7c138caa5..da5671b855b96 100644 --- a/clients/client-cloudsearch/commands/UpdateAvailabilityOptionsCommand.ts +++ b/clients/client-cloudsearch/commands/UpdateAvailabilityOptionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateAvailabilityOptionsCommand extends $Command< UpdateAvailabilityOptionsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAvailabilityOptionsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/UpdateDomainEndpointOptionsCommand.ts b/clients/client-cloudsearch/commands/UpdateDomainEndpointOptionsCommand.ts index 0ed3ea9e32167..de52fca971be7 100644 --- a/clients/client-cloudsearch/commands/UpdateDomainEndpointOptionsCommand.ts +++ b/clients/client-cloudsearch/commands/UpdateDomainEndpointOptionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateDomainEndpointOptionsCommand extends $Command< UpdateDomainEndpointOptionsCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDomainEndpointOptionsCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/UpdateScalingParametersCommand.ts b/clients/client-cloudsearch/commands/UpdateScalingParametersCommand.ts index c8af139df7102..f943ffbcb28af 100644 --- a/clients/client-cloudsearch/commands/UpdateScalingParametersCommand.ts +++ b/clients/client-cloudsearch/commands/UpdateScalingParametersCommand.ts @@ -28,6 +28,7 @@ export class UpdateScalingParametersCommand extends $Command< UpdateScalingParametersCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateScalingParametersCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudsearch/commands/UpdateServiceAccessPoliciesCommand.ts b/clients/client-cloudsearch/commands/UpdateServiceAccessPoliciesCommand.ts index ca0c64d56aba7..0faab1202aeab 100644 --- a/clients/client-cloudsearch/commands/UpdateServiceAccessPoliciesCommand.ts +++ b/clients/client-cloudsearch/commands/UpdateServiceAccessPoliciesCommand.ts @@ -30,6 +30,7 @@ export class UpdateServiceAccessPoliciesCommand extends $Command< UpdateServiceAccessPoliciesCommandOutput, CloudSearchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateServiceAccessPoliciesCommand extends $Command< configuration: CloudSearchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/AddTagsCommand.ts b/clients/client-cloudtrail/commands/AddTagsCommand.ts index a35b590e46203..5dc12f1fff647 100644 --- a/clients/client-cloudtrail/commands/AddTagsCommand.ts +++ b/clients/client-cloudtrail/commands/AddTagsCommand.ts @@ -28,6 +28,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddTagsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/CreateTrailCommand.ts b/clients/client-cloudtrail/commands/CreateTrailCommand.ts index d3ce81a655897..320bf7b4dcacc 100644 --- a/clients/client-cloudtrail/commands/CreateTrailCommand.ts +++ b/clients/client-cloudtrail/commands/CreateTrailCommand.ts @@ -28,6 +28,7 @@ export class CreateTrailCommand extends $Command< CreateTrailCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTrailCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/DeleteTrailCommand.ts b/clients/client-cloudtrail/commands/DeleteTrailCommand.ts index b95eb47ce3f0c..5ac0fd5d5edfc 100644 --- a/clients/client-cloudtrail/commands/DeleteTrailCommand.ts +++ b/clients/client-cloudtrail/commands/DeleteTrailCommand.ts @@ -30,6 +30,7 @@ export class DeleteTrailCommand extends $Command< DeleteTrailCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteTrailCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/DescribeTrailsCommand.ts b/clients/client-cloudtrail/commands/DescribeTrailsCommand.ts index 45854af1f93d4..2e469a3d53a89 100644 --- a/clients/client-cloudtrail/commands/DescribeTrailsCommand.ts +++ b/clients/client-cloudtrail/commands/DescribeTrailsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrailsCommand extends $Command< DescribeTrailsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrailsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/GetEventSelectorsCommand.ts b/clients/client-cloudtrail/commands/GetEventSelectorsCommand.ts index f6c92ac927d65..6c55c40a007ce 100644 --- a/clients/client-cloudtrail/commands/GetEventSelectorsCommand.ts +++ b/clients/client-cloudtrail/commands/GetEventSelectorsCommand.ts @@ -44,6 +44,7 @@ export class GetEventSelectorsCommand extends $Command< GetEventSelectorsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class GetEventSelectorsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/GetInsightSelectorsCommand.ts b/clients/client-cloudtrail/commands/GetInsightSelectorsCommand.ts index f3a81ec21babe..ecc8247468d49 100644 --- a/clients/client-cloudtrail/commands/GetInsightSelectorsCommand.ts +++ b/clients/client-cloudtrail/commands/GetInsightSelectorsCommand.ts @@ -34,6 +34,7 @@ export class GetInsightSelectorsCommand extends $Command< GetInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetInsightSelectorsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/GetTrailCommand.ts b/clients/client-cloudtrail/commands/GetTrailCommand.ts index 5a8f2a47ee16e..b3a1db82b1c53 100644 --- a/clients/client-cloudtrail/commands/GetTrailCommand.ts +++ b/clients/client-cloudtrail/commands/GetTrailCommand.ts @@ -25,6 +25,7 @@ export class GetTrailCommand extends $Command< GetTrailCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetTrailCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/GetTrailStatusCommand.ts b/clients/client-cloudtrail/commands/GetTrailStatusCommand.ts index 36852fdfc725c..14c107a4bcae5 100644 --- a/clients/client-cloudtrail/commands/GetTrailStatusCommand.ts +++ b/clients/client-cloudtrail/commands/GetTrailStatusCommand.ts @@ -28,6 +28,7 @@ export class GetTrailStatusCommand extends $Command< GetTrailStatusCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTrailStatusCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/ListPublicKeysCommand.ts b/clients/client-cloudtrail/commands/ListPublicKeysCommand.ts index 7637a9ca451df..958c06b1eed84 100644 --- a/clients/client-cloudtrail/commands/ListPublicKeysCommand.ts +++ b/clients/client-cloudtrail/commands/ListPublicKeysCommand.ts @@ -31,6 +31,7 @@ export class ListPublicKeysCommand extends $Command< ListPublicKeysCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListPublicKeysCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/ListTagsCommand.ts b/clients/client-cloudtrail/commands/ListTagsCommand.ts index b614affdd339e..610ef8ae5ebc6 100644 --- a/clients/client-cloudtrail/commands/ListTagsCommand.ts +++ b/clients/client-cloudtrail/commands/ListTagsCommand.ts @@ -25,6 +25,7 @@ export class ListTagsCommand extends $Command< ListTagsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTagsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/ListTrailsCommand.ts b/clients/client-cloudtrail/commands/ListTrailsCommand.ts index 84fe4c277c17c..0faba1191fe01 100644 --- a/clients/client-cloudtrail/commands/ListTrailsCommand.ts +++ b/clients/client-cloudtrail/commands/ListTrailsCommand.ts @@ -28,6 +28,7 @@ export class ListTrailsCommand extends $Command< ListTrailsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTrailsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/LookupEventsCommand.ts b/clients/client-cloudtrail/commands/LookupEventsCommand.ts index 977f607711b4c..a8fc57fc9f77a 100644 --- a/clients/client-cloudtrail/commands/LookupEventsCommand.ts +++ b/clients/client-cloudtrail/commands/LookupEventsCommand.ts @@ -75,6 +75,7 @@ export class LookupEventsCommand extends $Command< LookupEventsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class LookupEventsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/PutEventSelectorsCommand.ts b/clients/client-cloudtrail/commands/PutEventSelectorsCommand.ts index 695e94d04ad1d..3821a5ee6ca7c 100644 --- a/clients/client-cloudtrail/commands/PutEventSelectorsCommand.ts +++ b/clients/client-cloudtrail/commands/PutEventSelectorsCommand.ts @@ -72,6 +72,7 @@ export class PutEventSelectorsCommand extends $Command< PutEventSelectorsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class PutEventSelectorsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/PutInsightSelectorsCommand.ts b/clients/client-cloudtrail/commands/PutInsightSelectorsCommand.ts index c6d2c51b1cdbe..c20c029263b15 100644 --- a/clients/client-cloudtrail/commands/PutInsightSelectorsCommand.ts +++ b/clients/client-cloudtrail/commands/PutInsightSelectorsCommand.ts @@ -31,6 +31,7 @@ export class PutInsightSelectorsCommand extends $Command< PutInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutInsightSelectorsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/RemoveTagsCommand.ts b/clients/client-cloudtrail/commands/RemoveTagsCommand.ts index 1a64e8ebc7da3..308145e36b097 100644 --- a/clients/client-cloudtrail/commands/RemoveTagsCommand.ts +++ b/clients/client-cloudtrail/commands/RemoveTagsCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/StartLoggingCommand.ts b/clients/client-cloudtrail/commands/StartLoggingCommand.ts index a91d85ef14cf3..2d4776d3d3589 100644 --- a/clients/client-cloudtrail/commands/StartLoggingCommand.ts +++ b/clients/client-cloudtrail/commands/StartLoggingCommand.ts @@ -28,6 +28,7 @@ export class StartLoggingCommand extends $Command< StartLoggingCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartLoggingCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/StopLoggingCommand.ts b/clients/client-cloudtrail/commands/StopLoggingCommand.ts index 167b0be89612b..fbdfe06af695f 100644 --- a/clients/client-cloudtrail/commands/StopLoggingCommand.ts +++ b/clients/client-cloudtrail/commands/StopLoggingCommand.ts @@ -34,6 +34,7 @@ export class StopLoggingCommand extends $Command< StopLoggingCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopLoggingCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudtrail/commands/UpdateTrailCommand.ts b/clients/client-cloudtrail/commands/UpdateTrailCommand.ts index 120590ae39831..2542ca710103a 100644 --- a/clients/client-cloudtrail/commands/UpdateTrailCommand.ts +++ b/clients/client-cloudtrail/commands/UpdateTrailCommand.ts @@ -33,6 +33,7 @@ export class UpdateTrailCommand extends $Command< UpdateTrailCommandOutput, CloudTrailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateTrailCommand extends $Command< configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ActivateEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/ActivateEventSourceCommand.ts index 605892d3c63ec..b13808e7deb68 100644 --- a/clients/client-cloudwatch-events/commands/ActivateEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/ActivateEventSourceCommand.ts @@ -29,6 +29,7 @@ export class ActivateEventSourceCommand extends $Command< ActivateEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ActivateEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/CancelReplayCommand.ts b/clients/client-cloudwatch-events/commands/CancelReplayCommand.ts index 1ea3d1ca23bf4..386b9fbc3ad4b 100644 --- a/clients/client-cloudwatch-events/commands/CancelReplayCommand.ts +++ b/clients/client-cloudwatch-events/commands/CancelReplayCommand.ts @@ -28,6 +28,7 @@ export class CancelReplayCommand extends $Command< CancelReplayCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelReplayCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/CreateArchiveCommand.ts b/clients/client-cloudwatch-events/commands/CreateArchiveCommand.ts index 05ae9f501d8ff..f89640f3ee521 100644 --- a/clients/client-cloudwatch-events/commands/CreateArchiveCommand.ts +++ b/clients/client-cloudwatch-events/commands/CreateArchiveCommand.ts @@ -30,6 +30,7 @@ export class CreateArchiveCommand extends $Command< CreateArchiveCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateArchiveCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/CreateEventBusCommand.ts b/clients/client-cloudwatch-events/commands/CreateEventBusCommand.ts index b46e9e7181f0b..2b3b1c1f59148 100644 --- a/clients/client-cloudwatch-events/commands/CreateEventBusCommand.ts +++ b/clients/client-cloudwatch-events/commands/CreateEventBusCommand.ts @@ -30,6 +30,7 @@ export class CreateEventBusCommand extends $Command< CreateEventBusCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateEventBusCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/CreatePartnerEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/CreatePartnerEventSourceCommand.ts index c9d88e7921c2c..cef1d67f5a8a2 100644 --- a/clients/client-cloudwatch-events/commands/CreatePartnerEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/CreatePartnerEventSourceCommand.ts @@ -51,6 +51,7 @@ export class CreatePartnerEventSourceCommand extends $Command< CreatePartnerEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreatePartnerEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DeactivateEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/DeactivateEventSourceCommand.ts index 123d91cbbb6a8..d40d98c4dc125 100644 --- a/clients/client-cloudwatch-events/commands/DeactivateEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/DeactivateEventSourceCommand.ts @@ -32,6 +32,7 @@ export class DeactivateEventSourceCommand extends $Command< DeactivateEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeactivateEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DeleteArchiveCommand.ts b/clients/client-cloudwatch-events/commands/DeleteArchiveCommand.ts index bddddaa26283c..dfdc84128251b 100644 --- a/clients/client-cloudwatch-events/commands/DeleteArchiveCommand.ts +++ b/clients/client-cloudwatch-events/commands/DeleteArchiveCommand.ts @@ -28,6 +28,7 @@ export class DeleteArchiveCommand extends $Command< DeleteArchiveCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteArchiveCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DeleteEventBusCommand.ts b/clients/client-cloudwatch-events/commands/DeleteEventBusCommand.ts index 399b7a21c2a64..ddc03ac6f69a3 100644 --- a/clients/client-cloudwatch-events/commands/DeleteEventBusCommand.ts +++ b/clients/client-cloudwatch-events/commands/DeleteEventBusCommand.ts @@ -30,6 +30,7 @@ export class DeleteEventBusCommand extends $Command< DeleteEventBusCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEventBusCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DeletePartnerEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/DeletePartnerEventSourceCommand.ts index b5321dcc2205e..7c915761bb054 100644 --- a/clients/client-cloudwatch-events/commands/DeletePartnerEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/DeletePartnerEventSourceCommand.ts @@ -32,6 +32,7 @@ export class DeletePartnerEventSourceCommand extends $Command< DeletePartnerEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeletePartnerEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DeleteRuleCommand.ts b/clients/client-cloudwatch-events/commands/DeleteRuleCommand.ts index 5419a257eac70..c49495a2c4534 100644 --- a/clients/client-cloudwatch-events/commands/DeleteRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/DeleteRuleCommand.ts @@ -37,6 +37,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribeArchiveCommand.ts b/clients/client-cloudwatch-events/commands/DescribeArchiveCommand.ts index b6a7739801d30..ce34052db7ae7 100644 --- a/clients/client-cloudwatch-events/commands/DescribeArchiveCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribeArchiveCommand.ts @@ -28,6 +28,7 @@ export class DescribeArchiveCommand extends $Command< DescribeArchiveCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeArchiveCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribeEventBusCommand.ts b/clients/client-cloudwatch-events/commands/DescribeEventBusCommand.ts index 87e56c2cf1c53..b917ccae9dfb8 100644 --- a/clients/client-cloudwatch-events/commands/DescribeEventBusCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribeEventBusCommand.ts @@ -34,6 +34,7 @@ export class DescribeEventBusCommand extends $Command< DescribeEventBusCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeEventBusCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribeEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/DescribeEventSourceCommand.ts index 3464f9b3057e7..cf5ffcd0b3153 100644 --- a/clients/client-cloudwatch-events/commands/DescribeEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribeEventSourceCommand.ts @@ -29,6 +29,7 @@ export class DescribeEventSourceCommand extends $Command< DescribeEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribePartnerEventSourceCommand.ts b/clients/client-cloudwatch-events/commands/DescribePartnerEventSourceCommand.ts index 1b46a190fa50e..25fb7b58738b6 100644 --- a/clients/client-cloudwatch-events/commands/DescribePartnerEventSourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribePartnerEventSourceCommand.ts @@ -31,6 +31,7 @@ export class DescribePartnerEventSourceCommand extends $Command< DescribePartnerEventSourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribePartnerEventSourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribeReplayCommand.ts b/clients/client-cloudwatch-events/commands/DescribeReplayCommand.ts index b97ebdf7b575f..26a661c733e3a 100644 --- a/clients/client-cloudwatch-events/commands/DescribeReplayCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribeReplayCommand.ts @@ -36,6 +36,7 @@ export class DescribeReplayCommand extends $Command< DescribeReplayCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeReplayCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DescribeRuleCommand.ts b/clients/client-cloudwatch-events/commands/DescribeRuleCommand.ts index d8004dd09ab60..411c3a13725f0 100644 --- a/clients/client-cloudwatch-events/commands/DescribeRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/DescribeRuleCommand.ts @@ -30,6 +30,7 @@ export class DescribeRuleCommand extends $Command< DescribeRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/DisableRuleCommand.ts b/clients/client-cloudwatch-events/commands/DisableRuleCommand.ts index 1d14aac3c5193..7ea15fda4731b 100644 --- a/clients/client-cloudwatch-events/commands/DisableRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/DisableRuleCommand.ts @@ -32,6 +32,7 @@ export class DisableRuleCommand extends $Command< DisableRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisableRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/EnableRuleCommand.ts b/clients/client-cloudwatch-events/commands/EnableRuleCommand.ts index f307cb173a17d..ec086f6a9b9c8 100644 --- a/clients/client-cloudwatch-events/commands/EnableRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/EnableRuleCommand.ts @@ -32,6 +32,7 @@ export class EnableRuleCommand extends $Command< EnableRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class EnableRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListArchivesCommand.ts b/clients/client-cloudwatch-events/commands/ListArchivesCommand.ts index 5d6b5f11fe4b8..c96d4005f4341 100644 --- a/clients/client-cloudwatch-events/commands/ListArchivesCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListArchivesCommand.ts @@ -29,6 +29,7 @@ export class ListArchivesCommand extends $Command< ListArchivesCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListArchivesCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListEventBusesCommand.ts b/clients/client-cloudwatch-events/commands/ListEventBusesCommand.ts index ae149c71da8ff..b2a4570366b63 100644 --- a/clients/client-cloudwatch-events/commands/ListEventBusesCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListEventBusesCommand.ts @@ -29,6 +29,7 @@ export class ListEventBusesCommand extends $Command< ListEventBusesCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventBusesCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListEventSourcesCommand.ts b/clients/client-cloudwatch-events/commands/ListEventSourcesCommand.ts index 56890a776030d..182997cc50baa 100644 --- a/clients/client-cloudwatch-events/commands/ListEventSourcesCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListEventSourcesCommand.ts @@ -29,6 +29,7 @@ export class ListEventSourcesCommand extends $Command< ListEventSourcesCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventSourcesCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListPartnerEventSourceAccountsCommand.ts b/clients/client-cloudwatch-events/commands/ListPartnerEventSourceAccountsCommand.ts index 86307d84be73d..29ec1bfdc99bc 100644 --- a/clients/client-cloudwatch-events/commands/ListPartnerEventSourceAccountsCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListPartnerEventSourceAccountsCommand.ts @@ -30,6 +30,7 @@ export class ListPartnerEventSourceAccountsCommand extends $Command< ListPartnerEventSourceAccountsCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPartnerEventSourceAccountsCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListPartnerEventSourcesCommand.ts b/clients/client-cloudwatch-events/commands/ListPartnerEventSourcesCommand.ts index ba2d89ec31aaa..6f4090b1ed9cf 100644 --- a/clients/client-cloudwatch-events/commands/ListPartnerEventSourcesCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListPartnerEventSourcesCommand.ts @@ -29,6 +29,7 @@ export class ListPartnerEventSourcesCommand extends $Command< ListPartnerEventSourcesCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPartnerEventSourcesCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListReplaysCommand.ts b/clients/client-cloudwatch-events/commands/ListReplaysCommand.ts index af00608673637..d569fe4697c87 100644 --- a/clients/client-cloudwatch-events/commands/ListReplaysCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListReplaysCommand.ts @@ -29,6 +29,7 @@ export class ListReplaysCommand extends $Command< ListReplaysCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListReplaysCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListRuleNamesByTargetCommand.ts b/clients/client-cloudwatch-events/commands/ListRuleNamesByTargetCommand.ts index 36a28cd023fd0..7f56e2c271b7f 100644 --- a/clients/client-cloudwatch-events/commands/ListRuleNamesByTargetCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListRuleNamesByTargetCommand.ts @@ -29,6 +29,7 @@ export class ListRuleNamesByTargetCommand extends $Command< ListRuleNamesByTargetCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRuleNamesByTargetCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListRulesCommand.ts b/clients/client-cloudwatch-events/commands/ListRulesCommand.ts index 0752f2f68c634..a944cad1b706c 100644 --- a/clients/client-cloudwatch-events/commands/ListRulesCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListRulesCommand.ts @@ -29,6 +29,7 @@ export class ListRulesCommand extends $Command< ListRulesCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRulesCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListTagsForResourceCommand.ts b/clients/client-cloudwatch-events/commands/ListTagsForResourceCommand.ts index c8e11ad17c33e..826d072e29d59 100644 --- a/clients/client-cloudwatch-events/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/ListTargetsByRuleCommand.ts b/clients/client-cloudwatch-events/commands/ListTargetsByRuleCommand.ts index 00a64f155fe9e..922d150c36492 100644 --- a/clients/client-cloudwatch-events/commands/ListTargetsByRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/ListTargetsByRuleCommand.ts @@ -28,6 +28,7 @@ export class ListTargetsByRuleCommand extends $Command< ListTargetsByRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTargetsByRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/PutEventsCommand.ts b/clients/client-cloudwatch-events/commands/PutEventsCommand.ts index bad1e7a080638..d6b95d026ed9a 100644 --- a/clients/client-cloudwatch-events/commands/PutEventsCommand.ts +++ b/clients/client-cloudwatch-events/commands/PutEventsCommand.ts @@ -26,6 +26,7 @@ export class PutEventsCommand extends $Command< PutEventsCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class PutEventsCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/PutPartnerEventsCommand.ts b/clients/client-cloudwatch-events/commands/PutPartnerEventsCommand.ts index 895e8296388e5..23516992f83d8 100644 --- a/clients/client-cloudwatch-events/commands/PutPartnerEventsCommand.ts +++ b/clients/client-cloudwatch-events/commands/PutPartnerEventsCommand.ts @@ -29,6 +29,7 @@ export class PutPartnerEventsCommand extends $Command< PutPartnerEventsCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutPartnerEventsCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/PutPermissionCommand.ts b/clients/client-cloudwatch-events/commands/PutPermissionCommand.ts index 0f177a3227a18..289fde7a7f565 100644 --- a/clients/client-cloudwatch-events/commands/PutPermissionCommand.ts +++ b/clients/client-cloudwatch-events/commands/PutPermissionCommand.ts @@ -49,6 +49,7 @@ export class PutPermissionCommand extends $Command< PutPermissionCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutPermissionCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/PutRuleCommand.ts b/clients/client-cloudwatch-events/commands/PutRuleCommand.ts index df06b58a53683..bc4e04a3867d3 100644 --- a/clients/client-cloudwatch-events/commands/PutRuleCommand.ts +++ b/clients/client-cloudwatch-events/commands/PutRuleCommand.ts @@ -74,6 +74,7 @@ export class PutRuleCommand extends $Command< PutRuleCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class PutRuleCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/PutTargetsCommand.ts b/clients/client-cloudwatch-events/commands/PutTargetsCommand.ts index 4fadb99842d4b..3a5504701753c 100644 --- a/clients/client-cloudwatch-events/commands/PutTargetsCommand.ts +++ b/clients/client-cloudwatch-events/commands/PutTargetsCommand.ts @@ -173,6 +173,7 @@ export class PutTargetsCommand extends $Command< PutTargetsCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -190,7 +191,10 @@ export class PutTargetsCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/RemovePermissionCommand.ts b/clients/client-cloudwatch-events/commands/RemovePermissionCommand.ts index f2c3102190448..68906c8025c27 100644 --- a/clients/client-cloudwatch-events/commands/RemovePermissionCommand.ts +++ b/clients/client-cloudwatch-events/commands/RemovePermissionCommand.ts @@ -31,6 +31,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RemovePermissionCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/RemoveTargetsCommand.ts b/clients/client-cloudwatch-events/commands/RemoveTargetsCommand.ts index 51f4e2a8963fc..c35d4ee066503 100644 --- a/clients/client-cloudwatch-events/commands/RemoveTargetsCommand.ts +++ b/clients/client-cloudwatch-events/commands/RemoveTargetsCommand.ts @@ -38,6 +38,7 @@ export class RemoveTargetsCommand extends $Command< RemoveTargetsCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class RemoveTargetsCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/StartReplayCommand.ts b/clients/client-cloudwatch-events/commands/StartReplayCommand.ts index 5e56cb9c3b81f..12a8ffcb0211a 100644 --- a/clients/client-cloudwatch-events/commands/StartReplayCommand.ts +++ b/clients/client-cloudwatch-events/commands/StartReplayCommand.ts @@ -36,6 +36,7 @@ export class StartReplayCommand extends $Command< StartReplayCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartReplayCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/TagResourceCommand.ts b/clients/client-cloudwatch-events/commands/TagResourceCommand.ts index d688b561997d3..db8eccf8d8fbb 100644 --- a/clients/client-cloudwatch-events/commands/TagResourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/TagResourceCommand.ts @@ -38,6 +38,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class TagResourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/TestEventPatternCommand.ts b/clients/client-cloudwatch-events/commands/TestEventPatternCommand.ts index 7d9fe36d0925e..26c558385a3bc 100644 --- a/clients/client-cloudwatch-events/commands/TestEventPatternCommand.ts +++ b/clients/client-cloudwatch-events/commands/TestEventPatternCommand.ts @@ -32,6 +32,7 @@ export class TestEventPatternCommand extends $Command< TestEventPatternCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestEventPatternCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/UntagResourceCommand.ts b/clients/client-cloudwatch-events/commands/UntagResourceCommand.ts index c470bf65c1f9f..98488956da3f5 100644 --- a/clients/client-cloudwatch-events/commands/UntagResourceCommand.ts +++ b/clients/client-cloudwatch-events/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-events/commands/UpdateArchiveCommand.ts b/clients/client-cloudwatch-events/commands/UpdateArchiveCommand.ts index a1fe0dcc42150..2ba656e67c49a 100644 --- a/clients/client-cloudwatch-events/commands/UpdateArchiveCommand.ts +++ b/clients/client-cloudwatch-events/commands/UpdateArchiveCommand.ts @@ -28,6 +28,7 @@ export class UpdateArchiveCommand extends $Command< UpdateArchiveCommandOutput, CloudWatchEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateArchiveCommand extends $Command< configuration: CloudWatchEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/AssociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/commands/AssociateKmsKeyCommand.ts index c10a4a5fa34a9..68c571fc5a6c5 100644 --- a/clients/client-cloudwatch-logs/commands/AssociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/AssociateKmsKeyCommand.ts @@ -40,6 +40,7 @@ export class AssociateKmsKeyCommand extends $Command< AssociateKmsKeyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AssociateKmsKeyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/CancelExportTaskCommand.ts b/clients/client-cloudwatch-logs/commands/CancelExportTaskCommand.ts index 368f6ffbb7dd4..30c99f539ef84 100644 --- a/clients/client-cloudwatch-logs/commands/CancelExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/commands/CancelExportTaskCommand.ts @@ -29,6 +29,7 @@ export class CancelExportTaskCommand extends $Command< CancelExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CancelExportTaskCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/CreateExportTaskCommand.ts b/clients/client-cloudwatch-logs/commands/CreateExportTaskCommand.ts index e5e11545edd63..2369cd7275892 100644 --- a/clients/client-cloudwatch-logs/commands/CreateExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/commands/CreateExportTaskCommand.ts @@ -41,6 +41,7 @@ export class CreateExportTaskCommand extends $Command< CreateExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateExportTaskCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/CreateLogGroupCommand.ts b/clients/client-cloudwatch-logs/commands/CreateLogGroupCommand.ts index 6b0122e05a416..fe65bb3ca2d32 100644 --- a/clients/client-cloudwatch-logs/commands/CreateLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/commands/CreateLogGroupCommand.ts @@ -54,6 +54,7 @@ export class CreateLogGroupCommand extends $Command< CreateLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class CreateLogGroupCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/CreateLogStreamCommand.ts b/clients/client-cloudwatch-logs/commands/CreateLogStreamCommand.ts index f771f6c238b11..efdd23bd7fb2b 100644 --- a/clients/client-cloudwatch-logs/commands/CreateLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/commands/CreateLogStreamCommand.ts @@ -44,6 +44,7 @@ export class CreateLogStreamCommand extends $Command< CreateLogStreamCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateLogStreamCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteDestinationCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteDestinationCommand.ts index 9b5b01250760a..42f765efb8bfa 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteDestinationCommand.ts @@ -30,6 +30,7 @@ export class DeleteDestinationCommand extends $Command< DeleteDestinationCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDestinationCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteLogGroupCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteLogGroupCommand.ts index 8bb64ca33308c..ae885f62d4eb5 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteLogGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteLogGroupCommand extends $Command< DeleteLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteLogGroupCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteLogStreamCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteLogStreamCommand.ts index 664b74bb65b16..d993ed2d2265d 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteLogStreamCommand.ts @@ -29,6 +29,7 @@ export class DeleteLogStreamCommand extends $Command< DeleteLogStreamCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteLogStreamCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteMetricFilterCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteMetricFilterCommand.ts index 1f1c4ae25bbc6..6b83cef409598 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteMetricFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteMetricFilterCommand extends $Command< DeleteMetricFilterCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMetricFilterCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteQueryDefinitionCommand.ts index 02cb1425c1ddc..1b227a28b811f 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteQueryDefinitionCommand.ts @@ -32,6 +32,7 @@ export class DeleteQueryDefinitionCommand extends $Command< DeleteQueryDefinitionCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteQueryDefinitionCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteResourcePolicyCommand.ts index 1a50a19135486..a7e837f863718 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteResourcePolicyCommand.ts @@ -29,6 +29,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteRetentionPolicyCommand.ts index c93f9f9f8cee7..ac3fa3aaba50e 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteRetentionPolicyCommand.ts @@ -29,6 +29,7 @@ export class DeleteRetentionPolicyCommand extends $Command< DeleteRetentionPolicyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteRetentionPolicyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DeleteSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/commands/DeleteSubscriptionFilterCommand.ts index 576f97c7a0ffe..d77cf2156f359 100644 --- a/clients/client-cloudwatch-logs/commands/DeleteSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DeleteSubscriptionFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteSubscriptionFilterCommand extends $Command< DeleteSubscriptionFilterCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSubscriptionFilterCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeDestinationsCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeDestinationsCommand.ts index 487ae3137cfb7..af10ef11b5893 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeDestinationsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeDestinationsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDestinationsCommand extends $Command< DescribeDestinationsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDestinationsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeExportTasksCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeExportTasksCommand.ts index fb3e5f325f305..e111a8b1aee38 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeExportTasksCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeExportTasksCommand.ts @@ -29,6 +29,7 @@ export class DescribeExportTasksCommand extends $Command< DescribeExportTasksCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeExportTasksCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeLogGroupsCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeLogGroupsCommand.ts index e790ea84daee6..406b569b84344 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeLogGroupsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeLogGroupsCommand.ts @@ -29,6 +29,7 @@ export class DescribeLogGroupsCommand extends $Command< DescribeLogGroupsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLogGroupsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeLogStreamsCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeLogStreamsCommand.ts index 007b80121b6bd..5c841067911f2 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeLogStreamsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeLogStreamsCommand.ts @@ -31,6 +31,7 @@ export class DescribeLogStreamsCommand extends $Command< DescribeLogStreamsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeLogStreamsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeMetricFiltersCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeMetricFiltersCommand.ts index 7dee8988207bc..07621e7358e34 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeMetricFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeMetricFiltersCommand.ts @@ -30,6 +30,7 @@ export class DescribeMetricFiltersCommand extends $Command< DescribeMetricFiltersCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeMetricFiltersCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeQueriesCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeQueriesCommand.ts index 78343259aad8b..a5467dd105f35 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeQueriesCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeQueriesCommand.ts @@ -30,6 +30,7 @@ export class DescribeQueriesCommand extends $Command< DescribeQueriesCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeQueriesCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeQueryDefinitionsCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeQueryDefinitionsCommand.ts index d608684c6f79c..d77bda01f4168 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeQueryDefinitionsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeQueryDefinitionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeQueryDefinitionsCommand extends $Command< DescribeQueryDefinitionsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeQueryDefinitionsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeResourcePoliciesCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeResourcePoliciesCommand.ts index 0ec5e80c60797..d8eab2e936459 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeResourcePoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeResourcePoliciesCommand.ts @@ -28,6 +28,7 @@ export class DescribeResourcePoliciesCommand extends $Command< DescribeResourcePoliciesCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeResourcePoliciesCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DescribeSubscriptionFiltersCommand.ts b/clients/client-cloudwatch-logs/commands/DescribeSubscriptionFiltersCommand.ts index 5a76bdb68426a..a647128133c3b 100644 --- a/clients/client-cloudwatch-logs/commands/DescribeSubscriptionFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DescribeSubscriptionFiltersCommand.ts @@ -29,6 +29,7 @@ export class DescribeSubscriptionFiltersCommand extends $Command< DescribeSubscriptionFiltersCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSubscriptionFiltersCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/DisassociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/commands/DisassociateKmsKeyCommand.ts index e44c407a45223..e711ea85990bb 100644 --- a/clients/client-cloudwatch-logs/commands/DisassociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/DisassociateKmsKeyCommand.ts @@ -31,6 +31,7 @@ export class DisassociateKmsKeyCommand extends $Command< DisassociateKmsKeyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DisassociateKmsKeyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/FilterLogEventsCommand.ts b/clients/client-cloudwatch-logs/commands/FilterLogEventsCommand.ts index 25a376cd903c8..e92ba77a621d1 100644 --- a/clients/client-cloudwatch-logs/commands/FilterLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/FilterLogEventsCommand.ts @@ -36,6 +36,7 @@ export class FilterLogEventsCommand extends $Command< FilterLogEventsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class FilterLogEventsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/GetLogEventsCommand.ts b/clients/client-cloudwatch-logs/commands/GetLogEventsCommand.ts index 41a1bbdde2d09..f3af6c545978a 100644 --- a/clients/client-cloudwatch-logs/commands/GetLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/GetLogEventsCommand.ts @@ -33,6 +33,7 @@ export class GetLogEventsCommand extends $Command< GetLogEventsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetLogEventsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/GetLogGroupFieldsCommand.ts b/clients/client-cloudwatch-logs/commands/GetLogGroupFieldsCommand.ts index e6e5148b42d8e..6649323c1c57f 100644 --- a/clients/client-cloudwatch-logs/commands/GetLogGroupFieldsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/GetLogGroupFieldsCommand.ts @@ -35,6 +35,7 @@ export class GetLogGroupFieldsCommand extends $Command< GetLogGroupFieldsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetLogGroupFieldsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/GetLogRecordCommand.ts b/clients/client-cloudwatch-logs/commands/GetLogRecordCommand.ts index 5869221accd3f..e6b1644a242b1 100644 --- a/clients/client-cloudwatch-logs/commands/GetLogRecordCommand.ts +++ b/clients/client-cloudwatch-logs/commands/GetLogRecordCommand.ts @@ -31,6 +31,7 @@ export class GetLogRecordCommand extends $Command< GetLogRecordCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetLogRecordCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/GetQueryResultsCommand.ts b/clients/client-cloudwatch-logs/commands/GetQueryResultsCommand.ts index 0040a804a11f6..8bbdcc2ff2821 100644 --- a/clients/client-cloudwatch-logs/commands/GetQueryResultsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/GetQueryResultsCommand.ts @@ -38,6 +38,7 @@ export class GetQueryResultsCommand extends $Command< GetQueryResultsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetQueryResultsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/ListTagsLogGroupCommand.ts b/clients/client-cloudwatch-logs/commands/ListTagsLogGroupCommand.ts index f0c81c422eca6..4b7327896ab01 100644 --- a/clients/client-cloudwatch-logs/commands/ListTagsLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/commands/ListTagsLogGroupCommand.ts @@ -28,6 +28,7 @@ export class ListTagsLogGroupCommand extends $Command< ListTagsLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsLogGroupCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutDestinationCommand.ts b/clients/client-cloudwatch-logs/commands/PutDestinationCommand.ts index 324f53598df38..ea07aeeec81b0 100644 --- a/clients/client-cloudwatch-logs/commands/PutDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutDestinationCommand.ts @@ -37,6 +37,7 @@ export class PutDestinationCommand extends $Command< PutDestinationCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutDestinationCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/commands/PutDestinationPolicyCommand.ts index ea9dbe2b45cf3..769bc8afa926a 100644 --- a/clients/client-cloudwatch-logs/commands/PutDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutDestinationPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutDestinationPolicyCommand extends $Command< PutDestinationPolicyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutDestinationPolicyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutLogEventsCommand.ts b/clients/client-cloudwatch-logs/commands/PutLogEventsCommand.ts index 4dd550ee0d44e..ea4eaa29e754d 100644 --- a/clients/client-cloudwatch-logs/commands/PutLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutLogEventsCommand.ts @@ -65,6 +65,7 @@ export class PutLogEventsCommand extends $Command< PutLogEventsCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class PutLogEventsCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutMetricFilterCommand.ts b/clients/client-cloudwatch-logs/commands/PutMetricFilterCommand.ts index 2761a3c3fa790..24ae2ff0f742f 100644 --- a/clients/client-cloudwatch-logs/commands/PutMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutMetricFilterCommand.ts @@ -32,6 +32,7 @@ export class PutMetricFilterCommand extends $Command< PutMetricFilterCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutMetricFilterCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/commands/PutQueryDefinitionCommand.ts index da6da7827d71b..ad92a338f0557 100644 --- a/clients/client-cloudwatch-logs/commands/PutQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutQueryDefinitionCommand.ts @@ -39,6 +39,7 @@ export class PutQueryDefinitionCommand extends $Command< PutQueryDefinitionCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class PutQueryDefinitionCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/commands/PutResourcePolicyCommand.ts index 7b7019f4821ac..d7c2ffebaa3b7 100644 --- a/clients/client-cloudwatch-logs/commands/PutResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutResourcePolicyCommand.ts @@ -30,6 +30,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/commands/PutRetentionPolicyCommand.ts index 6c90b43fb4606..06de5d145063d 100644 --- a/clients/client-cloudwatch-logs/commands/PutRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutRetentionPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutRetentionPolicyCommand extends $Command< PutRetentionPolicyCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutRetentionPolicyCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/PutSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/commands/PutSubscriptionFilterCommand.ts index a0aafe732f65d..81db2c098e028 100644 --- a/clients/client-cloudwatch-logs/commands/PutSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/commands/PutSubscriptionFilterCommand.ts @@ -57,6 +57,7 @@ export class PutSubscriptionFilterCommand extends $Command< PutSubscriptionFilterCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class PutSubscriptionFilterCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/StartQueryCommand.ts b/clients/client-cloudwatch-logs/commands/StartQueryCommand.ts index 078aee595f389..9ed333ee6623b 100644 --- a/clients/client-cloudwatch-logs/commands/StartQueryCommand.ts +++ b/clients/client-cloudwatch-logs/commands/StartQueryCommand.ts @@ -33,6 +33,7 @@ export class StartQueryCommand extends $Command< StartQueryCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartQueryCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/StopQueryCommand.ts b/clients/client-cloudwatch-logs/commands/StopQueryCommand.ts index a9060f7af3a04..f5fde0476f92b 100644 --- a/clients/client-cloudwatch-logs/commands/StopQueryCommand.ts +++ b/clients/client-cloudwatch-logs/commands/StopQueryCommand.ts @@ -26,6 +26,7 @@ export class StopQueryCommand extends $Command< StopQueryCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class StopQueryCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/TagLogGroupCommand.ts b/clients/client-cloudwatch-logs/commands/TagLogGroupCommand.ts index 9c295f881d193..dafb297ac1b74 100644 --- a/clients/client-cloudwatch-logs/commands/TagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/commands/TagLogGroupCommand.ts @@ -32,6 +32,7 @@ export class TagLogGroupCommand extends $Command< TagLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TagLogGroupCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/TestMetricFilterCommand.ts b/clients/client-cloudwatch-logs/commands/TestMetricFilterCommand.ts index 4d90a0273537e..04b96909f2248 100644 --- a/clients/client-cloudwatch-logs/commands/TestMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/commands/TestMetricFilterCommand.ts @@ -29,6 +29,7 @@ export class TestMetricFilterCommand extends $Command< TestMetricFilterCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TestMetricFilterCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch-logs/commands/UntagLogGroupCommand.ts b/clients/client-cloudwatch-logs/commands/UntagLogGroupCommand.ts index 99cf0ee1b2f39..6864337e5e431 100644 --- a/clients/client-cloudwatch-logs/commands/UntagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/commands/UntagLogGroupCommand.ts @@ -30,6 +30,7 @@ export class UntagLogGroupCommand extends $Command< UntagLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagLogGroupCommand extends $Command< configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DeleteAlarmsCommand.ts b/clients/client-cloudwatch/commands/DeleteAlarmsCommand.ts index 239fc991dbce9..289c86810e19e 100644 --- a/clients/client-cloudwatch/commands/DeleteAlarmsCommand.ts +++ b/clients/client-cloudwatch/commands/DeleteAlarmsCommand.ts @@ -40,6 +40,7 @@ export class DeleteAlarmsCommand extends $Command< DeleteAlarmsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteAlarmsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DeleteAnomalyDetectorCommand.ts b/clients/client-cloudwatch/commands/DeleteAnomalyDetectorCommand.ts index e95046e11e3e8..fd8bd4d71654c 100644 --- a/clients/client-cloudwatch/commands/DeleteAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch/commands/DeleteAnomalyDetectorCommand.ts @@ -28,6 +28,7 @@ export class DeleteAnomalyDetectorCommand extends $Command< DeleteAnomalyDetectorCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAnomalyDetectorCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DeleteDashboardsCommand.ts b/clients/client-cloudwatch/commands/DeleteDashboardsCommand.ts index cefd4ed4cb572..727287f393fc7 100644 --- a/clients/client-cloudwatch/commands/DeleteDashboardsCommand.ts +++ b/clients/client-cloudwatch/commands/DeleteDashboardsCommand.ts @@ -30,6 +30,7 @@ export class DeleteDashboardsCommand extends $Command< DeleteDashboardsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDashboardsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DeleteInsightRulesCommand.ts b/clients/client-cloudwatch/commands/DeleteInsightRulesCommand.ts index 59244897a329a..28ba84cbc0ae6 100644 --- a/clients/client-cloudwatch/commands/DeleteInsightRulesCommand.ts +++ b/clients/client-cloudwatch/commands/DeleteInsightRulesCommand.ts @@ -31,6 +31,7 @@ export class DeleteInsightRulesCommand extends $Command< DeleteInsightRulesCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteInsightRulesCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DescribeAlarmHistoryCommand.ts b/clients/client-cloudwatch/commands/DescribeAlarmHistoryCommand.ts index 1cd6173f7ed7b..58f0626b0963b 100644 --- a/clients/client-cloudwatch/commands/DescribeAlarmHistoryCommand.ts +++ b/clients/client-cloudwatch/commands/DescribeAlarmHistoryCommand.ts @@ -30,6 +30,7 @@ export class DescribeAlarmHistoryCommand extends $Command< DescribeAlarmHistoryCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAlarmHistoryCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DescribeAlarmsCommand.ts b/clients/client-cloudwatch/commands/DescribeAlarmsCommand.ts index 19adeba183266..3fa17b30a7d8d 100644 --- a/clients/client-cloudwatch/commands/DescribeAlarmsCommand.ts +++ b/clients/client-cloudwatch/commands/DescribeAlarmsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAlarmsCommand extends $Command< DescribeAlarmsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAlarmsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DescribeAlarmsForMetricCommand.ts b/clients/client-cloudwatch/commands/DescribeAlarmsForMetricCommand.ts index b8472e7e5fa19..73e1beb0e819f 100644 --- a/clients/client-cloudwatch/commands/DescribeAlarmsForMetricCommand.ts +++ b/clients/client-cloudwatch/commands/DescribeAlarmsForMetricCommand.ts @@ -32,6 +32,7 @@ export class DescribeAlarmsForMetricCommand extends $Command< DescribeAlarmsForMetricCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeAlarmsForMetricCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DescribeAnomalyDetectorsCommand.ts b/clients/client-cloudwatch/commands/DescribeAnomalyDetectorsCommand.ts index 85926772e1f2a..c224688c939a2 100644 --- a/clients/client-cloudwatch/commands/DescribeAnomalyDetectorsCommand.ts +++ b/clients/client-cloudwatch/commands/DescribeAnomalyDetectorsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAnomalyDetectorsCommand extends $Command< DescribeAnomalyDetectorsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAnomalyDetectorsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DescribeInsightRulesCommand.ts b/clients/client-cloudwatch/commands/DescribeInsightRulesCommand.ts index c2c0df3aadd03..0db7bb1084552 100644 --- a/clients/client-cloudwatch/commands/DescribeInsightRulesCommand.ts +++ b/clients/client-cloudwatch/commands/DescribeInsightRulesCommand.ts @@ -31,6 +31,7 @@ export class DescribeInsightRulesCommand extends $Command< DescribeInsightRulesCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeInsightRulesCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DisableAlarmActionsCommand.ts b/clients/client-cloudwatch/commands/DisableAlarmActionsCommand.ts index 07063694027bb..5cb156a164a9d 100644 --- a/clients/client-cloudwatch/commands/DisableAlarmActionsCommand.ts +++ b/clients/client-cloudwatch/commands/DisableAlarmActionsCommand.ts @@ -29,6 +29,7 @@ export class DisableAlarmActionsCommand extends $Command< DisableAlarmActionsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableAlarmActionsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/DisableInsightRulesCommand.ts b/clients/client-cloudwatch/commands/DisableInsightRulesCommand.ts index 729f520e36041..0d22753450f9d 100644 --- a/clients/client-cloudwatch/commands/DisableInsightRulesCommand.ts +++ b/clients/client-cloudwatch/commands/DisableInsightRulesCommand.ts @@ -29,6 +29,7 @@ export class DisableInsightRulesCommand extends $Command< DisableInsightRulesCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableInsightRulesCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/EnableAlarmActionsCommand.ts b/clients/client-cloudwatch/commands/EnableAlarmActionsCommand.ts index 0d7e966b1a75a..cb4fa236131c1 100644 --- a/clients/client-cloudwatch/commands/EnableAlarmActionsCommand.ts +++ b/clients/client-cloudwatch/commands/EnableAlarmActionsCommand.ts @@ -28,6 +28,7 @@ export class EnableAlarmActionsCommand extends $Command< EnableAlarmActionsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableAlarmActionsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/EnableInsightRulesCommand.ts b/clients/client-cloudwatch/commands/EnableInsightRulesCommand.ts index aafec7ef7dca0..aa9ba5a84b6e8 100644 --- a/clients/client-cloudwatch/commands/EnableInsightRulesCommand.ts +++ b/clients/client-cloudwatch/commands/EnableInsightRulesCommand.ts @@ -28,6 +28,7 @@ export class EnableInsightRulesCommand extends $Command< EnableInsightRulesCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableInsightRulesCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/GetDashboardCommand.ts b/clients/client-cloudwatch/commands/GetDashboardCommand.ts index 7ad3ae1415749..f0ddb8de693dc 100644 --- a/clients/client-cloudwatch/commands/GetDashboardCommand.ts +++ b/clients/client-cloudwatch/commands/GetDashboardCommand.ts @@ -28,6 +28,7 @@ export class GetDashboardCommand extends $Command< GetDashboardCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDashboardCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/GetInsightRuleReportCommand.ts b/clients/client-cloudwatch/commands/GetInsightRuleReportCommand.ts index fc8b649666da0..e7505bab95c74 100644 --- a/clients/client-cloudwatch/commands/GetInsightRuleReportCommand.ts +++ b/clients/client-cloudwatch/commands/GetInsightRuleReportCommand.ts @@ -64,6 +64,7 @@ export class GetInsightRuleReportCommand extends $Command< GetInsightRuleReportCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class GetInsightRuleReportCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/GetMetricDataCommand.ts b/clients/client-cloudwatch/commands/GetMetricDataCommand.ts index 86854d3849a44..976597b91a8c6 100644 --- a/clients/client-cloudwatch/commands/GetMetricDataCommand.ts +++ b/clients/client-cloudwatch/commands/GetMetricDataCommand.ts @@ -63,6 +63,7 @@ export class GetMetricDataCommand extends $Command< GetMetricDataCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class GetMetricDataCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/GetMetricStatisticsCommand.ts b/clients/client-cloudwatch/commands/GetMetricStatisticsCommand.ts index 91ff75a5b0203..2d7eb2a79913e 100644 --- a/clients/client-cloudwatch/commands/GetMetricStatisticsCommand.ts +++ b/clients/client-cloudwatch/commands/GetMetricStatisticsCommand.ts @@ -79,6 +79,7 @@ export class GetMetricStatisticsCommand extends $Command< GetMetricStatisticsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class GetMetricStatisticsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/GetMetricWidgetImageCommand.ts b/clients/client-cloudwatch/commands/GetMetricWidgetImageCommand.ts index 7d9d59455565c..9e0bca83c6b56 100644 --- a/clients/client-cloudwatch/commands/GetMetricWidgetImageCommand.ts +++ b/clients/client-cloudwatch/commands/GetMetricWidgetImageCommand.ts @@ -45,6 +45,7 @@ export class GetMetricWidgetImageCommand extends $Command< GetMetricWidgetImageCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class GetMetricWidgetImageCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/ListDashboardsCommand.ts b/clients/client-cloudwatch/commands/ListDashboardsCommand.ts index c586954589b97..55c0fdffe6008 100644 --- a/clients/client-cloudwatch/commands/ListDashboardsCommand.ts +++ b/clients/client-cloudwatch/commands/ListDashboardsCommand.ts @@ -36,6 +36,7 @@ export class ListDashboardsCommand extends $Command< ListDashboardsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListDashboardsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/ListMetricsCommand.ts b/clients/client-cloudwatch/commands/ListMetricsCommand.ts index a433e63bca83a..9b76160236789 100644 --- a/clients/client-cloudwatch/commands/ListMetricsCommand.ts +++ b/clients/client-cloudwatch/commands/ListMetricsCommand.ts @@ -38,6 +38,7 @@ export class ListMetricsCommand extends $Command< ListMetricsCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListMetricsCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/ListTagsForResourceCommand.ts b/clients/client-cloudwatch/commands/ListTagsForResourceCommand.ts index 02256cc6f8c9f..77f84783b7e27 100644 --- a/clients/client-cloudwatch/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudwatch/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutAnomalyDetectorCommand.ts b/clients/client-cloudwatch/commands/PutAnomalyDetectorCommand.ts index 967885d32b7ed..c9b68f9ca904c 100644 --- a/clients/client-cloudwatch/commands/PutAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch/commands/PutAnomalyDetectorCommand.ts @@ -30,6 +30,7 @@ export class PutAnomalyDetectorCommand extends $Command< PutAnomalyDetectorCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutAnomalyDetectorCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutCompositeAlarmCommand.ts b/clients/client-cloudwatch/commands/PutCompositeAlarmCommand.ts index 8cda6c69e9d47..0faf117d32950 100644 --- a/clients/client-cloudwatch/commands/PutCompositeAlarmCommand.ts +++ b/clients/client-cloudwatch/commands/PutCompositeAlarmCommand.ts @@ -63,6 +63,7 @@ export class PutCompositeAlarmCommand extends $Command< PutCompositeAlarmCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class PutCompositeAlarmCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutDashboardCommand.ts b/clients/client-cloudwatch/commands/PutDashboardCommand.ts index 4b15a3d5b37c1..d96da4750c4bd 100644 --- a/clients/client-cloudwatch/commands/PutDashboardCommand.ts +++ b/clients/client-cloudwatch/commands/PutDashboardCommand.ts @@ -38,6 +38,7 @@ export class PutDashboardCommand extends $Command< PutDashboardCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutDashboardCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutInsightRuleCommand.ts b/clients/client-cloudwatch/commands/PutInsightRuleCommand.ts index eb8018341ff03..efa36a9e8d709 100644 --- a/clients/client-cloudwatch/commands/PutInsightRuleCommand.ts +++ b/clients/client-cloudwatch/commands/PutInsightRuleCommand.ts @@ -32,6 +32,7 @@ export class PutInsightRuleCommand extends $Command< PutInsightRuleCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutInsightRuleCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutMetricAlarmCommand.ts b/clients/client-cloudwatch/commands/PutMetricAlarmCommand.ts index 7503fbf75b188..153a64cad3585 100644 --- a/clients/client-cloudwatch/commands/PutMetricAlarmCommand.ts +++ b/clients/client-cloudwatch/commands/PutMetricAlarmCommand.ts @@ -61,6 +61,7 @@ export class PutMetricAlarmCommand extends $Command< PutMetricAlarmCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class PutMetricAlarmCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/PutMetricDataCommand.ts b/clients/client-cloudwatch/commands/PutMetricDataCommand.ts index 5a3d323067273..f77f9f95223fa 100644 --- a/clients/client-cloudwatch/commands/PutMetricDataCommand.ts +++ b/clients/client-cloudwatch/commands/PutMetricDataCommand.ts @@ -72,6 +72,7 @@ export class PutMetricDataCommand extends $Command< PutMetricDataCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class PutMetricDataCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/SetAlarmStateCommand.ts b/clients/client-cloudwatch/commands/SetAlarmStateCommand.ts index 7f5f4fe38a0c0..0a987a0fb200f 100644 --- a/clients/client-cloudwatch/commands/SetAlarmStateCommand.ts +++ b/clients/client-cloudwatch/commands/SetAlarmStateCommand.ts @@ -43,6 +43,7 @@ export class SetAlarmStateCommand extends $Command< SetAlarmStateCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class SetAlarmStateCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/TagResourceCommand.ts b/clients/client-cloudwatch/commands/TagResourceCommand.ts index 1120e32e1d249..bc7ab963f0a4f 100644 --- a/clients/client-cloudwatch/commands/TagResourceCommand.ts +++ b/clients/client-cloudwatch/commands/TagResourceCommand.ts @@ -35,6 +35,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class TagResourceCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudwatch/commands/UntagResourceCommand.ts b/clients/client-cloudwatch/commands/UntagResourceCommand.ts index b8312ee2f8333..b2bb1e956c0f4 100644 --- a/clients/client-cloudwatch/commands/UntagResourceCommand.ts +++ b/clients/client-cloudwatch/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CloudWatchClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/AssociateExternalConnectionCommand.ts b/clients/client-codeartifact/commands/AssociateExternalConnectionCommand.ts index 89fa566b26c87..7c550479cbaa7 100644 --- a/clients/client-codeartifact/commands/AssociateExternalConnectionCommand.ts +++ b/clients/client-codeartifact/commands/AssociateExternalConnectionCommand.ts @@ -32,6 +32,7 @@ export class AssociateExternalConnectionCommand extends $Command< AssociateExternalConnectionCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateExternalConnectionCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/CopyPackageVersionsCommand.ts b/clients/client-codeartifact/commands/CopyPackageVersionsCommand.ts index 61b87afddb2ca..b78a6b8c732c0 100644 --- a/clients/client-codeartifact/commands/CopyPackageVersionsCommand.ts +++ b/clients/client-codeartifact/commands/CopyPackageVersionsCommand.ts @@ -35,6 +35,7 @@ export class CopyPackageVersionsCommand extends $Command< CopyPackageVersionsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CopyPackageVersionsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/CreateDomainCommand.ts b/clients/client-codeartifact/commands/CreateDomainCommand.ts index cbc171d14a46c..e15d94a1da89e 100644 --- a/clients/client-codeartifact/commands/CreateDomainCommand.ts +++ b/clients/client-codeartifact/commands/CreateDomainCommand.ts @@ -38,6 +38,7 @@ export class CreateDomainCommand extends $Command< CreateDomainCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateDomainCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/CreateRepositoryCommand.ts b/clients/client-codeartifact/commands/CreateRepositoryCommand.ts index 950033401bd13..1cc0140d08ddc 100644 --- a/clients/client-codeartifact/commands/CreateRepositoryCommand.ts +++ b/clients/client-codeartifact/commands/CreateRepositoryCommand.ts @@ -30,6 +30,7 @@ export class CreateRepositoryCommand extends $Command< CreateRepositoryCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateRepositoryCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DeleteDomainCommand.ts b/clients/client-codeartifact/commands/DeleteDomainCommand.ts index f2204f51a2e7b..20190aeb606d3 100644 --- a/clients/client-codeartifact/commands/DeleteDomainCommand.ts +++ b/clients/client-codeartifact/commands/DeleteDomainCommand.ts @@ -31,6 +31,7 @@ export class DeleteDomainCommand extends $Command< DeleteDomainCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDomainCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DeleteDomainPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/DeleteDomainPermissionsPolicyCommand.ts index 141f0a8759076..c8cdf33a280e0 100644 --- a/clients/client-codeartifact/commands/DeleteDomainPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/DeleteDomainPermissionsPolicyCommand.ts @@ -30,6 +30,7 @@ export class DeleteDomainPermissionsPolicyCommand extends $Command< DeleteDomainPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDomainPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DeletePackageVersionsCommand.ts b/clients/client-codeartifact/commands/DeletePackageVersionsCommand.ts index 4435550bf6636..42be3fa0c9591 100644 --- a/clients/client-codeartifact/commands/DeletePackageVersionsCommand.ts +++ b/clients/client-codeartifact/commands/DeletePackageVersionsCommand.ts @@ -36,6 +36,7 @@ export class DeletePackageVersionsCommand extends $Command< DeletePackageVersionsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeletePackageVersionsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DeleteRepositoryCommand.ts b/clients/client-codeartifact/commands/DeleteRepositoryCommand.ts index eeade00930c2a..0b3a91845baa7 100644 --- a/clients/client-codeartifact/commands/DeleteRepositoryCommand.ts +++ b/clients/client-codeartifact/commands/DeleteRepositoryCommand.ts @@ -30,6 +30,7 @@ export class DeleteRepositoryCommand extends $Command< DeleteRepositoryCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteRepositoryCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DeleteRepositoryPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/DeleteRepositoryPermissionsPolicyCommand.ts index b80fd680d1b53..90a59f7fa9c84 100644 --- a/clients/client-codeartifact/commands/DeleteRepositoryPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/DeleteRepositoryPermissionsPolicyCommand.ts @@ -37,6 +37,7 @@ export class DeleteRepositoryPermissionsPolicyCommand extends $Command< DeleteRepositoryPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteRepositoryPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DescribeDomainCommand.ts b/clients/client-codeartifact/commands/DescribeDomainCommand.ts index 5bd21e9f6f8d3..a4de169f01849 100644 --- a/clients/client-codeartifact/commands/DescribeDomainCommand.ts +++ b/clients/client-codeartifact/commands/DescribeDomainCommand.ts @@ -34,6 +34,7 @@ export class DescribeDomainCommand extends $Command< DescribeDomainCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDomainCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DescribePackageVersionCommand.ts b/clients/client-codeartifact/commands/DescribePackageVersionCommand.ts index 25bcc8015d40c..f9ab82b98a70e 100644 --- a/clients/client-codeartifact/commands/DescribePackageVersionCommand.ts +++ b/clients/client-codeartifact/commands/DescribePackageVersionCommand.ts @@ -34,6 +34,7 @@ export class DescribePackageVersionCommand extends $Command< DescribePackageVersionCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribePackageVersionCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DescribeRepositoryCommand.ts b/clients/client-codeartifact/commands/DescribeRepositoryCommand.ts index 955b3ba589fb7..f4482031217b5 100644 --- a/clients/client-codeartifact/commands/DescribeRepositoryCommand.ts +++ b/clients/client-codeartifact/commands/DescribeRepositoryCommand.ts @@ -31,6 +31,7 @@ export class DescribeRepositoryCommand extends $Command< DescribeRepositoryCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeRepositoryCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DisassociateExternalConnectionCommand.ts b/clients/client-codeartifact/commands/DisassociateExternalConnectionCommand.ts index a4d98e65ffcd8..e6deedbb8a994 100644 --- a/clients/client-codeartifact/commands/DisassociateExternalConnectionCommand.ts +++ b/clients/client-codeartifact/commands/DisassociateExternalConnectionCommand.ts @@ -30,6 +30,7 @@ export class DisassociateExternalConnectionCommand extends $Command< DisassociateExternalConnectionCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociateExternalConnectionCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/DisposePackageVersionsCommand.ts b/clients/client-codeartifact/commands/DisposePackageVersionsCommand.ts index 800b1fa0fccdc..84fefa70cc044 100644 --- a/clients/client-codeartifact/commands/DisposePackageVersionsCommand.ts +++ b/clients/client-codeartifact/commands/DisposePackageVersionsCommand.ts @@ -47,6 +47,7 @@ export class DisposePackageVersionsCommand extends $Command< DisposePackageVersionsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DisposePackageVersionsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetAuthorizationTokenCommand.ts b/clients/client-codeartifact/commands/GetAuthorizationTokenCommand.ts index 55ce325459702..ba442e07f128d 100644 --- a/clients/client-codeartifact/commands/GetAuthorizationTokenCommand.ts +++ b/clients/client-codeartifact/commands/GetAuthorizationTokenCommand.ts @@ -48,6 +48,7 @@ export class GetAuthorizationTokenCommand extends $Command< GetAuthorizationTokenCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class GetAuthorizationTokenCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetDomainPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/GetDomainPermissionsPolicyCommand.ts index 0578fb1c18362..03ed6f775be1a 100644 --- a/clients/client-codeartifact/commands/GetDomainPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/GetDomainPermissionsPolicyCommand.ts @@ -37,6 +37,7 @@ export class GetDomainPermissionsPolicyCommand extends $Command< GetDomainPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetDomainPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetPackageVersionAssetCommand.ts b/clients/client-codeartifact/commands/GetPackageVersionAssetCommand.ts index db7e25c2cef2a..8924838039f89 100644 --- a/clients/client-codeartifact/commands/GetPackageVersionAssetCommand.ts +++ b/clients/client-codeartifact/commands/GetPackageVersionAssetCommand.ts @@ -32,6 +32,7 @@ export class GetPackageVersionAssetCommand extends $Command< GetPackageVersionAssetCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetPackageVersionAssetCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetPackageVersionReadmeCommand.ts b/clients/client-codeartifact/commands/GetPackageVersionReadmeCommand.ts index d8e38fd97b976..4d97c834a09d8 100644 --- a/clients/client-codeartifact/commands/GetPackageVersionReadmeCommand.ts +++ b/clients/client-codeartifact/commands/GetPackageVersionReadmeCommand.ts @@ -35,6 +35,7 @@ export class GetPackageVersionReadmeCommand extends $Command< GetPackageVersionReadmeCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetPackageVersionReadmeCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetRepositoryEndpointCommand.ts b/clients/client-codeartifact/commands/GetRepositoryEndpointCommand.ts index 92a771cc18067..963c77339a614 100644 --- a/clients/client-codeartifact/commands/GetRepositoryEndpointCommand.ts +++ b/clients/client-codeartifact/commands/GetRepositoryEndpointCommand.ts @@ -53,6 +53,7 @@ export class GetRepositoryEndpointCommand extends $Command< GetRepositoryEndpointCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class GetRepositoryEndpointCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/GetRepositoryPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/GetRepositoryPermissionsPolicyCommand.ts index 6452b41e0d0a5..0e5b91b117acf 100644 --- a/clients/client-codeartifact/commands/GetRepositoryPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/GetRepositoryPermissionsPolicyCommand.ts @@ -30,6 +30,7 @@ export class GetRepositoryPermissionsPolicyCommand extends $Command< GetRepositoryPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetRepositoryPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListDomainsCommand.ts b/clients/client-codeartifact/commands/ListDomainsCommand.ts index 8f5ee2daa281c..0dfe2267f8509 100644 --- a/clients/client-codeartifact/commands/ListDomainsCommand.ts +++ b/clients/client-codeartifact/commands/ListDomainsCommand.ts @@ -32,6 +32,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDomainsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListPackageVersionAssetsCommand.ts b/clients/client-codeartifact/commands/ListPackageVersionAssetsCommand.ts index 056ac6eb10c22..7c54c81703d40 100644 --- a/clients/client-codeartifact/commands/ListPackageVersionAssetsCommand.ts +++ b/clients/client-codeartifact/commands/ListPackageVersionAssetsCommand.ts @@ -34,6 +34,7 @@ export class ListPackageVersionAssetsCommand extends $Command< ListPackageVersionAssetsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListPackageVersionAssetsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListPackageVersionDependenciesCommand.ts b/clients/client-codeartifact/commands/ListPackageVersionDependenciesCommand.ts index 79038b8e361fb..4be20e8b7e7db 100644 --- a/clients/client-codeartifact/commands/ListPackageVersionDependenciesCommand.ts +++ b/clients/client-codeartifact/commands/ListPackageVersionDependenciesCommand.ts @@ -36,6 +36,7 @@ export class ListPackageVersionDependenciesCommand extends $Command< ListPackageVersionDependenciesCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListPackageVersionDependenciesCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListPackageVersionsCommand.ts b/clients/client-codeartifact/commands/ListPackageVersionsCommand.ts index d2fe769aef871..88d6b25fde319 100644 --- a/clients/client-codeartifact/commands/ListPackageVersionsCommand.ts +++ b/clients/client-codeartifact/commands/ListPackageVersionsCommand.ts @@ -34,6 +34,7 @@ export class ListPackageVersionsCommand extends $Command< ListPackageVersionsCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListPackageVersionsCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListPackagesCommand.ts b/clients/client-codeartifact/commands/ListPackagesCommand.ts index c1e48a569cb7b..98dabc9cc69d5 100644 --- a/clients/client-codeartifact/commands/ListPackagesCommand.ts +++ b/clients/client-codeartifact/commands/ListPackagesCommand.ts @@ -34,6 +34,7 @@ export class ListPackagesCommand extends $Command< ListPackagesCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListPackagesCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListRepositoriesCommand.ts b/clients/client-codeartifact/commands/ListRepositoriesCommand.ts index 9ce501d4cfe30..c025caac3d7e3 100644 --- a/clients/client-codeartifact/commands/ListRepositoriesCommand.ts +++ b/clients/client-codeartifact/commands/ListRepositoriesCommand.ts @@ -35,6 +35,7 @@ export class ListRepositoriesCommand extends $Command< ListRepositoriesCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListRepositoriesCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListRepositoriesInDomainCommand.ts b/clients/client-codeartifact/commands/ListRepositoriesInDomainCommand.ts index 0be81c015b3d8..6511baa8290e5 100644 --- a/clients/client-codeartifact/commands/ListRepositoriesInDomainCommand.ts +++ b/clients/client-codeartifact/commands/ListRepositoriesInDomainCommand.ts @@ -35,6 +35,7 @@ export class ListRepositoriesInDomainCommand extends $Command< ListRepositoriesInDomainCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListRepositoriesInDomainCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/ListTagsForResourceCommand.ts b/clients/client-codeartifact/commands/ListTagsForResourceCommand.ts index 2fc311b2435e7..9ce0d94e8441d 100644 --- a/clients/client-codeartifact/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codeartifact/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/PutDomainPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/PutDomainPermissionsPolicyCommand.ts index 10b5bb5296472..2e75a7516a4fa 100644 --- a/clients/client-codeartifact/commands/PutDomainPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/PutDomainPermissionsPolicyCommand.ts @@ -35,6 +35,7 @@ export class PutDomainPermissionsPolicyCommand extends $Command< PutDomainPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutDomainPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/PutRepositoryPermissionsPolicyCommand.ts b/clients/client-codeartifact/commands/PutRepositoryPermissionsPolicyCommand.ts index 0c354eda3365e..7adb5e3a8326a 100644 --- a/clients/client-codeartifact/commands/PutRepositoryPermissionsPolicyCommand.ts +++ b/clients/client-codeartifact/commands/PutRepositoryPermissionsPolicyCommand.ts @@ -35,6 +35,7 @@ export class PutRepositoryPermissionsPolicyCommand extends $Command< PutRepositoryPermissionsPolicyCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutRepositoryPermissionsPolicyCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/TagResourceCommand.ts b/clients/client-codeartifact/commands/TagResourceCommand.ts index 621600393c6f8..65a5a0bf75cd3 100644 --- a/clients/client-codeartifact/commands/TagResourceCommand.ts +++ b/clients/client-codeartifact/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/UntagResourceCommand.ts b/clients/client-codeartifact/commands/UntagResourceCommand.ts index 13ee3c973cbfd..1880a7bf4a02b 100644 --- a/clients/client-codeartifact/commands/UntagResourceCommand.ts +++ b/clients/client-codeartifact/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/UpdatePackageVersionsStatusCommand.ts b/clients/client-codeartifact/commands/UpdatePackageVersionsStatusCommand.ts index 2daedaaf4b0a6..e3e05c8ff0383 100644 --- a/clients/client-codeartifact/commands/UpdatePackageVersionsStatusCommand.ts +++ b/clients/client-codeartifact/commands/UpdatePackageVersionsStatusCommand.ts @@ -30,6 +30,7 @@ export class UpdatePackageVersionsStatusCommand extends $Command< UpdatePackageVersionsStatusCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdatePackageVersionsStatusCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeartifact/commands/UpdateRepositoryCommand.ts b/clients/client-codeartifact/commands/UpdateRepositoryCommand.ts index 03680edecd15b..4dd022ef5fc86 100644 --- a/clients/client-codeartifact/commands/UpdateRepositoryCommand.ts +++ b/clients/client-codeartifact/commands/UpdateRepositoryCommand.ts @@ -30,6 +30,7 @@ export class UpdateRepositoryCommand extends $Command< UpdateRepositoryCommandOutput, CodeartifactClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateRepositoryCommand extends $Command< configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchDeleteBuildsCommand.ts b/clients/client-codebuild/commands/BatchDeleteBuildsCommand.ts index 9e73d124646e0..0c101aa7da14a 100644 --- a/clients/client-codebuild/commands/BatchDeleteBuildsCommand.ts +++ b/clients/client-codebuild/commands/BatchDeleteBuildsCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteBuildsCommand extends $Command< BatchDeleteBuildsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteBuildsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchGetBuildBatchesCommand.ts b/clients/client-codebuild/commands/BatchGetBuildBatchesCommand.ts index 7fedeeb9b4098..51b52098d1190 100644 --- a/clients/client-codebuild/commands/BatchGetBuildBatchesCommand.ts +++ b/clients/client-codebuild/commands/BatchGetBuildBatchesCommand.ts @@ -28,6 +28,7 @@ export class BatchGetBuildBatchesCommand extends $Command< BatchGetBuildBatchesCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetBuildBatchesCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchGetBuildsCommand.ts b/clients/client-codebuild/commands/BatchGetBuildsCommand.ts index eb56eeb6962b5..c5e5ffe3a9a3f 100644 --- a/clients/client-codebuild/commands/BatchGetBuildsCommand.ts +++ b/clients/client-codebuild/commands/BatchGetBuildsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetBuildsCommand extends $Command< BatchGetBuildsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetBuildsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchGetProjectsCommand.ts b/clients/client-codebuild/commands/BatchGetProjectsCommand.ts index 3f166ff2f549e..168aebc24510f 100644 --- a/clients/client-codebuild/commands/BatchGetProjectsCommand.ts +++ b/clients/client-codebuild/commands/BatchGetProjectsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetProjectsCommand extends $Command< BatchGetProjectsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetProjectsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchGetReportGroupsCommand.ts b/clients/client-codebuild/commands/BatchGetReportGroupsCommand.ts index d21e116cb28a2..fe8cfa2d7925f 100644 --- a/clients/client-codebuild/commands/BatchGetReportGroupsCommand.ts +++ b/clients/client-codebuild/commands/BatchGetReportGroupsCommand.ts @@ -30,6 +30,7 @@ export class BatchGetReportGroupsCommand extends $Command< BatchGetReportGroupsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchGetReportGroupsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/BatchGetReportsCommand.ts b/clients/client-codebuild/commands/BatchGetReportsCommand.ts index e9f8f920e157d..bba5b9a4912cd 100644 --- a/clients/client-codebuild/commands/BatchGetReportsCommand.ts +++ b/clients/client-codebuild/commands/BatchGetReportsCommand.ts @@ -30,6 +30,7 @@ export class BatchGetReportsCommand extends $Command< BatchGetReportsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchGetReportsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/CreateProjectCommand.ts b/clients/client-codebuild/commands/CreateProjectCommand.ts index 48fcd4ea32dfb..87f2cc3962b46 100644 --- a/clients/client-codebuild/commands/CreateProjectCommand.ts +++ b/clients/client-codebuild/commands/CreateProjectCommand.ts @@ -28,6 +28,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProjectCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/CreateReportGroupCommand.ts b/clients/client-codebuild/commands/CreateReportGroupCommand.ts index 8d194b459f117..29ee91dbfb96e 100644 --- a/clients/client-codebuild/commands/CreateReportGroupCommand.ts +++ b/clients/client-codebuild/commands/CreateReportGroupCommand.ts @@ -30,6 +30,7 @@ export class CreateReportGroupCommand extends $Command< CreateReportGroupCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateReportGroupCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/CreateWebhookCommand.ts b/clients/client-codebuild/commands/CreateWebhookCommand.ts index afff661c7f5d6..4c8ed6ee9e2d7 100644 --- a/clients/client-codebuild/commands/CreateWebhookCommand.ts +++ b/clients/client-codebuild/commands/CreateWebhookCommand.ts @@ -38,6 +38,7 @@ export class CreateWebhookCommand extends $Command< CreateWebhookCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateWebhookCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteBuildBatchCommand.ts b/clients/client-codebuild/commands/DeleteBuildBatchCommand.ts index ceefa61aff128..b5daf5a25c0ac 100644 --- a/clients/client-codebuild/commands/DeleteBuildBatchCommand.ts +++ b/clients/client-codebuild/commands/DeleteBuildBatchCommand.ts @@ -28,6 +28,7 @@ export class DeleteBuildBatchCommand extends $Command< DeleteBuildBatchCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBuildBatchCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteProjectCommand.ts b/clients/client-codebuild/commands/DeleteProjectCommand.ts index e5821c0602e85..c1ff41c526692 100644 --- a/clients/client-codebuild/commands/DeleteProjectCommand.ts +++ b/clients/client-codebuild/commands/DeleteProjectCommand.ts @@ -29,6 +29,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteProjectCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteReportCommand.ts b/clients/client-codebuild/commands/DeleteReportCommand.ts index 6febeaef8e9e0..22606594ca3aa 100644 --- a/clients/client-codebuild/commands/DeleteReportCommand.ts +++ b/clients/client-codebuild/commands/DeleteReportCommand.ts @@ -30,6 +30,7 @@ export class DeleteReportCommand extends $Command< DeleteReportCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteReportCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteReportGroupCommand.ts b/clients/client-codebuild/commands/DeleteReportGroupCommand.ts index 0ba334ba7c833..ec41f4539e008 100644 --- a/clients/client-codebuild/commands/DeleteReportGroupCommand.ts +++ b/clients/client-codebuild/commands/DeleteReportGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteReportGroupCommand extends $Command< DeleteReportGroupCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteReportGroupCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteResourcePolicyCommand.ts b/clients/client-codebuild/commands/DeleteResourcePolicyCommand.ts index d7926205c1a4a..23d2f8db32ff7 100644 --- a/clients/client-codebuild/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-codebuild/commands/DeleteResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteSourceCredentialsCommand.ts b/clients/client-codebuild/commands/DeleteSourceCredentialsCommand.ts index 10f5154976feb..a389220eb4ef4 100644 --- a/clients/client-codebuild/commands/DeleteSourceCredentialsCommand.ts +++ b/clients/client-codebuild/commands/DeleteSourceCredentialsCommand.ts @@ -28,6 +28,7 @@ export class DeleteSourceCredentialsCommand extends $Command< DeleteSourceCredentialsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSourceCredentialsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DeleteWebhookCommand.ts b/clients/client-codebuild/commands/DeleteWebhookCommand.ts index 388de441f1bbe..033cc274efa36 100644 --- a/clients/client-codebuild/commands/DeleteWebhookCommand.ts +++ b/clients/client-codebuild/commands/DeleteWebhookCommand.ts @@ -30,6 +30,7 @@ export class DeleteWebhookCommand extends $Command< DeleteWebhookCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteWebhookCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DescribeCodeCoveragesCommand.ts b/clients/client-codebuild/commands/DescribeCodeCoveragesCommand.ts index 8c25494c5edba..d6516b1c7a169 100644 --- a/clients/client-codebuild/commands/DescribeCodeCoveragesCommand.ts +++ b/clients/client-codebuild/commands/DescribeCodeCoveragesCommand.ts @@ -28,6 +28,7 @@ export class DescribeCodeCoveragesCommand extends $Command< DescribeCodeCoveragesCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCodeCoveragesCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/DescribeTestCasesCommand.ts b/clients/client-codebuild/commands/DescribeTestCasesCommand.ts index 9ad89396e7636..d1b641f77aaed 100644 --- a/clients/client-codebuild/commands/DescribeTestCasesCommand.ts +++ b/clients/client-codebuild/commands/DescribeTestCasesCommand.ts @@ -30,6 +30,7 @@ export class DescribeTestCasesCommand extends $Command< DescribeTestCasesCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeTestCasesCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/GetReportGroupTrendCommand.ts b/clients/client-codebuild/commands/GetReportGroupTrendCommand.ts index 5aa6c3966887d..d51054d222ae4 100644 --- a/clients/client-codebuild/commands/GetReportGroupTrendCommand.ts +++ b/clients/client-codebuild/commands/GetReportGroupTrendCommand.ts @@ -25,6 +25,7 @@ export class GetReportGroupTrendCommand extends $Command< GetReportGroupTrendCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetReportGroupTrendCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/GetResourcePolicyCommand.ts b/clients/client-codebuild/commands/GetResourcePolicyCommand.ts index 108d9234bac4c..69f17526cd24d 100644 --- a/clients/client-codebuild/commands/GetResourcePolicyCommand.ts +++ b/clients/client-codebuild/commands/GetResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetResourcePolicyCommand extends $Command< GetResourcePolicyCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourcePolicyCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ImportSourceCredentialsCommand.ts b/clients/client-codebuild/commands/ImportSourceCredentialsCommand.ts index b4f770dcbc755..acf6fbdd4a79d 100644 --- a/clients/client-codebuild/commands/ImportSourceCredentialsCommand.ts +++ b/clients/client-codebuild/commands/ImportSourceCredentialsCommand.ts @@ -29,6 +29,7 @@ export class ImportSourceCredentialsCommand extends $Command< ImportSourceCredentialsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ImportSourceCredentialsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/InvalidateProjectCacheCommand.ts b/clients/client-codebuild/commands/InvalidateProjectCacheCommand.ts index e0871bc77a7e0..8620ab06929c5 100644 --- a/clients/client-codebuild/commands/InvalidateProjectCacheCommand.ts +++ b/clients/client-codebuild/commands/InvalidateProjectCacheCommand.ts @@ -28,6 +28,7 @@ export class InvalidateProjectCacheCommand extends $Command< InvalidateProjectCacheCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class InvalidateProjectCacheCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListBuildBatchesCommand.ts b/clients/client-codebuild/commands/ListBuildBatchesCommand.ts index 1d650f88ecdd0..5f590cba5f668 100644 --- a/clients/client-codebuild/commands/ListBuildBatchesCommand.ts +++ b/clients/client-codebuild/commands/ListBuildBatchesCommand.ts @@ -28,6 +28,7 @@ export class ListBuildBatchesCommand extends $Command< ListBuildBatchesCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBuildBatchesCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListBuildBatchesForProjectCommand.ts b/clients/client-codebuild/commands/ListBuildBatchesForProjectCommand.ts index 454cf1e10b3be..0da80ef571250 100644 --- a/clients/client-codebuild/commands/ListBuildBatchesForProjectCommand.ts +++ b/clients/client-codebuild/commands/ListBuildBatchesForProjectCommand.ts @@ -28,6 +28,7 @@ export class ListBuildBatchesForProjectCommand extends $Command< ListBuildBatchesForProjectCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBuildBatchesForProjectCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListBuildsCommand.ts b/clients/client-codebuild/commands/ListBuildsCommand.ts index 5fa3094842e54..5c6387bdfa319 100644 --- a/clients/client-codebuild/commands/ListBuildsCommand.ts +++ b/clients/client-codebuild/commands/ListBuildsCommand.ts @@ -28,6 +28,7 @@ export class ListBuildsCommand extends $Command< ListBuildsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBuildsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListBuildsForProjectCommand.ts b/clients/client-codebuild/commands/ListBuildsForProjectCommand.ts index c4446e2c26dcc..f32410654d5e1 100644 --- a/clients/client-codebuild/commands/ListBuildsForProjectCommand.ts +++ b/clients/client-codebuild/commands/ListBuildsForProjectCommand.ts @@ -29,6 +29,7 @@ export class ListBuildsForProjectCommand extends $Command< ListBuildsForProjectCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBuildsForProjectCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListCuratedEnvironmentImagesCommand.ts b/clients/client-codebuild/commands/ListCuratedEnvironmentImagesCommand.ts index 4fa0944bd5910..cc392ca8fe4cd 100644 --- a/clients/client-codebuild/commands/ListCuratedEnvironmentImagesCommand.ts +++ b/clients/client-codebuild/commands/ListCuratedEnvironmentImagesCommand.ts @@ -28,6 +28,7 @@ export class ListCuratedEnvironmentImagesCommand extends $Command< ListCuratedEnvironmentImagesCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCuratedEnvironmentImagesCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListProjectsCommand.ts b/clients/client-codebuild/commands/ListProjectsCommand.ts index fb17975acfb8c..3826d5b36c612 100644 --- a/clients/client-codebuild/commands/ListProjectsCommand.ts +++ b/clients/client-codebuild/commands/ListProjectsCommand.ts @@ -29,6 +29,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListProjectsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListReportGroupsCommand.ts b/clients/client-codebuild/commands/ListReportGroupsCommand.ts index cf5d2799443d0..392957f446bdd 100644 --- a/clients/client-codebuild/commands/ListReportGroupsCommand.ts +++ b/clients/client-codebuild/commands/ListReportGroupsCommand.ts @@ -30,6 +30,7 @@ export class ListReportGroupsCommand extends $Command< ListReportGroupsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListReportGroupsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListReportsCommand.ts b/clients/client-codebuild/commands/ListReportsCommand.ts index 6e147f1b0d57d..30237cefbf4f6 100644 --- a/clients/client-codebuild/commands/ListReportsCommand.ts +++ b/clients/client-codebuild/commands/ListReportsCommand.ts @@ -30,6 +30,7 @@ export class ListReportsCommand extends $Command< ListReportsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListReportsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListReportsForReportGroupCommand.ts b/clients/client-codebuild/commands/ListReportsForReportGroupCommand.ts index e0173cd457ffb..d5329f1272c34 100644 --- a/clients/client-codebuild/commands/ListReportsForReportGroupCommand.ts +++ b/clients/client-codebuild/commands/ListReportsForReportGroupCommand.ts @@ -30,6 +30,7 @@ export class ListReportsForReportGroupCommand extends $Command< ListReportsForReportGroupCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListReportsForReportGroupCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListSharedProjectsCommand.ts b/clients/client-codebuild/commands/ListSharedProjectsCommand.ts index 90059ee7bda5b..5afca17dc9b2a 100644 --- a/clients/client-codebuild/commands/ListSharedProjectsCommand.ts +++ b/clients/client-codebuild/commands/ListSharedProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListSharedProjectsCommand extends $Command< ListSharedProjectsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSharedProjectsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListSharedReportGroupsCommand.ts b/clients/client-codebuild/commands/ListSharedReportGroupsCommand.ts index a6cdd7621de14..dc10c59052c9c 100644 --- a/clients/client-codebuild/commands/ListSharedReportGroupsCommand.ts +++ b/clients/client-codebuild/commands/ListSharedReportGroupsCommand.ts @@ -29,6 +29,7 @@ export class ListSharedReportGroupsCommand extends $Command< ListSharedReportGroupsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSharedReportGroupsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/ListSourceCredentialsCommand.ts b/clients/client-codebuild/commands/ListSourceCredentialsCommand.ts index 80e2f993590f4..eb647a6ad90b0 100644 --- a/clients/client-codebuild/commands/ListSourceCredentialsCommand.ts +++ b/clients/client-codebuild/commands/ListSourceCredentialsCommand.ts @@ -28,6 +28,7 @@ export class ListSourceCredentialsCommand extends $Command< ListSourceCredentialsCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSourceCredentialsCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/PutResourcePolicyCommand.ts b/clients/client-codebuild/commands/PutResourcePolicyCommand.ts index 66605199bf72b..e2928a4513052 100644 --- a/clients/client-codebuild/commands/PutResourcePolicyCommand.ts +++ b/clients/client-codebuild/commands/PutResourcePolicyCommand.ts @@ -29,6 +29,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/RetryBuildBatchCommand.ts b/clients/client-codebuild/commands/RetryBuildBatchCommand.ts index 757d24e54b919..c1d3613d2cde0 100644 --- a/clients/client-codebuild/commands/RetryBuildBatchCommand.ts +++ b/clients/client-codebuild/commands/RetryBuildBatchCommand.ts @@ -28,6 +28,7 @@ export class RetryBuildBatchCommand extends $Command< RetryBuildBatchCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RetryBuildBatchCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/RetryBuildCommand.ts b/clients/client-codebuild/commands/RetryBuildCommand.ts index a0c5e05b6e9e2..22b15c2da587f 100644 --- a/clients/client-codebuild/commands/RetryBuildCommand.ts +++ b/clients/client-codebuild/commands/RetryBuildCommand.ts @@ -28,6 +28,7 @@ export class RetryBuildCommand extends $Command< RetryBuildCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RetryBuildCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/StartBuildBatchCommand.ts b/clients/client-codebuild/commands/StartBuildBatchCommand.ts index dc2e5c4b3910f..60edb196d0f20 100644 --- a/clients/client-codebuild/commands/StartBuildBatchCommand.ts +++ b/clients/client-codebuild/commands/StartBuildBatchCommand.ts @@ -28,6 +28,7 @@ export class StartBuildBatchCommand extends $Command< StartBuildBatchCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartBuildBatchCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/StartBuildCommand.ts b/clients/client-codebuild/commands/StartBuildCommand.ts index 974002ab1190f..837ab2f6f7f2b 100644 --- a/clients/client-codebuild/commands/StartBuildCommand.ts +++ b/clients/client-codebuild/commands/StartBuildCommand.ts @@ -28,6 +28,7 @@ export class StartBuildCommand extends $Command< StartBuildCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartBuildCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/StopBuildBatchCommand.ts b/clients/client-codebuild/commands/StopBuildBatchCommand.ts index f420a4ce1103b..b8e0d0bb7a534 100644 --- a/clients/client-codebuild/commands/StopBuildBatchCommand.ts +++ b/clients/client-codebuild/commands/StopBuildBatchCommand.ts @@ -28,6 +28,7 @@ export class StopBuildBatchCommand extends $Command< StopBuildBatchCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopBuildBatchCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/StopBuildCommand.ts b/clients/client-codebuild/commands/StopBuildCommand.ts index 84f54b3dec7c2..0a66cad99c012 100644 --- a/clients/client-codebuild/commands/StopBuildCommand.ts +++ b/clients/client-codebuild/commands/StopBuildCommand.ts @@ -25,6 +25,7 @@ export class StopBuildCommand extends $Command< StopBuildCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class StopBuildCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/UpdateProjectCommand.ts b/clients/client-codebuild/commands/UpdateProjectCommand.ts index b5000d8afd365..f22fd627b4832 100644 --- a/clients/client-codebuild/commands/UpdateProjectCommand.ts +++ b/clients/client-codebuild/commands/UpdateProjectCommand.ts @@ -28,6 +28,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProjectCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/UpdateReportGroupCommand.ts b/clients/client-codebuild/commands/UpdateReportGroupCommand.ts index 8f7ba830bf4bf..e31585b1e7aac 100644 --- a/clients/client-codebuild/commands/UpdateReportGroupCommand.ts +++ b/clients/client-codebuild/commands/UpdateReportGroupCommand.ts @@ -30,6 +30,7 @@ export class UpdateReportGroupCommand extends $Command< UpdateReportGroupCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateReportGroupCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codebuild/commands/UpdateWebhookCommand.ts b/clients/client-codebuild/commands/UpdateWebhookCommand.ts index 669e489cf3965..62bbbd363495c 100644 --- a/clients/client-codebuild/commands/UpdateWebhookCommand.ts +++ b/clients/client-codebuild/commands/UpdateWebhookCommand.ts @@ -32,6 +32,7 @@ export class UpdateWebhookCommand extends $Command< UpdateWebhookCommandOutput, CodeBuildClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateWebhookCommand extends $Command< configuration: CodeBuildClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.ts b/clients/client-codecommit/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.ts index c358c2eabb97f..aeafde55f45b1 100644 --- a/clients/client-codecommit/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.ts +++ b/clients/client-codecommit/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.ts @@ -34,6 +34,7 @@ export class AssociateApprovalRuleTemplateWithRepositoryCommand extends $Command AssociateApprovalRuleTemplateWithRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AssociateApprovalRuleTemplateWithRepositoryCommand extends $Command AssociateApprovalRuleTemplateWithRepositoryCommandInput, AssociateApprovalRuleTemplateWithRepositoryCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.ts b/clients/client-codecommit/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.ts index b7570fa4f201e..642bb9568b269 100644 --- a/clients/client-codecommit/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.ts +++ b/clients/client-codecommit/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.ts @@ -32,6 +32,7 @@ export class BatchAssociateApprovalRuleTemplateWithRepositoriesCommand extends $ BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchAssociateApprovalRuleTemplateWithRepositoriesCommand extends $ BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput, BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/BatchDescribeMergeConflictsCommand.ts b/clients/client-codecommit/commands/BatchDescribeMergeConflictsCommand.ts index 4cd6ce623e3f9..e79e525afd380 100644 --- a/clients/client-codecommit/commands/BatchDescribeMergeConflictsCommand.ts +++ b/clients/client-codecommit/commands/BatchDescribeMergeConflictsCommand.ts @@ -28,6 +28,7 @@ export class BatchDescribeMergeConflictsCommand extends $Command< BatchDescribeMergeConflictsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDescribeMergeConflictsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.ts b/clients/client-codecommit/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.ts index d90e26cce1f4b..3a7de9b9c8663 100644 --- a/clients/client-codecommit/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.ts +++ b/clients/client-codecommit/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.ts @@ -32,6 +32,7 @@ export class BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand extend BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand extend BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput, BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/BatchGetCommitsCommand.ts b/clients/client-codecommit/commands/BatchGetCommitsCommand.ts index 77f210306a64d..6bc6594c6c1d9 100644 --- a/clients/client-codecommit/commands/BatchGetCommitsCommand.ts +++ b/clients/client-codecommit/commands/BatchGetCommitsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetCommitsCommand extends $Command< BatchGetCommitsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetCommitsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/BatchGetRepositoriesCommand.ts b/clients/client-codecommit/commands/BatchGetRepositoriesCommand.ts index 3c9e9dbe43b94..70a3093c88c48 100644 --- a/clients/client-codecommit/commands/BatchGetRepositoriesCommand.ts +++ b/clients/client-codecommit/commands/BatchGetRepositoriesCommand.ts @@ -35,6 +35,7 @@ export class BatchGetRepositoriesCommand extends $Command< BatchGetRepositoriesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchGetRepositoriesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreateApprovalRuleTemplateCommand.ts b/clients/client-codecommit/commands/CreateApprovalRuleTemplateCommand.ts index ebf816ba5e8ed..66def32af89ba 100644 --- a/clients/client-codecommit/commands/CreateApprovalRuleTemplateCommand.ts +++ b/clients/client-codecommit/commands/CreateApprovalRuleTemplateCommand.ts @@ -32,6 +32,7 @@ export class CreateApprovalRuleTemplateCommand extends $Command< CreateApprovalRuleTemplateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApprovalRuleTemplateCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreateBranchCommand.ts b/clients/client-codecommit/commands/CreateBranchCommand.ts index 33f6072c3bab9..bca6de6fbd367 100644 --- a/clients/client-codecommit/commands/CreateBranchCommand.ts +++ b/clients/client-codecommit/commands/CreateBranchCommand.ts @@ -31,6 +31,7 @@ export class CreateBranchCommand extends $Command< CreateBranchCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateBranchCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreateCommitCommand.ts b/clients/client-codecommit/commands/CreateCommitCommand.ts index 2bc417bbfc0f4..1f0fbac0a089f 100644 --- a/clients/client-codecommit/commands/CreateCommitCommand.ts +++ b/clients/client-codecommit/commands/CreateCommitCommand.ts @@ -28,6 +28,7 @@ export class CreateCommitCommand extends $Command< CreateCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreatePullRequestApprovalRuleCommand.ts b/clients/client-codecommit/commands/CreatePullRequestApprovalRuleCommand.ts index e834dae0dac4e..39afe572ad2c0 100644 --- a/clients/client-codecommit/commands/CreatePullRequestApprovalRuleCommand.ts +++ b/clients/client-codecommit/commands/CreatePullRequestApprovalRuleCommand.ts @@ -28,6 +28,7 @@ export class CreatePullRequestApprovalRuleCommand extends $Command< CreatePullRequestApprovalRuleCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePullRequestApprovalRuleCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreatePullRequestCommand.ts b/clients/client-codecommit/commands/CreatePullRequestCommand.ts index 183227e60243b..e3666e6a45681 100644 --- a/clients/client-codecommit/commands/CreatePullRequestCommand.ts +++ b/clients/client-codecommit/commands/CreatePullRequestCommand.ts @@ -28,6 +28,7 @@ export class CreatePullRequestCommand extends $Command< CreatePullRequestCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePullRequestCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreateRepositoryCommand.ts b/clients/client-codecommit/commands/CreateRepositoryCommand.ts index ac1af38edd212..679e8e962a2f6 100644 --- a/clients/client-codecommit/commands/CreateRepositoryCommand.ts +++ b/clients/client-codecommit/commands/CreateRepositoryCommand.ts @@ -28,6 +28,7 @@ export class CreateRepositoryCommand extends $Command< CreateRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRepositoryCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/CreateUnreferencedMergeCommitCommand.ts b/clients/client-codecommit/commands/CreateUnreferencedMergeCommitCommand.ts index 78b861c8b2cf3..ab593bc09ee11 100644 --- a/clients/client-codecommit/commands/CreateUnreferencedMergeCommitCommand.ts +++ b/clients/client-codecommit/commands/CreateUnreferencedMergeCommitCommand.ts @@ -35,6 +35,7 @@ export class CreateUnreferencedMergeCommitCommand extends $Command< CreateUnreferencedMergeCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateUnreferencedMergeCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeleteApprovalRuleTemplateCommand.ts b/clients/client-codecommit/commands/DeleteApprovalRuleTemplateCommand.ts index 7f6eb10c015f6..56e007659ab68 100644 --- a/clients/client-codecommit/commands/DeleteApprovalRuleTemplateCommand.ts +++ b/clients/client-codecommit/commands/DeleteApprovalRuleTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteApprovalRuleTemplateCommand extends $Command< DeleteApprovalRuleTemplateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApprovalRuleTemplateCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeleteBranchCommand.ts b/clients/client-codecommit/commands/DeleteBranchCommand.ts index 61cb4815356a5..de05bb430fb71 100644 --- a/clients/client-codecommit/commands/DeleteBranchCommand.ts +++ b/clients/client-codecommit/commands/DeleteBranchCommand.ts @@ -28,6 +28,7 @@ export class DeleteBranchCommand extends $Command< DeleteBranchCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBranchCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeleteCommentContentCommand.ts b/clients/client-codecommit/commands/DeleteCommentContentCommand.ts index 0829d918c9ddb..8ea0d122fb2a4 100644 --- a/clients/client-codecommit/commands/DeleteCommentContentCommand.ts +++ b/clients/client-codecommit/commands/DeleteCommentContentCommand.ts @@ -28,6 +28,7 @@ export class DeleteCommentContentCommand extends $Command< DeleteCommentContentCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCommentContentCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeleteFileCommand.ts b/clients/client-codecommit/commands/DeleteFileCommand.ts index 9cddded12e5c0..fc560687f587b 100644 --- a/clients/client-codecommit/commands/DeleteFileCommand.ts +++ b/clients/client-codecommit/commands/DeleteFileCommand.ts @@ -30,6 +30,7 @@ export class DeleteFileCommand extends $Command< DeleteFileCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteFileCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeletePullRequestApprovalRuleCommand.ts b/clients/client-codecommit/commands/DeletePullRequestApprovalRuleCommand.ts index e1430b959ad33..edd51ee6215a5 100644 --- a/clients/client-codecommit/commands/DeletePullRequestApprovalRuleCommand.ts +++ b/clients/client-codecommit/commands/DeletePullRequestApprovalRuleCommand.ts @@ -30,6 +30,7 @@ export class DeletePullRequestApprovalRuleCommand extends $Command< DeletePullRequestApprovalRuleCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeletePullRequestApprovalRuleCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DeleteRepositoryCommand.ts b/clients/client-codecommit/commands/DeleteRepositoryCommand.ts index ac169b5af6c0a..78bcf5c293c73 100644 --- a/clients/client-codecommit/commands/DeleteRepositoryCommand.ts +++ b/clients/client-codecommit/commands/DeleteRepositoryCommand.ts @@ -33,6 +33,7 @@ export class DeleteRepositoryCommand extends $Command< DeleteRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteRepositoryCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DescribeMergeConflictsCommand.ts b/clients/client-codecommit/commands/DescribeMergeConflictsCommand.ts index 1d677cf1cc5df..21413052d8875 100644 --- a/clients/client-codecommit/commands/DescribeMergeConflictsCommand.ts +++ b/clients/client-codecommit/commands/DescribeMergeConflictsCommand.ts @@ -30,6 +30,7 @@ export class DescribeMergeConflictsCommand extends $Command< DescribeMergeConflictsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeMergeConflictsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DescribePullRequestEventsCommand.ts b/clients/client-codecommit/commands/DescribePullRequestEventsCommand.ts index d38f6dcfd112a..64040682bd2f2 100644 --- a/clients/client-codecommit/commands/DescribePullRequestEventsCommand.ts +++ b/clients/client-codecommit/commands/DescribePullRequestEventsCommand.ts @@ -28,6 +28,7 @@ export class DescribePullRequestEventsCommand extends $Command< DescribePullRequestEventsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePullRequestEventsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.ts b/clients/client-codecommit/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.ts index d37a34115f6e8..d0d6434ea4fd5 100644 --- a/clients/client-codecommit/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.ts +++ b/clients/client-codecommit/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.ts @@ -31,6 +31,7 @@ export class DisassociateApprovalRuleTemplateFromRepositoryCommand extends $Comm DisassociateApprovalRuleTemplateFromRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DisassociateApprovalRuleTemplateFromRepositoryCommand extends $Comm DisassociateApprovalRuleTemplateFromRepositoryCommandInput, DisassociateApprovalRuleTemplateFromRepositoryCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/EvaluatePullRequestApprovalRulesCommand.ts b/clients/client-codecommit/commands/EvaluatePullRequestApprovalRulesCommand.ts index 3489fcf1da7b0..5a25bb3708bc2 100644 --- a/clients/client-codecommit/commands/EvaluatePullRequestApprovalRulesCommand.ts +++ b/clients/client-codecommit/commands/EvaluatePullRequestApprovalRulesCommand.ts @@ -28,6 +28,7 @@ export class EvaluatePullRequestApprovalRulesCommand extends $Command< EvaluatePullRequestApprovalRulesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EvaluatePullRequestApprovalRulesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetApprovalRuleTemplateCommand.ts b/clients/client-codecommit/commands/GetApprovalRuleTemplateCommand.ts index bc2de22f39978..0831a8d804ec9 100644 --- a/clients/client-codecommit/commands/GetApprovalRuleTemplateCommand.ts +++ b/clients/client-codecommit/commands/GetApprovalRuleTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetApprovalRuleTemplateCommand extends $Command< GetApprovalRuleTemplateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApprovalRuleTemplateCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetBlobCommand.ts b/clients/client-codecommit/commands/GetBlobCommand.ts index 56b0c9c4c9406..9b2cf6807edd8 100644 --- a/clients/client-codecommit/commands/GetBlobCommand.ts +++ b/clients/client-codecommit/commands/GetBlobCommand.ts @@ -25,6 +25,7 @@ export class GetBlobCommand extends $Command< GetBlobCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetBlobCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetBranchCommand.ts b/clients/client-codecommit/commands/GetBranchCommand.ts index dacbbc80a6a5b..3d59fe05cebc8 100644 --- a/clients/client-codecommit/commands/GetBranchCommand.ts +++ b/clients/client-codecommit/commands/GetBranchCommand.ts @@ -25,6 +25,7 @@ export class GetBranchCommand extends $Command< GetBranchCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetBranchCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetCommentCommand.ts b/clients/client-codecommit/commands/GetCommentCommand.ts index fc8779f39cffd..a3273ede2e035 100644 --- a/clients/client-codecommit/commands/GetCommentCommand.ts +++ b/clients/client-codecommit/commands/GetCommentCommand.ts @@ -32,6 +32,7 @@ export class GetCommentCommand extends $Command< GetCommentCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCommentCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetCommentReactionsCommand.ts b/clients/client-codecommit/commands/GetCommentReactionsCommand.ts index 58cc60537cb7f..e8ec90b0ba326 100644 --- a/clients/client-codecommit/commands/GetCommentReactionsCommand.ts +++ b/clients/client-codecommit/commands/GetCommentReactionsCommand.ts @@ -28,6 +28,7 @@ export class GetCommentReactionsCommand extends $Command< GetCommentReactionsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCommentReactionsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetCommentsForComparedCommitCommand.ts b/clients/client-codecommit/commands/GetCommentsForComparedCommitCommand.ts index f6ce2401057ef..dda4436d194ff 100644 --- a/clients/client-codecommit/commands/GetCommentsForComparedCommitCommand.ts +++ b/clients/client-codecommit/commands/GetCommentsForComparedCommitCommand.ts @@ -32,6 +32,7 @@ export class GetCommentsForComparedCommitCommand extends $Command< GetCommentsForComparedCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCommentsForComparedCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetCommentsForPullRequestCommand.ts b/clients/client-codecommit/commands/GetCommentsForPullRequestCommand.ts index 558bf726e8095..30937748c50a7 100644 --- a/clients/client-codecommit/commands/GetCommentsForPullRequestCommand.ts +++ b/clients/client-codecommit/commands/GetCommentsForPullRequestCommand.ts @@ -32,6 +32,7 @@ export class GetCommentsForPullRequestCommand extends $Command< GetCommentsForPullRequestCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCommentsForPullRequestCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetCommitCommand.ts b/clients/client-codecommit/commands/GetCommitCommand.ts index a669b47a1c946..58cbdd8303b9c 100644 --- a/clients/client-codecommit/commands/GetCommitCommand.ts +++ b/clients/client-codecommit/commands/GetCommitCommand.ts @@ -25,6 +25,7 @@ export class GetCommitCommand extends $Command< GetCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetDifferencesCommand.ts b/clients/client-codecommit/commands/GetDifferencesCommand.ts index cc4986554301d..36bc87db5f25b 100644 --- a/clients/client-codecommit/commands/GetDifferencesCommand.ts +++ b/clients/client-codecommit/commands/GetDifferencesCommand.ts @@ -30,6 +30,7 @@ export class GetDifferencesCommand extends $Command< GetDifferencesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDifferencesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetFileCommand.ts b/clients/client-codecommit/commands/GetFileCommand.ts index caaf989d3c904..f2d56b3723783 100644 --- a/clients/client-codecommit/commands/GetFileCommand.ts +++ b/clients/client-codecommit/commands/GetFileCommand.ts @@ -25,6 +25,7 @@ export class GetFileCommand extends $Command< GetFileCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetFileCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetFolderCommand.ts b/clients/client-codecommit/commands/GetFolderCommand.ts index d13c36896bad7..5118b41096b3c 100644 --- a/clients/client-codecommit/commands/GetFolderCommand.ts +++ b/clients/client-codecommit/commands/GetFolderCommand.ts @@ -25,6 +25,7 @@ export class GetFolderCommand extends $Command< GetFolderCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetFolderCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetMergeCommitCommand.ts b/clients/client-codecommit/commands/GetMergeCommitCommand.ts index 6adf6d3102592..04ddc24eaea59 100644 --- a/clients/client-codecommit/commands/GetMergeCommitCommand.ts +++ b/clients/client-codecommit/commands/GetMergeCommitCommand.ts @@ -28,6 +28,7 @@ export class GetMergeCommitCommand extends $Command< GetMergeCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMergeCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetMergeConflictsCommand.ts b/clients/client-codecommit/commands/GetMergeConflictsCommand.ts index f9277b40f1d12..fc2ace2471ce6 100644 --- a/clients/client-codecommit/commands/GetMergeConflictsCommand.ts +++ b/clients/client-codecommit/commands/GetMergeConflictsCommand.ts @@ -28,6 +28,7 @@ export class GetMergeConflictsCommand extends $Command< GetMergeConflictsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMergeConflictsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetMergeOptionsCommand.ts b/clients/client-codecommit/commands/GetMergeOptionsCommand.ts index 43d263e9cf253..8fbc554260bcf 100644 --- a/clients/client-codecommit/commands/GetMergeOptionsCommand.ts +++ b/clients/client-codecommit/commands/GetMergeOptionsCommand.ts @@ -30,6 +30,7 @@ export class GetMergeOptionsCommand extends $Command< GetMergeOptionsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetMergeOptionsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetPullRequestApprovalStatesCommand.ts b/clients/client-codecommit/commands/GetPullRequestApprovalStatesCommand.ts index c747ef85b7cc3..754e9647e7ee5 100644 --- a/clients/client-codecommit/commands/GetPullRequestApprovalStatesCommand.ts +++ b/clients/client-codecommit/commands/GetPullRequestApprovalStatesCommand.ts @@ -29,6 +29,7 @@ export class GetPullRequestApprovalStatesCommand extends $Command< GetPullRequestApprovalStatesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPullRequestApprovalStatesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetPullRequestCommand.ts b/clients/client-codecommit/commands/GetPullRequestCommand.ts index 8f909e8710da7..d69e58422beaf 100644 --- a/clients/client-codecommit/commands/GetPullRequestCommand.ts +++ b/clients/client-codecommit/commands/GetPullRequestCommand.ts @@ -28,6 +28,7 @@ export class GetPullRequestCommand extends $Command< GetPullRequestCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPullRequestCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetPullRequestOverrideStateCommand.ts b/clients/client-codecommit/commands/GetPullRequestOverrideStateCommand.ts index d0b40c7484398..711555e593a8d 100644 --- a/clients/client-codecommit/commands/GetPullRequestOverrideStateCommand.ts +++ b/clients/client-codecommit/commands/GetPullRequestOverrideStateCommand.ts @@ -29,6 +29,7 @@ export class GetPullRequestOverrideStateCommand extends $Command< GetPullRequestOverrideStateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPullRequestOverrideStateCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetRepositoryCommand.ts b/clients/client-codecommit/commands/GetRepositoryCommand.ts index 32a177a91336f..6587986518208 100644 --- a/clients/client-codecommit/commands/GetRepositoryCommand.ts +++ b/clients/client-codecommit/commands/GetRepositoryCommand.ts @@ -36,6 +36,7 @@ export class GetRepositoryCommand extends $Command< GetRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetRepositoryCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/GetRepositoryTriggersCommand.ts b/clients/client-codecommit/commands/GetRepositoryTriggersCommand.ts index ff72ccdf8e385..ef9df7c5af234 100644 --- a/clients/client-codecommit/commands/GetRepositoryTriggersCommand.ts +++ b/clients/client-codecommit/commands/GetRepositoryTriggersCommand.ts @@ -28,6 +28,7 @@ export class GetRepositoryTriggersCommand extends $Command< GetRepositoryTriggersCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRepositoryTriggersCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListApprovalRuleTemplatesCommand.ts b/clients/client-codecommit/commands/ListApprovalRuleTemplatesCommand.ts index 57081557b109e..309126eaf2526 100644 --- a/clients/client-codecommit/commands/ListApprovalRuleTemplatesCommand.ts +++ b/clients/client-codecommit/commands/ListApprovalRuleTemplatesCommand.ts @@ -29,6 +29,7 @@ export class ListApprovalRuleTemplatesCommand extends $Command< ListApprovalRuleTemplatesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListApprovalRuleTemplatesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.ts b/clients/client-codecommit/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.ts index e47a0c62d09c9..551e5ca81106d 100644 --- a/clients/client-codecommit/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.ts +++ b/clients/client-codecommit/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.ts @@ -32,6 +32,7 @@ export class ListAssociatedApprovalRuleTemplatesForRepositoryCommand extends $Co ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListAssociatedApprovalRuleTemplatesForRepositoryCommand extends $Co ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput, ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListBranchesCommand.ts b/clients/client-codecommit/commands/ListBranchesCommand.ts index 821f0d8f9fc68..77333b676fcb8 100644 --- a/clients/client-codecommit/commands/ListBranchesCommand.ts +++ b/clients/client-codecommit/commands/ListBranchesCommand.ts @@ -28,6 +28,7 @@ export class ListBranchesCommand extends $Command< ListBranchesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBranchesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListPullRequestsCommand.ts b/clients/client-codecommit/commands/ListPullRequestsCommand.ts index a75d7af344ad3..aa7c737fe5f4f 100644 --- a/clients/client-codecommit/commands/ListPullRequestsCommand.ts +++ b/clients/client-codecommit/commands/ListPullRequestsCommand.ts @@ -29,6 +29,7 @@ export class ListPullRequestsCommand extends $Command< ListPullRequestsCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPullRequestsCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListRepositoriesCommand.ts b/clients/client-codecommit/commands/ListRepositoriesCommand.ts index 2316b32a26845..fd0735f3834bc 100644 --- a/clients/client-codecommit/commands/ListRepositoriesCommand.ts +++ b/clients/client-codecommit/commands/ListRepositoriesCommand.ts @@ -28,6 +28,7 @@ export class ListRepositoriesCommand extends $Command< ListRepositoriesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRepositoriesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListRepositoriesForApprovalRuleTemplateCommand.ts b/clients/client-codecommit/commands/ListRepositoriesForApprovalRuleTemplateCommand.ts index c2f1624e8e009..11936da4dd4f9 100644 --- a/clients/client-codecommit/commands/ListRepositoriesForApprovalRuleTemplateCommand.ts +++ b/clients/client-codecommit/commands/ListRepositoriesForApprovalRuleTemplateCommand.ts @@ -32,6 +32,7 @@ export class ListRepositoriesForApprovalRuleTemplateCommand extends $Command< ListRepositoriesForApprovalRuleTemplateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListRepositoriesForApprovalRuleTemplateCommand extends $Command< ListRepositoriesForApprovalRuleTemplateCommandInput, ListRepositoriesForApprovalRuleTemplateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/ListTagsForResourceCommand.ts b/clients/client-codecommit/commands/ListTagsForResourceCommand.ts index de9726da76370..ac950c04a1ecd 100644 --- a/clients/client-codecommit/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codecommit/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergeBranchesByFastForwardCommand.ts b/clients/client-codecommit/commands/MergeBranchesByFastForwardCommand.ts index a03316a770dd0..c7ebfcbd57cbf 100644 --- a/clients/client-codecommit/commands/MergeBranchesByFastForwardCommand.ts +++ b/clients/client-codecommit/commands/MergeBranchesByFastForwardCommand.ts @@ -28,6 +28,7 @@ export class MergeBranchesByFastForwardCommand extends $Command< MergeBranchesByFastForwardCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class MergeBranchesByFastForwardCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergeBranchesBySquashCommand.ts b/clients/client-codecommit/commands/MergeBranchesBySquashCommand.ts index 29a8b08c7e22e..ae69ed190223c 100644 --- a/clients/client-codecommit/commands/MergeBranchesBySquashCommand.ts +++ b/clients/client-codecommit/commands/MergeBranchesBySquashCommand.ts @@ -28,6 +28,7 @@ export class MergeBranchesBySquashCommand extends $Command< MergeBranchesBySquashCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class MergeBranchesBySquashCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergeBranchesByThreeWayCommand.ts b/clients/client-codecommit/commands/MergeBranchesByThreeWayCommand.ts index 1e4b4e25730ed..5e68846ebb84d 100644 --- a/clients/client-codecommit/commands/MergeBranchesByThreeWayCommand.ts +++ b/clients/client-codecommit/commands/MergeBranchesByThreeWayCommand.ts @@ -28,6 +28,7 @@ export class MergeBranchesByThreeWayCommand extends $Command< MergeBranchesByThreeWayCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class MergeBranchesByThreeWayCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergePullRequestByFastForwardCommand.ts b/clients/client-codecommit/commands/MergePullRequestByFastForwardCommand.ts index 16f5bae10ee02..635b5109ecb09 100644 --- a/clients/client-codecommit/commands/MergePullRequestByFastForwardCommand.ts +++ b/clients/client-codecommit/commands/MergePullRequestByFastForwardCommand.ts @@ -29,6 +29,7 @@ export class MergePullRequestByFastForwardCommand extends $Command< MergePullRequestByFastForwardCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class MergePullRequestByFastForwardCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergePullRequestBySquashCommand.ts b/clients/client-codecommit/commands/MergePullRequestBySquashCommand.ts index 737f2811ba3a0..9777fd6d40d5b 100644 --- a/clients/client-codecommit/commands/MergePullRequestBySquashCommand.ts +++ b/clients/client-codecommit/commands/MergePullRequestBySquashCommand.ts @@ -29,6 +29,7 @@ export class MergePullRequestBySquashCommand extends $Command< MergePullRequestBySquashCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class MergePullRequestBySquashCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/MergePullRequestByThreeWayCommand.ts b/clients/client-codecommit/commands/MergePullRequestByThreeWayCommand.ts index 1c5adb9dcefe0..66b169d7c6019 100644 --- a/clients/client-codecommit/commands/MergePullRequestByThreeWayCommand.ts +++ b/clients/client-codecommit/commands/MergePullRequestByThreeWayCommand.ts @@ -29,6 +29,7 @@ export class MergePullRequestByThreeWayCommand extends $Command< MergePullRequestByThreeWayCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class MergePullRequestByThreeWayCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/OverridePullRequestApprovalRulesCommand.ts b/clients/client-codecommit/commands/OverridePullRequestApprovalRulesCommand.ts index 4144312c09a49..a17065ea970f2 100644 --- a/clients/client-codecommit/commands/OverridePullRequestApprovalRulesCommand.ts +++ b/clients/client-codecommit/commands/OverridePullRequestApprovalRulesCommand.ts @@ -28,6 +28,7 @@ export class OverridePullRequestApprovalRulesCommand extends $Command< OverridePullRequestApprovalRulesCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class OverridePullRequestApprovalRulesCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PostCommentForComparedCommitCommand.ts b/clients/client-codecommit/commands/PostCommentForComparedCommitCommand.ts index 30a9aafdb5441..309850ace6d0c 100644 --- a/clients/client-codecommit/commands/PostCommentForComparedCommitCommand.ts +++ b/clients/client-codecommit/commands/PostCommentForComparedCommitCommand.ts @@ -28,6 +28,7 @@ export class PostCommentForComparedCommitCommand extends $Command< PostCommentForComparedCommitCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PostCommentForComparedCommitCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PostCommentForPullRequestCommand.ts b/clients/client-codecommit/commands/PostCommentForPullRequestCommand.ts index 3c7f7af75c6ac..050bd79b9b34d 100644 --- a/clients/client-codecommit/commands/PostCommentForPullRequestCommand.ts +++ b/clients/client-codecommit/commands/PostCommentForPullRequestCommand.ts @@ -28,6 +28,7 @@ export class PostCommentForPullRequestCommand extends $Command< PostCommentForPullRequestCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PostCommentForPullRequestCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PostCommentReplyCommand.ts b/clients/client-codecommit/commands/PostCommentReplyCommand.ts index 1e08dbe33f749..7611a3760db5c 100644 --- a/clients/client-codecommit/commands/PostCommentReplyCommand.ts +++ b/clients/client-codecommit/commands/PostCommentReplyCommand.ts @@ -28,6 +28,7 @@ export class PostCommentReplyCommand extends $Command< PostCommentReplyCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PostCommentReplyCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PutCommentReactionCommand.ts b/clients/client-codecommit/commands/PutCommentReactionCommand.ts index ca37e922a68dc..b80ad34dc9f38 100644 --- a/clients/client-codecommit/commands/PutCommentReactionCommand.ts +++ b/clients/client-codecommit/commands/PutCommentReactionCommand.ts @@ -29,6 +29,7 @@ export class PutCommentReactionCommand extends $Command< PutCommentReactionCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutCommentReactionCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PutFileCommand.ts b/clients/client-codecommit/commands/PutFileCommand.ts index 72cf06c2bbb1c..cc90b92143b67 100644 --- a/clients/client-codecommit/commands/PutFileCommand.ts +++ b/clients/client-codecommit/commands/PutFileCommand.ts @@ -25,6 +25,7 @@ export class PutFileCommand extends $Command< PutFileCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class PutFileCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/PutRepositoryTriggersCommand.ts b/clients/client-codecommit/commands/PutRepositoryTriggersCommand.ts index 26a9dee71ebc5..7c6918a4c5729 100644 --- a/clients/client-codecommit/commands/PutRepositoryTriggersCommand.ts +++ b/clients/client-codecommit/commands/PutRepositoryTriggersCommand.ts @@ -28,6 +28,7 @@ export class PutRepositoryTriggersCommand extends $Command< PutRepositoryTriggersCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutRepositoryTriggersCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/TagResourceCommand.ts b/clients/client-codecommit/commands/TagResourceCommand.ts index f600fc8aa4f7b..6647e36bb89d4 100644 --- a/clients/client-codecommit/commands/TagResourceCommand.ts +++ b/clients/client-codecommit/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/TestRepositoryTriggersCommand.ts b/clients/client-codecommit/commands/TestRepositoryTriggersCommand.ts index 51b89c380c191..1c2bdda70cf93 100644 --- a/clients/client-codecommit/commands/TestRepositoryTriggersCommand.ts +++ b/clients/client-codecommit/commands/TestRepositoryTriggersCommand.ts @@ -30,6 +30,7 @@ export class TestRepositoryTriggersCommand extends $Command< TestRepositoryTriggersCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TestRepositoryTriggersCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UntagResourceCommand.ts b/clients/client-codecommit/commands/UntagResourceCommand.ts index 1c30610ad8b80..267d6d2456050 100644 --- a/clients/client-codecommit/commands/UntagResourceCommand.ts +++ b/clients/client-codecommit/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateContentCommand.ts b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateContentCommand.ts index cf402d1dc3954..011c41b3aa166 100644 --- a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateContentCommand.ts +++ b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateContentCommand.ts @@ -30,6 +30,7 @@ export class UpdateApprovalRuleTemplateContentCommand extends $Command< UpdateApprovalRuleTemplateContentCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateApprovalRuleTemplateContentCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateDescriptionCommand.ts b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateDescriptionCommand.ts index ad71c21ba168f..9920a242cf664 100644 --- a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateDescriptionCommand.ts +++ b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateDescriptionCommand.ts @@ -32,6 +32,7 @@ export class UpdateApprovalRuleTemplateDescriptionCommand extends $Command< UpdateApprovalRuleTemplateDescriptionCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApprovalRuleTemplateDescriptionCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateNameCommand.ts b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateNameCommand.ts index 4b6120a358712..eb4365ad770ff 100644 --- a/clients/client-codecommit/commands/UpdateApprovalRuleTemplateNameCommand.ts +++ b/clients/client-codecommit/commands/UpdateApprovalRuleTemplateNameCommand.ts @@ -28,6 +28,7 @@ export class UpdateApprovalRuleTemplateNameCommand extends $Command< UpdateApprovalRuleTemplateNameCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApprovalRuleTemplateNameCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateCommentCommand.ts b/clients/client-codecommit/commands/UpdateCommentCommand.ts index 0bace95f5e551..5dc7ff4f5100d 100644 --- a/clients/client-codecommit/commands/UpdateCommentCommand.ts +++ b/clients/client-codecommit/commands/UpdateCommentCommand.ts @@ -28,6 +28,7 @@ export class UpdateCommentCommand extends $Command< UpdateCommentCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCommentCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateDefaultBranchCommand.ts b/clients/client-codecommit/commands/UpdateDefaultBranchCommand.ts index 963e8c2f7b49a..3c37c4265a007 100644 --- a/clients/client-codecommit/commands/UpdateDefaultBranchCommand.ts +++ b/clients/client-codecommit/commands/UpdateDefaultBranchCommand.ts @@ -31,6 +31,7 @@ export class UpdateDefaultBranchCommand extends $Command< UpdateDefaultBranchCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDefaultBranchCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdatePullRequestApprovalRuleContentCommand.ts b/clients/client-codecommit/commands/UpdatePullRequestApprovalRuleContentCommand.ts index b6a197fffffa3..7ba3f143c4357 100644 --- a/clients/client-codecommit/commands/UpdatePullRequestApprovalRuleContentCommand.ts +++ b/clients/client-codecommit/commands/UpdatePullRequestApprovalRuleContentCommand.ts @@ -33,6 +33,7 @@ export class UpdatePullRequestApprovalRuleContentCommand extends $Command< UpdatePullRequestApprovalRuleContentCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdatePullRequestApprovalRuleContentCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdatePullRequestApprovalStateCommand.ts b/clients/client-codecommit/commands/UpdatePullRequestApprovalStateCommand.ts index d9aab5870a7fd..0115385508443 100644 --- a/clients/client-codecommit/commands/UpdatePullRequestApprovalStateCommand.ts +++ b/clients/client-codecommit/commands/UpdatePullRequestApprovalStateCommand.ts @@ -28,6 +28,7 @@ export class UpdatePullRequestApprovalStateCommand extends $Command< UpdatePullRequestApprovalStateCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePullRequestApprovalStateCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdatePullRequestDescriptionCommand.ts b/clients/client-codecommit/commands/UpdatePullRequestDescriptionCommand.ts index b40dcdd922c0a..1313e2096e7d9 100644 --- a/clients/client-codecommit/commands/UpdatePullRequestDescriptionCommand.ts +++ b/clients/client-codecommit/commands/UpdatePullRequestDescriptionCommand.ts @@ -28,6 +28,7 @@ export class UpdatePullRequestDescriptionCommand extends $Command< UpdatePullRequestDescriptionCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePullRequestDescriptionCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdatePullRequestStatusCommand.ts b/clients/client-codecommit/commands/UpdatePullRequestStatusCommand.ts index 9d8982b4cf1e4..8addcdbf8e915 100644 --- a/clients/client-codecommit/commands/UpdatePullRequestStatusCommand.ts +++ b/clients/client-codecommit/commands/UpdatePullRequestStatusCommand.ts @@ -28,6 +28,7 @@ export class UpdatePullRequestStatusCommand extends $Command< UpdatePullRequestStatusCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePullRequestStatusCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdatePullRequestTitleCommand.ts b/clients/client-codecommit/commands/UpdatePullRequestTitleCommand.ts index c100978cdc225..d9de661568490 100644 --- a/clients/client-codecommit/commands/UpdatePullRequestTitleCommand.ts +++ b/clients/client-codecommit/commands/UpdatePullRequestTitleCommand.ts @@ -28,6 +28,7 @@ export class UpdatePullRequestTitleCommand extends $Command< UpdatePullRequestTitleCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePullRequestTitleCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateRepositoryDescriptionCommand.ts b/clients/client-codecommit/commands/UpdateRepositoryDescriptionCommand.ts index fb6cf1bb01f5d..2089eb9c574bd 100644 --- a/clients/client-codecommit/commands/UpdateRepositoryDescriptionCommand.ts +++ b/clients/client-codecommit/commands/UpdateRepositoryDescriptionCommand.ts @@ -35,6 +35,7 @@ export class UpdateRepositoryDescriptionCommand extends $Command< UpdateRepositoryDescriptionCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateRepositoryDescriptionCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codecommit/commands/UpdateRepositoryNameCommand.ts b/clients/client-codecommit/commands/UpdateRepositoryNameCommand.ts index 4410651fe86a8..eb72e1d7877e8 100644 --- a/clients/client-codecommit/commands/UpdateRepositoryNameCommand.ts +++ b/clients/client-codecommit/commands/UpdateRepositoryNameCommand.ts @@ -32,6 +32,7 @@ export class UpdateRepositoryNameCommand extends $Command< UpdateRepositoryNameCommandOutput, CodeCommitClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateRepositoryNameCommand extends $Command< configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/AddTagsToOnPremisesInstancesCommand.ts b/clients/client-codedeploy/commands/AddTagsToOnPremisesInstancesCommand.ts index d4818f2b19629..92124bfceb9e7 100644 --- a/clients/client-codedeploy/commands/AddTagsToOnPremisesInstancesCommand.ts +++ b/clients/client-codedeploy/commands/AddTagsToOnPremisesInstancesCommand.ts @@ -28,6 +28,7 @@ export class AddTagsToOnPremisesInstancesCommand extends $Command< AddTagsToOnPremisesInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddTagsToOnPremisesInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetApplicationRevisionsCommand.ts b/clients/client-codedeploy/commands/BatchGetApplicationRevisionsCommand.ts index d6548f10d32ac..357f27ad5e446 100644 --- a/clients/client-codedeploy/commands/BatchGetApplicationRevisionsCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetApplicationRevisionsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetApplicationRevisionsCommand extends $Command< BatchGetApplicationRevisionsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetApplicationRevisionsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetApplicationsCommand.ts b/clients/client-codedeploy/commands/BatchGetApplicationsCommand.ts index db556b84711ff..e1375207f8ad1 100644 --- a/clients/client-codedeploy/commands/BatchGetApplicationsCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetApplicationsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetApplicationsCommand extends $Command< BatchGetApplicationsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetApplicationsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetDeploymentGroupsCommand.ts b/clients/client-codedeploy/commands/BatchGetDeploymentGroupsCommand.ts index 26def7fedb3eb..5eb7bee05e10a 100644 --- a/clients/client-codedeploy/commands/BatchGetDeploymentGroupsCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetDeploymentGroupsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetDeploymentGroupsCommand extends $Command< BatchGetDeploymentGroupsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetDeploymentGroupsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetDeploymentInstancesCommand.ts b/clients/client-codedeploy/commands/BatchGetDeploymentInstancesCommand.ts index c55c689acd52f..1eed9cea48abb 100644 --- a/clients/client-codedeploy/commands/BatchGetDeploymentInstancesCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetDeploymentInstancesCommand.ts @@ -35,6 +35,7 @@ export class BatchGetDeploymentInstancesCommand extends $Command< BatchGetDeploymentInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchGetDeploymentInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetDeploymentTargetsCommand.ts b/clients/client-codedeploy/commands/BatchGetDeploymentTargetsCommand.ts index 37867c7c850bb..5be8ab0c73792 100644 --- a/clients/client-codedeploy/commands/BatchGetDeploymentTargetsCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetDeploymentTargetsCommand.ts @@ -54,6 +54,7 @@ export class BatchGetDeploymentTargetsCommand extends $Command< BatchGetDeploymentTargetsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class BatchGetDeploymentTargetsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetDeploymentsCommand.ts b/clients/client-codedeploy/commands/BatchGetDeploymentsCommand.ts index eeed5915188c3..41886ee405b4c 100644 --- a/clients/client-codedeploy/commands/BatchGetDeploymentsCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetDeploymentsCommand extends $Command< BatchGetDeploymentsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetDeploymentsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/BatchGetOnPremisesInstancesCommand.ts b/clients/client-codedeploy/commands/BatchGetOnPremisesInstancesCommand.ts index 90f9a2e45348d..a43f1736acbbd 100644 --- a/clients/client-codedeploy/commands/BatchGetOnPremisesInstancesCommand.ts +++ b/clients/client-codedeploy/commands/BatchGetOnPremisesInstancesCommand.ts @@ -28,6 +28,7 @@ export class BatchGetOnPremisesInstancesCommand extends $Command< BatchGetOnPremisesInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetOnPremisesInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ContinueDeploymentCommand.ts b/clients/client-codedeploy/commands/ContinueDeploymentCommand.ts index 3a14da8a2b50c..dba8e88b3842e 100644 --- a/clients/client-codedeploy/commands/ContinueDeploymentCommand.ts +++ b/clients/client-codedeploy/commands/ContinueDeploymentCommand.ts @@ -32,6 +32,7 @@ export class ContinueDeploymentCommand extends $Command< ContinueDeploymentCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ContinueDeploymentCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/CreateApplicationCommand.ts b/clients/client-codedeploy/commands/CreateApplicationCommand.ts index 653af7158905a..8f17912f26439 100644 --- a/clients/client-codedeploy/commands/CreateApplicationCommand.ts +++ b/clients/client-codedeploy/commands/CreateApplicationCommand.ts @@ -28,6 +28,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateApplicationCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/CreateDeploymentCommand.ts b/clients/client-codedeploy/commands/CreateDeploymentCommand.ts index c4ee7851069af..2f19498aa2614 100644 --- a/clients/client-codedeploy/commands/CreateDeploymentCommand.ts +++ b/clients/client-codedeploy/commands/CreateDeploymentCommand.ts @@ -28,6 +28,7 @@ export class CreateDeploymentCommand extends $Command< CreateDeploymentCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeploymentCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/CreateDeploymentConfigCommand.ts b/clients/client-codedeploy/commands/CreateDeploymentConfigCommand.ts index 4877b6c2130f5..0e0dff43e1c37 100644 --- a/clients/client-codedeploy/commands/CreateDeploymentConfigCommand.ts +++ b/clients/client-codedeploy/commands/CreateDeploymentConfigCommand.ts @@ -28,6 +28,7 @@ export class CreateDeploymentConfigCommand extends $Command< CreateDeploymentConfigCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeploymentConfigCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/CreateDeploymentGroupCommand.ts b/clients/client-codedeploy/commands/CreateDeploymentGroupCommand.ts index 8da5f78d12096..36cd1eb570801 100644 --- a/clients/client-codedeploy/commands/CreateDeploymentGroupCommand.ts +++ b/clients/client-codedeploy/commands/CreateDeploymentGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateDeploymentGroupCommand extends $Command< CreateDeploymentGroupCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeploymentGroupCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeleteApplicationCommand.ts b/clients/client-codedeploy/commands/DeleteApplicationCommand.ts index 5fdafcab36e31..357dfa6dec1fb 100644 --- a/clients/client-codedeploy/commands/DeleteApplicationCommand.ts +++ b/clients/client-codedeploy/commands/DeleteApplicationCommand.ts @@ -28,6 +28,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApplicationCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeleteDeploymentConfigCommand.ts b/clients/client-codedeploy/commands/DeleteDeploymentConfigCommand.ts index d83cf4abf8946..7d732c4075ff2 100644 --- a/clients/client-codedeploy/commands/DeleteDeploymentConfigCommand.ts +++ b/clients/client-codedeploy/commands/DeleteDeploymentConfigCommand.ts @@ -32,6 +32,7 @@ export class DeleteDeploymentConfigCommand extends $Command< DeleteDeploymentConfigCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteDeploymentConfigCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeleteDeploymentGroupCommand.ts b/clients/client-codedeploy/commands/DeleteDeploymentGroupCommand.ts index d56d01e6dc8fc..b484761b98eed 100644 --- a/clients/client-codedeploy/commands/DeleteDeploymentGroupCommand.ts +++ b/clients/client-codedeploy/commands/DeleteDeploymentGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteDeploymentGroupCommand extends $Command< DeleteDeploymentGroupCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDeploymentGroupCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeleteGitHubAccountTokenCommand.ts b/clients/client-codedeploy/commands/DeleteGitHubAccountTokenCommand.ts index eb0ac0a890db7..d3381af99ffe6 100644 --- a/clients/client-codedeploy/commands/DeleteGitHubAccountTokenCommand.ts +++ b/clients/client-codedeploy/commands/DeleteGitHubAccountTokenCommand.ts @@ -28,6 +28,7 @@ export class DeleteGitHubAccountTokenCommand extends $Command< DeleteGitHubAccountTokenCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGitHubAccountTokenCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeleteResourcesByExternalIdCommand.ts b/clients/client-codedeploy/commands/DeleteResourcesByExternalIdCommand.ts index 4aa48b3439cd1..aa18be298c569 100644 --- a/clients/client-codedeploy/commands/DeleteResourcesByExternalIdCommand.ts +++ b/clients/client-codedeploy/commands/DeleteResourcesByExternalIdCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourcesByExternalIdCommand extends $Command< DeleteResourcesByExternalIdCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourcesByExternalIdCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/DeregisterOnPremisesInstanceCommand.ts b/clients/client-codedeploy/commands/DeregisterOnPremisesInstanceCommand.ts index 80c859b91fe53..0d1adc13e60a9 100644 --- a/clients/client-codedeploy/commands/DeregisterOnPremisesInstanceCommand.ts +++ b/clients/client-codedeploy/commands/DeregisterOnPremisesInstanceCommand.ts @@ -28,6 +28,7 @@ export class DeregisterOnPremisesInstanceCommand extends $Command< DeregisterOnPremisesInstanceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterOnPremisesInstanceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetApplicationCommand.ts b/clients/client-codedeploy/commands/GetApplicationCommand.ts index d1e98d7eb960e..842378a8a51d0 100644 --- a/clients/client-codedeploy/commands/GetApplicationCommand.ts +++ b/clients/client-codedeploy/commands/GetApplicationCommand.ts @@ -28,6 +28,7 @@ export class GetApplicationCommand extends $Command< GetApplicationCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApplicationCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetApplicationRevisionCommand.ts b/clients/client-codedeploy/commands/GetApplicationRevisionCommand.ts index 98ac86c7fbef3..cf47a3190364a 100644 --- a/clients/client-codedeploy/commands/GetApplicationRevisionCommand.ts +++ b/clients/client-codedeploy/commands/GetApplicationRevisionCommand.ts @@ -28,6 +28,7 @@ export class GetApplicationRevisionCommand extends $Command< GetApplicationRevisionCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApplicationRevisionCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetDeploymentCommand.ts b/clients/client-codedeploy/commands/GetDeploymentCommand.ts index af7b058459c8c..564c049de7efe 100644 --- a/clients/client-codedeploy/commands/GetDeploymentCommand.ts +++ b/clients/client-codedeploy/commands/GetDeploymentCommand.ts @@ -35,6 +35,7 @@ export class GetDeploymentCommand extends $Command< GetDeploymentCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetDeploymentCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetDeploymentConfigCommand.ts b/clients/client-codedeploy/commands/GetDeploymentConfigCommand.ts index 143da0b5c4051..037ca10629ddc 100644 --- a/clients/client-codedeploy/commands/GetDeploymentConfigCommand.ts +++ b/clients/client-codedeploy/commands/GetDeploymentConfigCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentConfigCommand extends $Command< GetDeploymentConfigCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentConfigCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetDeploymentGroupCommand.ts b/clients/client-codedeploy/commands/GetDeploymentGroupCommand.ts index ac8321f60575b..962e3446f6c76 100644 --- a/clients/client-codedeploy/commands/GetDeploymentGroupCommand.ts +++ b/clients/client-codedeploy/commands/GetDeploymentGroupCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentGroupCommand extends $Command< GetDeploymentGroupCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentGroupCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetDeploymentInstanceCommand.ts b/clients/client-codedeploy/commands/GetDeploymentInstanceCommand.ts index 6ec4beab08cca..146a8587c877d 100644 --- a/clients/client-codedeploy/commands/GetDeploymentInstanceCommand.ts +++ b/clients/client-codedeploy/commands/GetDeploymentInstanceCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentInstanceCommand extends $Command< GetDeploymentInstanceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentInstanceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetDeploymentTargetCommand.ts b/clients/client-codedeploy/commands/GetDeploymentTargetCommand.ts index d06c0bd4a8b65..14251cb7ab237 100644 --- a/clients/client-codedeploy/commands/GetDeploymentTargetCommand.ts +++ b/clients/client-codedeploy/commands/GetDeploymentTargetCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentTargetCommand extends $Command< GetDeploymentTargetCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentTargetCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/GetOnPremisesInstanceCommand.ts b/clients/client-codedeploy/commands/GetOnPremisesInstanceCommand.ts index 20b18dd5bf9e2..811bc0cd746b3 100644 --- a/clients/client-codedeploy/commands/GetOnPremisesInstanceCommand.ts +++ b/clients/client-codedeploy/commands/GetOnPremisesInstanceCommand.ts @@ -28,6 +28,7 @@ export class GetOnPremisesInstanceCommand extends $Command< GetOnPremisesInstanceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOnPremisesInstanceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListApplicationRevisionsCommand.ts b/clients/client-codedeploy/commands/ListApplicationRevisionsCommand.ts index 94de6b9581a80..189dcb6db85e9 100644 --- a/clients/client-codedeploy/commands/ListApplicationRevisionsCommand.ts +++ b/clients/client-codedeploy/commands/ListApplicationRevisionsCommand.ts @@ -28,6 +28,7 @@ export class ListApplicationRevisionsCommand extends $Command< ListApplicationRevisionsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListApplicationRevisionsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListApplicationsCommand.ts b/clients/client-codedeploy/commands/ListApplicationsCommand.ts index 60cf743926350..2e582415bfea6 100644 --- a/clients/client-codedeploy/commands/ListApplicationsCommand.ts +++ b/clients/client-codedeploy/commands/ListApplicationsCommand.ts @@ -28,6 +28,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListApplicationsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListDeploymentConfigsCommand.ts b/clients/client-codedeploy/commands/ListDeploymentConfigsCommand.ts index f2cb557dfbe9d..4e66f3e051d91 100644 --- a/clients/client-codedeploy/commands/ListDeploymentConfigsCommand.ts +++ b/clients/client-codedeploy/commands/ListDeploymentConfigsCommand.ts @@ -28,6 +28,7 @@ export class ListDeploymentConfigsCommand extends $Command< ListDeploymentConfigsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeploymentConfigsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListDeploymentGroupsCommand.ts b/clients/client-codedeploy/commands/ListDeploymentGroupsCommand.ts index ba57175af7e1f..d0bdd053b02e4 100644 --- a/clients/client-codedeploy/commands/ListDeploymentGroupsCommand.ts +++ b/clients/client-codedeploy/commands/ListDeploymentGroupsCommand.ts @@ -29,6 +29,7 @@ export class ListDeploymentGroupsCommand extends $Command< ListDeploymentGroupsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDeploymentGroupsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListDeploymentInstancesCommand.ts b/clients/client-codedeploy/commands/ListDeploymentInstancesCommand.ts index d69a1640b5474..c136fa61ac8a9 100644 --- a/clients/client-codedeploy/commands/ListDeploymentInstancesCommand.ts +++ b/clients/client-codedeploy/commands/ListDeploymentInstancesCommand.ts @@ -34,6 +34,7 @@ export class ListDeploymentInstancesCommand extends $Command< ListDeploymentInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListDeploymentInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListDeploymentTargetsCommand.ts b/clients/client-codedeploy/commands/ListDeploymentTargetsCommand.ts index 4dfb9c86781bc..924d513160a14 100644 --- a/clients/client-codedeploy/commands/ListDeploymentTargetsCommand.ts +++ b/clients/client-codedeploy/commands/ListDeploymentTargetsCommand.ts @@ -28,6 +28,7 @@ export class ListDeploymentTargetsCommand extends $Command< ListDeploymentTargetsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeploymentTargetsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListDeploymentsCommand.ts b/clients/client-codedeploy/commands/ListDeploymentsCommand.ts index 6aece388e653f..c030ec1edbb55 100644 --- a/clients/client-codedeploy/commands/ListDeploymentsCommand.ts +++ b/clients/client-codedeploy/commands/ListDeploymentsCommand.ts @@ -29,6 +29,7 @@ export class ListDeploymentsCommand extends $Command< ListDeploymentsCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDeploymentsCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListGitHubAccountTokenNamesCommand.ts b/clients/client-codedeploy/commands/ListGitHubAccountTokenNamesCommand.ts index 0821694d0aa9e..1020f141df898 100644 --- a/clients/client-codedeploy/commands/ListGitHubAccountTokenNamesCommand.ts +++ b/clients/client-codedeploy/commands/ListGitHubAccountTokenNamesCommand.ts @@ -28,6 +28,7 @@ export class ListGitHubAccountTokenNamesCommand extends $Command< ListGitHubAccountTokenNamesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGitHubAccountTokenNamesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListOnPremisesInstancesCommand.ts b/clients/client-codedeploy/commands/ListOnPremisesInstancesCommand.ts index 63cd80bfff1f7..4a90e744d1db2 100644 --- a/clients/client-codedeploy/commands/ListOnPremisesInstancesCommand.ts +++ b/clients/client-codedeploy/commands/ListOnPremisesInstancesCommand.ts @@ -31,6 +31,7 @@ export class ListOnPremisesInstancesCommand extends $Command< ListOnPremisesInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListOnPremisesInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/ListTagsForResourceCommand.ts b/clients/client-codedeploy/commands/ListTagsForResourceCommand.ts index b89dd5955aa9f..25a9ce6d6557f 100644 --- a/clients/client-codedeploy/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codedeploy/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/PutLifecycleEventHookExecutionStatusCommand.ts b/clients/client-codedeploy/commands/PutLifecycleEventHookExecutionStatusCommand.ts index 4f5ab792819c0..d16fc9c6587b3 100644 --- a/clients/client-codedeploy/commands/PutLifecycleEventHookExecutionStatusCommand.ts +++ b/clients/client-codedeploy/commands/PutLifecycleEventHookExecutionStatusCommand.ts @@ -41,6 +41,7 @@ export class PutLifecycleEventHookExecutionStatusCommand extends $Command< PutLifecycleEventHookExecutionStatusCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class PutLifecycleEventHookExecutionStatusCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/RegisterApplicationRevisionCommand.ts b/clients/client-codedeploy/commands/RegisterApplicationRevisionCommand.ts index 935516a2d1d73..150ade684dc64 100644 --- a/clients/client-codedeploy/commands/RegisterApplicationRevisionCommand.ts +++ b/clients/client-codedeploy/commands/RegisterApplicationRevisionCommand.ts @@ -28,6 +28,7 @@ export class RegisterApplicationRevisionCommand extends $Command< RegisterApplicationRevisionCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterApplicationRevisionCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/RegisterOnPremisesInstanceCommand.ts b/clients/client-codedeploy/commands/RegisterOnPremisesInstanceCommand.ts index bfbd9e3dc7c89..c169817a214d3 100644 --- a/clients/client-codedeploy/commands/RegisterOnPremisesInstanceCommand.ts +++ b/clients/client-codedeploy/commands/RegisterOnPremisesInstanceCommand.ts @@ -32,6 +32,7 @@ export class RegisterOnPremisesInstanceCommand extends $Command< RegisterOnPremisesInstanceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RegisterOnPremisesInstanceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/RemoveTagsFromOnPremisesInstancesCommand.ts b/clients/client-codedeploy/commands/RemoveTagsFromOnPremisesInstancesCommand.ts index 1146102145bce..c53fa96a92886 100644 --- a/clients/client-codedeploy/commands/RemoveTagsFromOnPremisesInstancesCommand.ts +++ b/clients/client-codedeploy/commands/RemoveTagsFromOnPremisesInstancesCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsFromOnPremisesInstancesCommand extends $Command< RemoveTagsFromOnPremisesInstancesCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsFromOnPremisesInstancesCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/SkipWaitTimeForInstanceTerminationCommand.ts b/clients/client-codedeploy/commands/SkipWaitTimeForInstanceTerminationCommand.ts index 17f58648a7f36..f5579ec390a90 100644 --- a/clients/client-codedeploy/commands/SkipWaitTimeForInstanceTerminationCommand.ts +++ b/clients/client-codedeploy/commands/SkipWaitTimeForInstanceTerminationCommand.ts @@ -29,6 +29,7 @@ export class SkipWaitTimeForInstanceTerminationCommand extends $Command< SkipWaitTimeForInstanceTerminationCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SkipWaitTimeForInstanceTerminationCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/StopDeploymentCommand.ts b/clients/client-codedeploy/commands/StopDeploymentCommand.ts index 2dc14ec0252aa..1e20ed26bd440 100644 --- a/clients/client-codedeploy/commands/StopDeploymentCommand.ts +++ b/clients/client-codedeploy/commands/StopDeploymentCommand.ts @@ -28,6 +28,7 @@ export class StopDeploymentCommand extends $Command< StopDeploymentCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopDeploymentCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/TagResourceCommand.ts b/clients/client-codedeploy/commands/TagResourceCommand.ts index 7a4bc5c069c82..681881e020010 100644 --- a/clients/client-codedeploy/commands/TagResourceCommand.ts +++ b/clients/client-codedeploy/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/UntagResourceCommand.ts b/clients/client-codedeploy/commands/UntagResourceCommand.ts index 43a9d1e7c7e2c..d900419789927 100644 --- a/clients/client-codedeploy/commands/UntagResourceCommand.ts +++ b/clients/client-codedeploy/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/UpdateApplicationCommand.ts b/clients/client-codedeploy/commands/UpdateApplicationCommand.ts index ec872f203c95c..eecc59d17404c 100644 --- a/clients/client-codedeploy/commands/UpdateApplicationCommand.ts +++ b/clients/client-codedeploy/commands/UpdateApplicationCommand.ts @@ -28,6 +28,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApplicationCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codedeploy/commands/UpdateDeploymentGroupCommand.ts b/clients/client-codedeploy/commands/UpdateDeploymentGroupCommand.ts index e2757afbcad36..e7d0fdcffd91c 100644 --- a/clients/client-codedeploy/commands/UpdateDeploymentGroupCommand.ts +++ b/clients/client-codedeploy/commands/UpdateDeploymentGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeploymentGroupCommand extends $Command< UpdateDeploymentGroupCommandOutput, CodeDeployClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeploymentGroupCommand extends $Command< configuration: CodeDeployClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/AssociateRepositoryCommand.ts b/clients/client-codeguru-reviewer/commands/AssociateRepositoryCommand.ts index 3ff025acd56eb..828bf4f716158 100644 --- a/clients/client-codeguru-reviewer/commands/AssociateRepositoryCommand.ts +++ b/clients/client-codeguru-reviewer/commands/AssociateRepositoryCommand.ts @@ -52,6 +52,7 @@ export class AssociateRepositoryCommand extends $Command< AssociateRepositoryCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class AssociateRepositoryCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/CreateCodeReviewCommand.ts b/clients/client-codeguru-reviewer/commands/CreateCodeReviewCommand.ts index ed249b1056e27..257f0d4382075 100644 --- a/clients/client-codeguru-reviewer/commands/CreateCodeReviewCommand.ts +++ b/clients/client-codeguru-reviewer/commands/CreateCodeReviewCommand.ts @@ -34,6 +34,7 @@ export class CreateCodeReviewCommand extends $Command< CreateCodeReviewCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateCodeReviewCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/DescribeCodeReviewCommand.ts b/clients/client-codeguru-reviewer/commands/DescribeCodeReviewCommand.ts index 6f33bdd8bd99c..9f95712af5cd9 100644 --- a/clients/client-codeguru-reviewer/commands/DescribeCodeReviewCommand.ts +++ b/clients/client-codeguru-reviewer/commands/DescribeCodeReviewCommand.ts @@ -28,6 +28,7 @@ export class DescribeCodeReviewCommand extends $Command< DescribeCodeReviewCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCodeReviewCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/DescribeRecommendationFeedbackCommand.ts b/clients/client-codeguru-reviewer/commands/DescribeRecommendationFeedbackCommand.ts index 5671e2d9f0b1f..1e72e9a2527f9 100644 --- a/clients/client-codeguru-reviewer/commands/DescribeRecommendationFeedbackCommand.ts +++ b/clients/client-codeguru-reviewer/commands/DescribeRecommendationFeedbackCommand.ts @@ -30,6 +30,7 @@ export class DescribeRecommendationFeedbackCommand extends $Command< DescribeRecommendationFeedbackCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeRecommendationFeedbackCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/DescribeRepositoryAssociationCommand.ts b/clients/client-codeguru-reviewer/commands/DescribeRepositoryAssociationCommand.ts index 9391950692d5b..615e048f1d848 100644 --- a/clients/client-codeguru-reviewer/commands/DescribeRepositoryAssociationCommand.ts +++ b/clients/client-codeguru-reviewer/commands/DescribeRepositoryAssociationCommand.ts @@ -33,6 +33,7 @@ export class DescribeRepositoryAssociationCommand extends $Command< DescribeRepositoryAssociationCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeRepositoryAssociationCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/DisassociateRepositoryCommand.ts b/clients/client-codeguru-reviewer/commands/DisassociateRepositoryCommand.ts index 8c2d969866b91..d0255f501ce6f 100644 --- a/clients/client-codeguru-reviewer/commands/DisassociateRepositoryCommand.ts +++ b/clients/client-codeguru-reviewer/commands/DisassociateRepositoryCommand.ts @@ -28,6 +28,7 @@ export class DisassociateRepositoryCommand extends $Command< DisassociateRepositoryCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateRepositoryCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/ListCodeReviewsCommand.ts b/clients/client-codeguru-reviewer/commands/ListCodeReviewsCommand.ts index ffe80752dbedf..4b0764943caa5 100644 --- a/clients/client-codeguru-reviewer/commands/ListCodeReviewsCommand.ts +++ b/clients/client-codeguru-reviewer/commands/ListCodeReviewsCommand.ts @@ -30,6 +30,7 @@ export class ListCodeReviewsCommand extends $Command< ListCodeReviewsCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListCodeReviewsCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/ListRecommendationFeedbackCommand.ts b/clients/client-codeguru-reviewer/commands/ListRecommendationFeedbackCommand.ts index e908236a92cae..b955757e5eeb7 100644 --- a/clients/client-codeguru-reviewer/commands/ListRecommendationFeedbackCommand.ts +++ b/clients/client-codeguru-reviewer/commands/ListRecommendationFeedbackCommand.ts @@ -34,6 +34,7 @@ export class ListRecommendationFeedbackCommand extends $Command< ListRecommendationFeedbackCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListRecommendationFeedbackCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/ListRecommendationsCommand.ts b/clients/client-codeguru-reviewer/commands/ListRecommendationsCommand.ts index 3623592831717..65a1fac08b12c 100644 --- a/clients/client-codeguru-reviewer/commands/ListRecommendationsCommand.ts +++ b/clients/client-codeguru-reviewer/commands/ListRecommendationsCommand.ts @@ -30,6 +30,7 @@ export class ListRecommendationsCommand extends $Command< ListRecommendationsCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListRecommendationsCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/ListRepositoryAssociationsCommand.ts b/clients/client-codeguru-reviewer/commands/ListRepositoryAssociationsCommand.ts index ed5fcb3aa5a93..04e4b4d01784d 100644 --- a/clients/client-codeguru-reviewer/commands/ListRepositoryAssociationsCommand.ts +++ b/clients/client-codeguru-reviewer/commands/ListRepositoryAssociationsCommand.ts @@ -45,6 +45,7 @@ export class ListRepositoryAssociationsCommand extends $Command< ListRepositoryAssociationsCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class ListRepositoryAssociationsCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/ListTagsForResourceCommand.ts b/clients/client-codeguru-reviewer/commands/ListTagsForResourceCommand.ts index 0c3961b429380..c229c5a451a18 100644 --- a/clients/client-codeguru-reviewer/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codeguru-reviewer/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/PutRecommendationFeedbackCommand.ts b/clients/client-codeguru-reviewer/commands/PutRecommendationFeedbackCommand.ts index 3e4611b1f7aeb..c29813bbe1e26 100644 --- a/clients/client-codeguru-reviewer/commands/PutRecommendationFeedbackCommand.ts +++ b/clients/client-codeguru-reviewer/commands/PutRecommendationFeedbackCommand.ts @@ -30,6 +30,7 @@ export class PutRecommendationFeedbackCommand extends $Command< PutRecommendationFeedbackCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutRecommendationFeedbackCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/TagResourceCommand.ts b/clients/client-codeguru-reviewer/commands/TagResourceCommand.ts index b4fc879f78797..06143f843e5ff 100644 --- a/clients/client-codeguru-reviewer/commands/TagResourceCommand.ts +++ b/clients/client-codeguru-reviewer/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguru-reviewer/commands/UntagResourceCommand.ts b/clients/client-codeguru-reviewer/commands/UntagResourceCommand.ts index 4a1fed9a0aba3..641f5f84b84a8 100644 --- a/clients/client-codeguru-reviewer/commands/UntagResourceCommand.ts +++ b/clients/client-codeguru-reviewer/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodeGuruReviewerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CodeGuruReviewerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/ConfigureAgentCommand.ts b/clients/client-codeguruprofiler/commands/ConfigureAgentCommand.ts index e4f66eb9bce35..e1a6118204b00 100644 --- a/clients/client-codeguruprofiler/commands/ConfigureAgentCommand.ts +++ b/clients/client-codeguruprofiler/commands/ConfigureAgentCommand.ts @@ -28,6 +28,7 @@ export class ConfigureAgentCommand extends $Command< ConfigureAgentCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ConfigureAgentCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/CreateProfilingGroupCommand.ts b/clients/client-codeguruprofiler/commands/CreateProfilingGroupCommand.ts index 96505f2a4c826..bc83261519973 100644 --- a/clients/client-codeguruprofiler/commands/CreateProfilingGroupCommand.ts +++ b/clients/client-codeguruprofiler/commands/CreateProfilingGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateProfilingGroupCommand extends $Command< CreateProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProfilingGroupCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/DeleteProfilingGroupCommand.ts b/clients/client-codeguruprofiler/commands/DeleteProfilingGroupCommand.ts index d3792471c8c2e..4250c89e8d6b8 100644 --- a/clients/client-codeguruprofiler/commands/DeleteProfilingGroupCommand.ts +++ b/clients/client-codeguruprofiler/commands/DeleteProfilingGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteProfilingGroupCommand extends $Command< DeleteProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProfilingGroupCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/DescribeProfilingGroupCommand.ts b/clients/client-codeguruprofiler/commands/DescribeProfilingGroupCommand.ts index a747cd7b19ce9..00556a5ad8178 100644 --- a/clients/client-codeguruprofiler/commands/DescribeProfilingGroupCommand.ts +++ b/clients/client-codeguruprofiler/commands/DescribeProfilingGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeProfilingGroupCommand extends $Command< DescribeProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProfilingGroupCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/GetPolicyCommand.ts b/clients/client-codeguruprofiler/commands/GetPolicyCommand.ts index 7f04046fac561..3991faf66f2be 100644 --- a/clients/client-codeguruprofiler/commands/GetPolicyCommand.ts +++ b/clients/client-codeguruprofiler/commands/GetPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetPolicyCommand extends $Command< GetPolicyCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPolicyCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/GetProfileCommand.ts b/clients/client-codeguruprofiler/commands/GetProfileCommand.ts index 3219a09fcc9fe..371fa3d383fd8 100644 --- a/clients/client-codeguruprofiler/commands/GetProfileCommand.ts +++ b/clients/client-codeguruprofiler/commands/GetProfileCommand.ts @@ -38,6 +38,7 @@ export class GetProfileCommand extends $Command< GetProfileCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetProfileCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/ListProfileTimesCommand.ts b/clients/client-codeguruprofiler/commands/ListProfileTimesCommand.ts index f044996904a57..351c633c2d050 100644 --- a/clients/client-codeguruprofiler/commands/ListProfileTimesCommand.ts +++ b/clients/client-codeguruprofiler/commands/ListProfileTimesCommand.ts @@ -29,6 +29,7 @@ export class ListProfileTimesCommand extends $Command< ListProfileTimesCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListProfileTimesCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/ListProfilingGroupsCommand.ts b/clients/client-codeguruprofiler/commands/ListProfilingGroupsCommand.ts index f661969623258..d5a20e9736daf 100644 --- a/clients/client-codeguruprofiler/commands/ListProfilingGroupsCommand.ts +++ b/clients/client-codeguruprofiler/commands/ListProfilingGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListProfilingGroupsCommand extends $Command< ListProfilingGroupsCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProfilingGroupsCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/PostAgentProfileCommand.ts b/clients/client-codeguruprofiler/commands/PostAgentProfileCommand.ts index d60aecf48234d..20fdb68c14592 100644 --- a/clients/client-codeguruprofiler/commands/PostAgentProfileCommand.ts +++ b/clients/client-codeguruprofiler/commands/PostAgentProfileCommand.ts @@ -28,6 +28,7 @@ export class PostAgentProfileCommand extends $Command< PostAgentProfileCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PostAgentProfileCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/PutPermissionCommand.ts b/clients/client-codeguruprofiler/commands/PutPermissionCommand.ts index 5337c87614f9c..a4d206db7d963 100644 --- a/clients/client-codeguruprofiler/commands/PutPermissionCommand.ts +++ b/clients/client-codeguruprofiler/commands/PutPermissionCommand.ts @@ -29,6 +29,7 @@ export class PutPermissionCommand extends $Command< PutPermissionCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutPermissionCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/RemovePermissionCommand.ts b/clients/client-codeguruprofiler/commands/RemovePermissionCommand.ts index 6ff05f90a79c2..80240ada1c03e 100644 --- a/clients/client-codeguruprofiler/commands/RemovePermissionCommand.ts +++ b/clients/client-codeguruprofiler/commands/RemovePermissionCommand.ts @@ -28,6 +28,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemovePermissionCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/RetrieveTimeSeriesCommand.ts b/clients/client-codeguruprofiler/commands/RetrieveTimeSeriesCommand.ts index b0e39e6b8881e..4a2d047960127 100644 --- a/clients/client-codeguruprofiler/commands/RetrieveTimeSeriesCommand.ts +++ b/clients/client-codeguruprofiler/commands/RetrieveTimeSeriesCommand.ts @@ -25,6 +25,7 @@ export class RetrieveTimeSeriesCommand extends $Command< RetrieveTimeSeriesCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class RetrieveTimeSeriesCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codeguruprofiler/commands/UpdateProfilingGroupCommand.ts b/clients/client-codeguruprofiler/commands/UpdateProfilingGroupCommand.ts index 4180bb5b140d2..645412ab0b904 100644 --- a/clients/client-codeguruprofiler/commands/UpdateProfilingGroupCommand.ts +++ b/clients/client-codeguruprofiler/commands/UpdateProfilingGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateProfilingGroupCommand extends $Command< UpdateProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProfilingGroupCommand extends $Command< configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/AcknowledgeJobCommand.ts b/clients/client-codepipeline/commands/AcknowledgeJobCommand.ts index 79aff5207bbde..902938926025a 100644 --- a/clients/client-codepipeline/commands/AcknowledgeJobCommand.ts +++ b/clients/client-codepipeline/commands/AcknowledgeJobCommand.ts @@ -29,6 +29,7 @@ export class AcknowledgeJobCommand extends $Command< AcknowledgeJobCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AcknowledgeJobCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/AcknowledgeThirdPartyJobCommand.ts b/clients/client-codepipeline/commands/AcknowledgeThirdPartyJobCommand.ts index 64844ce94c80a..533fffd34507d 100644 --- a/clients/client-codepipeline/commands/AcknowledgeThirdPartyJobCommand.ts +++ b/clients/client-codepipeline/commands/AcknowledgeThirdPartyJobCommand.ts @@ -29,6 +29,7 @@ export class AcknowledgeThirdPartyJobCommand extends $Command< AcknowledgeThirdPartyJobCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AcknowledgeThirdPartyJobCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/CreateCustomActionTypeCommand.ts b/clients/client-codepipeline/commands/CreateCustomActionTypeCommand.ts index bc36584fd1fd0..120d54bbca7dd 100644 --- a/clients/client-codepipeline/commands/CreateCustomActionTypeCommand.ts +++ b/clients/client-codepipeline/commands/CreateCustomActionTypeCommand.ts @@ -29,6 +29,7 @@ export class CreateCustomActionTypeCommand extends $Command< CreateCustomActionTypeCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateCustomActionTypeCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/CreatePipelineCommand.ts b/clients/client-codepipeline/commands/CreatePipelineCommand.ts index 8f4c68fbf71a8..16493bea7fc11 100644 --- a/clients/client-codepipeline/commands/CreatePipelineCommand.ts +++ b/clients/client-codepipeline/commands/CreatePipelineCommand.ts @@ -34,6 +34,7 @@ export class CreatePipelineCommand extends $Command< CreatePipelineCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreatePipelineCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/DeleteCustomActionTypeCommand.ts b/clients/client-codepipeline/commands/DeleteCustomActionTypeCommand.ts index 42fc7d4a9f9e8..ece76e9585712 100644 --- a/clients/client-codepipeline/commands/DeleteCustomActionTypeCommand.ts +++ b/clients/client-codepipeline/commands/DeleteCustomActionTypeCommand.ts @@ -36,6 +36,7 @@ export class DeleteCustomActionTypeCommand extends $Command< DeleteCustomActionTypeCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteCustomActionTypeCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/DeletePipelineCommand.ts b/clients/client-codepipeline/commands/DeletePipelineCommand.ts index 939aa2923c7cb..915e219cbf798 100644 --- a/clients/client-codepipeline/commands/DeletePipelineCommand.ts +++ b/clients/client-codepipeline/commands/DeletePipelineCommand.ts @@ -28,6 +28,7 @@ export class DeletePipelineCommand extends $Command< DeletePipelineCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePipelineCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/DeleteWebhookCommand.ts b/clients/client-codepipeline/commands/DeleteWebhookCommand.ts index e8f3495351ed5..5c5603313dc01 100644 --- a/clients/client-codepipeline/commands/DeleteWebhookCommand.ts +++ b/clients/client-codepipeline/commands/DeleteWebhookCommand.ts @@ -32,6 +32,7 @@ export class DeleteWebhookCommand extends $Command< DeleteWebhookCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteWebhookCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/DeregisterWebhookWithThirdPartyCommand.ts b/clients/client-codepipeline/commands/DeregisterWebhookWithThirdPartyCommand.ts index c8643aa70d070..93a1507718b5f 100644 --- a/clients/client-codepipeline/commands/DeregisterWebhookWithThirdPartyCommand.ts +++ b/clients/client-codepipeline/commands/DeregisterWebhookWithThirdPartyCommand.ts @@ -30,6 +30,7 @@ export class DeregisterWebhookWithThirdPartyCommand extends $Command< DeregisterWebhookWithThirdPartyCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeregisterWebhookWithThirdPartyCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/DisableStageTransitionCommand.ts b/clients/client-codepipeline/commands/DisableStageTransitionCommand.ts index 4df4daeffe0d1..1a25d76dc1902 100644 --- a/clients/client-codepipeline/commands/DisableStageTransitionCommand.ts +++ b/clients/client-codepipeline/commands/DisableStageTransitionCommand.ts @@ -29,6 +29,7 @@ export class DisableStageTransitionCommand extends $Command< DisableStageTransitionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableStageTransitionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/EnableStageTransitionCommand.ts b/clients/client-codepipeline/commands/EnableStageTransitionCommand.ts index fc8082c035f0e..ba7f25e95c176 100644 --- a/clients/client-codepipeline/commands/EnableStageTransitionCommand.ts +++ b/clients/client-codepipeline/commands/EnableStageTransitionCommand.ts @@ -28,6 +28,7 @@ export class EnableStageTransitionCommand extends $Command< EnableStageTransitionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableStageTransitionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/GetJobDetailsCommand.ts b/clients/client-codepipeline/commands/GetJobDetailsCommand.ts index 4d77fb6040402..994ad4378a0f1 100644 --- a/clients/client-codepipeline/commands/GetJobDetailsCommand.ts +++ b/clients/client-codepipeline/commands/GetJobDetailsCommand.ts @@ -34,6 +34,7 @@ export class GetJobDetailsCommand extends $Command< GetJobDetailsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetJobDetailsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/GetPipelineCommand.ts b/clients/client-codepipeline/commands/GetPipelineCommand.ts index 5072227ee1719..096b268d59d0a 100644 --- a/clients/client-codepipeline/commands/GetPipelineCommand.ts +++ b/clients/client-codepipeline/commands/GetPipelineCommand.ts @@ -30,6 +30,7 @@ export class GetPipelineCommand extends $Command< GetPipelineCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetPipelineCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/GetPipelineExecutionCommand.ts b/clients/client-codepipeline/commands/GetPipelineExecutionCommand.ts index 3570bf0d14b14..a2acbd9d294a1 100644 --- a/clients/client-codepipeline/commands/GetPipelineExecutionCommand.ts +++ b/clients/client-codepipeline/commands/GetPipelineExecutionCommand.ts @@ -30,6 +30,7 @@ export class GetPipelineExecutionCommand extends $Command< GetPipelineExecutionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetPipelineExecutionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/GetPipelineStateCommand.ts b/clients/client-codepipeline/commands/GetPipelineStateCommand.ts index b167a5a77cd02..e03cb4ef807e1 100644 --- a/clients/client-codepipeline/commands/GetPipelineStateCommand.ts +++ b/clients/client-codepipeline/commands/GetPipelineStateCommand.ts @@ -34,6 +34,7 @@ export class GetPipelineStateCommand extends $Command< GetPipelineStateCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetPipelineStateCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/GetThirdPartyJobDetailsCommand.ts b/clients/client-codepipeline/commands/GetThirdPartyJobDetailsCommand.ts index 6a8a4789c22d9..d78d6857b5390 100644 --- a/clients/client-codepipeline/commands/GetThirdPartyJobDetailsCommand.ts +++ b/clients/client-codepipeline/commands/GetThirdPartyJobDetailsCommand.ts @@ -35,6 +35,7 @@ export class GetThirdPartyJobDetailsCommand extends $Command< GetThirdPartyJobDetailsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetThirdPartyJobDetailsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListActionExecutionsCommand.ts b/clients/client-codepipeline/commands/ListActionExecutionsCommand.ts index 331d444543308..c76f6d3b03eec 100644 --- a/clients/client-codepipeline/commands/ListActionExecutionsCommand.ts +++ b/clients/client-codepipeline/commands/ListActionExecutionsCommand.ts @@ -28,6 +28,7 @@ export class ListActionExecutionsCommand extends $Command< ListActionExecutionsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListActionExecutionsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListActionTypesCommand.ts b/clients/client-codepipeline/commands/ListActionTypesCommand.ts index 43a9e52ae1018..a557b597dff2a 100644 --- a/clients/client-codepipeline/commands/ListActionTypesCommand.ts +++ b/clients/client-codepipeline/commands/ListActionTypesCommand.ts @@ -29,6 +29,7 @@ export class ListActionTypesCommand extends $Command< ListActionTypesCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListActionTypesCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListPipelineExecutionsCommand.ts b/clients/client-codepipeline/commands/ListPipelineExecutionsCommand.ts index 35817d24e0181..4db5dd1a36b16 100644 --- a/clients/client-codepipeline/commands/ListPipelineExecutionsCommand.ts +++ b/clients/client-codepipeline/commands/ListPipelineExecutionsCommand.ts @@ -28,6 +28,7 @@ export class ListPipelineExecutionsCommand extends $Command< ListPipelineExecutionsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelineExecutionsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListPipelinesCommand.ts b/clients/client-codepipeline/commands/ListPipelinesCommand.ts index 3eb2c218ac426..dddc37c432cc9 100644 --- a/clients/client-codepipeline/commands/ListPipelinesCommand.ts +++ b/clients/client-codepipeline/commands/ListPipelinesCommand.ts @@ -28,6 +28,7 @@ export class ListPipelinesCommand extends $Command< ListPipelinesCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelinesCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListTagsForResourceCommand.ts b/clients/client-codepipeline/commands/ListTagsForResourceCommand.ts index f68a49d7edd6a..e6d18ec954f8a 100644 --- a/clients/client-codepipeline/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codepipeline/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/ListWebhooksCommand.ts b/clients/client-codepipeline/commands/ListWebhooksCommand.ts index 86291b3ef8916..0618b079c288c 100644 --- a/clients/client-codepipeline/commands/ListWebhooksCommand.ts +++ b/clients/client-codepipeline/commands/ListWebhooksCommand.ts @@ -30,6 +30,7 @@ export class ListWebhooksCommand extends $Command< ListWebhooksCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListWebhooksCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PollForJobsCommand.ts b/clients/client-codepipeline/commands/PollForJobsCommand.ts index c33488ac7af18..6d2f532104fb5 100644 --- a/clients/client-codepipeline/commands/PollForJobsCommand.ts +++ b/clients/client-codepipeline/commands/PollForJobsCommand.ts @@ -37,6 +37,7 @@ export class PollForJobsCommand extends $Command< PollForJobsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PollForJobsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PollForThirdPartyJobsCommand.ts b/clients/client-codepipeline/commands/PollForThirdPartyJobsCommand.ts index 73dd1c1ad44c4..6de6434711ade 100644 --- a/clients/client-codepipeline/commands/PollForThirdPartyJobsCommand.ts +++ b/clients/client-codepipeline/commands/PollForThirdPartyJobsCommand.ts @@ -34,6 +34,7 @@ export class PollForThirdPartyJobsCommand extends $Command< PollForThirdPartyJobsCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PollForThirdPartyJobsCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutActionRevisionCommand.ts b/clients/client-codepipeline/commands/PutActionRevisionCommand.ts index 2d428088e91a1..d866c4337348e 100644 --- a/clients/client-codepipeline/commands/PutActionRevisionCommand.ts +++ b/clients/client-codepipeline/commands/PutActionRevisionCommand.ts @@ -28,6 +28,7 @@ export class PutActionRevisionCommand extends $Command< PutActionRevisionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutActionRevisionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutApprovalResultCommand.ts b/clients/client-codepipeline/commands/PutApprovalResultCommand.ts index 5a4f933440b6d..7fbcd51e6d8f6 100644 --- a/clients/client-codepipeline/commands/PutApprovalResultCommand.ts +++ b/clients/client-codepipeline/commands/PutApprovalResultCommand.ts @@ -29,6 +29,7 @@ export class PutApprovalResultCommand extends $Command< PutApprovalResultCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutApprovalResultCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutJobFailureResultCommand.ts b/clients/client-codepipeline/commands/PutJobFailureResultCommand.ts index 75bfcd5703b15..7170fbf9aee21 100644 --- a/clients/client-codepipeline/commands/PutJobFailureResultCommand.ts +++ b/clients/client-codepipeline/commands/PutJobFailureResultCommand.ts @@ -29,6 +29,7 @@ export class PutJobFailureResultCommand extends $Command< PutJobFailureResultCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutJobFailureResultCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutJobSuccessResultCommand.ts b/clients/client-codepipeline/commands/PutJobSuccessResultCommand.ts index 5b7a8396217ab..8f6a398e33f95 100644 --- a/clients/client-codepipeline/commands/PutJobSuccessResultCommand.ts +++ b/clients/client-codepipeline/commands/PutJobSuccessResultCommand.ts @@ -29,6 +29,7 @@ export class PutJobSuccessResultCommand extends $Command< PutJobSuccessResultCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutJobSuccessResultCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutThirdPartyJobFailureResultCommand.ts b/clients/client-codepipeline/commands/PutThirdPartyJobFailureResultCommand.ts index 11d13cdc6123c..96776bc2b89f9 100644 --- a/clients/client-codepipeline/commands/PutThirdPartyJobFailureResultCommand.ts +++ b/clients/client-codepipeline/commands/PutThirdPartyJobFailureResultCommand.ts @@ -29,6 +29,7 @@ export class PutThirdPartyJobFailureResultCommand extends $Command< PutThirdPartyJobFailureResultCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutThirdPartyJobFailureResultCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutThirdPartyJobSuccessResultCommand.ts b/clients/client-codepipeline/commands/PutThirdPartyJobSuccessResultCommand.ts index 67a0beacb38cf..b9771c62fcc3c 100644 --- a/clients/client-codepipeline/commands/PutThirdPartyJobSuccessResultCommand.ts +++ b/clients/client-codepipeline/commands/PutThirdPartyJobSuccessResultCommand.ts @@ -29,6 +29,7 @@ export class PutThirdPartyJobSuccessResultCommand extends $Command< PutThirdPartyJobSuccessResultCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutThirdPartyJobSuccessResultCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/PutWebhookCommand.ts b/clients/client-codepipeline/commands/PutWebhookCommand.ts index 1fdb56499277d..7ff02e3d7da4b 100644 --- a/clients/client-codepipeline/commands/PutWebhookCommand.ts +++ b/clients/client-codepipeline/commands/PutWebhookCommand.ts @@ -34,6 +34,7 @@ export class PutWebhookCommand extends $Command< PutWebhookCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutWebhookCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/RegisterWebhookWithThirdPartyCommand.ts b/clients/client-codepipeline/commands/RegisterWebhookWithThirdPartyCommand.ts index b986c89357bde..d9f75259cee24 100644 --- a/clients/client-codepipeline/commands/RegisterWebhookWithThirdPartyCommand.ts +++ b/clients/client-codepipeline/commands/RegisterWebhookWithThirdPartyCommand.ts @@ -29,6 +29,7 @@ export class RegisterWebhookWithThirdPartyCommand extends $Command< RegisterWebhookWithThirdPartyCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RegisterWebhookWithThirdPartyCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/RetryStageExecutionCommand.ts b/clients/client-codepipeline/commands/RetryStageExecutionCommand.ts index 5586b963427fb..04959cfe6238c 100644 --- a/clients/client-codepipeline/commands/RetryStageExecutionCommand.ts +++ b/clients/client-codepipeline/commands/RetryStageExecutionCommand.ts @@ -31,6 +31,7 @@ export class RetryStageExecutionCommand extends $Command< RetryStageExecutionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RetryStageExecutionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/StartPipelineExecutionCommand.ts b/clients/client-codepipeline/commands/StartPipelineExecutionCommand.ts index ae39e45b363b7..b76c8d742a739 100644 --- a/clients/client-codepipeline/commands/StartPipelineExecutionCommand.ts +++ b/clients/client-codepipeline/commands/StartPipelineExecutionCommand.ts @@ -29,6 +29,7 @@ export class StartPipelineExecutionCommand extends $Command< StartPipelineExecutionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartPipelineExecutionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/StopPipelineExecutionCommand.ts b/clients/client-codepipeline/commands/StopPipelineExecutionCommand.ts index 8752cd963a882..d98d4a4e8a50e 100644 --- a/clients/client-codepipeline/commands/StopPipelineExecutionCommand.ts +++ b/clients/client-codepipeline/commands/StopPipelineExecutionCommand.ts @@ -33,6 +33,7 @@ export class StopPipelineExecutionCommand extends $Command< StopPipelineExecutionCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopPipelineExecutionCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/TagResourceCommand.ts b/clients/client-codepipeline/commands/TagResourceCommand.ts index 95f8ceecdd4eb..ce233aa5cff29 100644 --- a/clients/client-codepipeline/commands/TagResourceCommand.ts +++ b/clients/client-codepipeline/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/UntagResourceCommand.ts b/clients/client-codepipeline/commands/UntagResourceCommand.ts index 8ed6973da3eb9..5e342b0c4f442 100644 --- a/clients/client-codepipeline/commands/UntagResourceCommand.ts +++ b/clients/client-codepipeline/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codepipeline/commands/UpdatePipelineCommand.ts b/clients/client-codepipeline/commands/UpdatePipelineCommand.ts index af68c16fc7a29..e62897cc2692a 100644 --- a/clients/client-codepipeline/commands/UpdatePipelineCommand.ts +++ b/clients/client-codepipeline/commands/UpdatePipelineCommand.ts @@ -31,6 +31,7 @@ export class UpdatePipelineCommand extends $Command< UpdatePipelineCommandOutput, CodePipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdatePipelineCommand extends $Command< configuration: CodePipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/CreateConnectionCommand.ts b/clients/client-codestar-connections/commands/CreateConnectionCommand.ts index c730e12ae3fe2..f098b4f0b0668 100644 --- a/clients/client-codestar-connections/commands/CreateConnectionCommand.ts +++ b/clients/client-codestar-connections/commands/CreateConnectionCommand.ts @@ -34,6 +34,7 @@ export class CreateConnectionCommand extends $Command< CreateConnectionCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateConnectionCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/CreateHostCommand.ts b/clients/client-codestar-connections/commands/CreateHostCommand.ts index ce740096ce9ff..17204e9867319 100644 --- a/clients/client-codestar-connections/commands/CreateHostCommand.ts +++ b/clients/client-codestar-connections/commands/CreateHostCommand.ts @@ -39,6 +39,7 @@ export class CreateHostCommand extends $Command< CreateHostCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateHostCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/DeleteConnectionCommand.ts b/clients/client-codestar-connections/commands/DeleteConnectionCommand.ts index 23e8226cb5258..13928c76efb0c 100644 --- a/clients/client-codestar-connections/commands/DeleteConnectionCommand.ts +++ b/clients/client-codestar-connections/commands/DeleteConnectionCommand.ts @@ -32,6 +32,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteConnectionCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/DeleteHostCommand.ts b/clients/client-codestar-connections/commands/DeleteHostCommand.ts index f2d863867c491..3dd734f3754af 100644 --- a/clients/client-codestar-connections/commands/DeleteHostCommand.ts +++ b/clients/client-codestar-connections/commands/DeleteHostCommand.ts @@ -35,6 +35,7 @@ export class DeleteHostCommand extends $Command< DeleteHostCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteHostCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/GetConnectionCommand.ts b/clients/client-codestar-connections/commands/GetConnectionCommand.ts index 20995d0a2c69f..406ed091d7022 100644 --- a/clients/client-codestar-connections/commands/GetConnectionCommand.ts +++ b/clients/client-codestar-connections/commands/GetConnectionCommand.ts @@ -32,6 +32,7 @@ export class GetConnectionCommand extends $Command< GetConnectionCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetConnectionCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/GetHostCommand.ts b/clients/client-codestar-connections/commands/GetHostCommand.ts index 845a848351f29..2b0d224686bf9 100644 --- a/clients/client-codestar-connections/commands/GetHostCommand.ts +++ b/clients/client-codestar-connections/commands/GetHostCommand.ts @@ -30,6 +30,7 @@ export class GetHostCommand extends $Command< GetHostCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetHostCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/ListConnectionsCommand.ts b/clients/client-codestar-connections/commands/ListConnectionsCommand.ts index 42e4370f32f16..ad135e35aeba8 100644 --- a/clients/client-codestar-connections/commands/ListConnectionsCommand.ts +++ b/clients/client-codestar-connections/commands/ListConnectionsCommand.ts @@ -32,6 +32,7 @@ export class ListConnectionsCommand extends $Command< ListConnectionsCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListConnectionsCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/ListHostsCommand.ts b/clients/client-codestar-connections/commands/ListHostsCommand.ts index 9a8bcf8ff8057..f5e3150125b1c 100644 --- a/clients/client-codestar-connections/commands/ListHostsCommand.ts +++ b/clients/client-codestar-connections/commands/ListHostsCommand.ts @@ -29,6 +29,7 @@ export class ListHostsCommand extends $Command< ListHostsCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListHostsCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/ListTagsForResourceCommand.ts b/clients/client-codestar-connections/commands/ListTagsForResourceCommand.ts index 32d5bbf3ac11a..ed8bf469cbed1 100644 --- a/clients/client-codestar-connections/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codestar-connections/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/TagResourceCommand.ts b/clients/client-codestar-connections/commands/TagResourceCommand.ts index 113c3a1ff5074..fcfde60f1974a 100644 --- a/clients/client-codestar-connections/commands/TagResourceCommand.ts +++ b/clients/client-codestar-connections/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/UntagResourceCommand.ts b/clients/client-codestar-connections/commands/UntagResourceCommand.ts index cac524b790d93..2ce2acbe26f22 100644 --- a/clients/client-codestar-connections/commands/UntagResourceCommand.ts +++ b/clients/client-codestar-connections/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-connections/commands/UpdateHostCommand.ts b/clients/client-codestar-connections/commands/UpdateHostCommand.ts index e6a41b6ac7290..9e51af55a6a8b 100644 --- a/clients/client-codestar-connections/commands/UpdateHostCommand.ts +++ b/clients/client-codestar-connections/commands/UpdateHostCommand.ts @@ -32,6 +32,7 @@ export class UpdateHostCommand extends $Command< UpdateHostCommandOutput, CodeStarConnectionsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateHostCommand extends $Command< configuration: CodeStarConnectionsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/CreateNotificationRuleCommand.ts b/clients/client-codestar-notifications/commands/CreateNotificationRuleCommand.ts index 6cc31f332938a..70a84c923ba58 100644 --- a/clients/client-codestar-notifications/commands/CreateNotificationRuleCommand.ts +++ b/clients/client-codestar-notifications/commands/CreateNotificationRuleCommand.ts @@ -34,6 +34,7 @@ export class CreateNotificationRuleCommand extends $Command< CreateNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateNotificationRuleCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/DeleteNotificationRuleCommand.ts b/clients/client-codestar-notifications/commands/DeleteNotificationRuleCommand.ts index e72f6b1310cfe..ea155062c5b66 100644 --- a/clients/client-codestar-notifications/commands/DeleteNotificationRuleCommand.ts +++ b/clients/client-codestar-notifications/commands/DeleteNotificationRuleCommand.ts @@ -32,6 +32,7 @@ export class DeleteNotificationRuleCommand extends $Command< DeleteNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteNotificationRuleCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/DeleteTargetCommand.ts b/clients/client-codestar-notifications/commands/DeleteTargetCommand.ts index d9ec9851cae4e..88afc0139c020 100644 --- a/clients/client-codestar-notifications/commands/DeleteTargetCommand.ts +++ b/clients/client-codestar-notifications/commands/DeleteTargetCommand.ts @@ -32,6 +32,7 @@ export class DeleteTargetCommand extends $Command< DeleteTargetCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteTargetCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/DescribeNotificationRuleCommand.ts b/clients/client-codestar-notifications/commands/DescribeNotificationRuleCommand.ts index 294deff67dc46..f094fdbdab8b9 100644 --- a/clients/client-codestar-notifications/commands/DescribeNotificationRuleCommand.ts +++ b/clients/client-codestar-notifications/commands/DescribeNotificationRuleCommand.ts @@ -32,6 +32,7 @@ export class DescribeNotificationRuleCommand extends $Command< DescribeNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeNotificationRuleCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/ListEventTypesCommand.ts b/clients/client-codestar-notifications/commands/ListEventTypesCommand.ts index be897732b0fae..f7edd077db7d8 100644 --- a/clients/client-codestar-notifications/commands/ListEventTypesCommand.ts +++ b/clients/client-codestar-notifications/commands/ListEventTypesCommand.ts @@ -32,6 +32,7 @@ export class ListEventTypesCommand extends $Command< ListEventTypesCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListEventTypesCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/ListNotificationRulesCommand.ts b/clients/client-codestar-notifications/commands/ListNotificationRulesCommand.ts index 480821cf8300b..ad540bc2203a4 100644 --- a/clients/client-codestar-notifications/commands/ListNotificationRulesCommand.ts +++ b/clients/client-codestar-notifications/commands/ListNotificationRulesCommand.ts @@ -32,6 +32,7 @@ export class ListNotificationRulesCommand extends $Command< ListNotificationRulesCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListNotificationRulesCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/ListTagsForResourceCommand.ts b/clients/client-codestar-notifications/commands/ListTagsForResourceCommand.ts index 4ea1a8235ee91..cc337e4c4cfd4 100644 --- a/clients/client-codestar-notifications/commands/ListTagsForResourceCommand.ts +++ b/clients/client-codestar-notifications/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/ListTargetsCommand.ts b/clients/client-codestar-notifications/commands/ListTargetsCommand.ts index e67eb4f0f81b9..03c1d0f62d395 100644 --- a/clients/client-codestar-notifications/commands/ListTargetsCommand.ts +++ b/clients/client-codestar-notifications/commands/ListTargetsCommand.ts @@ -32,6 +32,7 @@ export class ListTargetsCommand extends $Command< ListTargetsCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTargetsCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/SubscribeCommand.ts b/clients/client-codestar-notifications/commands/SubscribeCommand.ts index 9e0750dc7e514..a90ee624ba573 100644 --- a/clients/client-codestar-notifications/commands/SubscribeCommand.ts +++ b/clients/client-codestar-notifications/commands/SubscribeCommand.ts @@ -34,6 +34,7 @@ export class SubscribeCommand extends $Command< SubscribeCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SubscribeCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/TagResourceCommand.ts b/clients/client-codestar-notifications/commands/TagResourceCommand.ts index 537c4a403feff..a90ad1fbcaac0 100644 --- a/clients/client-codestar-notifications/commands/TagResourceCommand.ts +++ b/clients/client-codestar-notifications/commands/TagResourceCommand.ts @@ -32,6 +32,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TagResourceCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/UnsubscribeCommand.ts b/clients/client-codestar-notifications/commands/UnsubscribeCommand.ts index c9451ebb64692..043fdd4fdda70 100644 --- a/clients/client-codestar-notifications/commands/UnsubscribeCommand.ts +++ b/clients/client-codestar-notifications/commands/UnsubscribeCommand.ts @@ -34,6 +34,7 @@ export class UnsubscribeCommand extends $Command< UnsubscribeCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UnsubscribeCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/UntagResourceCommand.ts b/clients/client-codestar-notifications/commands/UntagResourceCommand.ts index 20ccdfc99401e..5f4d27e509cf3 100644 --- a/clients/client-codestar-notifications/commands/UntagResourceCommand.ts +++ b/clients/client-codestar-notifications/commands/UntagResourceCommand.ts @@ -33,6 +33,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UntagResourceCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar-notifications/commands/UpdateNotificationRuleCommand.ts b/clients/client-codestar-notifications/commands/UpdateNotificationRuleCommand.ts index 46c57fd50da75..93457dda19fcb 100644 --- a/clients/client-codestar-notifications/commands/UpdateNotificationRuleCommand.ts +++ b/clients/client-codestar-notifications/commands/UpdateNotificationRuleCommand.ts @@ -37,6 +37,7 @@ export class UpdateNotificationRuleCommand extends $Command< UpdateNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateNotificationRuleCommand extends $Command< configuration: CodestarNotificationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/AssociateTeamMemberCommand.ts b/clients/client-codestar/commands/AssociateTeamMemberCommand.ts index e6e952bffebd9..d31ad3aedec3e 100644 --- a/clients/client-codestar/commands/AssociateTeamMemberCommand.ts +++ b/clients/client-codestar/commands/AssociateTeamMemberCommand.ts @@ -28,6 +28,7 @@ export class AssociateTeamMemberCommand extends $Command< AssociateTeamMemberCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateTeamMemberCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/CreateProjectCommand.ts b/clients/client-codestar/commands/CreateProjectCommand.ts index 0a040ea055461..79e407b8c02a2 100644 --- a/clients/client-codestar/commands/CreateProjectCommand.ts +++ b/clients/client-codestar/commands/CreateProjectCommand.ts @@ -30,6 +30,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/CreateUserProfileCommand.ts b/clients/client-codestar/commands/CreateUserProfileCommand.ts index 394a551d7f489..86c809c32939a 100644 --- a/clients/client-codestar/commands/CreateUserProfileCommand.ts +++ b/clients/client-codestar/commands/CreateUserProfileCommand.ts @@ -31,6 +31,7 @@ export class CreateUserProfileCommand extends $Command< CreateUserProfileCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateUserProfileCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/DeleteProjectCommand.ts b/clients/client-codestar/commands/DeleteProjectCommand.ts index 0beb30c19b69c..71cee56f5d0bd 100644 --- a/clients/client-codestar/commands/DeleteProjectCommand.ts +++ b/clients/client-codestar/commands/DeleteProjectCommand.ts @@ -29,6 +29,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/DeleteUserProfileCommand.ts b/clients/client-codestar/commands/DeleteUserProfileCommand.ts index c60a3b96c9d3d..89b351bb9ab1a 100644 --- a/clients/client-codestar/commands/DeleteUserProfileCommand.ts +++ b/clients/client-codestar/commands/DeleteUserProfileCommand.ts @@ -30,6 +30,7 @@ export class DeleteUserProfileCommand extends $Command< DeleteUserProfileCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteUserProfileCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/DescribeProjectCommand.ts b/clients/client-codestar/commands/DescribeProjectCommand.ts index aad60c29084e7..493425f7eb406 100644 --- a/clients/client-codestar/commands/DescribeProjectCommand.ts +++ b/clients/client-codestar/commands/DescribeProjectCommand.ts @@ -28,6 +28,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/DescribeUserProfileCommand.ts b/clients/client-codestar/commands/DescribeUserProfileCommand.ts index 6760f0c178585..12a287ee3c725 100644 --- a/clients/client-codestar/commands/DescribeUserProfileCommand.ts +++ b/clients/client-codestar/commands/DescribeUserProfileCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserProfileCommand extends $Command< DescribeUserProfileCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserProfileCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/DisassociateTeamMemberCommand.ts b/clients/client-codestar/commands/DisassociateTeamMemberCommand.ts index d8400e7d7003d..6307ceed98406 100644 --- a/clients/client-codestar/commands/DisassociateTeamMemberCommand.ts +++ b/clients/client-codestar/commands/DisassociateTeamMemberCommand.ts @@ -31,6 +31,7 @@ export class DisassociateTeamMemberCommand extends $Command< DisassociateTeamMemberCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DisassociateTeamMemberCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/ListProjectsCommand.ts b/clients/client-codestar/commands/ListProjectsCommand.ts index daaa85b01d248..36a320d37fc32 100644 --- a/clients/client-codestar/commands/ListProjectsCommand.ts +++ b/clients/client-codestar/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/ListResourcesCommand.ts b/clients/client-codestar/commands/ListResourcesCommand.ts index 92ba3b4f5ac64..c8e74eec7664c 100644 --- a/clients/client-codestar/commands/ListResourcesCommand.ts +++ b/clients/client-codestar/commands/ListResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesCommand extends $Command< ListResourcesCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/ListTagsForProjectCommand.ts b/clients/client-codestar/commands/ListTagsForProjectCommand.ts index 3eeeda09b7bf9..e04f46a9223e9 100644 --- a/clients/client-codestar/commands/ListTagsForProjectCommand.ts +++ b/clients/client-codestar/commands/ListTagsForProjectCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForProjectCommand extends $Command< ListTagsForProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/ListTeamMembersCommand.ts b/clients/client-codestar/commands/ListTeamMembersCommand.ts index 0453b06bedd1c..b60d1f9595a31 100644 --- a/clients/client-codestar/commands/ListTeamMembersCommand.ts +++ b/clients/client-codestar/commands/ListTeamMembersCommand.ts @@ -28,6 +28,7 @@ export class ListTeamMembersCommand extends $Command< ListTeamMembersCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTeamMembersCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/ListUserProfilesCommand.ts b/clients/client-codestar/commands/ListUserProfilesCommand.ts index 366b3ed6fa69e..dc1e0aa589fe1 100644 --- a/clients/client-codestar/commands/ListUserProfilesCommand.ts +++ b/clients/client-codestar/commands/ListUserProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListUserProfilesCommand extends $Command< ListUserProfilesCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUserProfilesCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/TagProjectCommand.ts b/clients/client-codestar/commands/TagProjectCommand.ts index 0429ea018b5e6..c11c0f84deb33 100644 --- a/clients/client-codestar/commands/TagProjectCommand.ts +++ b/clients/client-codestar/commands/TagProjectCommand.ts @@ -28,6 +28,7 @@ export class TagProjectCommand extends $Command< TagProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/UntagProjectCommand.ts b/clients/client-codestar/commands/UntagProjectCommand.ts index ee0f0607923f7..1f6cb0cfe25b1 100644 --- a/clients/client-codestar/commands/UntagProjectCommand.ts +++ b/clients/client-codestar/commands/UntagProjectCommand.ts @@ -28,6 +28,7 @@ export class UntagProjectCommand extends $Command< UntagProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/UpdateProjectCommand.ts b/clients/client-codestar/commands/UpdateProjectCommand.ts index b0aded940da0d..c3b4e86f3b869 100644 --- a/clients/client-codestar/commands/UpdateProjectCommand.ts +++ b/clients/client-codestar/commands/UpdateProjectCommand.ts @@ -28,6 +28,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProjectCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/UpdateTeamMemberCommand.ts b/clients/client-codestar/commands/UpdateTeamMemberCommand.ts index e180857d2e829..5af6745bf7e78 100644 --- a/clients/client-codestar/commands/UpdateTeamMemberCommand.ts +++ b/clients/client-codestar/commands/UpdateTeamMemberCommand.ts @@ -30,6 +30,7 @@ export class UpdateTeamMemberCommand extends $Command< UpdateTeamMemberCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateTeamMemberCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-codestar/commands/UpdateUserProfileCommand.ts b/clients/client-codestar/commands/UpdateUserProfileCommand.ts index 47f8cc5c04aba..4535a853ee6af 100644 --- a/clients/client-codestar/commands/UpdateUserProfileCommand.ts +++ b/clients/client-codestar/commands/UpdateUserProfileCommand.ts @@ -30,6 +30,7 @@ export class UpdateUserProfileCommand extends $Command< UpdateUserProfileCommandOutput, CodeStarClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateUserProfileCommand extends $Command< configuration: CodeStarClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AddCustomAttributesCommand.ts b/clients/client-cognito-identity-provider/commands/AddCustomAttributesCommand.ts index af59d2c4dbe71..00cff2e3aaa21 100644 --- a/clients/client-cognito-identity-provider/commands/AddCustomAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AddCustomAttributesCommand.ts @@ -33,6 +33,7 @@ export class AddCustomAttributesCommand extends $Command< AddCustomAttributesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class AddCustomAttributesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminAddUserToGroupCommand.ts b/clients/client-cognito-identity-provider/commands/AdminAddUserToGroupCommand.ts index 105434439bbba..198e4bdb51be7 100644 --- a/clients/client-cognito-identity-provider/commands/AdminAddUserToGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminAddUserToGroupCommand.ts @@ -34,6 +34,7 @@ export class AdminAddUserToGroupCommand extends $Command< AdminAddUserToGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminAddUserToGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminConfirmSignUpCommand.ts b/clients/client-cognito-identity-provider/commands/AdminConfirmSignUpCommand.ts index 0554e16428bfa..fbd1f4ede7eb7 100644 --- a/clients/client-cognito-identity-provider/commands/AdminConfirmSignUpCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminConfirmSignUpCommand.ts @@ -35,6 +35,7 @@ export class AdminConfirmSignUpCommand extends $Command< AdminConfirmSignUpCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class AdminConfirmSignUpCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminCreateUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminCreateUserCommand.ts index 89b3121267368..1895dbbaaacfb 100644 --- a/clients/client-cognito-identity-provider/commands/AdminCreateUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminCreateUserCommand.ts @@ -44,6 +44,7 @@ export class AdminCreateUserCommand extends $Command< AdminCreateUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class AdminCreateUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminDeleteUserAttributesCommand.ts b/clients/client-cognito-identity-provider/commands/AdminDeleteUserAttributesCommand.ts index 093d2db1ce29a..42652aad50ea3 100644 --- a/clients/client-cognito-identity-provider/commands/AdminDeleteUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminDeleteUserAttributesCommand.ts @@ -35,6 +35,7 @@ export class AdminDeleteUserAttributesCommand extends $Command< AdminDeleteUserAttributesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class AdminDeleteUserAttributesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminDeleteUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminDeleteUserCommand.ts index f7244c91789ee..9959129940263 100644 --- a/clients/client-cognito-identity-provider/commands/AdminDeleteUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminDeleteUserCommand.ts @@ -34,6 +34,7 @@ export class AdminDeleteUserCommand extends $Command< AdminDeleteUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminDeleteUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminDisableProviderForUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminDisableProviderForUserCommand.ts index 427318c046c18..41246ee252a84 100644 --- a/clients/client-cognito-identity-provider/commands/AdminDisableProviderForUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminDisableProviderForUserCommand.ts @@ -60,6 +60,7 @@ export class AdminDisableProviderForUserCommand extends $Command< AdminDisableProviderForUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,8 +78,11 @@ export class AdminDisableProviderForUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminDisableUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminDisableUserCommand.ts index 9d1e01a6bb500..43f91397e13df 100644 --- a/clients/client-cognito-identity-provider/commands/AdminDisableUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminDisableUserCommand.ts @@ -34,6 +34,7 @@ export class AdminDisableUserCommand extends $Command< AdminDisableUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminDisableUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminEnableUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminEnableUserCommand.ts index c2f89f6fa2f46..aea0956d33e2d 100644 --- a/clients/client-cognito-identity-provider/commands/AdminEnableUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminEnableUserCommand.ts @@ -34,6 +34,7 @@ export class AdminEnableUserCommand extends $Command< AdminEnableUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminEnableUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminForgetDeviceCommand.ts b/clients/client-cognito-identity-provider/commands/AdminForgetDeviceCommand.ts index f8ea5e36f129a..22bf993eb3101 100644 --- a/clients/client-cognito-identity-provider/commands/AdminForgetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminForgetDeviceCommand.ts @@ -34,6 +34,7 @@ export class AdminForgetDeviceCommand extends $Command< AdminForgetDeviceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminForgetDeviceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminGetDeviceCommand.ts b/clients/client-cognito-identity-provider/commands/AdminGetDeviceCommand.ts index a5060da7a97f6..5d35f3e3ec1b7 100644 --- a/clients/client-cognito-identity-provider/commands/AdminGetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminGetDeviceCommand.ts @@ -34,6 +34,7 @@ export class AdminGetDeviceCommand extends $Command< AdminGetDeviceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminGetDeviceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminGetUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminGetUserCommand.ts index f15130d98fafc..9d59665d1b6e3 100644 --- a/clients/client-cognito-identity-provider/commands/AdminGetUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminGetUserCommand.ts @@ -35,6 +35,7 @@ export class AdminGetUserCommand extends $Command< AdminGetUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class AdminGetUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminInitiateAuthCommand.ts b/clients/client-cognito-identity-provider/commands/AdminInitiateAuthCommand.ts index 82d40435150be..0391c8aabf7dc 100644 --- a/clients/client-cognito-identity-provider/commands/AdminInitiateAuthCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminInitiateAuthCommand.ts @@ -34,6 +34,7 @@ export class AdminInitiateAuthCommand extends $Command< AdminInitiateAuthCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminInitiateAuthCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminLinkProviderForUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminLinkProviderForUserCommand.ts index 13101fb113975..4d2b481348c00 100644 --- a/clients/client-cognito-identity-provider/commands/AdminLinkProviderForUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminLinkProviderForUserCommand.ts @@ -53,6 +53,7 @@ export class AdminLinkProviderForUserCommand extends $Command< AdminLinkProviderForUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class AdminLinkProviderForUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminListDevicesCommand.ts b/clients/client-cognito-identity-provider/commands/AdminListDevicesCommand.ts index 32a0ffb088fdd..8cd371b624b2b 100644 --- a/clients/client-cognito-identity-provider/commands/AdminListDevicesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminListDevicesCommand.ts @@ -34,6 +34,7 @@ export class AdminListDevicesCommand extends $Command< AdminListDevicesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminListDevicesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminListGroupsForUserCommand.ts b/clients/client-cognito-identity-provider/commands/AdminListGroupsForUserCommand.ts index f6169dc155982..b3ad1a5ab63c6 100644 --- a/clients/client-cognito-identity-provider/commands/AdminListGroupsForUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminListGroupsForUserCommand.ts @@ -34,6 +34,7 @@ export class AdminListGroupsForUserCommand extends $Command< AdminListGroupsForUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminListGroupsForUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminListUserAuthEventsCommand.ts b/clients/client-cognito-identity-provider/commands/AdminListUserAuthEventsCommand.ts index 1a055a14d5129..3789d90d3256e 100644 --- a/clients/client-cognito-identity-provider/commands/AdminListUserAuthEventsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminListUserAuthEventsCommand.ts @@ -34,6 +34,7 @@ export class AdminListUserAuthEventsCommand extends $Command< AdminListUserAuthEventsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminListUserAuthEventsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminRemoveUserFromGroupCommand.ts b/clients/client-cognito-identity-provider/commands/AdminRemoveUserFromGroupCommand.ts index 8353bfc7e8b6e..a665f70fce1b4 100644 --- a/clients/client-cognito-identity-provider/commands/AdminRemoveUserFromGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminRemoveUserFromGroupCommand.ts @@ -34,6 +34,7 @@ export class AdminRemoveUserFromGroupCommand extends $Command< AdminRemoveUserFromGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminRemoveUserFromGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminResetUserPasswordCommand.ts b/clients/client-cognito-identity-provider/commands/AdminResetUserPasswordCommand.ts index d8a7d760126c5..cf06e54429928 100644 --- a/clients/client-cognito-identity-provider/commands/AdminResetUserPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminResetUserPasswordCommand.ts @@ -43,6 +43,7 @@ export class AdminResetUserPasswordCommand extends $Command< AdminResetUserPasswordCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,8 +61,11 @@ export class AdminResetUserPasswordCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminRespondToAuthChallengeCommand.ts b/clients/client-cognito-identity-provider/commands/AdminRespondToAuthChallengeCommand.ts index 37a7d02a90a3a..d2107d8067d62 100644 --- a/clients/client-cognito-identity-provider/commands/AdminRespondToAuthChallengeCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminRespondToAuthChallengeCommand.ts @@ -34,6 +34,7 @@ export class AdminRespondToAuthChallengeCommand extends $Command< AdminRespondToAuthChallengeCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminRespondToAuthChallengeCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminSetUserMFAPreferenceCommand.ts b/clients/client-cognito-identity-provider/commands/AdminSetUserMFAPreferenceCommand.ts index b7eed54ef1ba3..9b36c9d5a3b04 100644 --- a/clients/client-cognito-identity-provider/commands/AdminSetUserMFAPreferenceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminSetUserMFAPreferenceCommand.ts @@ -37,6 +37,7 @@ export class AdminSetUserMFAPreferenceCommand extends $Command< AdminSetUserMFAPreferenceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class AdminSetUserMFAPreferenceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminSetUserPasswordCommand.ts b/clients/client-cognito-identity-provider/commands/AdminSetUserPasswordCommand.ts index 180fb7047ee41..cac594ef6f7e6 100644 --- a/clients/client-cognito-identity-provider/commands/AdminSetUserPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminSetUserPasswordCommand.ts @@ -42,6 +42,7 @@ export class AdminSetUserPasswordCommand extends $Command< AdminSetUserPasswordCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,8 +60,11 @@ export class AdminSetUserPasswordCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminSetUserSettingsCommand.ts b/clients/client-cognito-identity-provider/commands/AdminSetUserSettingsCommand.ts index 9bf57714f4a8a..5204082e39abb 100644 --- a/clients/client-cognito-identity-provider/commands/AdminSetUserSettingsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminSetUserSettingsCommand.ts @@ -36,6 +36,7 @@ export class AdminSetUserSettingsCommand extends $Command< AdminSetUserSettingsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class AdminSetUserSettingsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminUpdateAuthEventFeedbackCommand.ts b/clients/client-cognito-identity-provider/commands/AdminUpdateAuthEventFeedbackCommand.ts index 3f417f7af9ba7..943487fd5f3bc 100644 --- a/clients/client-cognito-identity-provider/commands/AdminUpdateAuthEventFeedbackCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminUpdateAuthEventFeedbackCommand.ts @@ -35,6 +35,7 @@ export class AdminUpdateAuthEventFeedbackCommand extends $Command< AdminUpdateAuthEventFeedbackCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class AdminUpdateAuthEventFeedbackCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminUpdateDeviceStatusCommand.ts b/clients/client-cognito-identity-provider/commands/AdminUpdateDeviceStatusCommand.ts index 800e250ebbe0d..c9a293dc6336a 100644 --- a/clients/client-cognito-identity-provider/commands/AdminUpdateDeviceStatusCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminUpdateDeviceStatusCommand.ts @@ -34,6 +34,7 @@ export class AdminUpdateDeviceStatusCommand extends $Command< AdminUpdateDeviceStatusCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AdminUpdateDeviceStatusCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminUpdateUserAttributesCommand.ts b/clients/client-cognito-identity-provider/commands/AdminUpdateUserAttributesCommand.ts index e9d4d588ca993..59f6c19605819 100644 --- a/clients/client-cognito-identity-provider/commands/AdminUpdateUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminUpdateUserAttributesCommand.ts @@ -39,6 +39,7 @@ export class AdminUpdateUserAttributesCommand extends $Command< AdminUpdateUserAttributesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,8 +57,11 @@ export class AdminUpdateUserAttributesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AdminUserGlobalSignOutCommand.ts b/clients/client-cognito-identity-provider/commands/AdminUserGlobalSignOutCommand.ts index 52a2b8f525769..4355ca96fe701 100644 --- a/clients/client-cognito-identity-provider/commands/AdminUserGlobalSignOutCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AdminUserGlobalSignOutCommand.ts @@ -36,6 +36,7 @@ export class AdminUserGlobalSignOutCommand extends $Command< AdminUserGlobalSignOutCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class AdminUserGlobalSignOutCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/AssociateSoftwareTokenCommand.ts b/clients/client-cognito-identity-provider/commands/AssociateSoftwareTokenCommand.ts index dbc96735ca391..298d805ab35fd 100644 --- a/clients/client-cognito-identity-provider/commands/AssociateSoftwareTokenCommand.ts +++ b/clients/client-cognito-identity-provider/commands/AssociateSoftwareTokenCommand.ts @@ -34,6 +34,7 @@ export class AssociateSoftwareTokenCommand extends $Command< AssociateSoftwareTokenCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class AssociateSoftwareTokenCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ChangePasswordCommand.ts b/clients/client-cognito-identity-provider/commands/ChangePasswordCommand.ts index 297e7a751a192..5c277c5b49d80 100644 --- a/clients/client-cognito-identity-provider/commands/ChangePasswordCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ChangePasswordCommand.ts @@ -32,6 +32,7 @@ export class ChangePasswordCommand extends $Command< ChangePasswordCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ChangePasswordCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ConfirmDeviceCommand.ts b/clients/client-cognito-identity-provider/commands/ConfirmDeviceCommand.ts index aa47edbd758f8..ea25889e4e2ba 100644 --- a/clients/client-cognito-identity-provider/commands/ConfirmDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ConfirmDeviceCommand.ts @@ -34,6 +34,7 @@ export class ConfirmDeviceCommand extends $Command< ConfirmDeviceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class ConfirmDeviceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ConfirmForgotPasswordCommand.ts b/clients/client-cognito-identity-provider/commands/ConfirmForgotPasswordCommand.ts index 2186a927118a7..0a1c4e2a32a88 100644 --- a/clients/client-cognito-identity-provider/commands/ConfirmForgotPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ConfirmForgotPasswordCommand.ts @@ -32,6 +32,7 @@ export class ConfirmForgotPasswordCommand extends $Command< ConfirmForgotPasswordCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ConfirmForgotPasswordCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ConfirmSignUpCommand.ts b/clients/client-cognito-identity-provider/commands/ConfirmSignUpCommand.ts index 09ce25752fca6..0b816bbc59354 100644 --- a/clients/client-cognito-identity-provider/commands/ConfirmSignUpCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ConfirmSignUpCommand.ts @@ -33,6 +33,7 @@ export class ConfirmSignUpCommand extends $Command< ConfirmSignUpCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ConfirmSignUpCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateGroupCommand.ts b/clients/client-cognito-identity-provider/commands/CreateGroupCommand.ts index 08f0086629586..c887b25d3a28c 100644 --- a/clients/client-cognito-identity-provider/commands/CreateGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateGroupCommand.ts @@ -34,6 +34,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class CreateGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/commands/CreateIdentityProviderCommand.ts index 079f834bcb688..ae5960507b3dd 100644 --- a/clients/client-cognito-identity-provider/commands/CreateIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateIdentityProviderCommand.ts @@ -33,6 +33,7 @@ export class CreateIdentityProviderCommand extends $Command< CreateIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateIdentityProviderCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateResourceServerCommand.ts b/clients/client-cognito-identity-provider/commands/CreateResourceServerCommand.ts index 4924942bf27bd..6b3a94a96adf1 100644 --- a/clients/client-cognito-identity-provider/commands/CreateResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateResourceServerCommand.ts @@ -33,6 +33,7 @@ export class CreateResourceServerCommand extends $Command< CreateResourceServerCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateResourceServerCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateUserImportJobCommand.ts b/clients/client-cognito-identity-provider/commands/CreateUserImportJobCommand.ts index 487aa53a43ba4..0062a47ebb8f1 100644 --- a/clients/client-cognito-identity-provider/commands/CreateUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateUserImportJobCommand.ts @@ -33,6 +33,7 @@ export class CreateUserImportJobCommand extends $Command< CreateUserImportJobCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateUserImportJobCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/commands/CreateUserPoolClientCommand.ts index 5353e5b893739..f86345e57104c 100644 --- a/clients/client-cognito-identity-provider/commands/CreateUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateUserPoolClientCommand.ts @@ -33,6 +33,7 @@ export class CreateUserPoolClientCommand extends $Command< CreateUserPoolClientCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateUserPoolClientCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateUserPoolCommand.ts b/clients/client-cognito-identity-provider/commands/CreateUserPoolCommand.ts index 6d9a76575e9fc..9d177386e268e 100644 --- a/clients/client-cognito-identity-provider/commands/CreateUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateUserPoolCommand.ts @@ -34,6 +34,7 @@ export class CreateUserPoolCommand extends $Command< CreateUserPoolCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class CreateUserPoolCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/CreateUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/commands/CreateUserPoolDomainCommand.ts index 8632b0e115fe2..ece5292fd5415 100644 --- a/clients/client-cognito-identity-provider/commands/CreateUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/commands/CreateUserPoolDomainCommand.ts @@ -33,6 +33,7 @@ export class CreateUserPoolDomainCommand extends $Command< CreateUserPoolDomainCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateUserPoolDomainCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteGroupCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteGroupCommand.ts index 651041d055767..1b191cf2284b0 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteGroupCommand.ts @@ -34,6 +34,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class DeleteGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteIdentityProviderCommand.ts index ad9dd013c3455..e0a9f4a7fa040 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteIdentityProviderCommand.ts @@ -33,6 +33,7 @@ export class DeleteIdentityProviderCommand extends $Command< DeleteIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteIdentityProviderCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteResourceServerCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteResourceServerCommand.ts index d2619fbba303c..bab4214adffcc 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteResourceServerCommand.ts @@ -33,6 +33,7 @@ export class DeleteResourceServerCommand extends $Command< DeleteResourceServerCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteResourceServerCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteUserAttributesCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteUserAttributesCommand.ts index df0090823b6a9..64896c2742f50 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteUserAttributesCommand.ts @@ -32,6 +32,7 @@ export class DeleteUserAttributesCommand extends $Command< DeleteUserAttributesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteUserAttributesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteUserCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteUserCommand.ts index 1535c21c69f69..03bd8bb1faf52 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteUserCommand.ts @@ -32,6 +32,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteUserPoolClientCommand.ts index 3847224fdfd51..c966a712f8453 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteUserPoolClientCommand.ts @@ -33,6 +33,7 @@ export class DeleteUserPoolClientCommand extends $Command< DeleteUserPoolClientCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteUserPoolClientCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteUserPoolCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteUserPoolCommand.ts index eb622b82a3f46..7ca044639eb9c 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteUserPoolCommand.ts @@ -33,6 +33,7 @@ export class DeleteUserPoolCommand extends $Command< DeleteUserPoolCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteUserPoolCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DeleteUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/commands/DeleteUserPoolDomainCommand.ts index bfe7bbd560fdc..aaec17aac58be 100644 --- a/clients/client-cognito-identity-provider/commands/DeleteUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DeleteUserPoolDomainCommand.ts @@ -33,6 +33,7 @@ export class DeleteUserPoolDomainCommand extends $Command< DeleteUserPoolDomainCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteUserPoolDomainCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeIdentityProviderCommand.ts index ee8a3eb56cecd..d834ab4508e6e 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeIdentityProviderCommand.ts @@ -33,6 +33,7 @@ export class DescribeIdentityProviderCommand extends $Command< DescribeIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeIdentityProviderCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeResourceServerCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeResourceServerCommand.ts index a4153968792e6..1b19edeaeefe0 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeResourceServerCommand.ts @@ -33,6 +33,7 @@ export class DescribeResourceServerCommand extends $Command< DescribeResourceServerCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeResourceServerCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeRiskConfigurationCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeRiskConfigurationCommand.ts index 1ea0f542aa0df..ad35f4cdf4c1c 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeRiskConfigurationCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeRiskConfigurationCommand.ts @@ -33,6 +33,7 @@ export class DescribeRiskConfigurationCommand extends $Command< DescribeRiskConfigurationCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeRiskConfigurationCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeUserImportJobCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeUserImportJobCommand.ts index b439be6d7e968..8c2fce71eaa12 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeUserImportJobCommand.ts @@ -33,6 +33,7 @@ export class DescribeUserImportJobCommand extends $Command< DescribeUserImportJobCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeUserImportJobCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeUserPoolClientCommand.ts index d696cf20d703c..cd80bbebdb03d 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeUserPoolClientCommand.ts @@ -34,6 +34,7 @@ export class DescribeUserPoolClientCommand extends $Command< DescribeUserPoolClientCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class DescribeUserPoolClientCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeUserPoolCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeUserPoolCommand.ts index 5fe8fed75b44b..aa64e6fa19508 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeUserPoolCommand.ts @@ -33,6 +33,7 @@ export class DescribeUserPoolCommand extends $Command< DescribeUserPoolCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeUserPoolCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/DescribeUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/commands/DescribeUserPoolDomainCommand.ts index 9ff4f98cd8276..461a7ad993000 100644 --- a/clients/client-cognito-identity-provider/commands/DescribeUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/commands/DescribeUserPoolDomainCommand.ts @@ -33,6 +33,7 @@ export class DescribeUserPoolDomainCommand extends $Command< DescribeUserPoolDomainCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DescribeUserPoolDomainCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ForgetDeviceCommand.ts b/clients/client-cognito-identity-provider/commands/ForgetDeviceCommand.ts index ac89b63cc900f..b5bfd07a055a2 100644 --- a/clients/client-cognito-identity-provider/commands/ForgetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ForgetDeviceCommand.ts @@ -33,6 +33,7 @@ export class ForgetDeviceCommand extends $Command< ForgetDeviceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ForgetDeviceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ForgotPasswordCommand.ts b/clients/client-cognito-identity-provider/commands/ForgotPasswordCommand.ts index 473e1e77cc94b..7cd0f97533602 100644 --- a/clients/client-cognito-identity-provider/commands/ForgotPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ForgotPasswordCommand.ts @@ -38,6 +38,7 @@ export class ForgotPasswordCommand extends $Command< ForgotPasswordCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ForgotPasswordCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetCSVHeaderCommand.ts b/clients/client-cognito-identity-provider/commands/GetCSVHeaderCommand.ts index 2971de0f88007..1f44a477a7c34 100644 --- a/clients/client-cognito-identity-provider/commands/GetCSVHeaderCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetCSVHeaderCommand.ts @@ -34,6 +34,7 @@ export class GetCSVHeaderCommand extends $Command< GetCSVHeaderCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class GetCSVHeaderCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetDeviceCommand.ts b/clients/client-cognito-identity-provider/commands/GetDeviceCommand.ts index 9be34f2297693..55dad437997b5 100644 --- a/clients/client-cognito-identity-provider/commands/GetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetDeviceCommand.ts @@ -30,6 +30,7 @@ export class GetDeviceCommand extends $Command< GetDeviceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class GetDeviceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetGroupCommand.ts b/clients/client-cognito-identity-provider/commands/GetGroupCommand.ts index 50e4843134d86..97e25adee7807 100644 --- a/clients/client-cognito-identity-provider/commands/GetGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetGroupCommand.ts @@ -31,6 +31,7 @@ export class GetGroupCommand extends $Command< GetGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,8 +49,11 @@ export class GetGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetIdentityProviderByIdentifierCommand.ts b/clients/client-cognito-identity-provider/commands/GetIdentityProviderByIdentifierCommand.ts index e9c829b5f8a76..e079c3d38287b 100644 --- a/clients/client-cognito-identity-provider/commands/GetIdentityProviderByIdentifierCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetIdentityProviderByIdentifierCommand.ts @@ -33,6 +33,7 @@ export class GetIdentityProviderByIdentifierCommand extends $Command< GetIdentityProviderByIdentifierCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class GetIdentityProviderByIdentifierCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetSigningCertificateCommand.ts b/clients/client-cognito-identity-provider/commands/GetSigningCertificateCommand.ts index f612729cd82c7..f5e21ac2a0109 100644 --- a/clients/client-cognito-identity-provider/commands/GetSigningCertificateCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetSigningCertificateCommand.ts @@ -33,6 +33,7 @@ export class GetSigningCertificateCommand extends $Command< GetSigningCertificateCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class GetSigningCertificateCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetUICustomizationCommand.ts b/clients/client-cognito-identity-provider/commands/GetUICustomizationCommand.ts index 9b64cc933683a..53e91596e5aaf 100644 --- a/clients/client-cognito-identity-provider/commands/GetUICustomizationCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetUICustomizationCommand.ts @@ -36,6 +36,7 @@ export class GetUICustomizationCommand extends $Command< GetUICustomizationCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class GetUICustomizationCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetUserAttributeVerificationCodeCommand.ts b/clients/client-cognito-identity-provider/commands/GetUserAttributeVerificationCodeCommand.ts index 82822c19fda2a..bde49a16776f8 100644 --- a/clients/client-cognito-identity-provider/commands/GetUserAttributeVerificationCodeCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetUserAttributeVerificationCodeCommand.ts @@ -32,6 +32,7 @@ export class GetUserAttributeVerificationCodeCommand extends $Command< GetUserAttributeVerificationCodeCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetUserAttributeVerificationCodeCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetUserCommand.ts b/clients/client-cognito-identity-provider/commands/GetUserCommand.ts index bc55c43069b3b..984b5cc8702a7 100644 --- a/clients/client-cognito-identity-provider/commands/GetUserCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetUserCommand.ts @@ -29,6 +29,7 @@ export class GetUserCommand extends $Command< GetUserCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetUserCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GetUserPoolMfaConfigCommand.ts b/clients/client-cognito-identity-provider/commands/GetUserPoolMfaConfigCommand.ts index 9a92cbe532cb6..d3e4991646207 100644 --- a/clients/client-cognito-identity-provider/commands/GetUserPoolMfaConfigCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GetUserPoolMfaConfigCommand.ts @@ -33,6 +33,7 @@ export class GetUserPoolMfaConfigCommand extends $Command< GetUserPoolMfaConfigCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class GetUserPoolMfaConfigCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/GlobalSignOutCommand.ts b/clients/client-cognito-identity-provider/commands/GlobalSignOutCommand.ts index 91dfe32dae915..ebf051fdf49e8 100644 --- a/clients/client-cognito-identity-provider/commands/GlobalSignOutCommand.ts +++ b/clients/client-cognito-identity-provider/commands/GlobalSignOutCommand.ts @@ -35,6 +35,7 @@ export class GlobalSignOutCommand extends $Command< GlobalSignOutCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class GlobalSignOutCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/InitiateAuthCommand.ts b/clients/client-cognito-identity-provider/commands/InitiateAuthCommand.ts index 0fe5dcea6c51a..baf877b4bfa6a 100644 --- a/clients/client-cognito-identity-provider/commands/InitiateAuthCommand.ts +++ b/clients/client-cognito-identity-provider/commands/InitiateAuthCommand.ts @@ -32,6 +32,7 @@ export class InitiateAuthCommand extends $Command< InitiateAuthCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class InitiateAuthCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListDevicesCommand.ts b/clients/client-cognito-identity-provider/commands/ListDevicesCommand.ts index 347f978d62957..8ae83c2878217 100644 --- a/clients/client-cognito-identity-provider/commands/ListDevicesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListDevicesCommand.ts @@ -33,6 +33,7 @@ export class ListDevicesCommand extends $Command< ListDevicesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListDevicesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListGroupsCommand.ts b/clients/client-cognito-identity-provider/commands/ListGroupsCommand.ts index 2b518b4938b07..5f3b36cb9da44 100644 --- a/clients/client-cognito-identity-provider/commands/ListGroupsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListGroupsCommand.ts @@ -34,6 +34,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class ListGroupsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListIdentityProvidersCommand.ts b/clients/client-cognito-identity-provider/commands/ListIdentityProvidersCommand.ts index db6f53bb519e7..a49fd081fc0b7 100644 --- a/clients/client-cognito-identity-provider/commands/ListIdentityProvidersCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListIdentityProvidersCommand.ts @@ -33,6 +33,7 @@ export class ListIdentityProvidersCommand extends $Command< ListIdentityProvidersCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListIdentityProvidersCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListResourceServersCommand.ts b/clients/client-cognito-identity-provider/commands/ListResourceServersCommand.ts index a052a21318c55..3059089ab21d4 100644 --- a/clients/client-cognito-identity-provider/commands/ListResourceServersCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListResourceServersCommand.ts @@ -33,6 +33,7 @@ export class ListResourceServersCommand extends $Command< ListResourceServersCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListResourceServersCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListTagsForResourceCommand.ts b/clients/client-cognito-identity-provider/commands/ListTagsForResourceCommand.ts index efd54d1004c33..97886cc1a0320 100644 --- a/clients/client-cognito-identity-provider/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListTagsForResourceCommand.ts @@ -36,6 +36,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class ListTagsForResourceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListUserImportJobsCommand.ts b/clients/client-cognito-identity-provider/commands/ListUserImportJobsCommand.ts index c0108f0347e3d..fd113a81157fc 100644 --- a/clients/client-cognito-identity-provider/commands/ListUserImportJobsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListUserImportJobsCommand.ts @@ -33,6 +33,7 @@ export class ListUserImportJobsCommand extends $Command< ListUserImportJobsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListUserImportJobsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListUserPoolClientsCommand.ts b/clients/client-cognito-identity-provider/commands/ListUserPoolClientsCommand.ts index 29d6ba7a0af49..fbe7d7bee21a0 100644 --- a/clients/client-cognito-identity-provider/commands/ListUserPoolClientsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListUserPoolClientsCommand.ts @@ -33,6 +33,7 @@ export class ListUserPoolClientsCommand extends $Command< ListUserPoolClientsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListUserPoolClientsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListUserPoolsCommand.ts b/clients/client-cognito-identity-provider/commands/ListUserPoolsCommand.ts index e052a2d783acd..155287a03c6c1 100644 --- a/clients/client-cognito-identity-provider/commands/ListUserPoolsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListUserPoolsCommand.ts @@ -33,6 +33,7 @@ export class ListUserPoolsCommand extends $Command< ListUserPoolsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListUserPoolsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListUsersCommand.ts b/clients/client-cognito-identity-provider/commands/ListUsersCommand.ts index 18619f598d7b2..056c11cf433e9 100644 --- a/clients/client-cognito-identity-provider/commands/ListUsersCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListUsersCommand.ts @@ -30,6 +30,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class ListUsersCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ListUsersInGroupCommand.ts b/clients/client-cognito-identity-provider/commands/ListUsersInGroupCommand.ts index c4d9d6a16367e..6192b38a4eec8 100644 --- a/clients/client-cognito-identity-provider/commands/ListUsersInGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ListUsersInGroupCommand.ts @@ -34,6 +34,7 @@ export class ListUsersInGroupCommand extends $Command< ListUsersInGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class ListUsersInGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/ResendConfirmationCodeCommand.ts b/clients/client-cognito-identity-provider/commands/ResendConfirmationCodeCommand.ts index 36b44b6b315d0..a4252c3813178 100644 --- a/clients/client-cognito-identity-provider/commands/ResendConfirmationCodeCommand.ts +++ b/clients/client-cognito-identity-provider/commands/ResendConfirmationCodeCommand.ts @@ -33,6 +33,7 @@ export class ResendConfirmationCodeCommand extends $Command< ResendConfirmationCodeCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ResendConfirmationCodeCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/RespondToAuthChallengeCommand.ts b/clients/client-cognito-identity-provider/commands/RespondToAuthChallengeCommand.ts index 76257da8f9ac7..55fd9294482f6 100644 --- a/clients/client-cognito-identity-provider/commands/RespondToAuthChallengeCommand.ts +++ b/clients/client-cognito-identity-provider/commands/RespondToAuthChallengeCommand.ts @@ -32,6 +32,7 @@ export class RespondToAuthChallengeCommand extends $Command< RespondToAuthChallengeCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RespondToAuthChallengeCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SetRiskConfigurationCommand.ts b/clients/client-cognito-identity-provider/commands/SetRiskConfigurationCommand.ts index 7f0970e28ed7c..0c9a4beec856d 100644 --- a/clients/client-cognito-identity-provider/commands/SetRiskConfigurationCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SetRiskConfigurationCommand.ts @@ -37,6 +37,7 @@ export class SetRiskConfigurationCommand extends $Command< SetRiskConfigurationCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class SetRiskConfigurationCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SetUICustomizationCommand.ts b/clients/client-cognito-identity-provider/commands/SetUICustomizationCommand.ts index 39b2ce736ec8f..5f71a6bf625fd 100644 --- a/clients/client-cognito-identity-provider/commands/SetUICustomizationCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SetUICustomizationCommand.ts @@ -44,6 +44,7 @@ export class SetUICustomizationCommand extends $Command< SetUICustomizationCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class SetUICustomizationCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SetUserMFAPreferenceCommand.ts b/clients/client-cognito-identity-provider/commands/SetUserMFAPreferenceCommand.ts index 38cc5ee69a950..d3b015ef51bc8 100644 --- a/clients/client-cognito-identity-provider/commands/SetUserMFAPreferenceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SetUserMFAPreferenceCommand.ts @@ -39,6 +39,7 @@ export class SetUserMFAPreferenceCommand extends $Command< SetUserMFAPreferenceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,8 +57,11 @@ export class SetUserMFAPreferenceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SetUserPoolMfaConfigCommand.ts b/clients/client-cognito-identity-provider/commands/SetUserPoolMfaConfigCommand.ts index 051344fb2ad13..02db43461ca59 100644 --- a/clients/client-cognito-identity-provider/commands/SetUserPoolMfaConfigCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SetUserPoolMfaConfigCommand.ts @@ -33,6 +33,7 @@ export class SetUserPoolMfaConfigCommand extends $Command< SetUserPoolMfaConfigCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class SetUserPoolMfaConfigCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SetUserSettingsCommand.ts b/clients/client-cognito-identity-provider/commands/SetUserSettingsCommand.ts index ba38dafab9554..3c000bf39fbe9 100644 --- a/clients/client-cognito-identity-provider/commands/SetUserSettingsCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SetUserSettingsCommand.ts @@ -35,6 +35,7 @@ export class SetUserSettingsCommand extends $Command< SetUserSettingsCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SetUserSettingsCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/SignUpCommand.ts b/clients/client-cognito-identity-provider/commands/SignUpCommand.ts index 76a03c875705b..6ba687395ff7f 100644 --- a/clients/client-cognito-identity-provider/commands/SignUpCommand.ts +++ b/clients/client-cognito-identity-provider/commands/SignUpCommand.ts @@ -30,6 +30,7 @@ export class SignUpCommand extends $Command< SignUpCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SignUpCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/StartUserImportJobCommand.ts b/clients/client-cognito-identity-provider/commands/StartUserImportJobCommand.ts index 033bf314650bd..74121cb21eaaa 100644 --- a/clients/client-cognito-identity-provider/commands/StartUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/commands/StartUserImportJobCommand.ts @@ -33,6 +33,7 @@ export class StartUserImportJobCommand extends $Command< StartUserImportJobCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class StartUserImportJobCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/StopUserImportJobCommand.ts b/clients/client-cognito-identity-provider/commands/StopUserImportJobCommand.ts index ec3aacae2e27a..d1b2dfb872668 100644 --- a/clients/client-cognito-identity-provider/commands/StopUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/commands/StopUserImportJobCommand.ts @@ -33,6 +33,7 @@ export class StopUserImportJobCommand extends $Command< StopUserImportJobCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class StopUserImportJobCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/TagResourceCommand.ts b/clients/client-cognito-identity-provider/commands/TagResourceCommand.ts index 426b1daab7f90..35a64a59a804d 100644 --- a/clients/client-cognito-identity-provider/commands/TagResourceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/TagResourceCommand.ts @@ -46,6 +46,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,8 +64,11 @@ export class TagResourceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UntagResourceCommand.ts b/clients/client-cognito-identity-provider/commands/UntagResourceCommand.ts index 8c57bcb4eba28..fe53635c0410d 100644 --- a/clients/client-cognito-identity-provider/commands/UntagResourceCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UntagResourceCommand.ts @@ -34,6 +34,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class UntagResourceCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateAuthEventFeedbackCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateAuthEventFeedbackCommand.ts index c812315fd0e90..8a56e7c78f6bd 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateAuthEventFeedbackCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateAuthEventFeedbackCommand.ts @@ -35,6 +35,7 @@ export class UpdateAuthEventFeedbackCommand extends $Command< UpdateAuthEventFeedbackCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class UpdateAuthEventFeedbackCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateDeviceStatusCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateDeviceStatusCommand.ts index 57b75b473a0ea..07f200c0fca1d 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateDeviceStatusCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateDeviceStatusCommand.ts @@ -33,6 +33,7 @@ export class UpdateDeviceStatusCommand extends $Command< UpdateDeviceStatusCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class UpdateDeviceStatusCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateGroupCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateGroupCommand.ts index df739f3c246bb..9237f05869313 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateGroupCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateGroupCommand.ts @@ -38,6 +38,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class UpdateGroupCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateIdentityProviderCommand.ts index f49ce3a66fe5b..d3c549efcbd00 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateIdentityProviderCommand.ts @@ -33,6 +33,7 @@ export class UpdateIdentityProviderCommand extends $Command< UpdateIdentityProviderCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class UpdateIdentityProviderCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateResourceServerCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateResourceServerCommand.ts index 45fd4bfdb7fcd..53e5669df950e 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateResourceServerCommand.ts @@ -37,6 +37,7 @@ export class UpdateResourceServerCommand extends $Command< UpdateResourceServerCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class UpdateResourceServerCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateUserAttributesCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateUserAttributesCommand.ts index d7e83030e98b4..edcdda84e2282 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateUserAttributesCommand.ts @@ -32,6 +32,7 @@ export class UpdateUserAttributesCommand extends $Command< UpdateUserAttributesCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateUserAttributesCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateUserPoolClientCommand.ts index f31299723891f..a7880720a82e4 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateUserPoolClientCommand.ts @@ -38,6 +38,7 @@ export class UpdateUserPoolClientCommand extends $Command< UpdateUserPoolClientCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class UpdateUserPoolClientCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateUserPoolCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateUserPoolCommand.ts index b1c8ee0179aca..e74345f5fba95 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateUserPoolCommand.ts @@ -38,6 +38,7 @@ export class UpdateUserPoolCommand extends $Command< UpdateUserPoolCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class UpdateUserPoolCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/UpdateUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/commands/UpdateUserPoolDomainCommand.ts index 7975032858d89..2fa20e89b96aa 100644 --- a/clients/client-cognito-identity-provider/commands/UpdateUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/commands/UpdateUserPoolDomainCommand.ts @@ -53,6 +53,7 @@ export class UpdateUserPoolDomainCommand extends $Command< UpdateUserPoolDomainCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class UpdateUserPoolDomainCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/VerifySoftwareTokenCommand.ts b/clients/client-cognito-identity-provider/commands/VerifySoftwareTokenCommand.ts index 19399608e0183..bbf5485cf8557 100644 --- a/clients/client-cognito-identity-provider/commands/VerifySoftwareTokenCommand.ts +++ b/clients/client-cognito-identity-provider/commands/VerifySoftwareTokenCommand.ts @@ -35,6 +35,7 @@ export class VerifySoftwareTokenCommand extends $Command< VerifySoftwareTokenCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class VerifySoftwareTokenCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/commands/VerifyUserAttributeCommand.ts b/clients/client-cognito-identity-provider/commands/VerifyUserAttributeCommand.ts index 7d96263e61c8e..8dcafebee5106 100644 --- a/clients/client-cognito-identity-provider/commands/VerifyUserAttributeCommand.ts +++ b/clients/client-cognito-identity-provider/commands/VerifyUserAttributeCommand.ts @@ -32,6 +32,7 @@ export class VerifyUserAttributeCommand extends $Command< VerifyUserAttributeCommandOutput, CognitoIdentityProviderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class VerifyUserAttributeCommand extends $Command< configuration: CognitoIdentityProviderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/CreateIdentityPoolCommand.ts b/clients/client-cognito-identity/commands/CreateIdentityPoolCommand.ts index 749dcaf0f7ec4..2b51094a05ee9 100644 --- a/clients/client-cognito-identity/commands/CreateIdentityPoolCommand.ts +++ b/clients/client-cognito-identity/commands/CreateIdentityPoolCommand.ts @@ -55,6 +55,7 @@ export class CreateIdentityPoolCommand extends $Command< CreateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class CreateIdentityPoolCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/DeleteIdentitiesCommand.ts b/clients/client-cognito-identity/commands/DeleteIdentitiesCommand.ts index f2f776c4fdf8b..1de944ad47268 100644 --- a/clients/client-cognito-identity/commands/DeleteIdentitiesCommand.ts +++ b/clients/client-cognito-identity/commands/DeleteIdentitiesCommand.ts @@ -31,6 +31,7 @@ export class DeleteIdentitiesCommand extends $Command< DeleteIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,8 +49,11 @@ export class DeleteIdentitiesCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/DeleteIdentityPoolCommand.ts b/clients/client-cognito-identity/commands/DeleteIdentityPoolCommand.ts index 044c3ee4013bf..2d848a800c89b 100644 --- a/clients/client-cognito-identity/commands/DeleteIdentityPoolCommand.ts +++ b/clients/client-cognito-identity/commands/DeleteIdentityPoolCommand.ts @@ -31,6 +31,7 @@ export class DeleteIdentityPoolCommand extends $Command< DeleteIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,8 +49,11 @@ export class DeleteIdentityPoolCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/DescribeIdentityCommand.ts b/clients/client-cognito-identity/commands/DescribeIdentityCommand.ts index 89aa1b102a38e..a3d6b01a95690 100644 --- a/clients/client-cognito-identity/commands/DescribeIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/DescribeIdentityCommand.ts @@ -31,6 +31,7 @@ export class DescribeIdentityCommand extends $Command< DescribeIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,8 +49,11 @@ export class DescribeIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/DescribeIdentityPoolCommand.ts b/clients/client-cognito-identity/commands/DescribeIdentityPoolCommand.ts index fdb70cf6c0693..2caab833ff163 100644 --- a/clients/client-cognito-identity/commands/DescribeIdentityPoolCommand.ts +++ b/clients/client-cognito-identity/commands/DescribeIdentityPoolCommand.ts @@ -31,6 +31,7 @@ export class DescribeIdentityPoolCommand extends $Command< DescribeIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,8 +49,11 @@ export class DescribeIdentityPoolCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/GetCredentialsForIdentityCommand.ts b/clients/client-cognito-identity/commands/GetCredentialsForIdentityCommand.ts index 6ff8e09bc8f21..35d16125975f2 100644 --- a/clients/client-cognito-identity/commands/GetCredentialsForIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/GetCredentialsForIdentityCommand.ts @@ -32,6 +32,7 @@ export class GetCredentialsForIdentityCommand extends $Command< GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCredentialsForIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/GetIdCommand.ts b/clients/client-cognito-identity/commands/GetIdCommand.ts index 2206a42367838..de44a9834c869 100644 --- a/clients/client-cognito-identity/commands/GetIdCommand.ts +++ b/clients/client-cognito-identity/commands/GetIdCommand.ts @@ -23,6 +23,7 @@ export type GetIdCommandOutput = GetIdResponse & __MetadataBearer; *

This is a public API. You do not need any credentials to call this API.

*/ export class GetIdCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class GetIdCommand 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-cognito-identity/commands/GetIdentityPoolRolesCommand.ts b/clients/client-cognito-identity/commands/GetIdentityPoolRolesCommand.ts index e329da8cdd029..4fda5b8440648 100644 --- a/clients/client-cognito-identity/commands/GetIdentityPoolRolesCommand.ts +++ b/clients/client-cognito-identity/commands/GetIdentityPoolRolesCommand.ts @@ -30,6 +30,7 @@ export class GetIdentityPoolRolesCommand extends $Command< GetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class GetIdentityPoolRolesCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/GetOpenIdTokenCommand.ts b/clients/client-cognito-identity/commands/GetOpenIdTokenCommand.ts index 221478c855c33..58426e15a9f02 100644 --- a/clients/client-cognito-identity/commands/GetOpenIdTokenCommand.ts +++ b/clients/client-cognito-identity/commands/GetOpenIdTokenCommand.ts @@ -32,6 +32,7 @@ export class GetOpenIdTokenCommand extends $Command< GetOpenIdTokenCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetOpenIdTokenCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts b/clients/client-cognito-identity/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts index 5b190f1cdd52d..736cd1e3fcb01 100644 --- a/clients/client-cognito-identity/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts @@ -45,6 +45,7 @@ export class GetOpenIdTokenForDeveloperIdentityCommand extends $Command< GetOpenIdTokenForDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,8 +63,11 @@ export class GetOpenIdTokenForDeveloperIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/ListIdentitiesCommand.ts b/clients/client-cognito-identity/commands/ListIdentitiesCommand.ts index 984ba541414bf..15b1648bac33d 100644 --- a/clients/client-cognito-identity/commands/ListIdentitiesCommand.ts +++ b/clients/client-cognito-identity/commands/ListIdentitiesCommand.ts @@ -30,6 +30,7 @@ export class ListIdentitiesCommand extends $Command< ListIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class ListIdentitiesCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/ListIdentityPoolsCommand.ts b/clients/client-cognito-identity/commands/ListIdentityPoolsCommand.ts index d0a7e8d8167c1..516e9aa64410e 100644 --- a/clients/client-cognito-identity/commands/ListIdentityPoolsCommand.ts +++ b/clients/client-cognito-identity/commands/ListIdentityPoolsCommand.ts @@ -30,6 +30,7 @@ export class ListIdentityPoolsCommand extends $Command< ListIdentityPoolsCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class ListIdentityPoolsCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/ListTagsForResourceCommand.ts b/clients/client-cognito-identity/commands/ListTagsForResourceCommand.ts index 852cc1f23b7c7..b31b525d146b8 100644 --- a/clients/client-cognito-identity/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cognito-identity/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class ListTagsForResourceCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/LookupDeveloperIdentityCommand.ts b/clients/client-cognito-identity/commands/LookupDeveloperIdentityCommand.ts index 4ce9015079a1e..fc28e9727f78c 100644 --- a/clients/client-cognito-identity/commands/LookupDeveloperIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/LookupDeveloperIdentityCommand.ts @@ -45,6 +45,7 @@ export class LookupDeveloperIdentityCommand extends $Command< LookupDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,8 +63,11 @@ export class LookupDeveloperIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/MergeDeveloperIdentitiesCommand.ts b/clients/client-cognito-identity/commands/MergeDeveloperIdentitiesCommand.ts index da30b63bd2059..678910deb8aa2 100644 --- a/clients/client-cognito-identity/commands/MergeDeveloperIdentitiesCommand.ts +++ b/clients/client-cognito-identity/commands/MergeDeveloperIdentitiesCommand.ts @@ -41,6 +41,7 @@ export class MergeDeveloperIdentitiesCommand extends $Command< MergeDeveloperIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class MergeDeveloperIdentitiesCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/SetIdentityPoolRolesCommand.ts b/clients/client-cognito-identity/commands/SetIdentityPoolRolesCommand.ts index 5fbd4921d0c74..b7b97bf1b4f64 100644 --- a/clients/client-cognito-identity/commands/SetIdentityPoolRolesCommand.ts +++ b/clients/client-cognito-identity/commands/SetIdentityPoolRolesCommand.ts @@ -30,6 +30,7 @@ export class SetIdentityPoolRolesCommand extends $Command< SetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class SetIdentityPoolRolesCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/TagResourceCommand.ts b/clients/client-cognito-identity/commands/TagResourceCommand.ts index 217128423d50d..8a6f1e39df457 100644 --- a/clients/client-cognito-identity/commands/TagResourceCommand.ts +++ b/clients/client-cognito-identity/commands/TagResourceCommand.ts @@ -43,6 +43,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,8 +61,11 @@ export class TagResourceCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/UnlinkDeveloperIdentityCommand.ts b/clients/client-cognito-identity/commands/UnlinkDeveloperIdentityCommand.ts index 1056b16911202..9ad28b321ef34 100644 --- a/clients/client-cognito-identity/commands/UnlinkDeveloperIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/UnlinkDeveloperIdentityCommand.ts @@ -33,6 +33,7 @@ export class UnlinkDeveloperIdentityCommand extends $Command< UnlinkDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class UnlinkDeveloperIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/UnlinkIdentityCommand.ts b/clients/client-cognito-identity/commands/UnlinkIdentityCommand.ts index 68d4faa5341d4..612666f885b6c 100644 --- a/clients/client-cognito-identity/commands/UnlinkIdentityCommand.ts +++ b/clients/client-cognito-identity/commands/UnlinkIdentityCommand.ts @@ -31,6 +31,7 @@ export class UnlinkIdentityCommand extends $Command< UnlinkIdentityCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UnlinkIdentityCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/UntagResourceCommand.ts b/clients/client-cognito-identity/commands/UntagResourceCommand.ts index 70e56882be124..33734b8ad613b 100644 --- a/clients/client-cognito-identity/commands/UntagResourceCommand.ts +++ b/clients/client-cognito-identity/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class UntagResourceCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity/commands/UpdateIdentityPoolCommand.ts b/clients/client-cognito-identity/commands/UpdateIdentityPoolCommand.ts index 798d899f428a0..fb958aa50bf3b 100644 --- a/clients/client-cognito-identity/commands/UpdateIdentityPoolCommand.ts +++ b/clients/client-cognito-identity/commands/UpdateIdentityPoolCommand.ts @@ -30,6 +30,7 @@ export class UpdateIdentityPoolCommand extends $Command< UpdateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class UpdateIdentityPoolCommand extends $Command< configuration: CognitoIdentityClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/BulkPublishCommand.ts b/clients/client-cognito-sync/commands/BulkPublishCommand.ts index 60aaf3c4d0ce6..4414ba18e90c8 100644 --- a/clients/client-cognito-sync/commands/BulkPublishCommand.ts +++ b/clients/client-cognito-sync/commands/BulkPublishCommand.ts @@ -29,6 +29,7 @@ export class BulkPublishCommand extends $Command< BulkPublishCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BulkPublishCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/DeleteDatasetCommand.ts b/clients/client-cognito-sync/commands/DeleteDatasetCommand.ts index 90c888539a3c7..a495b6482749b 100644 --- a/clients/client-cognito-sync/commands/DeleteDatasetCommand.ts +++ b/clients/client-cognito-sync/commands/DeleteDatasetCommand.ts @@ -29,6 +29,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDatasetCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/DescribeDatasetCommand.ts b/clients/client-cognito-sync/commands/DescribeDatasetCommand.ts index 8b24ade1eb523..0aa57a324c6fb 100644 --- a/clients/client-cognito-sync/commands/DescribeDatasetCommand.ts +++ b/clients/client-cognito-sync/commands/DescribeDatasetCommand.ts @@ -29,6 +29,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDatasetCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/DescribeIdentityPoolUsageCommand.ts b/clients/client-cognito-sync/commands/DescribeIdentityPoolUsageCommand.ts index 4c20d50311c0c..6469a13b1585d 100644 --- a/clients/client-cognito-sync/commands/DescribeIdentityPoolUsageCommand.ts +++ b/clients/client-cognito-sync/commands/DescribeIdentityPoolUsageCommand.ts @@ -29,6 +29,7 @@ export class DescribeIdentityPoolUsageCommand extends $Command< DescribeIdentityPoolUsageCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeIdentityPoolUsageCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/DescribeIdentityUsageCommand.ts b/clients/client-cognito-sync/commands/DescribeIdentityUsageCommand.ts index 551ba62739f41..65455f81b2696 100644 --- a/clients/client-cognito-sync/commands/DescribeIdentityUsageCommand.ts +++ b/clients/client-cognito-sync/commands/DescribeIdentityUsageCommand.ts @@ -29,6 +29,7 @@ export class DescribeIdentityUsageCommand extends $Command< DescribeIdentityUsageCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeIdentityUsageCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/GetBulkPublishDetailsCommand.ts b/clients/client-cognito-sync/commands/GetBulkPublishDetailsCommand.ts index e8341989bd59b..0af7e2f875065 100644 --- a/clients/client-cognito-sync/commands/GetBulkPublishDetailsCommand.ts +++ b/clients/client-cognito-sync/commands/GetBulkPublishDetailsCommand.ts @@ -29,6 +29,7 @@ export class GetBulkPublishDetailsCommand extends $Command< GetBulkPublishDetailsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetBulkPublishDetailsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/GetCognitoEventsCommand.ts b/clients/client-cognito-sync/commands/GetCognitoEventsCommand.ts index d408d5679a31e..b096d0b3ac923 100644 --- a/clients/client-cognito-sync/commands/GetCognitoEventsCommand.ts +++ b/clients/client-cognito-sync/commands/GetCognitoEventsCommand.ts @@ -29,6 +29,7 @@ export class GetCognitoEventsCommand extends $Command< GetCognitoEventsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetCognitoEventsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/GetIdentityPoolConfigurationCommand.ts b/clients/client-cognito-sync/commands/GetIdentityPoolConfigurationCommand.ts index c7c84731074af..ac76aae1476dc 100644 --- a/clients/client-cognito-sync/commands/GetIdentityPoolConfigurationCommand.ts +++ b/clients/client-cognito-sync/commands/GetIdentityPoolConfigurationCommand.ts @@ -29,6 +29,7 @@ export class GetIdentityPoolConfigurationCommand extends $Command< GetIdentityPoolConfigurationCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetIdentityPoolConfigurationCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/ListDatasetsCommand.ts b/clients/client-cognito-sync/commands/ListDatasetsCommand.ts index 76875ff9e4b47..996960a2b4f67 100644 --- a/clients/client-cognito-sync/commands/ListDatasetsCommand.ts +++ b/clients/client-cognito-sync/commands/ListDatasetsCommand.ts @@ -29,6 +29,7 @@ export class ListDatasetsCommand extends $Command< ListDatasetsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDatasetsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/ListIdentityPoolUsageCommand.ts b/clients/client-cognito-sync/commands/ListIdentityPoolUsageCommand.ts index 9f79009feefd3..7802897c722bd 100644 --- a/clients/client-cognito-sync/commands/ListIdentityPoolUsageCommand.ts +++ b/clients/client-cognito-sync/commands/ListIdentityPoolUsageCommand.ts @@ -29,6 +29,7 @@ export class ListIdentityPoolUsageCommand extends $Command< ListIdentityPoolUsageCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListIdentityPoolUsageCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/ListRecordsCommand.ts b/clients/client-cognito-sync/commands/ListRecordsCommand.ts index 079b13debe269..2d8d877895376 100644 --- a/clients/client-cognito-sync/commands/ListRecordsCommand.ts +++ b/clients/client-cognito-sync/commands/ListRecordsCommand.ts @@ -29,6 +29,7 @@ export class ListRecordsCommand extends $Command< ListRecordsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRecordsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/RegisterDeviceCommand.ts b/clients/client-cognito-sync/commands/RegisterDeviceCommand.ts index 3ee5351dd5ff5..4ef9385d05f46 100644 --- a/clients/client-cognito-sync/commands/RegisterDeviceCommand.ts +++ b/clients/client-cognito-sync/commands/RegisterDeviceCommand.ts @@ -29,6 +29,7 @@ export class RegisterDeviceCommand extends $Command< RegisterDeviceCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RegisterDeviceCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/SetCognitoEventsCommand.ts b/clients/client-cognito-sync/commands/SetCognitoEventsCommand.ts index 826af7bd2d563..aded734262383 100644 --- a/clients/client-cognito-sync/commands/SetCognitoEventsCommand.ts +++ b/clients/client-cognito-sync/commands/SetCognitoEventsCommand.ts @@ -29,6 +29,7 @@ export class SetCognitoEventsCommand extends $Command< SetCognitoEventsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SetCognitoEventsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/SetIdentityPoolConfigurationCommand.ts b/clients/client-cognito-sync/commands/SetIdentityPoolConfigurationCommand.ts index d4232d0c54adf..9207f7b1b5fde 100644 --- a/clients/client-cognito-sync/commands/SetIdentityPoolConfigurationCommand.ts +++ b/clients/client-cognito-sync/commands/SetIdentityPoolConfigurationCommand.ts @@ -29,6 +29,7 @@ export class SetIdentityPoolConfigurationCommand extends $Command< SetIdentityPoolConfigurationCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SetIdentityPoolConfigurationCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/SubscribeToDatasetCommand.ts b/clients/client-cognito-sync/commands/SubscribeToDatasetCommand.ts index 070c7ab056aff..f480cc2517b61 100644 --- a/clients/client-cognito-sync/commands/SubscribeToDatasetCommand.ts +++ b/clients/client-cognito-sync/commands/SubscribeToDatasetCommand.ts @@ -29,6 +29,7 @@ export class SubscribeToDatasetCommand extends $Command< SubscribeToDatasetCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SubscribeToDatasetCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/UnsubscribeFromDatasetCommand.ts b/clients/client-cognito-sync/commands/UnsubscribeFromDatasetCommand.ts index 1ff4f17ef3e49..4e1ec2f413092 100644 --- a/clients/client-cognito-sync/commands/UnsubscribeFromDatasetCommand.ts +++ b/clients/client-cognito-sync/commands/UnsubscribeFromDatasetCommand.ts @@ -29,6 +29,7 @@ export class UnsubscribeFromDatasetCommand extends $Command< UnsubscribeFromDatasetCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UnsubscribeFromDatasetCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-sync/commands/UpdateRecordsCommand.ts b/clients/client-cognito-sync/commands/UpdateRecordsCommand.ts index a3b7886aec25b..7c86b7dda4c74 100644 --- a/clients/client-cognito-sync/commands/UpdateRecordsCommand.ts +++ b/clients/client-cognito-sync/commands/UpdateRecordsCommand.ts @@ -31,6 +31,7 @@ export class UpdateRecordsCommand extends $Command< UpdateRecordsCommandOutput, CognitoSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateRecordsCommand extends $Command< configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts b/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts index 64b4b038c0676..a4b485d3112c9 100644 --- a/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts +++ b/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts @@ -30,6 +30,7 @@ export class BatchDetectDominantLanguageCommand extends $Command< BatchDetectDominantLanguageCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchDetectDominantLanguageCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts b/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts index 3f806adcc3ccf..50a6c7296765a 100644 --- a/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts +++ b/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts @@ -30,6 +30,7 @@ export class BatchDetectEntitiesCommand extends $Command< BatchDetectEntitiesCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchDetectEntitiesCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts b/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts index 0e275ace15c91..94245b40e6908 100644 --- a/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts +++ b/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts @@ -28,6 +28,7 @@ export class BatchDetectKeyPhrasesCommand extends $Command< BatchDetectKeyPhrasesCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDetectKeyPhrasesCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts b/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts index 68089a5e0aebc..5fae865b28090 100644 --- a/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts +++ b/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts @@ -30,6 +30,7 @@ export class BatchDetectSentimentCommand extends $Command< BatchDetectSentimentCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchDetectSentimentCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts b/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts index cce7cf3313d83..9f00e45b5c504 100644 --- a/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts +++ b/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts @@ -29,6 +29,7 @@ export class BatchDetectSyntaxCommand extends $Command< BatchDetectSyntaxCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BatchDetectSyntaxCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ClassifyDocumentCommand.ts b/clients/client-comprehend/commands/ClassifyDocumentCommand.ts index 3f438508a3ff2..c6db7bc8ce6d1 100644 --- a/clients/client-comprehend/commands/ClassifyDocumentCommand.ts +++ b/clients/client-comprehend/commands/ClassifyDocumentCommand.ts @@ -29,6 +29,7 @@ export class ClassifyDocumentCommand extends $Command< ClassifyDocumentCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ClassifyDocumentCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts b/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts index e0791af0da300..14e60b7465509 100644 --- a/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts +++ b/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts @@ -31,6 +31,7 @@ export class CreateDocumentClassifierCommand extends $Command< CreateDocumentClassifierCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDocumentClassifierCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/CreateEndpointCommand.ts b/clients/client-comprehend/commands/CreateEndpointCommand.ts index df247051edae6..827fc5b59f0df 100644 --- a/clients/client-comprehend/commands/CreateEndpointCommand.ts +++ b/clients/client-comprehend/commands/CreateEndpointCommand.ts @@ -30,6 +30,7 @@ export class CreateEndpointCommand extends $Command< CreateEndpointCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateEndpointCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts b/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts index 4209f65dcaccd..4ce114210bace 100644 --- a/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts +++ b/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts @@ -30,6 +30,7 @@ export class CreateEntityRecognizerCommand extends $Command< CreateEntityRecognizerCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateEntityRecognizerCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts b/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts index 850112a2d1690..0e640b499a472 100644 --- a/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts +++ b/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts @@ -34,6 +34,7 @@ export class DeleteDocumentClassifierCommand extends $Command< DeleteDocumentClassifierCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteDocumentClassifierCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DeleteEndpointCommand.ts b/clients/client-comprehend/commands/DeleteEndpointCommand.ts index 2607d182b1ded..4eeabe651ffe2 100644 --- a/clients/client-comprehend/commands/DeleteEndpointCommand.ts +++ b/clients/client-comprehend/commands/DeleteEndpointCommand.ts @@ -29,6 +29,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteEndpointCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts b/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts index 63a56deca3a90..28e78e92f87c2 100644 --- a/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts +++ b/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts @@ -34,6 +34,7 @@ export class DeleteEntityRecognizerCommand extends $Command< DeleteEntityRecognizerCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteEntityRecognizerCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts b/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts index 8ba43873ef2f0..09ef498f98890 100644 --- a/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts @@ -33,6 +33,7 @@ export class DescribeDocumentClassificationJobCommand extends $Command< DescribeDocumentClassificationJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDocumentClassificationJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts b/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts index 6dff4fcad99da..5c1759fbdc3cb 100644 --- a/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts +++ b/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts @@ -28,6 +28,7 @@ export class DescribeDocumentClassifierCommand extends $Command< DescribeDocumentClassifierCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDocumentClassifierCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts index 794f5811ff59a..acd1f56b77278 100644 --- a/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts @@ -33,6 +33,7 @@ export class DescribeDominantLanguageDetectionJobCommand extends $Command< DescribeDominantLanguageDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDominantLanguageDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeEndpointCommand.ts b/clients/client-comprehend/commands/DescribeEndpointCommand.ts index d7e820239bcb2..7b9b5ef8c583d 100644 --- a/clients/client-comprehend/commands/DescribeEndpointCommand.ts +++ b/clients/client-comprehend/commands/DescribeEndpointCommand.ts @@ -29,6 +29,7 @@ export class DescribeEndpointCommand extends $Command< DescribeEndpointCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEndpointCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts index 3207676476422..f1845585fc698 100644 --- a/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeEntitiesDetectionJobCommand extends $Command< DescribeEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts b/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts index e6153c537181a..2cf15d33cc352 100644 --- a/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts +++ b/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts @@ -29,6 +29,7 @@ export class DescribeEntityRecognizerCommand extends $Command< DescribeEntityRecognizerCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEntityRecognizerCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeEventsDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeEventsDetectionJobCommand.ts index 6667820a0ae98..2703d1a710b4e 100644 --- a/clients/client-comprehend/commands/DescribeEventsDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeEventsDetectionJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeEventsDetectionJobCommand extends $Command< DescribeEventsDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEventsDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts index 8e9504730cace..e4b5440dc9458 100644 --- a/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeKeyPhrasesDetectionJobCommand extends $Command< DescribeKeyPhrasesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeKeyPhrasesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribePiiEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribePiiEntitiesDetectionJobCommand.ts index 292d32c12c4df..f499ba0cd7b84 100644 --- a/clients/client-comprehend/commands/DescribePiiEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribePiiEntitiesDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class DescribePiiEntitiesDetectionJobCommand extends $Command< DescribePiiEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePiiEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts index c8a2acb4e715d..75f5f17f68564 100644 --- a/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeSentimentDetectionJobCommand extends $Command< DescribeSentimentDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSentimentDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts index 0d5fe6b2a7c39..9f698b1841a4b 100644 --- a/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeTopicsDetectionJobCommand extends $Command< DescribeTopicsDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTopicsDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts b/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts index ed830335c0002..33e00435352f6 100644 --- a/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts +++ b/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts @@ -29,6 +29,7 @@ export class DetectDominantLanguageCommand extends $Command< DetectDominantLanguageCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetectDominantLanguageCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectEntitiesCommand.ts b/clients/client-comprehend/commands/DetectEntitiesCommand.ts index b8e3b0537d6be..4cab239262ec5 100644 --- a/clients/client-comprehend/commands/DetectEntitiesCommand.ts +++ b/clients/client-comprehend/commands/DetectEntitiesCommand.ts @@ -29,6 +29,7 @@ export class DetectEntitiesCommand extends $Command< DetectEntitiesCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetectEntitiesCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts b/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts index bc1bd17c1faaa..b70821e61b554 100644 --- a/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts +++ b/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts @@ -28,6 +28,7 @@ export class DetectKeyPhrasesCommand extends $Command< DetectKeyPhrasesCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetectKeyPhrasesCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectPiiEntitiesCommand.ts b/clients/client-comprehend/commands/DetectPiiEntitiesCommand.ts index 43482136a6be7..2c921fe670017 100644 --- a/clients/client-comprehend/commands/DetectPiiEntitiesCommand.ts +++ b/clients/client-comprehend/commands/DetectPiiEntitiesCommand.ts @@ -29,6 +29,7 @@ export class DetectPiiEntitiesCommand extends $Command< DetectPiiEntitiesCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetectPiiEntitiesCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectSentimentCommand.ts b/clients/client-comprehend/commands/DetectSentimentCommand.ts index 2a4bc0657d5bc..019029ca09125 100644 --- a/clients/client-comprehend/commands/DetectSentimentCommand.ts +++ b/clients/client-comprehend/commands/DetectSentimentCommand.ts @@ -29,6 +29,7 @@ export class DetectSentimentCommand extends $Command< DetectSentimentCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetectSentimentCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/DetectSyntaxCommand.ts b/clients/client-comprehend/commands/DetectSyntaxCommand.ts index 8ea516136348d..43a3430f8570b 100644 --- a/clients/client-comprehend/commands/DetectSyntaxCommand.ts +++ b/clients/client-comprehend/commands/DetectSyntaxCommand.ts @@ -29,6 +29,7 @@ export class DetectSyntaxCommand extends $Command< DetectSyntaxCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DetectSyntaxCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts b/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts index ef6231cd79af9..4f22384a38601 100644 --- a/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts +++ b/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts @@ -28,6 +28,7 @@ export class ListDocumentClassificationJobsCommand extends $Command< ListDocumentClassificationJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDocumentClassificationJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts b/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts index 67d705ac0cbf7..af0530be48f58 100644 --- a/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts +++ b/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts @@ -28,6 +28,7 @@ export class ListDocumentClassifiersCommand extends $Command< ListDocumentClassifiersCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDocumentClassifiersCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts index 8bad9eadfd312..764b587dec97c 100644 --- a/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts @@ -32,6 +32,7 @@ export class ListDominantLanguageDetectionJobsCommand extends $Command< ListDominantLanguageDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDominantLanguageDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListEndpointsCommand.ts b/clients/client-comprehend/commands/ListEndpointsCommand.ts index 6711a122425af..eba1fa09f3c04 100644 --- a/clients/client-comprehend/commands/ListEndpointsCommand.ts +++ b/clients/client-comprehend/commands/ListEndpointsCommand.ts @@ -28,6 +28,7 @@ export class ListEndpointsCommand extends $Command< ListEndpointsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEndpointsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts index efe9d458072f2..31257974e2c34 100644 --- a/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListEntitiesDetectionJobsCommand extends $Command< ListEntitiesDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEntitiesDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts b/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts index b005c636bea82..6b484721924ae 100644 --- a/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts +++ b/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts @@ -33,6 +33,7 @@ export class ListEntityRecognizersCommand extends $Command< ListEntityRecognizersCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListEntityRecognizersCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListEventsDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListEventsDetectionJobsCommand.ts index 259ac2edbf255..9a7664a66ceb4 100644 --- a/clients/client-comprehend/commands/ListEventsDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListEventsDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListEventsDetectionJobsCommand extends $Command< ListEventsDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEventsDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts index bf1d22524d9ec..f6acf6d8aacd3 100644 --- a/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListKeyPhrasesDetectionJobsCommand extends $Command< ListKeyPhrasesDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListKeyPhrasesDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListPiiEntitiesDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListPiiEntitiesDetectionJobsCommand.ts index af0ea23f3e3ba..c485e23c29d60 100644 --- a/clients/client-comprehend/commands/ListPiiEntitiesDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListPiiEntitiesDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListPiiEntitiesDetectionJobsCommand extends $Command< ListPiiEntitiesDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPiiEntitiesDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts index 0cc8e0d764a4f..c0b5b35e2813a 100644 --- a/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListSentimentDetectionJobsCommand extends $Command< ListSentimentDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSentimentDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListTagsForResourceCommand.ts b/clients/client-comprehend/commands/ListTagsForResourceCommand.ts index f2e7068feb4d4..6004028f9c989 100644 --- a/clients/client-comprehend/commands/ListTagsForResourceCommand.ts +++ b/clients/client-comprehend/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts index 5b22b669e1cd5..d380acb9b4a43 100644 --- a/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts +++ b/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListTopicsDetectionJobsCommand extends $Command< ListTopicsDetectionJobsCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTopicsDetectionJobsCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts b/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts index 2c5d63be794ac..b97ef12798d65 100644 --- a/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts +++ b/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts @@ -29,6 +29,7 @@ export class StartDocumentClassificationJobCommand extends $Command< StartDocumentClassificationJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartDocumentClassificationJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts index 95f95e7a6eca7..d8a24b3bfe06a 100644 --- a/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts @@ -34,6 +34,7 @@ export class StartDominantLanguageDetectionJobCommand extends $Command< StartDominantLanguageDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StartDominantLanguageDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts index acbaa6c482a98..44ba2a4b91177 100644 --- a/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts @@ -32,6 +32,7 @@ export class StartEntitiesDetectionJobCommand extends $Command< StartEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartEventsDetectionJobCommand.ts b/clients/client-comprehend/commands/StartEventsDetectionJobCommand.ts index 0cf49dd011e0c..a860dac0dbfa2 100644 --- a/clients/client-comprehend/commands/StartEventsDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartEventsDetectionJobCommand.ts @@ -28,6 +28,7 @@ export class StartEventsDetectionJobCommand extends $Command< StartEventsDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartEventsDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts index 2e01249fbb10c..5469584202010 100644 --- a/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts @@ -30,6 +30,7 @@ export class StartKeyPhrasesDetectionJobCommand extends $Command< StartKeyPhrasesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartKeyPhrasesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartPiiEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StartPiiEntitiesDetectionJobCommand.ts index 97e119418ffcb..4b4984c91d494 100644 --- a/clients/client-comprehend/commands/StartPiiEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartPiiEntitiesDetectionJobCommand.ts @@ -28,6 +28,7 @@ export class StartPiiEntitiesDetectionJobCommand extends $Command< StartPiiEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartPiiEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts index 9bd1300c10902..168b272bdcb69 100644 --- a/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts @@ -30,6 +30,7 @@ export class StartSentimentDetectionJobCommand extends $Command< StartSentimentDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartSentimentDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts b/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts index b155859357674..947ec76eb2fa6 100644 --- a/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts @@ -29,6 +29,7 @@ export class StartTopicsDetectionJobCommand extends $Command< StartTopicsDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartTopicsDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts index afa0dba737160..fa849d8fe3223 100644 --- a/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts @@ -37,6 +37,7 @@ export class StopDominantLanguageDetectionJobCommand extends $Command< StopDominantLanguageDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StopDominantLanguageDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts index 19ece653ae414..2d125cd508ac7 100644 --- a/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts @@ -37,6 +37,7 @@ export class StopEntitiesDetectionJobCommand extends $Command< StopEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StopEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopEventsDetectionJobCommand.ts b/clients/client-comprehend/commands/StopEventsDetectionJobCommand.ts index 3a9229ae1fb32..cb067e9c1f0c1 100644 --- a/clients/client-comprehend/commands/StopEventsDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopEventsDetectionJobCommand.ts @@ -28,6 +28,7 @@ export class StopEventsDetectionJobCommand extends $Command< StopEventsDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopEventsDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts index 831a0ce7bac4c..637a415379426 100644 --- a/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts @@ -37,6 +37,7 @@ export class StopKeyPhrasesDetectionJobCommand extends $Command< StopKeyPhrasesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StopKeyPhrasesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopPiiEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StopPiiEntitiesDetectionJobCommand.ts index 0f12be0677fde..bfdca5d4880e1 100644 --- a/clients/client-comprehend/commands/StopPiiEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopPiiEntitiesDetectionJobCommand.ts @@ -28,6 +28,7 @@ export class StopPiiEntitiesDetectionJobCommand extends $Command< StopPiiEntitiesDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopPiiEntitiesDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts index cfccefbfd7f97..19b54b2350950 100644 --- a/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts @@ -37,6 +37,7 @@ export class StopSentimentDetectionJobCommand extends $Command< StopSentimentDetectionJobCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StopSentimentDetectionJobCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts b/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts index cd5588c80ae95..f220e2fe2c414 100644 --- a/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts +++ b/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts @@ -33,6 +33,7 @@ export class StopTrainingDocumentClassifierCommand extends $Command< StopTrainingDocumentClassifierCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopTrainingDocumentClassifierCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/StopTrainingEntityRecognizerCommand.ts b/clients/client-comprehend/commands/StopTrainingEntityRecognizerCommand.ts index 32b4394387e3d..85c069f48f652 100644 --- a/clients/client-comprehend/commands/StopTrainingEntityRecognizerCommand.ts +++ b/clients/client-comprehend/commands/StopTrainingEntityRecognizerCommand.ts @@ -33,6 +33,7 @@ export class StopTrainingEntityRecognizerCommand extends $Command< StopTrainingEntityRecognizerCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopTrainingEntityRecognizerCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/TagResourceCommand.ts b/clients/client-comprehend/commands/TagResourceCommand.ts index c7ada78896996..3825f14768cea 100644 --- a/clients/client-comprehend/commands/TagResourceCommand.ts +++ b/clients/client-comprehend/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/UntagResourceCommand.ts b/clients/client-comprehend/commands/UntagResourceCommand.ts index 2adef2715cbd8..4e3eee0b05171 100644 --- a/clients/client-comprehend/commands/UntagResourceCommand.ts +++ b/clients/client-comprehend/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehend/commands/UpdateEndpointCommand.ts b/clients/client-comprehend/commands/UpdateEndpointCommand.ts index 0f2c35885f4d6..9b76d428d59cb 100644 --- a/clients/client-comprehend/commands/UpdateEndpointCommand.ts +++ b/clients/client-comprehend/commands/UpdateEndpointCommand.ts @@ -28,6 +28,7 @@ export class UpdateEndpointCommand extends $Command< UpdateEndpointCommandOutput, ComprehendClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEndpointCommand extends $Command< configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DescribeEntitiesDetectionV2JobCommand.ts b/clients/client-comprehendmedical/commands/DescribeEntitiesDetectionV2JobCommand.ts index 6b02d56be69a6..10a65a97600f1 100644 --- a/clients/client-comprehendmedical/commands/DescribeEntitiesDetectionV2JobCommand.ts +++ b/clients/client-comprehendmedical/commands/DescribeEntitiesDetectionV2JobCommand.ts @@ -33,6 +33,7 @@ export class DescribeEntitiesDetectionV2JobCommand extends $Command< DescribeEntitiesDetectionV2JobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEntitiesDetectionV2JobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DescribeICD10CMInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/DescribeICD10CMInferenceJobCommand.ts index ccdb7b5c0bc1f..315566d1abb44 100644 --- a/clients/client-comprehendmedical/commands/DescribeICD10CMInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/DescribeICD10CMInferenceJobCommand.ts @@ -33,6 +33,7 @@ export class DescribeICD10CMInferenceJobCommand extends $Command< DescribeICD10CMInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeICD10CMInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DescribePHIDetectionJobCommand.ts b/clients/client-comprehendmedical/commands/DescribePHIDetectionJobCommand.ts index 218dd5a838081..4db40829ca066 100644 --- a/clients/client-comprehendmedical/commands/DescribePHIDetectionJobCommand.ts +++ b/clients/client-comprehendmedical/commands/DescribePHIDetectionJobCommand.ts @@ -33,6 +33,7 @@ export class DescribePHIDetectionJobCommand extends $Command< DescribePHIDetectionJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribePHIDetectionJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DescribeRxNormInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/DescribeRxNormInferenceJobCommand.ts index d7d699375fca1..7892b02dc7b1d 100644 --- a/clients/client-comprehendmedical/commands/DescribeRxNormInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/DescribeRxNormInferenceJobCommand.ts @@ -33,6 +33,7 @@ export class DescribeRxNormInferenceJobCommand extends $Command< DescribeRxNormInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeRxNormInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DetectEntitiesCommand.ts b/clients/client-comprehendmedical/commands/DetectEntitiesCommand.ts index 53747b6ad5cc2..5df8c2b2d9ffa 100644 --- a/clients/client-comprehendmedical/commands/DetectEntitiesCommand.ts +++ b/clients/client-comprehendmedical/commands/DetectEntitiesCommand.ts @@ -35,6 +35,7 @@ export class DetectEntitiesCommand extends $Command< DetectEntitiesCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DetectEntitiesCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DetectEntitiesV2Command.ts b/clients/client-comprehendmedical/commands/DetectEntitiesV2Command.ts index 5f1f26ea553b2..6cf685cbda57b 100644 --- a/clients/client-comprehendmedical/commands/DetectEntitiesV2Command.ts +++ b/clients/client-comprehendmedical/commands/DetectEntitiesV2Command.ts @@ -41,6 +41,7 @@ export class DetectEntitiesV2Command extends $Command< DetectEntitiesV2CommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DetectEntitiesV2Command extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/DetectPHICommand.ts b/clients/client-comprehendmedical/commands/DetectPHICommand.ts index 37792203d7b0e..6fa0aa8a724a3 100644 --- a/clients/client-comprehendmedical/commands/DetectPHICommand.ts +++ b/clients/client-comprehendmedical/commands/DetectPHICommand.ts @@ -31,6 +31,7 @@ export class DetectPHICommand extends $Command< DetectPHICommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DetectPHICommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/InferICD10CMCommand.ts b/clients/client-comprehendmedical/commands/InferICD10CMCommand.ts index 0bf61e2308635..f549428279db6 100644 --- a/clients/client-comprehendmedical/commands/InferICD10CMCommand.ts +++ b/clients/client-comprehendmedical/commands/InferICD10CMCommand.ts @@ -35,6 +35,7 @@ export class InferICD10CMCommand extends $Command< InferICD10CMCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class InferICD10CMCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/InferRxNormCommand.ts b/clients/client-comprehendmedical/commands/InferRxNormCommand.ts index 2d0071850e093..19cc788d2109a 100644 --- a/clients/client-comprehendmedical/commands/InferRxNormCommand.ts +++ b/clients/client-comprehendmedical/commands/InferRxNormCommand.ts @@ -34,6 +34,7 @@ export class InferRxNormCommand extends $Command< InferRxNormCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class InferRxNormCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/ListEntitiesDetectionV2JobsCommand.ts b/clients/client-comprehendmedical/commands/ListEntitiesDetectionV2JobsCommand.ts index 7c9ba4ff8d360..b1989d788a8ca 100644 --- a/clients/client-comprehendmedical/commands/ListEntitiesDetectionV2JobsCommand.ts +++ b/clients/client-comprehendmedical/commands/ListEntitiesDetectionV2JobsCommand.ts @@ -32,6 +32,7 @@ export class ListEntitiesDetectionV2JobsCommand extends $Command< ListEntitiesDetectionV2JobsCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListEntitiesDetectionV2JobsCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/ListICD10CMInferenceJobsCommand.ts b/clients/client-comprehendmedical/commands/ListICD10CMInferenceJobsCommand.ts index 25e34d4d3d3c2..143f86b4ed4bf 100644 --- a/clients/client-comprehendmedical/commands/ListICD10CMInferenceJobsCommand.ts +++ b/clients/client-comprehendmedical/commands/ListICD10CMInferenceJobsCommand.ts @@ -33,6 +33,7 @@ export class ListICD10CMInferenceJobsCommand extends $Command< ListICD10CMInferenceJobsCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListICD10CMInferenceJobsCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/ListPHIDetectionJobsCommand.ts b/clients/client-comprehendmedical/commands/ListPHIDetectionJobsCommand.ts index 5db24cb194bd8..1135d820c0b0d 100644 --- a/clients/client-comprehendmedical/commands/ListPHIDetectionJobsCommand.ts +++ b/clients/client-comprehendmedical/commands/ListPHIDetectionJobsCommand.ts @@ -33,6 +33,7 @@ export class ListPHIDetectionJobsCommand extends $Command< ListPHIDetectionJobsCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListPHIDetectionJobsCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/ListRxNormInferenceJobsCommand.ts b/clients/client-comprehendmedical/commands/ListRxNormInferenceJobsCommand.ts index c248d64cd8d30..0bc35b2133337 100644 --- a/clients/client-comprehendmedical/commands/ListRxNormInferenceJobsCommand.ts +++ b/clients/client-comprehendmedical/commands/ListRxNormInferenceJobsCommand.ts @@ -33,6 +33,7 @@ export class ListRxNormInferenceJobsCommand extends $Command< ListRxNormInferenceJobsCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListRxNormInferenceJobsCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StartEntitiesDetectionV2JobCommand.ts b/clients/client-comprehendmedical/commands/StartEntitiesDetectionV2JobCommand.ts index f813b449b2690..cc1dea18ce907 100644 --- a/clients/client-comprehendmedical/commands/StartEntitiesDetectionV2JobCommand.ts +++ b/clients/client-comprehendmedical/commands/StartEntitiesDetectionV2JobCommand.ts @@ -33,6 +33,7 @@ export class StartEntitiesDetectionV2JobCommand extends $Command< StartEntitiesDetectionV2JobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartEntitiesDetectionV2JobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StartICD10CMInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/StartICD10CMInferenceJobCommand.ts index 61f622ba85850..f5accbe87c985 100644 --- a/clients/client-comprehendmedical/commands/StartICD10CMInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StartICD10CMInferenceJobCommand.ts @@ -33,6 +33,7 @@ export class StartICD10CMInferenceJobCommand extends $Command< StartICD10CMInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartICD10CMInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StartPHIDetectionJobCommand.ts b/clients/client-comprehendmedical/commands/StartPHIDetectionJobCommand.ts index 59884dfdfbb4a..beb41787674a0 100644 --- a/clients/client-comprehendmedical/commands/StartPHIDetectionJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StartPHIDetectionJobCommand.ts @@ -33,6 +33,7 @@ export class StartPHIDetectionJobCommand extends $Command< StartPHIDetectionJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartPHIDetectionJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StartRxNormInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/StartRxNormInferenceJobCommand.ts index 18a7fe202e0b2..a57e5d5185c28 100644 --- a/clients/client-comprehendmedical/commands/StartRxNormInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StartRxNormInferenceJobCommand.ts @@ -33,6 +33,7 @@ export class StartRxNormInferenceJobCommand extends $Command< StartRxNormInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartRxNormInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StopEntitiesDetectionV2JobCommand.ts b/clients/client-comprehendmedical/commands/StopEntitiesDetectionV2JobCommand.ts index d2b84197b95ee..7e7d0c893818b 100644 --- a/clients/client-comprehendmedical/commands/StopEntitiesDetectionV2JobCommand.ts +++ b/clients/client-comprehendmedical/commands/StopEntitiesDetectionV2JobCommand.ts @@ -32,6 +32,7 @@ export class StopEntitiesDetectionV2JobCommand extends $Command< StopEntitiesDetectionV2JobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopEntitiesDetectionV2JobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StopICD10CMInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/StopICD10CMInferenceJobCommand.ts index ddb33e0b6960c..fb4a13f92ab72 100644 --- a/clients/client-comprehendmedical/commands/StopICD10CMInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StopICD10CMInferenceJobCommand.ts @@ -32,6 +32,7 @@ export class StopICD10CMInferenceJobCommand extends $Command< StopICD10CMInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopICD10CMInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StopPHIDetectionJobCommand.ts b/clients/client-comprehendmedical/commands/StopPHIDetectionJobCommand.ts index c815adf1573cc..54c37fd4bc6b0 100644 --- a/clients/client-comprehendmedical/commands/StopPHIDetectionJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StopPHIDetectionJobCommand.ts @@ -32,6 +32,7 @@ export class StopPHIDetectionJobCommand extends $Command< StopPHIDetectionJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopPHIDetectionJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-comprehendmedical/commands/StopRxNormInferenceJobCommand.ts b/clients/client-comprehendmedical/commands/StopRxNormInferenceJobCommand.ts index 970c76ffb612f..4ac04c1cceb47 100644 --- a/clients/client-comprehendmedical/commands/StopRxNormInferenceJobCommand.ts +++ b/clients/client-comprehendmedical/commands/StopRxNormInferenceJobCommand.ts @@ -32,6 +32,7 @@ export class StopRxNormInferenceJobCommand extends $Command< StopRxNormInferenceJobCommandOutput, ComprehendMedicalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopRxNormInferenceJobCommand extends $Command< configuration: ComprehendMedicalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/DescribeRecommendationExportJobsCommand.ts b/clients/client-compute-optimizer/commands/DescribeRecommendationExportJobsCommand.ts index d4e479debba65..3bbaf7907da15 100644 --- a/clients/client-compute-optimizer/commands/DescribeRecommendationExportJobsCommand.ts +++ b/clients/client-compute-optimizer/commands/DescribeRecommendationExportJobsCommand.ts @@ -33,6 +33,7 @@ export class DescribeRecommendationExportJobsCommand extends $Command< DescribeRecommendationExportJobsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeRecommendationExportJobsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/ExportAutoScalingGroupRecommendationsCommand.ts b/clients/client-compute-optimizer/commands/ExportAutoScalingGroupRecommendationsCommand.ts index 814c3d27a0564..ca5e281703d2d 100644 --- a/clients/client-compute-optimizer/commands/ExportAutoScalingGroupRecommendationsCommand.ts +++ b/clients/client-compute-optimizer/commands/ExportAutoScalingGroupRecommendationsCommand.ts @@ -39,6 +39,7 @@ export class ExportAutoScalingGroupRecommendationsCommand extends $Command< ExportAutoScalingGroupRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ExportAutoScalingGroupRecommendationsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/ExportEC2InstanceRecommendationsCommand.ts b/clients/client-compute-optimizer/commands/ExportEC2InstanceRecommendationsCommand.ts index 507831718eec1..50dad64350d24 100644 --- a/clients/client-compute-optimizer/commands/ExportEC2InstanceRecommendationsCommand.ts +++ b/clients/client-compute-optimizer/commands/ExportEC2InstanceRecommendationsCommand.ts @@ -35,6 +35,7 @@ export class ExportEC2InstanceRecommendationsCommand extends $Command< ExportEC2InstanceRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ExportEC2InstanceRecommendationsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetAutoScalingGroupRecommendationsCommand.ts b/clients/client-compute-optimizer/commands/GetAutoScalingGroupRecommendationsCommand.ts index 09f884465e732..ad61dec17c8e0 100644 --- a/clients/client-compute-optimizer/commands/GetAutoScalingGroupRecommendationsCommand.ts +++ b/clients/client-compute-optimizer/commands/GetAutoScalingGroupRecommendationsCommand.ts @@ -36,6 +36,7 @@ export class GetAutoScalingGroupRecommendationsCommand extends $Command< GetAutoScalingGroupRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetAutoScalingGroupRecommendationsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetEBSVolumeRecommendationsCommand.ts b/clients/client-compute-optimizer/commands/GetEBSVolumeRecommendationsCommand.ts index c0203c9b21730..a1c6eb9c8f867 100644 --- a/clients/client-compute-optimizer/commands/GetEBSVolumeRecommendationsCommand.ts +++ b/clients/client-compute-optimizer/commands/GetEBSVolumeRecommendationsCommand.ts @@ -32,6 +32,7 @@ export class GetEBSVolumeRecommendationsCommand extends $Command< GetEBSVolumeRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetEBSVolumeRecommendationsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetEC2InstanceRecommendationsCommand.ts b/clients/client-compute-optimizer/commands/GetEC2InstanceRecommendationsCommand.ts index bac989649bd85..736c134f58fef 100644 --- a/clients/client-compute-optimizer/commands/GetEC2InstanceRecommendationsCommand.ts +++ b/clients/client-compute-optimizer/commands/GetEC2InstanceRecommendationsCommand.ts @@ -32,6 +32,7 @@ export class GetEC2InstanceRecommendationsCommand extends $Command< GetEC2InstanceRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetEC2InstanceRecommendationsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetEC2RecommendationProjectedMetricsCommand.ts b/clients/client-compute-optimizer/commands/GetEC2RecommendationProjectedMetricsCommand.ts index 98b064b561283..0dd813e772370 100644 --- a/clients/client-compute-optimizer/commands/GetEC2RecommendationProjectedMetricsCommand.ts +++ b/clients/client-compute-optimizer/commands/GetEC2RecommendationProjectedMetricsCommand.ts @@ -40,6 +40,7 @@ export class GetEC2RecommendationProjectedMetricsCommand extends $Command< GetEC2RecommendationProjectedMetricsCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetEC2RecommendationProjectedMetricsCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetEnrollmentStatusCommand.ts b/clients/client-compute-optimizer/commands/GetEnrollmentStatusCommand.ts index 0e3f4952123f6..0f6b7ba7376c5 100644 --- a/clients/client-compute-optimizer/commands/GetEnrollmentStatusCommand.ts +++ b/clients/client-compute-optimizer/commands/GetEnrollmentStatusCommand.ts @@ -30,6 +30,7 @@ export class GetEnrollmentStatusCommand extends $Command< GetEnrollmentStatusCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEnrollmentStatusCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/GetRecommendationSummariesCommand.ts b/clients/client-compute-optimizer/commands/GetRecommendationSummariesCommand.ts index 614f7cfa1e5d4..ad602ccb2e086 100644 --- a/clients/client-compute-optimizer/commands/GetRecommendationSummariesCommand.ts +++ b/clients/client-compute-optimizer/commands/GetRecommendationSummariesCommand.ts @@ -31,6 +31,7 @@ export class GetRecommendationSummariesCommand extends $Command< GetRecommendationSummariesCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRecommendationSummariesCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-compute-optimizer/commands/UpdateEnrollmentStatusCommand.ts b/clients/client-compute-optimizer/commands/UpdateEnrollmentStatusCommand.ts index 29c86df99fadc..b49f9c4da5fdf 100644 --- a/clients/client-compute-optimizer/commands/UpdateEnrollmentStatusCommand.ts +++ b/clients/client-compute-optimizer/commands/UpdateEnrollmentStatusCommand.ts @@ -30,6 +30,7 @@ export class UpdateEnrollmentStatusCommand extends $Command< UpdateEnrollmentStatusCommandOutput, ComputeOptimizerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateEnrollmentStatusCommand extends $Command< configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/BatchGetAggregateResourceConfigCommand.ts b/clients/client-config-service/commands/BatchGetAggregateResourceConfigCommand.ts index 4e1d9e6e6237e..a998519cf85b1 100644 --- a/clients/client-config-service/commands/BatchGetAggregateResourceConfigCommand.ts +++ b/clients/client-config-service/commands/BatchGetAggregateResourceConfigCommand.ts @@ -40,6 +40,7 @@ export class BatchGetAggregateResourceConfigCommand extends $Command< BatchGetAggregateResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class BatchGetAggregateResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/BatchGetResourceConfigCommand.ts b/clients/client-config-service/commands/BatchGetResourceConfigCommand.ts index a1f784cb29763..b97860ef68f7c 100644 --- a/clients/client-config-service/commands/BatchGetResourceConfigCommand.ts +++ b/clients/client-config-service/commands/BatchGetResourceConfigCommand.ts @@ -46,6 +46,7 @@ export class BatchGetResourceConfigCommand extends $Command< BatchGetResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class BatchGetResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteAggregationAuthorizationCommand.ts b/clients/client-config-service/commands/DeleteAggregationAuthorizationCommand.ts index 5a57a5dffdf35..28f09b55fb1b6 100644 --- a/clients/client-config-service/commands/DeleteAggregationAuthorizationCommand.ts +++ b/clients/client-config-service/commands/DeleteAggregationAuthorizationCommand.ts @@ -29,6 +29,7 @@ export class DeleteAggregationAuthorizationCommand extends $Command< DeleteAggregationAuthorizationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAggregationAuthorizationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteConfigRuleCommand.ts b/clients/client-config-service/commands/DeleteConfigRuleCommand.ts index 6758b818be244..af1cde98874a8 100644 --- a/clients/client-config-service/commands/DeleteConfigRuleCommand.ts +++ b/clients/client-config-service/commands/DeleteConfigRuleCommand.ts @@ -36,6 +36,7 @@ export class DeleteConfigRuleCommand extends $Command< DeleteConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteConfigurationAggregatorCommand.ts b/clients/client-config-service/commands/DeleteConfigurationAggregatorCommand.ts index 65b646c030c59..26ea554177d8f 100644 --- a/clients/client-config-service/commands/DeleteConfigurationAggregatorCommand.ts +++ b/clients/client-config-service/commands/DeleteConfigurationAggregatorCommand.ts @@ -29,6 +29,7 @@ export class DeleteConfigurationAggregatorCommand extends $Command< DeleteConfigurationAggregatorCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteConfigurationAggregatorCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteConfigurationRecorderCommand.ts b/clients/client-config-service/commands/DeleteConfigurationRecorderCommand.ts index c57070ee155d7..94c4e6316969d 100644 --- a/clients/client-config-service/commands/DeleteConfigurationRecorderCommand.ts +++ b/clients/client-config-service/commands/DeleteConfigurationRecorderCommand.ts @@ -37,6 +37,7 @@ export class DeleteConfigurationRecorderCommand extends $Command< DeleteConfigurationRecorderCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteConfigurationRecorderCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteConformancePackCommand.ts b/clients/client-config-service/commands/DeleteConformancePackCommand.ts index 3431d3873086b..e6c299843dc0d 100644 --- a/clients/client-config-service/commands/DeleteConformancePackCommand.ts +++ b/clients/client-config-service/commands/DeleteConformancePackCommand.ts @@ -31,6 +31,7 @@ export class DeleteConformancePackCommand extends $Command< DeleteConformancePackCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteConformancePackCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteDeliveryChannelCommand.ts b/clients/client-config-service/commands/DeleteDeliveryChannelCommand.ts index 3b2bde9b45bc3..19d108ab1296e 100644 --- a/clients/client-config-service/commands/DeleteDeliveryChannelCommand.ts +++ b/clients/client-config-service/commands/DeleteDeliveryChannelCommand.ts @@ -30,6 +30,7 @@ export class DeleteDeliveryChannelCommand extends $Command< DeleteDeliveryChannelCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDeliveryChannelCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteEvaluationResultsCommand.ts b/clients/client-config-service/commands/DeleteEvaluationResultsCommand.ts index aa0cae7525dc1..4a107cc378fb8 100644 --- a/clients/client-config-service/commands/DeleteEvaluationResultsCommand.ts +++ b/clients/client-config-service/commands/DeleteEvaluationResultsCommand.ts @@ -31,6 +31,7 @@ export class DeleteEvaluationResultsCommand extends $Command< DeleteEvaluationResultsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteEvaluationResultsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteOrganizationConfigRuleCommand.ts b/clients/client-config-service/commands/DeleteOrganizationConfigRuleCommand.ts index 7e398e3c81e49..9a4d4a24ccf4d 100644 --- a/clients/client-config-service/commands/DeleteOrganizationConfigRuleCommand.ts +++ b/clients/client-config-service/commands/DeleteOrganizationConfigRuleCommand.ts @@ -33,6 +33,7 @@ export class DeleteOrganizationConfigRuleCommand extends $Command< DeleteOrganizationConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteOrganizationConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteOrganizationConformancePackCommand.ts b/clients/client-config-service/commands/DeleteOrganizationConformancePackCommand.ts index 2478dd5bace09..111a548eb4701 100644 --- a/clients/client-config-service/commands/DeleteOrganizationConformancePackCommand.ts +++ b/clients/client-config-service/commands/DeleteOrganizationConformancePackCommand.ts @@ -34,6 +34,7 @@ export class DeleteOrganizationConformancePackCommand extends $Command< DeleteOrganizationConformancePackCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteOrganizationConformancePackCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeletePendingAggregationRequestCommand.ts b/clients/client-config-service/commands/DeletePendingAggregationRequestCommand.ts index e9d40438e3329..edcbcc4a7e44b 100644 --- a/clients/client-config-service/commands/DeletePendingAggregationRequestCommand.ts +++ b/clients/client-config-service/commands/DeletePendingAggregationRequestCommand.ts @@ -29,6 +29,7 @@ export class DeletePendingAggregationRequestCommand extends $Command< DeletePendingAggregationRequestCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeletePendingAggregationRequestCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteRemediationConfigurationCommand.ts b/clients/client-config-service/commands/DeleteRemediationConfigurationCommand.ts index b25b0a6e8f2ab..a748fbe5d6523 100644 --- a/clients/client-config-service/commands/DeleteRemediationConfigurationCommand.ts +++ b/clients/client-config-service/commands/DeleteRemediationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteRemediationConfigurationCommand extends $Command< DeleteRemediationConfigurationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRemediationConfigurationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteRemediationExceptionsCommand.ts b/clients/client-config-service/commands/DeleteRemediationExceptionsCommand.ts index deb1769ddf21b..4c13e1ae3f908 100644 --- a/clients/client-config-service/commands/DeleteRemediationExceptionsCommand.ts +++ b/clients/client-config-service/commands/DeleteRemediationExceptionsCommand.ts @@ -32,6 +32,7 @@ export class DeleteRemediationExceptionsCommand extends $Command< DeleteRemediationExceptionsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteRemediationExceptionsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteResourceConfigCommand.ts b/clients/client-config-service/commands/DeleteResourceConfigCommand.ts index 1bd476dcd4b82..4b373dbb4b5ae 100644 --- a/clients/client-config-service/commands/DeleteResourceConfigCommand.ts +++ b/clients/client-config-service/commands/DeleteResourceConfigCommand.ts @@ -29,6 +29,7 @@ export class DeleteResourceConfigCommand extends $Command< DeleteResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeleteRetentionConfigurationCommand.ts b/clients/client-config-service/commands/DeleteRetentionConfigurationCommand.ts index 58ce494f9cf5a..46d3d759f4cfe 100644 --- a/clients/client-config-service/commands/DeleteRetentionConfigurationCommand.ts +++ b/clients/client-config-service/commands/DeleteRetentionConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteRetentionConfigurationCommand extends $Command< DeleteRetentionConfigurationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRetentionConfigurationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DeliverConfigSnapshotCommand.ts b/clients/client-config-service/commands/DeliverConfigSnapshotCommand.ts index 3c2096b90a507..71e1abd2edf90 100644 --- a/clients/client-config-service/commands/DeliverConfigSnapshotCommand.ts +++ b/clients/client-config-service/commands/DeliverConfigSnapshotCommand.ts @@ -44,6 +44,7 @@ export class DeliverConfigSnapshotCommand extends $Command< DeliverConfigSnapshotCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DeliverConfigSnapshotCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeAggregateComplianceByConfigRulesCommand.ts b/clients/client-config-service/commands/DescribeAggregateComplianceByConfigRulesCommand.ts index 40679c07bbb33..ff5fe5e2452cd 100644 --- a/clients/client-config-service/commands/DescribeAggregateComplianceByConfigRulesCommand.ts +++ b/clients/client-config-service/commands/DescribeAggregateComplianceByConfigRulesCommand.ts @@ -39,6 +39,7 @@ export class DescribeAggregateComplianceByConfigRulesCommand extends $Command< DescribeAggregateComplianceByConfigRulesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeAggregateComplianceByConfigRulesCommand extends $Command< DescribeAggregateComplianceByConfigRulesCommandInput, DescribeAggregateComplianceByConfigRulesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeAggregationAuthorizationsCommand.ts b/clients/client-config-service/commands/DescribeAggregationAuthorizationsCommand.ts index e4c93f0eb818e..941054a36668d 100644 --- a/clients/client-config-service/commands/DescribeAggregationAuthorizationsCommand.ts +++ b/clients/client-config-service/commands/DescribeAggregationAuthorizationsCommand.ts @@ -33,6 +33,7 @@ export class DescribeAggregationAuthorizationsCommand extends $Command< DescribeAggregationAuthorizationsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeAggregationAuthorizationsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeComplianceByConfigRuleCommand.ts b/clients/client-config-service/commands/DescribeComplianceByConfigRuleCommand.ts index 70cc42b094b5c..a15cd2d4b0a14 100644 --- a/clients/client-config-service/commands/DescribeComplianceByConfigRuleCommand.ts +++ b/clients/client-config-service/commands/DescribeComplianceByConfigRuleCommand.ts @@ -60,6 +60,7 @@ export class DescribeComplianceByConfigRuleCommand extends $Command< DescribeComplianceByConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class DescribeComplianceByConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeComplianceByResourceCommand.ts b/clients/client-config-service/commands/DescribeComplianceByResourceCommand.ts index 04acf978aaa1f..a062b1b02014d 100644 --- a/clients/client-config-service/commands/DescribeComplianceByResourceCommand.ts +++ b/clients/client-config-service/commands/DescribeComplianceByResourceCommand.ts @@ -61,6 +61,7 @@ export class DescribeComplianceByResourceCommand extends $Command< DescribeComplianceByResourceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class DescribeComplianceByResourceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigRuleEvaluationStatusCommand.ts b/clients/client-config-service/commands/DescribeConfigRuleEvaluationStatusCommand.ts index 3e888f1b005f5..22e74b442783f 100644 --- a/clients/client-config-service/commands/DescribeConfigRuleEvaluationStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigRuleEvaluationStatusCommand.ts @@ -35,6 +35,7 @@ export class DescribeConfigRuleEvaluationStatusCommand extends $Command< DescribeConfigRuleEvaluationStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeConfigRuleEvaluationStatusCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigRulesCommand.ts b/clients/client-config-service/commands/DescribeConfigRulesCommand.ts index 2466a9df9003f..4994b3ec4f37d 100644 --- a/clients/client-config-service/commands/DescribeConfigRulesCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigRulesCommand.ts @@ -28,6 +28,7 @@ export class DescribeConfigRulesCommand extends $Command< DescribeConfigRulesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConfigRulesCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigurationAggregatorSourcesStatusCommand.ts b/clients/client-config-service/commands/DescribeConfigurationAggregatorSourcesStatusCommand.ts index 7c63610de7cf2..2a72f611fbe7b 100644 --- a/clients/client-config-service/commands/DescribeConfigurationAggregatorSourcesStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigurationAggregatorSourcesStatusCommand.ts @@ -33,6 +33,7 @@ export class DescribeConfigurationAggregatorSourcesStatusCommand extends $Comman DescribeConfigurationAggregatorSourcesStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeConfigurationAggregatorSourcesStatusCommand extends $Comman DescribeConfigurationAggregatorSourcesStatusCommandInput, DescribeConfigurationAggregatorSourcesStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigurationAggregatorsCommand.ts b/clients/client-config-service/commands/DescribeConfigurationAggregatorsCommand.ts index 4e158490fab02..a1a62f6bd6517 100644 --- a/clients/client-config-service/commands/DescribeConfigurationAggregatorsCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigurationAggregatorsCommand.ts @@ -31,6 +31,7 @@ export class DescribeConfigurationAggregatorsCommand extends $Command< DescribeConfigurationAggregatorsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeConfigurationAggregatorsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigurationRecorderStatusCommand.ts b/clients/client-config-service/commands/DescribeConfigurationRecorderStatusCommand.ts index 5d11ca0bd5133..7b9b3b1cf856e 100644 --- a/clients/client-config-service/commands/DescribeConfigurationRecorderStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigurationRecorderStatusCommand.ts @@ -39,6 +39,7 @@ export class DescribeConfigurationRecorderStatusCommand extends $Command< DescribeConfigurationRecorderStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeConfigurationRecorderStatusCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConfigurationRecordersCommand.ts b/clients/client-config-service/commands/DescribeConfigurationRecordersCommand.ts index c0dc2c4fdb954..8aa8a166f27b9 100644 --- a/clients/client-config-service/commands/DescribeConfigurationRecordersCommand.ts +++ b/clients/client-config-service/commands/DescribeConfigurationRecordersCommand.ts @@ -35,6 +35,7 @@ export class DescribeConfigurationRecordersCommand extends $Command< DescribeConfigurationRecordersCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeConfigurationRecordersCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConformancePackComplianceCommand.ts b/clients/client-config-service/commands/DescribeConformancePackComplianceCommand.ts index 56fc9db24fa10..b160652c874db 100644 --- a/clients/client-config-service/commands/DescribeConformancePackComplianceCommand.ts +++ b/clients/client-config-service/commands/DescribeConformancePackComplianceCommand.ts @@ -35,6 +35,7 @@ export class DescribeConformancePackComplianceCommand extends $Command< DescribeConformancePackComplianceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeConformancePackComplianceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConformancePackStatusCommand.ts b/clients/client-config-service/commands/DescribeConformancePackStatusCommand.ts index ae98bf445e0c5..06e1cf01dca9d 100644 --- a/clients/client-config-service/commands/DescribeConformancePackStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeConformancePackStatusCommand.ts @@ -31,6 +31,7 @@ export class DescribeConformancePackStatusCommand extends $Command< DescribeConformancePackStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeConformancePackStatusCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeConformancePacksCommand.ts b/clients/client-config-service/commands/DescribeConformancePacksCommand.ts index f7389078bd24b..a5e6145bf0355 100644 --- a/clients/client-config-service/commands/DescribeConformancePacksCommand.ts +++ b/clients/client-config-service/commands/DescribeConformancePacksCommand.ts @@ -28,6 +28,7 @@ export class DescribeConformancePacksCommand extends $Command< DescribeConformancePacksCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConformancePacksCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeDeliveryChannelStatusCommand.ts b/clients/client-config-service/commands/DescribeDeliveryChannelStatusCommand.ts index ee72d971e2c22..524f4d1e5f65d 100644 --- a/clients/client-config-service/commands/DescribeDeliveryChannelStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeDeliveryChannelStatusCommand.ts @@ -35,6 +35,7 @@ export class DescribeDeliveryChannelStatusCommand extends $Command< DescribeDeliveryChannelStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDeliveryChannelStatusCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeDeliveryChannelsCommand.ts b/clients/client-config-service/commands/DescribeDeliveryChannelsCommand.ts index d86280bc416bc..14f59efd240fe 100644 --- a/clients/client-config-service/commands/DescribeDeliveryChannelsCommand.ts +++ b/clients/client-config-service/commands/DescribeDeliveryChannelsCommand.ts @@ -34,6 +34,7 @@ export class DescribeDeliveryChannelsCommand extends $Command< DescribeDeliveryChannelsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDeliveryChannelsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeOrganizationConfigRuleStatusesCommand.ts b/clients/client-config-service/commands/DescribeOrganizationConfigRuleStatusesCommand.ts index af938aa5b1edb..ac00ca570c589 100644 --- a/clients/client-config-service/commands/DescribeOrganizationConfigRuleStatusesCommand.ts +++ b/clients/client-config-service/commands/DescribeOrganizationConfigRuleStatusesCommand.ts @@ -42,6 +42,7 @@ export class DescribeOrganizationConfigRuleStatusesCommand extends $Command< DescribeOrganizationConfigRuleStatusesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeOrganizationConfigRuleStatusesCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeOrganizationConfigRulesCommand.ts b/clients/client-config-service/commands/DescribeOrganizationConfigRulesCommand.ts index 99a4f2cdb5b48..bc9ca886fe0ee 100644 --- a/clients/client-config-service/commands/DescribeOrganizationConfigRulesCommand.ts +++ b/clients/client-config-service/commands/DescribeOrganizationConfigRulesCommand.ts @@ -36,6 +36,7 @@ export class DescribeOrganizationConfigRulesCommand extends $Command< DescribeOrganizationConfigRulesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeOrganizationConfigRulesCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeOrganizationConformancePackStatusesCommand.ts b/clients/client-config-service/commands/DescribeOrganizationConformancePackStatusesCommand.ts index a5a48b7470a73..9d97122e2172d 100644 --- a/clients/client-config-service/commands/DescribeOrganizationConformancePackStatusesCommand.ts +++ b/clients/client-config-service/commands/DescribeOrganizationConformancePackStatusesCommand.ts @@ -42,6 +42,7 @@ export class DescribeOrganizationConformancePackStatusesCommand extends $Command DescribeOrganizationConformancePackStatusesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DescribeOrganizationConformancePackStatusesCommand extends $Command DescribeOrganizationConformancePackStatusesCommandInput, DescribeOrganizationConformancePackStatusesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeOrganizationConformancePacksCommand.ts b/clients/client-config-service/commands/DescribeOrganizationConformancePacksCommand.ts index 99d8cfa097356..bc2d18814d7be 100644 --- a/clients/client-config-service/commands/DescribeOrganizationConformancePacksCommand.ts +++ b/clients/client-config-service/commands/DescribeOrganizationConformancePacksCommand.ts @@ -40,6 +40,7 @@ export class DescribeOrganizationConformancePacksCommand extends $Command< DescribeOrganizationConformancePacksCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeOrganizationConformancePacksCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribePendingAggregationRequestsCommand.ts b/clients/client-config-service/commands/DescribePendingAggregationRequestsCommand.ts index 3b94ecd72f7f5..d1ba10d6721fb 100644 --- a/clients/client-config-service/commands/DescribePendingAggregationRequestsCommand.ts +++ b/clients/client-config-service/commands/DescribePendingAggregationRequestsCommand.ts @@ -32,6 +32,7 @@ export class DescribePendingAggregationRequestsCommand extends $Command< DescribePendingAggregationRequestsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribePendingAggregationRequestsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeRemediationConfigurationsCommand.ts b/clients/client-config-service/commands/DescribeRemediationConfigurationsCommand.ts index 232c2db767dee..cdf4191c270a4 100644 --- a/clients/client-config-service/commands/DescribeRemediationConfigurationsCommand.ts +++ b/clients/client-config-service/commands/DescribeRemediationConfigurationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeRemediationConfigurationsCommand extends $Command< DescribeRemediationConfigurationsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeRemediationConfigurationsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeRemediationExceptionsCommand.ts b/clients/client-config-service/commands/DescribeRemediationExceptionsCommand.ts index 33da5ebbbfa04..4c11ab693d28c 100644 --- a/clients/client-config-service/commands/DescribeRemediationExceptionsCommand.ts +++ b/clients/client-config-service/commands/DescribeRemediationExceptionsCommand.ts @@ -35,6 +35,7 @@ export class DescribeRemediationExceptionsCommand extends $Command< DescribeRemediationExceptionsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeRemediationExceptionsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeRemediationExecutionStatusCommand.ts b/clients/client-config-service/commands/DescribeRemediationExecutionStatusCommand.ts index 1ccb70087fea9..2e17d573cc83c 100644 --- a/clients/client-config-service/commands/DescribeRemediationExecutionStatusCommand.ts +++ b/clients/client-config-service/commands/DescribeRemediationExecutionStatusCommand.ts @@ -33,6 +33,7 @@ export class DescribeRemediationExecutionStatusCommand extends $Command< DescribeRemediationExecutionStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeRemediationExecutionStatusCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/DescribeRetentionConfigurationsCommand.ts b/clients/client-config-service/commands/DescribeRetentionConfigurationsCommand.ts index 629a459b2b6c9..fafb7d90a49d3 100644 --- a/clients/client-config-service/commands/DescribeRetentionConfigurationsCommand.ts +++ b/clients/client-config-service/commands/DescribeRetentionConfigurationsCommand.ts @@ -35,6 +35,7 @@ export class DescribeRetentionConfigurationsCommand extends $Command< DescribeRetentionConfigurationsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeRetentionConfigurationsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetAggregateComplianceDetailsByConfigRuleCommand.ts b/clients/client-config-service/commands/GetAggregateComplianceDetailsByConfigRuleCommand.ts index 2c0cec9acecf6..6f1085aa1fbe5 100644 --- a/clients/client-config-service/commands/GetAggregateComplianceDetailsByConfigRuleCommand.ts +++ b/clients/client-config-service/commands/GetAggregateComplianceDetailsByConfigRuleCommand.ts @@ -40,6 +40,7 @@ export class GetAggregateComplianceDetailsByConfigRuleCommand extends $Command< GetAggregateComplianceDetailsByConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class GetAggregateComplianceDetailsByConfigRuleCommand extends $Command< GetAggregateComplianceDetailsByConfigRuleCommandInput, GetAggregateComplianceDetailsByConfigRuleCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetAggregateConfigRuleComplianceSummaryCommand.ts b/clients/client-config-service/commands/GetAggregateConfigRuleComplianceSummaryCommand.ts index 689e217b0038a..a83523c5a8bbb 100644 --- a/clients/client-config-service/commands/GetAggregateConfigRuleComplianceSummaryCommand.ts +++ b/clients/client-config-service/commands/GetAggregateConfigRuleComplianceSummaryCommand.ts @@ -38,6 +38,7 @@ export class GetAggregateConfigRuleComplianceSummaryCommand extends $Command< GetAggregateConfigRuleComplianceSummaryCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetAggregateConfigRuleComplianceSummaryCommand extends $Command< GetAggregateConfigRuleComplianceSummaryCommandInput, GetAggregateConfigRuleComplianceSummaryCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetAggregateDiscoveredResourceCountsCommand.ts b/clients/client-config-service/commands/GetAggregateDiscoveredResourceCountsCommand.ts index 99a3c41bf8ec0..d4ee292369f8c 100644 --- a/clients/client-config-service/commands/GetAggregateDiscoveredResourceCountsCommand.ts +++ b/clients/client-config-service/commands/GetAggregateDiscoveredResourceCountsCommand.ts @@ -34,6 +34,7 @@ export class GetAggregateDiscoveredResourceCountsCommand extends $Command< GetAggregateDiscoveredResourceCountsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetAggregateDiscoveredResourceCountsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetAggregateResourceConfigCommand.ts b/clients/client-config-service/commands/GetAggregateResourceConfigCommand.ts index 8135ed810271b..366760fb73e7b 100644 --- a/clients/client-config-service/commands/GetAggregateResourceConfigCommand.ts +++ b/clients/client-config-service/commands/GetAggregateResourceConfigCommand.ts @@ -28,6 +28,7 @@ export class GetAggregateResourceConfigCommand extends $Command< GetAggregateResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAggregateResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetComplianceDetailsByConfigRuleCommand.ts b/clients/client-config-service/commands/GetComplianceDetailsByConfigRuleCommand.ts index 06ff926c35a6e..bdcf8dcb0913d 100644 --- a/clients/client-config-service/commands/GetComplianceDetailsByConfigRuleCommand.ts +++ b/clients/client-config-service/commands/GetComplianceDetailsByConfigRuleCommand.ts @@ -31,6 +31,7 @@ export class GetComplianceDetailsByConfigRuleCommand extends $Command< GetComplianceDetailsByConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetComplianceDetailsByConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetComplianceDetailsByResourceCommand.ts b/clients/client-config-service/commands/GetComplianceDetailsByResourceCommand.ts index 599725a5fa657..00187875975f1 100644 --- a/clients/client-config-service/commands/GetComplianceDetailsByResourceCommand.ts +++ b/clients/client-config-service/commands/GetComplianceDetailsByResourceCommand.ts @@ -31,6 +31,7 @@ export class GetComplianceDetailsByResourceCommand extends $Command< GetComplianceDetailsByResourceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetComplianceDetailsByResourceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetComplianceSummaryByConfigRuleCommand.ts b/clients/client-config-service/commands/GetComplianceSummaryByConfigRuleCommand.ts index 157f8f8902201..86442ae74e707 100644 --- a/clients/client-config-service/commands/GetComplianceSummaryByConfigRuleCommand.ts +++ b/clients/client-config-service/commands/GetComplianceSummaryByConfigRuleCommand.ts @@ -29,6 +29,7 @@ export class GetComplianceSummaryByConfigRuleCommand extends $Command< GetComplianceSummaryByConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetComplianceSummaryByConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetComplianceSummaryByResourceTypeCommand.ts b/clients/client-config-service/commands/GetComplianceSummaryByResourceTypeCommand.ts index 0af061c826733..3dcc31f99414b 100644 --- a/clients/client-config-service/commands/GetComplianceSummaryByResourceTypeCommand.ts +++ b/clients/client-config-service/commands/GetComplianceSummaryByResourceTypeCommand.ts @@ -35,6 +35,7 @@ export class GetComplianceSummaryByResourceTypeCommand extends $Command< GetComplianceSummaryByResourceTypeCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetComplianceSummaryByResourceTypeCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetConformancePackComplianceDetailsCommand.ts b/clients/client-config-service/commands/GetConformancePackComplianceDetailsCommand.ts index 93362e04a238d..5427ea70760c6 100644 --- a/clients/client-config-service/commands/GetConformancePackComplianceDetailsCommand.ts +++ b/clients/client-config-service/commands/GetConformancePackComplianceDetailsCommand.ts @@ -32,6 +32,7 @@ export class GetConformancePackComplianceDetailsCommand extends $Command< GetConformancePackComplianceDetailsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetConformancePackComplianceDetailsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetConformancePackComplianceSummaryCommand.ts b/clients/client-config-service/commands/GetConformancePackComplianceSummaryCommand.ts index 0e6c259107ce3..1e3ebd848318f 100644 --- a/clients/client-config-service/commands/GetConformancePackComplianceSummaryCommand.ts +++ b/clients/client-config-service/commands/GetConformancePackComplianceSummaryCommand.ts @@ -32,6 +32,7 @@ export class GetConformancePackComplianceSummaryCommand extends $Command< GetConformancePackComplianceSummaryCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetConformancePackComplianceSummaryCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetDiscoveredResourceCountsCommand.ts b/clients/client-config-service/commands/GetDiscoveredResourceCountsCommand.ts index de3a866565912..cd385064bc6f0 100644 --- a/clients/client-config-service/commands/GetDiscoveredResourceCountsCommand.ts +++ b/clients/client-config-service/commands/GetDiscoveredResourceCountsCommand.ts @@ -91,6 +91,7 @@ export class GetDiscoveredResourceCountsCommand extends $Command< GetDiscoveredResourceCountsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class GetDiscoveredResourceCountsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetOrganizationConfigRuleDetailedStatusCommand.ts b/clients/client-config-service/commands/GetOrganizationConfigRuleDetailedStatusCommand.ts index 0dd4e4cda1895..da58fd1ea49d0 100644 --- a/clients/client-config-service/commands/GetOrganizationConfigRuleDetailedStatusCommand.ts +++ b/clients/client-config-service/commands/GetOrganizationConfigRuleDetailedStatusCommand.ts @@ -35,6 +35,7 @@ export class GetOrganizationConfigRuleDetailedStatusCommand extends $Command< GetOrganizationConfigRuleDetailedStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetOrganizationConfigRuleDetailedStatusCommand extends $Command< GetOrganizationConfigRuleDetailedStatusCommandInput, GetOrganizationConfigRuleDetailedStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetOrganizationConformancePackDetailedStatusCommand.ts b/clients/client-config-service/commands/GetOrganizationConformancePackDetailedStatusCommand.ts index 90b3ac1def24d..3534b5689c03b 100644 --- a/clients/client-config-service/commands/GetOrganizationConformancePackDetailedStatusCommand.ts +++ b/clients/client-config-service/commands/GetOrganizationConformancePackDetailedStatusCommand.ts @@ -35,6 +35,7 @@ export class GetOrganizationConformancePackDetailedStatusCommand extends $Comman GetOrganizationConformancePackDetailedStatusCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetOrganizationConformancePackDetailedStatusCommand extends $Comman GetOrganizationConformancePackDetailedStatusCommandInput, GetOrganizationConformancePackDetailedStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/GetResourceConfigHistoryCommand.ts b/clients/client-config-service/commands/GetResourceConfigHistoryCommand.ts index d818a492d6017..58b044b599689 100644 --- a/clients/client-config-service/commands/GetResourceConfigHistoryCommand.ts +++ b/clients/client-config-service/commands/GetResourceConfigHistoryCommand.ts @@ -47,6 +47,7 @@ export class GetResourceConfigHistoryCommand extends $Command< GetResourceConfigHistoryCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class GetResourceConfigHistoryCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/ListAggregateDiscoveredResourcesCommand.ts b/clients/client-config-service/commands/ListAggregateDiscoveredResourcesCommand.ts index 994caa930a1f7..02434caba5da1 100644 --- a/clients/client-config-service/commands/ListAggregateDiscoveredResourcesCommand.ts +++ b/clients/client-config-service/commands/ListAggregateDiscoveredResourcesCommand.ts @@ -31,6 +31,7 @@ export class ListAggregateDiscoveredResourcesCommand extends $Command< ListAggregateDiscoveredResourcesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListAggregateDiscoveredResourcesCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/ListDiscoveredResourcesCommand.ts b/clients/client-config-service/commands/ListDiscoveredResourcesCommand.ts index 0e1c12dac3519..cd20005f4a323 100644 --- a/clients/client-config-service/commands/ListDiscoveredResourcesCommand.ts +++ b/clients/client-config-service/commands/ListDiscoveredResourcesCommand.ts @@ -44,6 +44,7 @@ export class ListDiscoveredResourcesCommand extends $Command< ListDiscoveredResourcesCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class ListDiscoveredResourcesCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/ListTagsForResourceCommand.ts b/clients/client-config-service/commands/ListTagsForResourceCommand.ts index d61a551240ed9..a8d2869f26f97 100644 --- a/clients/client-config-service/commands/ListTagsForResourceCommand.ts +++ b/clients/client-config-service/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutAggregationAuthorizationCommand.ts b/clients/client-config-service/commands/PutAggregationAuthorizationCommand.ts index c0820b0aa1ae8..49b6e18aa6b2a 100644 --- a/clients/client-config-service/commands/PutAggregationAuthorizationCommand.ts +++ b/clients/client-config-service/commands/PutAggregationAuthorizationCommand.ts @@ -29,6 +29,7 @@ export class PutAggregationAuthorizationCommand extends $Command< PutAggregationAuthorizationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutAggregationAuthorizationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutConfigRuleCommand.ts b/clients/client-config-service/commands/PutConfigRuleCommand.ts index 02c4135de51e5..6da1eb746020b 100644 --- a/clients/client-config-service/commands/PutConfigRuleCommand.ts +++ b/clients/client-config-service/commands/PutConfigRuleCommand.ts @@ -63,6 +63,7 @@ export class PutConfigRuleCommand extends $Command< PutConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class PutConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutConfigurationAggregatorCommand.ts b/clients/client-config-service/commands/PutConfigurationAggregatorCommand.ts index 49117a371c0cf..768cb0bb242cd 100644 --- a/clients/client-config-service/commands/PutConfigurationAggregatorCommand.ts +++ b/clients/client-config-service/commands/PutConfigurationAggregatorCommand.ts @@ -39,6 +39,7 @@ export class PutConfigurationAggregatorCommand extends $Command< PutConfigurationAggregatorCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class PutConfigurationAggregatorCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutConfigurationRecorderCommand.ts b/clients/client-config-service/commands/PutConfigurationRecorderCommand.ts index 7259964ad6bc0..f1c655e1f3ba3 100644 --- a/clients/client-config-service/commands/PutConfigurationRecorderCommand.ts +++ b/clients/client-config-service/commands/PutConfigurationRecorderCommand.ts @@ -41,6 +41,7 @@ export class PutConfigurationRecorderCommand extends $Command< PutConfigurationRecorderCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class PutConfigurationRecorderCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutConformancePackCommand.ts b/clients/client-config-service/commands/PutConformancePackCommand.ts index b686cd6d99aa6..14d626974e47b 100644 --- a/clients/client-config-service/commands/PutConformancePackCommand.ts +++ b/clients/client-config-service/commands/PutConformancePackCommand.ts @@ -34,6 +34,7 @@ export class PutConformancePackCommand extends $Command< PutConformancePackCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutConformancePackCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutDeliveryChannelCommand.ts b/clients/client-config-service/commands/PutDeliveryChannelCommand.ts index 61048d24b21b3..1d7e6cb85dae9 100644 --- a/clients/client-config-service/commands/PutDeliveryChannelCommand.ts +++ b/clients/client-config-service/commands/PutDeliveryChannelCommand.ts @@ -44,6 +44,7 @@ export class PutDeliveryChannelCommand extends $Command< PutDeliveryChannelCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class PutDeliveryChannelCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutEvaluationsCommand.ts b/clients/client-config-service/commands/PutEvaluationsCommand.ts index 020e7f96bc55f..52ff2bbc80e91 100644 --- a/clients/client-config-service/commands/PutEvaluationsCommand.ts +++ b/clients/client-config-service/commands/PutEvaluationsCommand.ts @@ -30,6 +30,7 @@ export class PutEvaluationsCommand extends $Command< PutEvaluationsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutEvaluationsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutOrganizationConfigRuleCommand.ts b/clients/client-config-service/commands/PutOrganizationConfigRuleCommand.ts index 00208602ca3d5..7a56e8956cf83 100644 --- a/clients/client-config-service/commands/PutOrganizationConfigRuleCommand.ts +++ b/clients/client-config-service/commands/PutOrganizationConfigRuleCommand.ts @@ -49,6 +49,7 @@ export class PutOrganizationConfigRuleCommand extends $Command< PutOrganizationConfigRuleCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutOrganizationConfigRuleCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutOrganizationConformancePackCommand.ts b/clients/client-config-service/commands/PutOrganizationConformancePackCommand.ts index 9094cd8ccea1e..1572038c0570b 100644 --- a/clients/client-config-service/commands/PutOrganizationConformancePackCommand.ts +++ b/clients/client-config-service/commands/PutOrganizationConformancePackCommand.ts @@ -48,6 +48,7 @@ export class PutOrganizationConformancePackCommand extends $Command< PutOrganizationConformancePackCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class PutOrganizationConformancePackCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutRemediationConfigurationsCommand.ts b/clients/client-config-service/commands/PutRemediationConfigurationsCommand.ts index fc784a97047c1..e1eb7018bbc07 100644 --- a/clients/client-config-service/commands/PutRemediationConfigurationsCommand.ts +++ b/clients/client-config-service/commands/PutRemediationConfigurationsCommand.ts @@ -36,6 +36,7 @@ export class PutRemediationConfigurationsCommand extends $Command< PutRemediationConfigurationsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PutRemediationConfigurationsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutRemediationExceptionsCommand.ts b/clients/client-config-service/commands/PutRemediationExceptionsCommand.ts index 22bd6926332e7..d1a3d3013b7bb 100644 --- a/clients/client-config-service/commands/PutRemediationExceptionsCommand.ts +++ b/clients/client-config-service/commands/PutRemediationExceptionsCommand.ts @@ -33,6 +33,7 @@ export class PutRemediationExceptionsCommand extends $Command< PutRemediationExceptionsCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutRemediationExceptionsCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutResourceConfigCommand.ts b/clients/client-config-service/commands/PutResourceConfigCommand.ts index a175b5199b797..1a11ab6761de7 100644 --- a/clients/client-config-service/commands/PutResourceConfigCommand.ts +++ b/clients/client-config-service/commands/PutResourceConfigCommand.ts @@ -37,6 +37,7 @@ export class PutResourceConfigCommand extends $Command< PutResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/PutRetentionConfigurationCommand.ts b/clients/client-config-service/commands/PutRetentionConfigurationCommand.ts index e9ffd1daa3002..f9f8712c4c4a9 100644 --- a/clients/client-config-service/commands/PutRetentionConfigurationCommand.ts +++ b/clients/client-config-service/commands/PutRetentionConfigurationCommand.ts @@ -38,6 +38,7 @@ export class PutRetentionConfigurationCommand extends $Command< PutRetentionConfigurationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutRetentionConfigurationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/SelectAggregateResourceConfigCommand.ts b/clients/client-config-service/commands/SelectAggregateResourceConfigCommand.ts index 36e0623449297..a62aa66966ac8 100644 --- a/clients/client-config-service/commands/SelectAggregateResourceConfigCommand.ts +++ b/clients/client-config-service/commands/SelectAggregateResourceConfigCommand.ts @@ -33,6 +33,7 @@ export class SelectAggregateResourceConfigCommand extends $Command< SelectAggregateResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SelectAggregateResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/SelectResourceConfigCommand.ts b/clients/client-config-service/commands/SelectResourceConfigCommand.ts index 459c1db30b986..d59371a7ef347 100644 --- a/clients/client-config-service/commands/SelectResourceConfigCommand.ts +++ b/clients/client-config-service/commands/SelectResourceConfigCommand.ts @@ -32,6 +32,7 @@ export class SelectResourceConfigCommand extends $Command< SelectResourceConfigCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SelectResourceConfigCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/StartConfigRulesEvaluationCommand.ts b/clients/client-config-service/commands/StartConfigRulesEvaluationCommand.ts index 6548e1a52a24d..d826cfbe94949 100644 --- a/clients/client-config-service/commands/StartConfigRulesEvaluationCommand.ts +++ b/clients/client-config-service/commands/StartConfigRulesEvaluationCommand.ts @@ -75,6 +75,7 @@ export class StartConfigRulesEvaluationCommand extends $Command< StartConfigRulesEvaluationCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class StartConfigRulesEvaluationCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/StartConfigurationRecorderCommand.ts b/clients/client-config-service/commands/StartConfigurationRecorderCommand.ts index 7429016c2c7af..8ab2ccac1d96d 100644 --- a/clients/client-config-service/commands/StartConfigurationRecorderCommand.ts +++ b/clients/client-config-service/commands/StartConfigurationRecorderCommand.ts @@ -31,6 +31,7 @@ export class StartConfigurationRecorderCommand extends $Command< StartConfigurationRecorderCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartConfigurationRecorderCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/StartRemediationExecutionCommand.ts b/clients/client-config-service/commands/StartRemediationExecutionCommand.ts index 5d5d58c78eebd..79bed483547da 100644 --- a/clients/client-config-service/commands/StartRemediationExecutionCommand.ts +++ b/clients/client-config-service/commands/StartRemediationExecutionCommand.ts @@ -29,6 +29,7 @@ export class StartRemediationExecutionCommand extends $Command< StartRemediationExecutionCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartRemediationExecutionCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/StopConfigurationRecorderCommand.ts b/clients/client-config-service/commands/StopConfigurationRecorderCommand.ts index 11160eac8ceda..c98179a56e115 100644 --- a/clients/client-config-service/commands/StopConfigurationRecorderCommand.ts +++ b/clients/client-config-service/commands/StopConfigurationRecorderCommand.ts @@ -28,6 +28,7 @@ export class StopConfigurationRecorderCommand extends $Command< StopConfigurationRecorderCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopConfigurationRecorderCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/TagResourceCommand.ts b/clients/client-config-service/commands/TagResourceCommand.ts index 11b3aeee32f3d..367eace097209 100644 --- a/clients/client-config-service/commands/TagResourceCommand.ts +++ b/clients/client-config-service/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-config-service/commands/UntagResourceCommand.ts b/clients/client-config-service/commands/UntagResourceCommand.ts index ed2a0ab04e1d8..06f3fff34fbaf 100644 --- a/clients/client-config-service/commands/UntagResourceCommand.ts +++ b/clients/client-config-service/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ConfigServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ConfigServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect-contact-lens/commands/ListRealtimeContactAnalysisSegmentsCommand.ts b/clients/client-connect-contact-lens/commands/ListRealtimeContactAnalysisSegmentsCommand.ts index 1c519f4e0d073..d9b78a0076b68 100644 --- a/clients/client-connect-contact-lens/commands/ListRealtimeContactAnalysisSegmentsCommand.ts +++ b/clients/client-connect-contact-lens/commands/ListRealtimeContactAnalysisSegmentsCommand.ts @@ -36,6 +36,7 @@ export class ListRealtimeContactAnalysisSegmentsCommand extends $Command< ListRealtimeContactAnalysisSegmentsCommandOutput, ConnectContactLensClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRealtimeContactAnalysisSegmentsCommand extends $Command< configuration: ConnectContactLensClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateApprovedOriginCommand.ts b/clients/client-connect/commands/AssociateApprovedOriginCommand.ts index fffe21a45e83e..209f949810e71 100644 --- a/clients/client-connect/commands/AssociateApprovedOriginCommand.ts +++ b/clients/client-connect/commands/AssociateApprovedOriginCommand.ts @@ -28,6 +28,7 @@ export class AssociateApprovedOriginCommand extends $Command< AssociateApprovedOriginCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateApprovedOriginCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateInstanceStorageConfigCommand.ts b/clients/client-connect/commands/AssociateInstanceStorageConfigCommand.ts index 14e9d6d12be94..e4eab86592058 100644 --- a/clients/client-connect/commands/AssociateInstanceStorageConfigCommand.ts +++ b/clients/client-connect/commands/AssociateInstanceStorageConfigCommand.ts @@ -33,6 +33,7 @@ export class AssociateInstanceStorageConfigCommand extends $Command< AssociateInstanceStorageConfigCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AssociateInstanceStorageConfigCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateLambdaFunctionCommand.ts b/clients/client-connect/commands/AssociateLambdaFunctionCommand.ts index be5827fdf113a..480bf03d7c298 100644 --- a/clients/client-connect/commands/AssociateLambdaFunctionCommand.ts +++ b/clients/client-connect/commands/AssociateLambdaFunctionCommand.ts @@ -28,6 +28,7 @@ export class AssociateLambdaFunctionCommand extends $Command< AssociateLambdaFunctionCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateLambdaFunctionCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateLexBotCommand.ts b/clients/client-connect/commands/AssociateLexBotCommand.ts index e7398fd8d811a..5add0baf9cc37 100644 --- a/clients/client-connect/commands/AssociateLexBotCommand.ts +++ b/clients/client-connect/commands/AssociateLexBotCommand.ts @@ -28,6 +28,7 @@ export class AssociateLexBotCommand extends $Command< AssociateLexBotCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateLexBotCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateRoutingProfileQueuesCommand.ts b/clients/client-connect/commands/AssociateRoutingProfileQueuesCommand.ts index 87751d0fa2808..72c9e59f4fb06 100644 --- a/clients/client-connect/commands/AssociateRoutingProfileQueuesCommand.ts +++ b/clients/client-connect/commands/AssociateRoutingProfileQueuesCommand.ts @@ -28,6 +28,7 @@ export class AssociateRoutingProfileQueuesCommand extends $Command< AssociateRoutingProfileQueuesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateRoutingProfileQueuesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/AssociateSecurityKeyCommand.ts b/clients/client-connect/commands/AssociateSecurityKeyCommand.ts index fd247268345cb..282f094e2b269 100644 --- a/clients/client-connect/commands/AssociateSecurityKeyCommand.ts +++ b/clients/client-connect/commands/AssociateSecurityKeyCommand.ts @@ -28,6 +28,7 @@ export class AssociateSecurityKeyCommand extends $Command< AssociateSecurityKeyCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateSecurityKeyCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateContactFlowCommand.ts b/clients/client-connect/commands/CreateContactFlowCommand.ts index 6b39518a6e130..2156fc06f485b 100644 --- a/clients/client-connect/commands/CreateContactFlowCommand.ts +++ b/clients/client-connect/commands/CreateContactFlowCommand.ts @@ -30,6 +30,7 @@ export class CreateContactFlowCommand extends $Command< CreateContactFlowCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateContactFlowCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateInstanceCommand.ts b/clients/client-connect/commands/CreateInstanceCommand.ts index 2cab768697a58..def591d6624c0 100644 --- a/clients/client-connect/commands/CreateInstanceCommand.ts +++ b/clients/client-connect/commands/CreateInstanceCommand.ts @@ -31,6 +31,7 @@ export class CreateInstanceCommand extends $Command< CreateInstanceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateInstanceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateIntegrationAssociationCommand.ts b/clients/client-connect/commands/CreateIntegrationAssociationCommand.ts index 9f8a517e536b1..70e881157ebd2 100644 --- a/clients/client-connect/commands/CreateIntegrationAssociationCommand.ts +++ b/clients/client-connect/commands/CreateIntegrationAssociationCommand.ts @@ -29,6 +29,7 @@ export class CreateIntegrationAssociationCommand extends $Command< CreateIntegrationAssociationCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateIntegrationAssociationCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateRoutingProfileCommand.ts b/clients/client-connect/commands/CreateRoutingProfileCommand.ts index c42e21fefb895..82195e70a1e84 100644 --- a/clients/client-connect/commands/CreateRoutingProfileCommand.ts +++ b/clients/client-connect/commands/CreateRoutingProfileCommand.ts @@ -28,6 +28,7 @@ export class CreateRoutingProfileCommand extends $Command< CreateRoutingProfileCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRoutingProfileCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateUseCaseCommand.ts b/clients/client-connect/commands/CreateUseCaseCommand.ts index c3775abfc873b..8f66f3daf744f 100644 --- a/clients/client-connect/commands/CreateUseCaseCommand.ts +++ b/clients/client-connect/commands/CreateUseCaseCommand.ts @@ -29,6 +29,7 @@ export class CreateUseCaseCommand extends $Command< CreateUseCaseCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateUseCaseCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateUserCommand.ts b/clients/client-connect/commands/CreateUserCommand.ts index 0a6a85d372000..0ddf23e4d1aae 100644 --- a/clients/client-connect/commands/CreateUserCommand.ts +++ b/clients/client-connect/commands/CreateUserCommand.ts @@ -30,6 +30,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateUserCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/CreateUserHierarchyGroupCommand.ts b/clients/client-connect/commands/CreateUserHierarchyGroupCommand.ts index 2fc306cc6168b..25cdbef1c8fe2 100644 --- a/clients/client-connect/commands/CreateUserHierarchyGroupCommand.ts +++ b/clients/client-connect/commands/CreateUserHierarchyGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateUserHierarchyGroupCommand extends $Command< CreateUserHierarchyGroupCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUserHierarchyGroupCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DeleteInstanceCommand.ts b/clients/client-connect/commands/DeleteInstanceCommand.ts index 63b3f0a707090..cf8e3a242333b 100644 --- a/clients/client-connect/commands/DeleteInstanceCommand.ts +++ b/clients/client-connect/commands/DeleteInstanceCommand.ts @@ -29,6 +29,7 @@ export class DeleteInstanceCommand extends $Command< DeleteInstanceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteInstanceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DeleteIntegrationAssociationCommand.ts b/clients/client-connect/commands/DeleteIntegrationAssociationCommand.ts index 680751c91c450..a6081680b6119 100644 --- a/clients/client-connect/commands/DeleteIntegrationAssociationCommand.ts +++ b/clients/client-connect/commands/DeleteIntegrationAssociationCommand.ts @@ -30,6 +30,7 @@ export class DeleteIntegrationAssociationCommand extends $Command< DeleteIntegrationAssociationCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteIntegrationAssociationCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DeleteUseCaseCommand.ts b/clients/client-connect/commands/DeleteUseCaseCommand.ts index 236745f96b9fe..4a6d23a860612 100644 --- a/clients/client-connect/commands/DeleteUseCaseCommand.ts +++ b/clients/client-connect/commands/DeleteUseCaseCommand.ts @@ -29,6 +29,7 @@ export class DeleteUseCaseCommand extends $Command< DeleteUseCaseCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteUseCaseCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DeleteUserCommand.ts b/clients/client-connect/commands/DeleteUserCommand.ts index 2653c22db7aab..e8157f15b5e0f 100644 --- a/clients/client-connect/commands/DeleteUserCommand.ts +++ b/clients/client-connect/commands/DeleteUserCommand.ts @@ -31,6 +31,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteUserCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DeleteUserHierarchyGroupCommand.ts b/clients/client-connect/commands/DeleteUserHierarchyGroupCommand.ts index b4b19dc5c7f1c..165aa7cf97c25 100644 --- a/clients/client-connect/commands/DeleteUserHierarchyGroupCommand.ts +++ b/clients/client-connect/commands/DeleteUserHierarchyGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteUserHierarchyGroupCommand extends $Command< DeleteUserHierarchyGroupCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteUserHierarchyGroupCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeContactFlowCommand.ts b/clients/client-connect/commands/DescribeContactFlowCommand.ts index 999d5b731b7e3..1bdaad99993f9 100644 --- a/clients/client-connect/commands/DescribeContactFlowCommand.ts +++ b/clients/client-connect/commands/DescribeContactFlowCommand.ts @@ -30,6 +30,7 @@ export class DescribeContactFlowCommand extends $Command< DescribeContactFlowCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeContactFlowCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeInstanceAttributeCommand.ts b/clients/client-connect/commands/DescribeInstanceAttributeCommand.ts index 75829360a7361..449aee02caf03 100644 --- a/clients/client-connect/commands/DescribeInstanceAttributeCommand.ts +++ b/clients/client-connect/commands/DescribeInstanceAttributeCommand.ts @@ -28,6 +28,7 @@ export class DescribeInstanceAttributeCommand extends $Command< DescribeInstanceAttributeCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInstanceAttributeCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeInstanceCommand.ts b/clients/client-connect/commands/DescribeInstanceCommand.ts index 9aaf4a4203170..448c56a82f879 100644 --- a/clients/client-connect/commands/DescribeInstanceCommand.ts +++ b/clients/client-connect/commands/DescribeInstanceCommand.ts @@ -32,6 +32,7 @@ export class DescribeInstanceCommand extends $Command< DescribeInstanceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeInstanceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeInstanceStorageConfigCommand.ts b/clients/client-connect/commands/DescribeInstanceStorageConfigCommand.ts index 431b2ace2e4f7..c85318aec57be 100644 --- a/clients/client-connect/commands/DescribeInstanceStorageConfigCommand.ts +++ b/clients/client-connect/commands/DescribeInstanceStorageConfigCommand.ts @@ -29,6 +29,7 @@ export class DescribeInstanceStorageConfigCommand extends $Command< DescribeInstanceStorageConfigCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeInstanceStorageConfigCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeRoutingProfileCommand.ts b/clients/client-connect/commands/DescribeRoutingProfileCommand.ts index f7967265f56b8..1a8b70c42ffbe 100644 --- a/clients/client-connect/commands/DescribeRoutingProfileCommand.ts +++ b/clients/client-connect/commands/DescribeRoutingProfileCommand.ts @@ -28,6 +28,7 @@ export class DescribeRoutingProfileCommand extends $Command< DescribeRoutingProfileCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRoutingProfileCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeUserCommand.ts b/clients/client-connect/commands/DescribeUserCommand.ts index 4ceb3a255d5fa..4d86636fdb9d2 100644 --- a/clients/client-connect/commands/DescribeUserCommand.ts +++ b/clients/client-connect/commands/DescribeUserCommand.ts @@ -30,6 +30,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeUserCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeUserHierarchyGroupCommand.ts b/clients/client-connect/commands/DescribeUserHierarchyGroupCommand.ts index f0878ed435f52..f785ef4453e04 100644 --- a/clients/client-connect/commands/DescribeUserHierarchyGroupCommand.ts +++ b/clients/client-connect/commands/DescribeUserHierarchyGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserHierarchyGroupCommand extends $Command< DescribeUserHierarchyGroupCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserHierarchyGroupCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DescribeUserHierarchyStructureCommand.ts b/clients/client-connect/commands/DescribeUserHierarchyStructureCommand.ts index f91edab8eff42..2893e7ace7b28 100644 --- a/clients/client-connect/commands/DescribeUserHierarchyStructureCommand.ts +++ b/clients/client-connect/commands/DescribeUserHierarchyStructureCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserHierarchyStructureCommand extends $Command< DescribeUserHierarchyStructureCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserHierarchyStructureCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateApprovedOriginCommand.ts b/clients/client-connect/commands/DisassociateApprovedOriginCommand.ts index 80cdc4fa46e88..983cc768396a8 100644 --- a/clients/client-connect/commands/DisassociateApprovedOriginCommand.ts +++ b/clients/client-connect/commands/DisassociateApprovedOriginCommand.ts @@ -28,6 +28,7 @@ export class DisassociateApprovedOriginCommand extends $Command< DisassociateApprovedOriginCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateApprovedOriginCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateInstanceStorageConfigCommand.ts b/clients/client-connect/commands/DisassociateInstanceStorageConfigCommand.ts index a85afff323a17..956214b38d0a5 100644 --- a/clients/client-connect/commands/DisassociateInstanceStorageConfigCommand.ts +++ b/clients/client-connect/commands/DisassociateInstanceStorageConfigCommand.ts @@ -29,6 +29,7 @@ export class DisassociateInstanceStorageConfigCommand extends $Command< DisassociateInstanceStorageConfigCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateInstanceStorageConfigCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateLambdaFunctionCommand.ts b/clients/client-connect/commands/DisassociateLambdaFunctionCommand.ts index b44dc077367cf..a6e583ab1f91f 100644 --- a/clients/client-connect/commands/DisassociateLambdaFunctionCommand.ts +++ b/clients/client-connect/commands/DisassociateLambdaFunctionCommand.ts @@ -29,6 +29,7 @@ export class DisassociateLambdaFunctionCommand extends $Command< DisassociateLambdaFunctionCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateLambdaFunctionCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateLexBotCommand.ts b/clients/client-connect/commands/DisassociateLexBotCommand.ts index 95348b719fab0..d1ef7012e994c 100644 --- a/clients/client-connect/commands/DisassociateLexBotCommand.ts +++ b/clients/client-connect/commands/DisassociateLexBotCommand.ts @@ -28,6 +28,7 @@ export class DisassociateLexBotCommand extends $Command< DisassociateLexBotCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateLexBotCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateRoutingProfileQueuesCommand.ts b/clients/client-connect/commands/DisassociateRoutingProfileQueuesCommand.ts index c633ef23240d0..dd54b3073add3 100644 --- a/clients/client-connect/commands/DisassociateRoutingProfileQueuesCommand.ts +++ b/clients/client-connect/commands/DisassociateRoutingProfileQueuesCommand.ts @@ -28,6 +28,7 @@ export class DisassociateRoutingProfileQueuesCommand extends $Command< DisassociateRoutingProfileQueuesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateRoutingProfileQueuesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/DisassociateSecurityKeyCommand.ts b/clients/client-connect/commands/DisassociateSecurityKeyCommand.ts index 3b17723c92c86..1079d9bebe6db 100644 --- a/clients/client-connect/commands/DisassociateSecurityKeyCommand.ts +++ b/clients/client-connect/commands/DisassociateSecurityKeyCommand.ts @@ -28,6 +28,7 @@ export class DisassociateSecurityKeyCommand extends $Command< DisassociateSecurityKeyCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateSecurityKeyCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/GetContactAttributesCommand.ts b/clients/client-connect/commands/GetContactAttributesCommand.ts index 3802609242a3a..106b273b32fed 100644 --- a/clients/client-connect/commands/GetContactAttributesCommand.ts +++ b/clients/client-connect/commands/GetContactAttributesCommand.ts @@ -28,6 +28,7 @@ export class GetContactAttributesCommand extends $Command< GetContactAttributesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetContactAttributesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/GetCurrentMetricDataCommand.ts b/clients/client-connect/commands/GetCurrentMetricDataCommand.ts index 89f9669290cae..c1ae275633f1c 100644 --- a/clients/client-connect/commands/GetCurrentMetricDataCommand.ts +++ b/clients/client-connect/commands/GetCurrentMetricDataCommand.ts @@ -30,6 +30,7 @@ export class GetCurrentMetricDataCommand extends $Command< GetCurrentMetricDataCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetCurrentMetricDataCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/GetFederationTokenCommand.ts b/clients/client-connect/commands/GetFederationTokenCommand.ts index 29a7ddf1b7c9c..2c2501aa1cf8b 100644 --- a/clients/client-connect/commands/GetFederationTokenCommand.ts +++ b/clients/client-connect/commands/GetFederationTokenCommand.ts @@ -28,6 +28,7 @@ export class GetFederationTokenCommand extends $Command< GetFederationTokenCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFederationTokenCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/GetMetricDataCommand.ts b/clients/client-connect/commands/GetMetricDataCommand.ts index 1b56fcbad1e85..b78160bb94eef 100644 --- a/clients/client-connect/commands/GetMetricDataCommand.ts +++ b/clients/client-connect/commands/GetMetricDataCommand.ts @@ -30,6 +30,7 @@ export class GetMetricDataCommand extends $Command< GetMetricDataCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetMetricDataCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListApprovedOriginsCommand.ts b/clients/client-connect/commands/ListApprovedOriginsCommand.ts index 3c1161f990e7c..04502208f88ee 100644 --- a/clients/client-connect/commands/ListApprovedOriginsCommand.ts +++ b/clients/client-connect/commands/ListApprovedOriginsCommand.ts @@ -28,6 +28,7 @@ export class ListApprovedOriginsCommand extends $Command< ListApprovedOriginsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListApprovedOriginsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListContactFlowsCommand.ts b/clients/client-connect/commands/ListContactFlowsCommand.ts index b06df286bf390..d38e13a80cf40 100644 --- a/clients/client-connect/commands/ListContactFlowsCommand.ts +++ b/clients/client-connect/commands/ListContactFlowsCommand.ts @@ -32,6 +32,7 @@ export class ListContactFlowsCommand extends $Command< ListContactFlowsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListContactFlowsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListHoursOfOperationsCommand.ts b/clients/client-connect/commands/ListHoursOfOperationsCommand.ts index e1370a2419129..136528fc23d7a 100644 --- a/clients/client-connect/commands/ListHoursOfOperationsCommand.ts +++ b/clients/client-connect/commands/ListHoursOfOperationsCommand.ts @@ -30,6 +30,7 @@ export class ListHoursOfOperationsCommand extends $Command< ListHoursOfOperationsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListHoursOfOperationsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListInstanceAttributesCommand.ts b/clients/client-connect/commands/ListInstanceAttributesCommand.ts index 9c864a5b69a4a..c3d25f649b7f8 100644 --- a/clients/client-connect/commands/ListInstanceAttributesCommand.ts +++ b/clients/client-connect/commands/ListInstanceAttributesCommand.ts @@ -29,6 +29,7 @@ export class ListInstanceAttributesCommand extends $Command< ListInstanceAttributesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListInstanceAttributesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListInstanceStorageConfigsCommand.ts b/clients/client-connect/commands/ListInstanceStorageConfigsCommand.ts index 7f3515f854c73..479cf2bba97b2 100644 --- a/clients/client-connect/commands/ListInstanceStorageConfigsCommand.ts +++ b/clients/client-connect/commands/ListInstanceStorageConfigsCommand.ts @@ -31,6 +31,7 @@ export class ListInstanceStorageConfigsCommand extends $Command< ListInstanceStorageConfigsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListInstanceStorageConfigsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListInstancesCommand.ts b/clients/client-connect/commands/ListInstancesCommand.ts index 8f72aa55a6656..4d36c5ee696c3 100644 --- a/clients/client-connect/commands/ListInstancesCommand.ts +++ b/clients/client-connect/commands/ListInstancesCommand.ts @@ -31,6 +31,7 @@ export class ListInstancesCommand extends $Command< ListInstancesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListInstancesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListIntegrationAssociationsCommand.ts b/clients/client-connect/commands/ListIntegrationAssociationsCommand.ts index 5670f64cb37f1..b2b1d86e707dd 100644 --- a/clients/client-connect/commands/ListIntegrationAssociationsCommand.ts +++ b/clients/client-connect/commands/ListIntegrationAssociationsCommand.ts @@ -30,6 +30,7 @@ export class ListIntegrationAssociationsCommand extends $Command< ListIntegrationAssociationsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListIntegrationAssociationsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListLambdaFunctionsCommand.ts b/clients/client-connect/commands/ListLambdaFunctionsCommand.ts index aa24cc3a946cd..2220a9f864c8f 100644 --- a/clients/client-connect/commands/ListLambdaFunctionsCommand.ts +++ b/clients/client-connect/commands/ListLambdaFunctionsCommand.ts @@ -29,6 +29,7 @@ export class ListLambdaFunctionsCommand extends $Command< ListLambdaFunctionsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListLambdaFunctionsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListLexBotsCommand.ts b/clients/client-connect/commands/ListLexBotsCommand.ts index 01e585cf86a42..49a06ecd5f83f 100644 --- a/clients/client-connect/commands/ListLexBotsCommand.ts +++ b/clients/client-connect/commands/ListLexBotsCommand.ts @@ -29,6 +29,7 @@ export class ListLexBotsCommand extends $Command< ListLexBotsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListLexBotsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListPhoneNumbersCommand.ts b/clients/client-connect/commands/ListPhoneNumbersCommand.ts index 15a5259616077..e0520a065ae78 100644 --- a/clients/client-connect/commands/ListPhoneNumbersCommand.ts +++ b/clients/client-connect/commands/ListPhoneNumbersCommand.ts @@ -30,6 +30,7 @@ export class ListPhoneNumbersCommand extends $Command< ListPhoneNumbersCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPhoneNumbersCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListPromptsCommand.ts b/clients/client-connect/commands/ListPromptsCommand.ts index 64e7f57d883f6..a006dbb5f0ff3 100644 --- a/clients/client-connect/commands/ListPromptsCommand.ts +++ b/clients/client-connect/commands/ListPromptsCommand.ts @@ -28,6 +28,7 @@ export class ListPromptsCommand extends $Command< ListPromptsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPromptsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListQueuesCommand.ts b/clients/client-connect/commands/ListQueuesCommand.ts index c30e8e1e4db29..ee4a74c2dc0f7 100644 --- a/clients/client-connect/commands/ListQueuesCommand.ts +++ b/clients/client-connect/commands/ListQueuesCommand.ts @@ -30,6 +30,7 @@ export class ListQueuesCommand extends $Command< ListQueuesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListQueuesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListRoutingProfileQueuesCommand.ts b/clients/client-connect/commands/ListRoutingProfileQueuesCommand.ts index fbbf32cad3295..1ff7d06b14127 100644 --- a/clients/client-connect/commands/ListRoutingProfileQueuesCommand.ts +++ b/clients/client-connect/commands/ListRoutingProfileQueuesCommand.ts @@ -28,6 +28,7 @@ export class ListRoutingProfileQueuesCommand extends $Command< ListRoutingProfileQueuesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRoutingProfileQueuesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListRoutingProfilesCommand.ts b/clients/client-connect/commands/ListRoutingProfilesCommand.ts index 6b4551889a76a..d41cf4be32a99 100644 --- a/clients/client-connect/commands/ListRoutingProfilesCommand.ts +++ b/clients/client-connect/commands/ListRoutingProfilesCommand.ts @@ -31,6 +31,7 @@ export class ListRoutingProfilesCommand extends $Command< ListRoutingProfilesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListRoutingProfilesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListSecurityKeysCommand.ts b/clients/client-connect/commands/ListSecurityKeysCommand.ts index 8d7e943d53077..c929d14c174c5 100644 --- a/clients/client-connect/commands/ListSecurityKeysCommand.ts +++ b/clients/client-connect/commands/ListSecurityKeysCommand.ts @@ -28,6 +28,7 @@ export class ListSecurityKeysCommand extends $Command< ListSecurityKeysCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSecurityKeysCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListSecurityProfilesCommand.ts b/clients/client-connect/commands/ListSecurityProfilesCommand.ts index aff002ca86619..43913005fb577 100644 --- a/clients/client-connect/commands/ListSecurityProfilesCommand.ts +++ b/clients/client-connect/commands/ListSecurityProfilesCommand.ts @@ -31,6 +31,7 @@ export class ListSecurityProfilesCommand extends $Command< ListSecurityProfilesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListSecurityProfilesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListTagsForResourceCommand.ts b/clients/client-connect/commands/ListTagsForResourceCommand.ts index da3387e015aea..08459fed7c1b4 100644 --- a/clients/client-connect/commands/ListTagsForResourceCommand.ts +++ b/clients/client-connect/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListUseCasesCommand.ts b/clients/client-connect/commands/ListUseCasesCommand.ts index 716cc76fdbafd..2fcdefd4cb3e9 100644 --- a/clients/client-connect/commands/ListUseCasesCommand.ts +++ b/clients/client-connect/commands/ListUseCasesCommand.ts @@ -29,6 +29,7 @@ export class ListUseCasesCommand extends $Command< ListUseCasesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListUseCasesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListUserHierarchyGroupsCommand.ts b/clients/client-connect/commands/ListUserHierarchyGroupsCommand.ts index ef881bef3ee08..3947b46744089 100644 --- a/clients/client-connect/commands/ListUserHierarchyGroupsCommand.ts +++ b/clients/client-connect/commands/ListUserHierarchyGroupsCommand.ts @@ -31,6 +31,7 @@ export class ListUserHierarchyGroupsCommand extends $Command< ListUserHierarchyGroupsCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListUserHierarchyGroupsCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ListUsersCommand.ts b/clients/client-connect/commands/ListUsersCommand.ts index ffd09e75bd9c3..c368fe99ae384 100644 --- a/clients/client-connect/commands/ListUsersCommand.ts +++ b/clients/client-connect/commands/ListUsersCommand.ts @@ -28,6 +28,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUsersCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/ResumeContactRecordingCommand.ts b/clients/client-connect/commands/ResumeContactRecordingCommand.ts index 871b716a697bd..d9c8f1830ad93 100644 --- a/clients/client-connect/commands/ResumeContactRecordingCommand.ts +++ b/clients/client-connect/commands/ResumeContactRecordingCommand.ts @@ -31,6 +31,7 @@ export class ResumeContactRecordingCommand extends $Command< ResumeContactRecordingCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResumeContactRecordingCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StartChatContactCommand.ts b/clients/client-connect/commands/StartChatContactCommand.ts index 23d1cd965da82..ae453390889a0 100644 --- a/clients/client-connect/commands/StartChatContactCommand.ts +++ b/clients/client-connect/commands/StartChatContactCommand.ts @@ -49,6 +49,7 @@ export class StartChatContactCommand extends $Command< StartChatContactCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class StartChatContactCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StartContactRecordingCommand.ts b/clients/client-connect/commands/StartContactRecordingCommand.ts index 6ebee00da36b3..5a0575ce1d18a 100644 --- a/clients/client-connect/commands/StartContactRecordingCommand.ts +++ b/clients/client-connect/commands/StartContactRecordingCommand.ts @@ -35,6 +35,7 @@ export class StartContactRecordingCommand extends $Command< StartContactRecordingCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartContactRecordingCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StartOutboundVoiceContactCommand.ts b/clients/client-connect/commands/StartOutboundVoiceContactCommand.ts index 7089f01bf6302..04edac72f7a18 100644 --- a/clients/client-connect/commands/StartOutboundVoiceContactCommand.ts +++ b/clients/client-connect/commands/StartOutboundVoiceContactCommand.ts @@ -41,6 +41,7 @@ export class StartOutboundVoiceContactCommand extends $Command< StartOutboundVoiceContactCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class StartOutboundVoiceContactCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StartTaskContactCommand.ts b/clients/client-connect/commands/StartTaskContactCommand.ts index 75adc0b5db5bf..8bd55e22984a7 100644 --- a/clients/client-connect/commands/StartTaskContactCommand.ts +++ b/clients/client-connect/commands/StartTaskContactCommand.ts @@ -28,6 +28,7 @@ export class StartTaskContactCommand extends $Command< StartTaskContactCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartTaskContactCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StopContactCommand.ts b/clients/client-connect/commands/StopContactCommand.ts index c37b9133021f2..53b8b739f32aa 100644 --- a/clients/client-connect/commands/StopContactCommand.ts +++ b/clients/client-connect/commands/StopContactCommand.ts @@ -28,6 +28,7 @@ export class StopContactCommand extends $Command< StopContactCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopContactCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/StopContactRecordingCommand.ts b/clients/client-connect/commands/StopContactRecordingCommand.ts index 83f7aa4fc1ee1..24f894547db7a 100644 --- a/clients/client-connect/commands/StopContactRecordingCommand.ts +++ b/clients/client-connect/commands/StopContactRecordingCommand.ts @@ -34,6 +34,7 @@ export class StopContactRecordingCommand extends $Command< StopContactRecordingCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopContactRecordingCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/SuspendContactRecordingCommand.ts b/clients/client-connect/commands/SuspendContactRecordingCommand.ts index e9cd69407068d..42ad3f2c934b2 100644 --- a/clients/client-connect/commands/SuspendContactRecordingCommand.ts +++ b/clients/client-connect/commands/SuspendContactRecordingCommand.ts @@ -33,6 +33,7 @@ export class SuspendContactRecordingCommand extends $Command< SuspendContactRecordingCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SuspendContactRecordingCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/TagResourceCommand.ts b/clients/client-connect/commands/TagResourceCommand.ts index eb8eafaa2ddab..1fd4a55846d4e 100644 --- a/clients/client-connect/commands/TagResourceCommand.ts +++ b/clients/client-connect/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UntagResourceCommand.ts b/clients/client-connect/commands/UntagResourceCommand.ts index 54e825885b1c6..081a9917657dc 100644 --- a/clients/client-connect/commands/UntagResourceCommand.ts +++ b/clients/client-connect/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateContactAttributesCommand.ts b/clients/client-connect/commands/UpdateContactAttributesCommand.ts index 47729e51d7db8..ad408d8df6720 100644 --- a/clients/client-connect/commands/UpdateContactAttributesCommand.ts +++ b/clients/client-connect/commands/UpdateContactAttributesCommand.ts @@ -43,6 +43,7 @@ export class UpdateContactAttributesCommand extends $Command< UpdateContactAttributesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class UpdateContactAttributesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateContactFlowContentCommand.ts b/clients/client-connect/commands/UpdateContactFlowContentCommand.ts index db1e53ec6a362..b37618d874ec1 100644 --- a/clients/client-connect/commands/UpdateContactFlowContentCommand.ts +++ b/clients/client-connect/commands/UpdateContactFlowContentCommand.ts @@ -30,6 +30,7 @@ export class UpdateContactFlowContentCommand extends $Command< UpdateContactFlowContentCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateContactFlowContentCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateContactFlowNameCommand.ts b/clients/client-connect/commands/UpdateContactFlowNameCommand.ts index b450e0ee5bfb8..60c51c75a76a7 100644 --- a/clients/client-connect/commands/UpdateContactFlowNameCommand.ts +++ b/clients/client-connect/commands/UpdateContactFlowNameCommand.ts @@ -30,6 +30,7 @@ export class UpdateContactFlowNameCommand extends $Command< UpdateContactFlowNameCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateContactFlowNameCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateInstanceAttributeCommand.ts b/clients/client-connect/commands/UpdateInstanceAttributeCommand.ts index 645a9adfb34bd..b46783d06b007 100644 --- a/clients/client-connect/commands/UpdateInstanceAttributeCommand.ts +++ b/clients/client-connect/commands/UpdateInstanceAttributeCommand.ts @@ -29,6 +29,7 @@ export class UpdateInstanceAttributeCommand extends $Command< UpdateInstanceAttributeCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateInstanceAttributeCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateInstanceStorageConfigCommand.ts b/clients/client-connect/commands/UpdateInstanceStorageConfigCommand.ts index 4e37cc190eba6..52029268a43ad 100644 --- a/clients/client-connect/commands/UpdateInstanceStorageConfigCommand.ts +++ b/clients/client-connect/commands/UpdateInstanceStorageConfigCommand.ts @@ -29,6 +29,7 @@ export class UpdateInstanceStorageConfigCommand extends $Command< UpdateInstanceStorageConfigCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateInstanceStorageConfigCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateRoutingProfileConcurrencyCommand.ts b/clients/client-connect/commands/UpdateRoutingProfileConcurrencyCommand.ts index c793ee897c0fa..3855264df5725 100644 --- a/clients/client-connect/commands/UpdateRoutingProfileConcurrencyCommand.ts +++ b/clients/client-connect/commands/UpdateRoutingProfileConcurrencyCommand.ts @@ -29,6 +29,7 @@ export class UpdateRoutingProfileConcurrencyCommand extends $Command< UpdateRoutingProfileConcurrencyCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateRoutingProfileConcurrencyCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.ts b/clients/client-connect/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.ts index 8ca3a5665667e..37046ae6acf59 100644 --- a/clients/client-connect/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.ts +++ b/clients/client-connect/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.ts @@ -28,6 +28,7 @@ export class UpdateRoutingProfileDefaultOutboundQueueCommand extends $Command< UpdateRoutingProfileDefaultOutboundQueueCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateRoutingProfileDefaultOutboundQueueCommand extends $Command< UpdateRoutingProfileDefaultOutboundQueueCommandInput, UpdateRoutingProfileDefaultOutboundQueueCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateRoutingProfileNameCommand.ts b/clients/client-connect/commands/UpdateRoutingProfileNameCommand.ts index 7a20c0542d730..4bce8c648a646 100644 --- a/clients/client-connect/commands/UpdateRoutingProfileNameCommand.ts +++ b/clients/client-connect/commands/UpdateRoutingProfileNameCommand.ts @@ -30,6 +30,7 @@ export class UpdateRoutingProfileNameCommand extends $Command< UpdateRoutingProfileNameCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateRoutingProfileNameCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateRoutingProfileQueuesCommand.ts b/clients/client-connect/commands/UpdateRoutingProfileQueuesCommand.ts index bba949049e539..18eb72c5f5ddb 100644 --- a/clients/client-connect/commands/UpdateRoutingProfileQueuesCommand.ts +++ b/clients/client-connect/commands/UpdateRoutingProfileQueuesCommand.ts @@ -28,6 +28,7 @@ export class UpdateRoutingProfileQueuesCommand extends $Command< UpdateRoutingProfileQueuesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRoutingProfileQueuesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserHierarchyCommand.ts b/clients/client-connect/commands/UpdateUserHierarchyCommand.ts index d7197d827cf69..8341f32fab206 100644 --- a/clients/client-connect/commands/UpdateUserHierarchyCommand.ts +++ b/clients/client-connect/commands/UpdateUserHierarchyCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserHierarchyCommand extends $Command< UpdateUserHierarchyCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserHierarchyCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserHierarchyGroupNameCommand.ts b/clients/client-connect/commands/UpdateUserHierarchyGroupNameCommand.ts index 7688a3fbcf8a3..3034a99df9170 100644 --- a/clients/client-connect/commands/UpdateUserHierarchyGroupNameCommand.ts +++ b/clients/client-connect/commands/UpdateUserHierarchyGroupNameCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserHierarchyGroupNameCommand extends $Command< UpdateUserHierarchyGroupNameCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserHierarchyGroupNameCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserHierarchyStructureCommand.ts b/clients/client-connect/commands/UpdateUserHierarchyStructureCommand.ts index dbad18975748f..fdeee07a00c56 100644 --- a/clients/client-connect/commands/UpdateUserHierarchyStructureCommand.ts +++ b/clients/client-connect/commands/UpdateUserHierarchyStructureCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserHierarchyStructureCommand extends $Command< UpdateUserHierarchyStructureCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserHierarchyStructureCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserIdentityInfoCommand.ts b/clients/client-connect/commands/UpdateUserIdentityInfoCommand.ts index c099b0f3ed4e1..59de60ba861f2 100644 --- a/clients/client-connect/commands/UpdateUserIdentityInfoCommand.ts +++ b/clients/client-connect/commands/UpdateUserIdentityInfoCommand.ts @@ -37,6 +37,7 @@ export class UpdateUserIdentityInfoCommand extends $Command< UpdateUserIdentityInfoCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateUserIdentityInfoCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserPhoneConfigCommand.ts b/clients/client-connect/commands/UpdateUserPhoneConfigCommand.ts index 6f9b544af8952..3c39a10b5db88 100644 --- a/clients/client-connect/commands/UpdateUserPhoneConfigCommand.ts +++ b/clients/client-connect/commands/UpdateUserPhoneConfigCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserPhoneConfigCommand extends $Command< UpdateUserPhoneConfigCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserPhoneConfigCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserRoutingProfileCommand.ts b/clients/client-connect/commands/UpdateUserRoutingProfileCommand.ts index 9367db9c0e8e0..12238081efad9 100644 --- a/clients/client-connect/commands/UpdateUserRoutingProfileCommand.ts +++ b/clients/client-connect/commands/UpdateUserRoutingProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserRoutingProfileCommand extends $Command< UpdateUserRoutingProfileCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserRoutingProfileCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connect/commands/UpdateUserSecurityProfilesCommand.ts b/clients/client-connect/commands/UpdateUserSecurityProfilesCommand.ts index 4c4d8c99633f5..c68a689f63408 100644 --- a/clients/client-connect/commands/UpdateUserSecurityProfilesCommand.ts +++ b/clients/client-connect/commands/UpdateUserSecurityProfilesCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserSecurityProfilesCommand extends $Command< UpdateUserSecurityProfilesCommandOutput, ConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserSecurityProfilesCommand extends $Command< configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connectparticipant/commands/CreateParticipantConnectionCommand.ts b/clients/client-connectparticipant/commands/CreateParticipantConnectionCommand.ts index ce5085b606992..200758a964efc 100644 --- a/clients/client-connectparticipant/commands/CreateParticipantConnectionCommand.ts +++ b/clients/client-connectparticipant/commands/CreateParticipantConnectionCommand.ts @@ -48,6 +48,7 @@ export class CreateParticipantConnectionCommand extends $Command< CreateParticipantConnectionCommandOutput, ConnectParticipantClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateParticipantConnectionCommand extends $Command< configuration: ConnectParticipantClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connectparticipant/commands/DisconnectParticipantCommand.ts b/clients/client-connectparticipant/commands/DisconnectParticipantCommand.ts index 362ddfd1043ea..26df45643a69d 100644 --- a/clients/client-connectparticipant/commands/DisconnectParticipantCommand.ts +++ b/clients/client-connectparticipant/commands/DisconnectParticipantCommand.ts @@ -33,6 +33,7 @@ export class DisconnectParticipantCommand extends $Command< DisconnectParticipantCommandOutput, ConnectParticipantClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DisconnectParticipantCommand extends $Command< configuration: ConnectParticipantClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connectparticipant/commands/GetTranscriptCommand.ts b/clients/client-connectparticipant/commands/GetTranscriptCommand.ts index fd4695e56a7c0..cf93570b7dd38 100644 --- a/clients/client-connectparticipant/commands/GetTranscriptCommand.ts +++ b/clients/client-connectparticipant/commands/GetTranscriptCommand.ts @@ -33,6 +33,7 @@ export class GetTranscriptCommand extends $Command< GetTranscriptCommandOutput, ConnectParticipantClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetTranscriptCommand extends $Command< configuration: ConnectParticipantClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connectparticipant/commands/SendEventCommand.ts b/clients/client-connectparticipant/commands/SendEventCommand.ts index e8d01544801c0..b1e7e24af6c62 100644 --- a/clients/client-connectparticipant/commands/SendEventCommand.ts +++ b/clients/client-connectparticipant/commands/SendEventCommand.ts @@ -33,6 +33,7 @@ export class SendEventCommand extends $Command< SendEventCommandOutput, ConnectParticipantClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SendEventCommand extends $Command< configuration: ConnectParticipantClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-connectparticipant/commands/SendMessageCommand.ts b/clients/client-connectparticipant/commands/SendMessageCommand.ts index 9e9e35441e537..4708c75899ecd 100644 --- a/clients/client-connectparticipant/commands/SendMessageCommand.ts +++ b/clients/client-connectparticipant/commands/SendMessageCommand.ts @@ -33,6 +33,7 @@ export class SendMessageCommand extends $Command< SendMessageCommandOutput, ConnectParticipantClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SendMessageCommand extends $Command< configuration: ConnectParticipantClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-and-usage-report-service/commands/DeleteReportDefinitionCommand.ts b/clients/client-cost-and-usage-report-service/commands/DeleteReportDefinitionCommand.ts index d163ea70614ee..fbd17514aa13b 100644 --- a/clients/client-cost-and-usage-report-service/commands/DeleteReportDefinitionCommand.ts +++ b/clients/client-cost-and-usage-report-service/commands/DeleteReportDefinitionCommand.ts @@ -32,6 +32,7 @@ export class DeleteReportDefinitionCommand extends $Command< DeleteReportDefinitionCommandOutput, CostAndUsageReportServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteReportDefinitionCommand extends $Command< configuration: CostAndUsageReportServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-and-usage-report-service/commands/DescribeReportDefinitionsCommand.ts b/clients/client-cost-and-usage-report-service/commands/DescribeReportDefinitionsCommand.ts index e9f4be423947f..be19eb9d61c6e 100644 --- a/clients/client-cost-and-usage-report-service/commands/DescribeReportDefinitionsCommand.ts +++ b/clients/client-cost-and-usage-report-service/commands/DescribeReportDefinitionsCommand.ts @@ -32,6 +32,7 @@ export class DescribeReportDefinitionsCommand extends $Command< DescribeReportDefinitionsCommandOutput, CostAndUsageReportServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeReportDefinitionsCommand extends $Command< configuration: CostAndUsageReportServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-and-usage-report-service/commands/ModifyReportDefinitionCommand.ts b/clients/client-cost-and-usage-report-service/commands/ModifyReportDefinitionCommand.ts index 625bd65e1bce5..068ed2a1ad2ae 100644 --- a/clients/client-cost-and-usage-report-service/commands/ModifyReportDefinitionCommand.ts +++ b/clients/client-cost-and-usage-report-service/commands/ModifyReportDefinitionCommand.ts @@ -32,6 +32,7 @@ export class ModifyReportDefinitionCommand extends $Command< ModifyReportDefinitionCommandOutput, CostAndUsageReportServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyReportDefinitionCommand extends $Command< configuration: CostAndUsageReportServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-and-usage-report-service/commands/PutReportDefinitionCommand.ts b/clients/client-cost-and-usage-report-service/commands/PutReportDefinitionCommand.ts index 1096da917261a..034c280ec10ab 100644 --- a/clients/client-cost-and-usage-report-service/commands/PutReportDefinitionCommand.ts +++ b/clients/client-cost-and-usage-report-service/commands/PutReportDefinitionCommand.ts @@ -32,6 +32,7 @@ export class PutReportDefinitionCommand extends $Command< PutReportDefinitionCommandOutput, CostAndUsageReportServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutReportDefinitionCommand extends $Command< configuration: CostAndUsageReportServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/CreateAnomalyMonitorCommand.ts b/clients/client-cost-explorer/commands/CreateAnomalyMonitorCommand.ts index 4f4543b644c53..2d9c74fb14dc7 100644 --- a/clients/client-cost-explorer/commands/CreateAnomalyMonitorCommand.ts +++ b/clients/client-cost-explorer/commands/CreateAnomalyMonitorCommand.ts @@ -29,6 +29,7 @@ export class CreateAnomalyMonitorCommand extends $Command< CreateAnomalyMonitorCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAnomalyMonitorCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/CreateAnomalySubscriptionCommand.ts b/clients/client-cost-explorer/commands/CreateAnomalySubscriptionCommand.ts index 526eb3e045a91..88aa33017bba9 100644 --- a/clients/client-cost-explorer/commands/CreateAnomalySubscriptionCommand.ts +++ b/clients/client-cost-explorer/commands/CreateAnomalySubscriptionCommand.ts @@ -30,6 +30,7 @@ export class CreateAnomalySubscriptionCommand extends $Command< CreateAnomalySubscriptionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAnomalySubscriptionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/CreateCostCategoryDefinitionCommand.ts b/clients/client-cost-explorer/commands/CreateCostCategoryDefinitionCommand.ts index b4d9c77d7e71b..581243ca2a0eb 100644 --- a/clients/client-cost-explorer/commands/CreateCostCategoryDefinitionCommand.ts +++ b/clients/client-cost-explorer/commands/CreateCostCategoryDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateCostCategoryDefinitionCommand extends $Command< CreateCostCategoryDefinitionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCostCategoryDefinitionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/DeleteAnomalyMonitorCommand.ts b/clients/client-cost-explorer/commands/DeleteAnomalyMonitorCommand.ts index 6a2f03555e218..f28a06e447f11 100644 --- a/clients/client-cost-explorer/commands/DeleteAnomalyMonitorCommand.ts +++ b/clients/client-cost-explorer/commands/DeleteAnomalyMonitorCommand.ts @@ -28,6 +28,7 @@ export class DeleteAnomalyMonitorCommand extends $Command< DeleteAnomalyMonitorCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAnomalyMonitorCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/DeleteAnomalySubscriptionCommand.ts b/clients/client-cost-explorer/commands/DeleteAnomalySubscriptionCommand.ts index cb74e2ec408d1..8a8db8eed80e2 100644 --- a/clients/client-cost-explorer/commands/DeleteAnomalySubscriptionCommand.ts +++ b/clients/client-cost-explorer/commands/DeleteAnomalySubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteAnomalySubscriptionCommand extends $Command< DeleteAnomalySubscriptionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAnomalySubscriptionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/DeleteCostCategoryDefinitionCommand.ts b/clients/client-cost-explorer/commands/DeleteCostCategoryDefinitionCommand.ts index 1e3cb0609a06c..a9be16fe5d2df 100644 --- a/clients/client-cost-explorer/commands/DeleteCostCategoryDefinitionCommand.ts +++ b/clients/client-cost-explorer/commands/DeleteCostCategoryDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteCostCategoryDefinitionCommand extends $Command< DeleteCostCategoryDefinitionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCostCategoryDefinitionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/DescribeCostCategoryDefinitionCommand.ts b/clients/client-cost-explorer/commands/DescribeCostCategoryDefinitionCommand.ts index c280f65667022..df31fa23134b7 100644 --- a/clients/client-cost-explorer/commands/DescribeCostCategoryDefinitionCommand.ts +++ b/clients/client-cost-explorer/commands/DescribeCostCategoryDefinitionCommand.ts @@ -29,6 +29,7 @@ export class DescribeCostCategoryDefinitionCommand extends $Command< DescribeCostCategoryDefinitionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCostCategoryDefinitionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetAnomaliesCommand.ts b/clients/client-cost-explorer/commands/GetAnomaliesCommand.ts index dca623c080603..799678740bfc5 100644 --- a/clients/client-cost-explorer/commands/GetAnomaliesCommand.ts +++ b/clients/client-cost-explorer/commands/GetAnomaliesCommand.ts @@ -29,6 +29,7 @@ export class GetAnomaliesCommand extends $Command< GetAnomaliesCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAnomaliesCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetAnomalyMonitorsCommand.ts b/clients/client-cost-explorer/commands/GetAnomalyMonitorsCommand.ts index a9ee409810c76..291bb656da37c 100644 --- a/clients/client-cost-explorer/commands/GetAnomalyMonitorsCommand.ts +++ b/clients/client-cost-explorer/commands/GetAnomalyMonitorsCommand.ts @@ -29,6 +29,7 @@ export class GetAnomalyMonitorsCommand extends $Command< GetAnomalyMonitorsCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAnomalyMonitorsCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetAnomalySubscriptionsCommand.ts b/clients/client-cost-explorer/commands/GetAnomalySubscriptionsCommand.ts index 3cb09ecccc6d2..fb5e4ab060311 100644 --- a/clients/client-cost-explorer/commands/GetAnomalySubscriptionsCommand.ts +++ b/clients/client-cost-explorer/commands/GetAnomalySubscriptionsCommand.ts @@ -29,6 +29,7 @@ export class GetAnomalySubscriptionsCommand extends $Command< GetAnomalySubscriptionsCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAnomalySubscriptionsCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetCostAndUsageCommand.ts b/clients/client-cost-explorer/commands/GetCostAndUsageCommand.ts index 5142f7263611a..cbc02f33f8fcd 100644 --- a/clients/client-cost-explorer/commands/GetCostAndUsageCommand.ts +++ b/clients/client-cost-explorer/commands/GetCostAndUsageCommand.ts @@ -34,6 +34,7 @@ export class GetCostAndUsageCommand extends $Command< GetCostAndUsageCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetCostAndUsageCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetCostAndUsageWithResourcesCommand.ts b/clients/client-cost-explorer/commands/GetCostAndUsageWithResourcesCommand.ts index ee0dc052f05c9..e3a2af382ad96 100644 --- a/clients/client-cost-explorer/commands/GetCostAndUsageWithResourcesCommand.ts +++ b/clients/client-cost-explorer/commands/GetCostAndUsageWithResourcesCommand.ts @@ -36,6 +36,7 @@ export class GetCostAndUsageWithResourcesCommand extends $Command< GetCostAndUsageWithResourcesCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetCostAndUsageWithResourcesCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetCostForecastCommand.ts b/clients/client-cost-explorer/commands/GetCostForecastCommand.ts index 14f23c62917fc..1fa4c6eca1b4f 100644 --- a/clients/client-cost-explorer/commands/GetCostForecastCommand.ts +++ b/clients/client-cost-explorer/commands/GetCostForecastCommand.ts @@ -28,6 +28,7 @@ export class GetCostForecastCommand extends $Command< GetCostForecastCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCostForecastCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetDimensionValuesCommand.ts b/clients/client-cost-explorer/commands/GetDimensionValuesCommand.ts index 76c7f6b70885f..e7ed4f5485ee5 100644 --- a/clients/client-cost-explorer/commands/GetDimensionValuesCommand.ts +++ b/clients/client-cost-explorer/commands/GetDimensionValuesCommand.ts @@ -28,6 +28,7 @@ export class GetDimensionValuesCommand extends $Command< GetDimensionValuesCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDimensionValuesCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetReservationCoverageCommand.ts b/clients/client-cost-explorer/commands/GetReservationCoverageCommand.ts index 71570e2ff4b30..a27ed356e6b1c 100644 --- a/clients/client-cost-explorer/commands/GetReservationCoverageCommand.ts +++ b/clients/client-cost-explorer/commands/GetReservationCoverageCommand.ts @@ -69,6 +69,7 @@ export class GetReservationCoverageCommand extends $Command< GetReservationCoverageCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class GetReservationCoverageCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetReservationPurchaseRecommendationCommand.ts b/clients/client-cost-explorer/commands/GetReservationPurchaseRecommendationCommand.ts index 748709b88f23d..7f9b350ebb699 100644 --- a/clients/client-cost-explorer/commands/GetReservationPurchaseRecommendationCommand.ts +++ b/clients/client-cost-explorer/commands/GetReservationPurchaseRecommendationCommand.ts @@ -41,6 +41,7 @@ export class GetReservationPurchaseRecommendationCommand extends $Command< GetReservationPurchaseRecommendationCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetReservationPurchaseRecommendationCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetReservationUtilizationCommand.ts b/clients/client-cost-explorer/commands/GetReservationUtilizationCommand.ts index e8faab45a9568..f0ea7fe9e1fc9 100644 --- a/clients/client-cost-explorer/commands/GetReservationUtilizationCommand.ts +++ b/clients/client-cost-explorer/commands/GetReservationUtilizationCommand.ts @@ -30,6 +30,7 @@ export class GetReservationUtilizationCommand extends $Command< GetReservationUtilizationCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetReservationUtilizationCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetRightsizingRecommendationCommand.ts b/clients/client-cost-explorer/commands/GetRightsizingRecommendationCommand.ts index 81a931390ae74..08333f970b298 100644 --- a/clients/client-cost-explorer/commands/GetRightsizingRecommendationCommand.ts +++ b/clients/client-cost-explorer/commands/GetRightsizingRecommendationCommand.ts @@ -37,6 +37,7 @@ export class GetRightsizingRecommendationCommand extends $Command< GetRightsizingRecommendationCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetRightsizingRecommendationCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetSavingsPlansCoverageCommand.ts b/clients/client-cost-explorer/commands/GetSavingsPlansCoverageCommand.ts index ba8dda582d198..c144b00387307 100644 --- a/clients/client-cost-explorer/commands/GetSavingsPlansCoverageCommand.ts +++ b/clients/client-cost-explorer/commands/GetSavingsPlansCoverageCommand.ts @@ -51,6 +51,7 @@ export class GetSavingsPlansCoverageCommand extends $Command< GetSavingsPlansCoverageCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class GetSavingsPlansCoverageCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetSavingsPlansPurchaseRecommendationCommand.ts b/clients/client-cost-explorer/commands/GetSavingsPlansPurchaseRecommendationCommand.ts index 36ea1fa2ba1ca..fe2f3e0212821 100644 --- a/clients/client-cost-explorer/commands/GetSavingsPlansPurchaseRecommendationCommand.ts +++ b/clients/client-cost-explorer/commands/GetSavingsPlansPurchaseRecommendationCommand.ts @@ -32,6 +32,7 @@ export class GetSavingsPlansPurchaseRecommendationCommand extends $Command< GetSavingsPlansPurchaseRecommendationCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetSavingsPlansPurchaseRecommendationCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationCommand.ts b/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationCommand.ts index 3857095f1d7f0..d903d6908d4da 100644 --- a/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationCommand.ts +++ b/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationCommand.ts @@ -31,6 +31,7 @@ export class GetSavingsPlansUtilizationCommand extends $Command< GetSavingsPlansUtilizationCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetSavingsPlansUtilizationCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationDetailsCommand.ts b/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationDetailsCommand.ts index 9295177318c87..c2963ed852c64 100644 --- a/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationDetailsCommand.ts +++ b/clients/client-cost-explorer/commands/GetSavingsPlansUtilizationDetailsCommand.ts @@ -36,6 +36,7 @@ export class GetSavingsPlansUtilizationDetailsCommand extends $Command< GetSavingsPlansUtilizationDetailsCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSavingsPlansUtilizationDetailsCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetTagsCommand.ts b/clients/client-cost-explorer/commands/GetTagsCommand.ts index 666e8a8dc27b6..9fdaf53854f71 100644 --- a/clients/client-cost-explorer/commands/GetTagsCommand.ts +++ b/clients/client-cost-explorer/commands/GetTagsCommand.ts @@ -25,6 +25,7 @@ export class GetTagsCommand extends $Command< GetTagsCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetTagsCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/GetUsageForecastCommand.ts b/clients/client-cost-explorer/commands/GetUsageForecastCommand.ts index 703a0a2cc2ff9..06e5c063d4d14 100644 --- a/clients/client-cost-explorer/commands/GetUsageForecastCommand.ts +++ b/clients/client-cost-explorer/commands/GetUsageForecastCommand.ts @@ -28,6 +28,7 @@ export class GetUsageForecastCommand extends $Command< GetUsageForecastCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsageForecastCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/ListCostCategoryDefinitionsCommand.ts b/clients/client-cost-explorer/commands/ListCostCategoryDefinitionsCommand.ts index 00144cea21094..c9537e4ebc149 100644 --- a/clients/client-cost-explorer/commands/ListCostCategoryDefinitionsCommand.ts +++ b/clients/client-cost-explorer/commands/ListCostCategoryDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListCostCategoryDefinitionsCommand extends $Command< ListCostCategoryDefinitionsCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCostCategoryDefinitionsCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/ProvideAnomalyFeedbackCommand.ts b/clients/client-cost-explorer/commands/ProvideAnomalyFeedbackCommand.ts index c01e33999f599..7f4eb9b242b50 100644 --- a/clients/client-cost-explorer/commands/ProvideAnomalyFeedbackCommand.ts +++ b/clients/client-cost-explorer/commands/ProvideAnomalyFeedbackCommand.ts @@ -28,6 +28,7 @@ export class ProvideAnomalyFeedbackCommand extends $Command< ProvideAnomalyFeedbackCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ProvideAnomalyFeedbackCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/UpdateAnomalyMonitorCommand.ts b/clients/client-cost-explorer/commands/UpdateAnomalyMonitorCommand.ts index c0ea3d8f3d926..39cba0305cc11 100644 --- a/clients/client-cost-explorer/commands/UpdateAnomalyMonitorCommand.ts +++ b/clients/client-cost-explorer/commands/UpdateAnomalyMonitorCommand.ts @@ -29,6 +29,7 @@ export class UpdateAnomalyMonitorCommand extends $Command< UpdateAnomalyMonitorCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateAnomalyMonitorCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/UpdateAnomalySubscriptionCommand.ts b/clients/client-cost-explorer/commands/UpdateAnomalySubscriptionCommand.ts index d90d9ad739d39..2c86707709056 100644 --- a/clients/client-cost-explorer/commands/UpdateAnomalySubscriptionCommand.ts +++ b/clients/client-cost-explorer/commands/UpdateAnomalySubscriptionCommand.ts @@ -28,6 +28,7 @@ export class UpdateAnomalySubscriptionCommand extends $Command< UpdateAnomalySubscriptionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAnomalySubscriptionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cost-explorer/commands/UpdateCostCategoryDefinitionCommand.ts b/clients/client-cost-explorer/commands/UpdateCostCategoryDefinitionCommand.ts index 2682ed95bde50..ae4d25118dee6 100644 --- a/clients/client-cost-explorer/commands/UpdateCostCategoryDefinitionCommand.ts +++ b/clients/client-cost-explorer/commands/UpdateCostCategoryDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateCostCategoryDefinitionCommand extends $Command< UpdateCostCategoryDefinitionCommandOutput, CostExplorerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCostCategoryDefinitionCommand extends $Command< configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/AddProfileKeyCommand.ts b/clients/client-customer-profiles/commands/AddProfileKeyCommand.ts index c5c0e86bd2ed6..61d09585d8df8 100644 --- a/clients/client-customer-profiles/commands/AddProfileKeyCommand.ts +++ b/clients/client-customer-profiles/commands/AddProfileKeyCommand.ts @@ -31,6 +31,7 @@ export class AddProfileKeyCommand extends $Command< AddProfileKeyCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AddProfileKeyCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/CreateDomainCommand.ts b/clients/client-customer-profiles/commands/CreateDomainCommand.ts index 6ca0904420ac2..b7ad2f35c0419 100644 --- a/clients/client-customer-profiles/commands/CreateDomainCommand.ts +++ b/clients/client-customer-profiles/commands/CreateDomainCommand.ts @@ -32,6 +32,7 @@ export class CreateDomainCommand extends $Command< CreateDomainCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateDomainCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/CreateProfileCommand.ts b/clients/client-customer-profiles/commands/CreateProfileCommand.ts index 9a3c09fd70622..a419f8e01dcaf 100644 --- a/clients/client-customer-profiles/commands/CreateProfileCommand.ts +++ b/clients/client-customer-profiles/commands/CreateProfileCommand.ts @@ -30,6 +30,7 @@ export class CreateProfileCommand extends $Command< CreateProfileCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateProfileCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteDomainCommand.ts b/clients/client-customer-profiles/commands/DeleteDomainCommand.ts index 04cd97271c65a..9f0a8b4ed8c22 100644 --- a/clients/client-customer-profiles/commands/DeleteDomainCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteDomainCommand.ts @@ -29,6 +29,7 @@ export class DeleteDomainCommand extends $Command< DeleteDomainCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDomainCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteIntegrationCommand.ts b/clients/client-customer-profiles/commands/DeleteIntegrationCommand.ts index 635797d498908..d2c3ae5e64256 100644 --- a/clients/client-customer-profiles/commands/DeleteIntegrationCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteIntegrationCommand.ts @@ -28,6 +28,7 @@ export class DeleteIntegrationCommand extends $Command< DeleteIntegrationCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteIntegrationCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteProfileCommand.ts b/clients/client-customer-profiles/commands/DeleteProfileCommand.ts index ec8f4cbf3bea2..96d865b37d130 100644 --- a/clients/client-customer-profiles/commands/DeleteProfileCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteProfileCommand extends $Command< DeleteProfileCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProfileCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteProfileKeyCommand.ts b/clients/client-customer-profiles/commands/DeleteProfileKeyCommand.ts index 8cba137f28e75..d7913ab181ba4 100644 --- a/clients/client-customer-profiles/commands/DeleteProfileKeyCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteProfileKeyCommand.ts @@ -28,6 +28,7 @@ export class DeleteProfileKeyCommand extends $Command< DeleteProfileKeyCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProfileKeyCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteProfileObjectCommand.ts b/clients/client-customer-profiles/commands/DeleteProfileObjectCommand.ts index bc3f3427f1e55..1287bb8fc7eb2 100644 --- a/clients/client-customer-profiles/commands/DeleteProfileObjectCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteProfileObjectCommand.ts @@ -28,6 +28,7 @@ export class DeleteProfileObjectCommand extends $Command< DeleteProfileObjectCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProfileObjectCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/DeleteProfileObjectTypeCommand.ts b/clients/client-customer-profiles/commands/DeleteProfileObjectTypeCommand.ts index 9b043199167f0..4bc0a9b03f417 100644 --- a/clients/client-customer-profiles/commands/DeleteProfileObjectTypeCommand.ts +++ b/clients/client-customer-profiles/commands/DeleteProfileObjectTypeCommand.ts @@ -31,6 +31,7 @@ export class DeleteProfileObjectTypeCommand extends $Command< DeleteProfileObjectTypeCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteProfileObjectTypeCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/GetDomainCommand.ts b/clients/client-customer-profiles/commands/GetDomainCommand.ts index f06298503e8f8..47c7d857240e4 100644 --- a/clients/client-customer-profiles/commands/GetDomainCommand.ts +++ b/clients/client-customer-profiles/commands/GetDomainCommand.ts @@ -28,6 +28,7 @@ export class GetDomainCommand extends $Command< GetDomainCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDomainCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/GetIntegrationCommand.ts b/clients/client-customer-profiles/commands/GetIntegrationCommand.ts index 72ee9fb12b51f..8ce175425dede 100644 --- a/clients/client-customer-profiles/commands/GetIntegrationCommand.ts +++ b/clients/client-customer-profiles/commands/GetIntegrationCommand.ts @@ -28,6 +28,7 @@ export class GetIntegrationCommand extends $Command< GetIntegrationCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIntegrationCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/GetProfileObjectTypeCommand.ts b/clients/client-customer-profiles/commands/GetProfileObjectTypeCommand.ts index 0e0691e61ab03..824e2983c0f02 100644 --- a/clients/client-customer-profiles/commands/GetProfileObjectTypeCommand.ts +++ b/clients/client-customer-profiles/commands/GetProfileObjectTypeCommand.ts @@ -28,6 +28,7 @@ export class GetProfileObjectTypeCommand extends $Command< GetProfileObjectTypeCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProfileObjectTypeCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/GetProfileObjectTypeTemplateCommand.ts b/clients/client-customer-profiles/commands/GetProfileObjectTypeTemplateCommand.ts index 1111b3c2d0945..cdf0b9bb7e914 100644 --- a/clients/client-customer-profiles/commands/GetProfileObjectTypeTemplateCommand.ts +++ b/clients/client-customer-profiles/commands/GetProfileObjectTypeTemplateCommand.ts @@ -32,6 +32,7 @@ export class GetProfileObjectTypeTemplateCommand extends $Command< GetProfileObjectTypeTemplateCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetProfileObjectTypeTemplateCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListAccountIntegrationsCommand.ts b/clients/client-customer-profiles/commands/ListAccountIntegrationsCommand.ts index fb310f826c0c1..3c2f9f7e736a7 100644 --- a/clients/client-customer-profiles/commands/ListAccountIntegrationsCommand.ts +++ b/clients/client-customer-profiles/commands/ListAccountIntegrationsCommand.ts @@ -28,6 +28,7 @@ export class ListAccountIntegrationsCommand extends $Command< ListAccountIntegrationsCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAccountIntegrationsCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListDomainsCommand.ts b/clients/client-customer-profiles/commands/ListDomainsCommand.ts index f30eed31b0c1f..bd33d9d42913a 100644 --- a/clients/client-customer-profiles/commands/ListDomainsCommand.ts +++ b/clients/client-customer-profiles/commands/ListDomainsCommand.ts @@ -28,6 +28,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDomainsCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListIntegrationsCommand.ts b/clients/client-customer-profiles/commands/ListIntegrationsCommand.ts index cd76bdd11d58a..e62cba04a9876 100644 --- a/clients/client-customer-profiles/commands/ListIntegrationsCommand.ts +++ b/clients/client-customer-profiles/commands/ListIntegrationsCommand.ts @@ -28,6 +28,7 @@ export class ListIntegrationsCommand extends $Command< ListIntegrationsCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIntegrationsCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListProfileObjectTypeTemplatesCommand.ts b/clients/client-customer-profiles/commands/ListProfileObjectTypeTemplatesCommand.ts index 6e9871bf094e2..44952ac2c29b3 100644 --- a/clients/client-customer-profiles/commands/ListProfileObjectTypeTemplatesCommand.ts +++ b/clients/client-customer-profiles/commands/ListProfileObjectTypeTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListProfileObjectTypeTemplatesCommand extends $Command< ListProfileObjectTypeTemplatesCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProfileObjectTypeTemplatesCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListProfileObjectTypesCommand.ts b/clients/client-customer-profiles/commands/ListProfileObjectTypesCommand.ts index 34123cd3ce33b..bffd475d2d670 100644 --- a/clients/client-customer-profiles/commands/ListProfileObjectTypesCommand.ts +++ b/clients/client-customer-profiles/commands/ListProfileObjectTypesCommand.ts @@ -28,6 +28,7 @@ export class ListProfileObjectTypesCommand extends $Command< ListProfileObjectTypesCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProfileObjectTypesCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListProfileObjectsCommand.ts b/clients/client-customer-profiles/commands/ListProfileObjectsCommand.ts index c7bea81de8255..77cc056ac1d24 100644 --- a/clients/client-customer-profiles/commands/ListProfileObjectsCommand.ts +++ b/clients/client-customer-profiles/commands/ListProfileObjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProfileObjectsCommand extends $Command< ListProfileObjectsCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProfileObjectsCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/ListTagsForResourceCommand.ts b/clients/client-customer-profiles/commands/ListTagsForResourceCommand.ts index 024f6a82acaba..154fc6c73a9b6 100644 --- a/clients/client-customer-profiles/commands/ListTagsForResourceCommand.ts +++ b/clients/client-customer-profiles/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/PutIntegrationCommand.ts b/clients/client-customer-profiles/commands/PutIntegrationCommand.ts index c8e7deafc8833..17cd96b11dfd8 100644 --- a/clients/client-customer-profiles/commands/PutIntegrationCommand.ts +++ b/clients/client-customer-profiles/commands/PutIntegrationCommand.ts @@ -30,6 +30,7 @@ export class PutIntegrationCommand extends $Command< PutIntegrationCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutIntegrationCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/PutProfileObjectCommand.ts b/clients/client-customer-profiles/commands/PutProfileObjectCommand.ts index d66d77cc5c861..1347ddc68135b 100644 --- a/clients/client-customer-profiles/commands/PutProfileObjectCommand.ts +++ b/clients/client-customer-profiles/commands/PutProfileObjectCommand.ts @@ -37,6 +37,7 @@ export class PutProfileObjectCommand extends $Command< PutProfileObjectCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutProfileObjectCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/PutProfileObjectTypeCommand.ts b/clients/client-customer-profiles/commands/PutProfileObjectTypeCommand.ts index cb793a13951d5..546176bcf948d 100644 --- a/clients/client-customer-profiles/commands/PutProfileObjectTypeCommand.ts +++ b/clients/client-customer-profiles/commands/PutProfileObjectTypeCommand.ts @@ -28,6 +28,7 @@ export class PutProfileObjectTypeCommand extends $Command< PutProfileObjectTypeCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutProfileObjectTypeCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/SearchProfilesCommand.ts b/clients/client-customer-profiles/commands/SearchProfilesCommand.ts index 0c2d6770be4d6..7822cdcb4012c 100644 --- a/clients/client-customer-profiles/commands/SearchProfilesCommand.ts +++ b/clients/client-customer-profiles/commands/SearchProfilesCommand.ts @@ -29,6 +29,7 @@ export class SearchProfilesCommand extends $Command< SearchProfilesCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SearchProfilesCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/TagResourceCommand.ts b/clients/client-customer-profiles/commands/TagResourceCommand.ts index 6cdd1ecb65941..18bdd5e083f40 100644 --- a/clients/client-customer-profiles/commands/TagResourceCommand.ts +++ b/clients/client-customer-profiles/commands/TagResourceCommand.ts @@ -39,6 +39,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class TagResourceCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/UntagResourceCommand.ts b/clients/client-customer-profiles/commands/UntagResourceCommand.ts index 6f4039ec8e088..d9e0dc248560f 100644 --- a/clients/client-customer-profiles/commands/UntagResourceCommand.ts +++ b/clients/client-customer-profiles/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/UpdateDomainCommand.ts b/clients/client-customer-profiles/commands/UpdateDomainCommand.ts index 8946ff4f6694c..7c5bccbbb8283 100644 --- a/clients/client-customer-profiles/commands/UpdateDomainCommand.ts +++ b/clients/client-customer-profiles/commands/UpdateDomainCommand.ts @@ -30,6 +30,7 @@ export class UpdateDomainCommand extends $Command< UpdateDomainCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateDomainCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-customer-profiles/commands/UpdateProfileCommand.ts b/clients/client-customer-profiles/commands/UpdateProfileCommand.ts index 0eacdaeb4ef41..1b1aa9edd819e 100644 --- a/clients/client-customer-profiles/commands/UpdateProfileCommand.ts +++ b/clients/client-customer-profiles/commands/UpdateProfileCommand.ts @@ -32,6 +32,7 @@ export class UpdateProfileCommand extends $Command< UpdateProfileCommandOutput, CustomerProfilesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateProfileCommand extends $Command< configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/ActivatePipelineCommand.ts b/clients/client-data-pipeline/commands/ActivatePipelineCommand.ts index 7b1590176b0ef..032675d74ff28 100644 --- a/clients/client-data-pipeline/commands/ActivatePipelineCommand.ts +++ b/clients/client-data-pipeline/commands/ActivatePipelineCommand.ts @@ -32,6 +32,7 @@ export class ActivatePipelineCommand extends $Command< ActivatePipelineCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ActivatePipelineCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/AddTagsCommand.ts b/clients/client-data-pipeline/commands/AddTagsCommand.ts index b68aeeae8ca56..14a42b25a4b5f 100644 --- a/clients/client-data-pipeline/commands/AddTagsCommand.ts +++ b/clients/client-data-pipeline/commands/AddTagsCommand.ts @@ -25,6 +25,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class AddTagsCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/CreatePipelineCommand.ts b/clients/client-data-pipeline/commands/CreatePipelineCommand.ts index a9db751098c37..7e8595fd05545 100644 --- a/clients/client-data-pipeline/commands/CreatePipelineCommand.ts +++ b/clients/client-data-pipeline/commands/CreatePipelineCommand.ts @@ -28,6 +28,7 @@ export class CreatePipelineCommand extends $Command< CreatePipelineCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePipelineCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/DeactivatePipelineCommand.ts b/clients/client-data-pipeline/commands/DeactivatePipelineCommand.ts index 8238bea0ce717..d2bcc3d151338 100644 --- a/clients/client-data-pipeline/commands/DeactivatePipelineCommand.ts +++ b/clients/client-data-pipeline/commands/DeactivatePipelineCommand.ts @@ -31,6 +31,7 @@ export class DeactivatePipelineCommand extends $Command< DeactivatePipelineCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeactivatePipelineCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/DeletePipelineCommand.ts b/clients/client-data-pipeline/commands/DeletePipelineCommand.ts index 3e012aabae461..f332bd8b4655f 100644 --- a/clients/client-data-pipeline/commands/DeletePipelineCommand.ts +++ b/clients/client-data-pipeline/commands/DeletePipelineCommand.ts @@ -31,6 +31,7 @@ export class DeletePipelineCommand extends $Command< DeletePipelineCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePipelineCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/DescribeObjectsCommand.ts b/clients/client-data-pipeline/commands/DescribeObjectsCommand.ts index 11674481a3ca1..15e4d22315440 100644 --- a/clients/client-data-pipeline/commands/DescribeObjectsCommand.ts +++ b/clients/client-data-pipeline/commands/DescribeObjectsCommand.ts @@ -28,6 +28,7 @@ export class DescribeObjectsCommand extends $Command< DescribeObjectsCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeObjectsCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/DescribePipelinesCommand.ts b/clients/client-data-pipeline/commands/DescribePipelinesCommand.ts index 1083fba5f7120..5579f32782cb7 100644 --- a/clients/client-data-pipeline/commands/DescribePipelinesCommand.ts +++ b/clients/client-data-pipeline/commands/DescribePipelinesCommand.ts @@ -29,6 +29,7 @@ export class DescribePipelinesCommand extends $Command< DescribePipelinesCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePipelinesCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/EvaluateExpressionCommand.ts b/clients/client-data-pipeline/commands/EvaluateExpressionCommand.ts index f745ac889698d..8e9ae8621fa83 100644 --- a/clients/client-data-pipeline/commands/EvaluateExpressionCommand.ts +++ b/clients/client-data-pipeline/commands/EvaluateExpressionCommand.ts @@ -29,6 +29,7 @@ export class EvaluateExpressionCommand extends $Command< EvaluateExpressionCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EvaluateExpressionCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/GetPipelineDefinitionCommand.ts b/clients/client-data-pipeline/commands/GetPipelineDefinitionCommand.ts index 416b4bb2a6217..f5869b18d2607 100644 --- a/clients/client-data-pipeline/commands/GetPipelineDefinitionCommand.ts +++ b/clients/client-data-pipeline/commands/GetPipelineDefinitionCommand.ts @@ -29,6 +29,7 @@ export class GetPipelineDefinitionCommand extends $Command< GetPipelineDefinitionCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPipelineDefinitionCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/ListPipelinesCommand.ts b/clients/client-data-pipeline/commands/ListPipelinesCommand.ts index d48f287ef1597..707f159db6a99 100644 --- a/clients/client-data-pipeline/commands/ListPipelinesCommand.ts +++ b/clients/client-data-pipeline/commands/ListPipelinesCommand.ts @@ -28,6 +28,7 @@ export class ListPipelinesCommand extends $Command< ListPipelinesCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelinesCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/PollForTaskCommand.ts b/clients/client-data-pipeline/commands/PollForTaskCommand.ts index 6e7ebf1bea8c2..f7215c5ffda6f 100644 --- a/clients/client-data-pipeline/commands/PollForTaskCommand.ts +++ b/clients/client-data-pipeline/commands/PollForTaskCommand.ts @@ -36,6 +36,7 @@ export class PollForTaskCommand extends $Command< PollForTaskCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PollForTaskCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/PutPipelineDefinitionCommand.ts b/clients/client-data-pipeline/commands/PutPipelineDefinitionCommand.ts index aa75c44de6e70..a1f61a4184a77 100644 --- a/clients/client-data-pipeline/commands/PutPipelineDefinitionCommand.ts +++ b/clients/client-data-pipeline/commands/PutPipelineDefinitionCommand.ts @@ -49,6 +49,7 @@ export class PutPipelineDefinitionCommand extends $Command< PutPipelineDefinitionCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutPipelineDefinitionCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/QueryObjectsCommand.ts b/clients/client-data-pipeline/commands/QueryObjectsCommand.ts index 79a5a1ade7cd5..dce083be8a856 100644 --- a/clients/client-data-pipeline/commands/QueryObjectsCommand.ts +++ b/clients/client-data-pipeline/commands/QueryObjectsCommand.ts @@ -28,6 +28,7 @@ export class QueryObjectsCommand extends $Command< QueryObjectsCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QueryObjectsCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/RemoveTagsCommand.ts b/clients/client-data-pipeline/commands/RemoveTagsCommand.ts index 22bb1f59eeb7f..48de995372a72 100644 --- a/clients/client-data-pipeline/commands/RemoveTagsCommand.ts +++ b/clients/client-data-pipeline/commands/RemoveTagsCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/ReportTaskProgressCommand.ts b/clients/client-data-pipeline/commands/ReportTaskProgressCommand.ts index 0ee7734698109..8902d66f96d11 100644 --- a/clients/client-data-pipeline/commands/ReportTaskProgressCommand.ts +++ b/clients/client-data-pipeline/commands/ReportTaskProgressCommand.ts @@ -31,6 +31,7 @@ export class ReportTaskProgressCommand extends $Command< ReportTaskProgressCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ReportTaskProgressCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/ReportTaskRunnerHeartbeatCommand.ts b/clients/client-data-pipeline/commands/ReportTaskRunnerHeartbeatCommand.ts index dec1c84cd369f..013743e677da7 100644 --- a/clients/client-data-pipeline/commands/ReportTaskRunnerHeartbeatCommand.ts +++ b/clients/client-data-pipeline/commands/ReportTaskRunnerHeartbeatCommand.ts @@ -30,6 +30,7 @@ export class ReportTaskRunnerHeartbeatCommand extends $Command< ReportTaskRunnerHeartbeatCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ReportTaskRunnerHeartbeatCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/SetStatusCommand.ts b/clients/client-data-pipeline/commands/SetStatusCommand.ts index d01e076ebd255..57e989243353f 100644 --- a/clients/client-data-pipeline/commands/SetStatusCommand.ts +++ b/clients/client-data-pipeline/commands/SetStatusCommand.ts @@ -27,6 +27,7 @@ export class SetStatusCommand extends $Command< SetStatusCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class SetStatusCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/SetTaskStatusCommand.ts b/clients/client-data-pipeline/commands/SetTaskStatusCommand.ts index 61352dea9fb6b..75f9237438647 100644 --- a/clients/client-data-pipeline/commands/SetTaskStatusCommand.ts +++ b/clients/client-data-pipeline/commands/SetTaskStatusCommand.ts @@ -30,6 +30,7 @@ export class SetTaskStatusCommand extends $Command< SetTaskStatusCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetTaskStatusCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-data-pipeline/commands/ValidatePipelineDefinitionCommand.ts b/clients/client-data-pipeline/commands/ValidatePipelineDefinitionCommand.ts index c7f73aaf701a6..54c259c831897 100644 --- a/clients/client-data-pipeline/commands/ValidatePipelineDefinitionCommand.ts +++ b/clients/client-data-pipeline/commands/ValidatePipelineDefinitionCommand.ts @@ -28,6 +28,7 @@ export class ValidatePipelineDefinitionCommand extends $Command< ValidatePipelineDefinitionCommandOutput, DataPipelineClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ValidatePipelineDefinitionCommand extends $Command< configuration: DataPipelineClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/AddTagsToResourceCommand.ts b/clients/client-database-migration-service/commands/AddTagsToResourceCommand.ts index c9554c7e79426..6924bf1c51d6c 100644 --- a/clients/client-database-migration-service/commands/AddTagsToResourceCommand.ts +++ b/clients/client-database-migration-service/commands/AddTagsToResourceCommand.ts @@ -37,6 +37,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ApplyPendingMaintenanceActionCommand.ts b/clients/client-database-migration-service/commands/ApplyPendingMaintenanceActionCommand.ts index 5b6064de46ada..8558b84d9bb41 100644 --- a/clients/client-database-migration-service/commands/ApplyPendingMaintenanceActionCommand.ts +++ b/clients/client-database-migration-service/commands/ApplyPendingMaintenanceActionCommand.ts @@ -32,6 +32,7 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< ApplyPendingMaintenanceActionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CancelReplicationTaskAssessmentRunCommand.ts b/clients/client-database-migration-service/commands/CancelReplicationTaskAssessmentRunCommand.ts index 8249839371a90..e0b08f274ba5e 100644 --- a/clients/client-database-migration-service/commands/CancelReplicationTaskAssessmentRunCommand.ts +++ b/clients/client-database-migration-service/commands/CancelReplicationTaskAssessmentRunCommand.ts @@ -39,6 +39,7 @@ export class CancelReplicationTaskAssessmentRunCommand extends $Command< CancelReplicationTaskAssessmentRunCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CancelReplicationTaskAssessmentRunCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CreateEndpointCommand.ts b/clients/client-database-migration-service/commands/CreateEndpointCommand.ts index 203f4f04866f1..4bba8533c57a0 100644 --- a/clients/client-database-migration-service/commands/CreateEndpointCommand.ts +++ b/clients/client-database-migration-service/commands/CreateEndpointCommand.ts @@ -32,6 +32,7 @@ export class CreateEndpointCommand extends $Command< CreateEndpointCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateEndpointCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CreateEventSubscriptionCommand.ts b/clients/client-database-migration-service/commands/CreateEventSubscriptionCommand.ts index c567e2731c1f1..722c7bc4a3280 100644 --- a/clients/client-database-migration-service/commands/CreateEventSubscriptionCommand.ts +++ b/clients/client-database-migration-service/commands/CreateEventSubscriptionCommand.ts @@ -47,6 +47,7 @@ export class CreateEventSubscriptionCommand extends $Command< CreateEventSubscriptionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateEventSubscriptionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CreateReplicationInstanceCommand.ts b/clients/client-database-migration-service/commands/CreateReplicationInstanceCommand.ts index 38ca327b90526..051ad6f0e9976 100644 --- a/clients/client-database-migration-service/commands/CreateReplicationInstanceCommand.ts +++ b/clients/client-database-migration-service/commands/CreateReplicationInstanceCommand.ts @@ -37,6 +37,7 @@ export class CreateReplicationInstanceCommand extends $Command< CreateReplicationInstanceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateReplicationInstanceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CreateReplicationSubnetGroupCommand.ts b/clients/client-database-migration-service/commands/CreateReplicationSubnetGroupCommand.ts index 15bf19472dd3e..0f85def20b4c1 100644 --- a/clients/client-database-migration-service/commands/CreateReplicationSubnetGroupCommand.ts +++ b/clients/client-database-migration-service/commands/CreateReplicationSubnetGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateReplicationSubnetGroupCommand extends $Command< CreateReplicationSubnetGroupCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateReplicationSubnetGroupCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/CreateReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/CreateReplicationTaskCommand.ts index a54600f17de1a..a8a3acb8d63e9 100644 --- a/clients/client-database-migration-service/commands/CreateReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/CreateReplicationTaskCommand.ts @@ -32,6 +32,7 @@ export class CreateReplicationTaskCommand extends $Command< CreateReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteCertificateCommand.ts b/clients/client-database-migration-service/commands/DeleteCertificateCommand.ts index 64533806fbeac..646ba4f11d085 100644 --- a/clients/client-database-migration-service/commands/DeleteCertificateCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteCertificateCommand.ts @@ -32,6 +32,7 @@ export class DeleteCertificateCommand extends $Command< DeleteCertificateCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCertificateCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteConnectionCommand.ts b/clients/client-database-migration-service/commands/DeleteConnectionCommand.ts index 92458d8cc8da2..61afc48c0a2ed 100644 --- a/clients/client-database-migration-service/commands/DeleteConnectionCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteConnectionCommand.ts @@ -32,6 +32,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteConnectionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteEndpointCommand.ts b/clients/client-database-migration-service/commands/DeleteEndpointCommand.ts index f5a92b85fafe7..c8bcdb698d964 100644 --- a/clients/client-database-migration-service/commands/DeleteEndpointCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteEndpointCommand.ts @@ -37,6 +37,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteEndpointCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteEventSubscriptionCommand.ts b/clients/client-database-migration-service/commands/DeleteEventSubscriptionCommand.ts index 8479c17506f4f..e5c23feda5af8 100644 --- a/clients/client-database-migration-service/commands/DeleteEventSubscriptionCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteEventSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class DeleteEventSubscriptionCommand extends $Command< DeleteEventSubscriptionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteEventSubscriptionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteReplicationInstanceCommand.ts b/clients/client-database-migration-service/commands/DeleteReplicationInstanceCommand.ts index 8fa565380a9cc..40630ddcc1986 100644 --- a/clients/client-database-migration-service/commands/DeleteReplicationInstanceCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteReplicationInstanceCommand.ts @@ -37,6 +37,7 @@ export class DeleteReplicationInstanceCommand extends $Command< DeleteReplicationInstanceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteReplicationInstanceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteReplicationSubnetGroupCommand.ts b/clients/client-database-migration-service/commands/DeleteReplicationSubnetGroupCommand.ts index c95317a35b55b..92ec1516fdf8e 100644 --- a/clients/client-database-migration-service/commands/DeleteReplicationSubnetGroupCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteReplicationSubnetGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteReplicationSubnetGroupCommand extends $Command< DeleteReplicationSubnetGroupCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteReplicationSubnetGroupCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteReplicationTaskAssessmentRunCommand.ts b/clients/client-database-migration-service/commands/DeleteReplicationTaskAssessmentRunCommand.ts index 6c86620806169..c8b7d8864a0b8 100644 --- a/clients/client-database-migration-service/commands/DeleteReplicationTaskAssessmentRunCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteReplicationTaskAssessmentRunCommand.ts @@ -39,6 +39,7 @@ export class DeleteReplicationTaskAssessmentRunCommand extends $Command< DeleteReplicationTaskAssessmentRunCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteReplicationTaskAssessmentRunCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DeleteReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/DeleteReplicationTaskCommand.ts index 0da022240e0af..b5737132a72b7 100644 --- a/clients/client-database-migration-service/commands/DeleteReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/DeleteReplicationTaskCommand.ts @@ -32,6 +32,7 @@ export class DeleteReplicationTaskCommand extends $Command< DeleteReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeAccountAttributesCommand.ts b/clients/client-database-migration-service/commands/DescribeAccountAttributesCommand.ts index 82d6308f7590f..cd57d53af8361 100644 --- a/clients/client-database-migration-service/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeAccountAttributesCommand.ts @@ -38,6 +38,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeApplicableIndividualAssessmentsCommand.ts b/clients/client-database-migration-service/commands/DescribeApplicableIndividualAssessmentsCommand.ts index 992fa01b7546c..040c7bb72865c 100644 --- a/clients/client-database-migration-service/commands/DescribeApplicableIndividualAssessmentsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeApplicableIndividualAssessmentsCommand.ts @@ -50,6 +50,7 @@ export class DescribeApplicableIndividualAssessmentsCommand extends $Command< DescribeApplicableIndividualAssessmentsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class DescribeApplicableIndividualAssessmentsCommand extends $Command< DescribeApplicableIndividualAssessmentsCommandInput, DescribeApplicableIndividualAssessmentsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeCertificatesCommand.ts b/clients/client-database-migration-service/commands/DescribeCertificatesCommand.ts index 4528ac71422a1..eb5f5a2e32424 100644 --- a/clients/client-database-migration-service/commands/DescribeCertificatesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeCertificatesCommand.ts @@ -32,6 +32,7 @@ export class DescribeCertificatesCommand extends $Command< DescribeCertificatesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeCertificatesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeConnectionsCommand.ts b/clients/client-database-migration-service/commands/DescribeConnectionsCommand.ts index 39b6e84bd6dd2..a67803fe5db65 100644 --- a/clients/client-database-migration-service/commands/DescribeConnectionsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeConnectionsCommand.ts @@ -33,6 +33,7 @@ export class DescribeConnectionsCommand extends $Command< DescribeConnectionsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeConnectionsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeEndpointTypesCommand.ts b/clients/client-database-migration-service/commands/DescribeEndpointTypesCommand.ts index 392d0871b631c..f7366846b621b 100644 --- a/clients/client-database-migration-service/commands/DescribeEndpointTypesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeEndpointTypesCommand.ts @@ -32,6 +32,7 @@ export class DescribeEndpointTypesCommand extends $Command< DescribeEndpointTypesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEndpointTypesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeEndpointsCommand.ts b/clients/client-database-migration-service/commands/DescribeEndpointsCommand.ts index c8f8be2ea6c00..b120d06ba9659 100644 --- a/clients/client-database-migration-service/commands/DescribeEndpointsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeEndpointsCommand.ts @@ -32,6 +32,7 @@ export class DescribeEndpointsCommand extends $Command< DescribeEndpointsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEndpointsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeEventCategoriesCommand.ts b/clients/client-database-migration-service/commands/DescribeEventCategoriesCommand.ts index 150f72f3684c0..e4c98beb913da 100644 --- a/clients/client-database-migration-service/commands/DescribeEventCategoriesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeEventCategoriesCommand.ts @@ -36,6 +36,7 @@ export class DescribeEventCategoriesCommand extends $Command< DescribeEventCategoriesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeEventCategoriesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeEventSubscriptionsCommand.ts b/clients/client-database-migration-service/commands/DescribeEventSubscriptionsCommand.ts index 046282f0a76b5..c362a059d97da 100644 --- a/clients/client-database-migration-service/commands/DescribeEventSubscriptionsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeEventSubscriptionsCommand.ts @@ -37,6 +37,7 @@ export class DescribeEventSubscriptionsCommand extends $Command< DescribeEventSubscriptionsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeEventSubscriptionsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeEventsCommand.ts b/clients/client-database-migration-service/commands/DescribeEventsCommand.ts index f1d831df7a36f..01243cea806be 100644 --- a/clients/client-database-migration-service/commands/DescribeEventsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeEventsCommand.ts @@ -36,6 +36,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeEventsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeOrderableReplicationInstancesCommand.ts b/clients/client-database-migration-service/commands/DescribeOrderableReplicationInstancesCommand.ts index eef87d7dffd75..edd2041c380f2 100644 --- a/clients/client-database-migration-service/commands/DescribeOrderableReplicationInstancesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeOrderableReplicationInstancesCommand.ts @@ -37,6 +37,7 @@ export class DescribeOrderableReplicationInstancesCommand extends $Command< DescribeOrderableReplicationInstancesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeOrderableReplicationInstancesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribePendingMaintenanceActionsCommand.ts b/clients/client-database-migration-service/commands/DescribePendingMaintenanceActionsCommand.ts index 580ca276f7ca9..08cdc01a92d33 100644 --- a/clients/client-database-migration-service/commands/DescribePendingMaintenanceActionsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribePendingMaintenanceActionsCommand.ts @@ -36,6 +36,7 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< DescribePendingMaintenanceActionsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeRefreshSchemasStatusCommand.ts b/clients/client-database-migration-service/commands/DescribeRefreshSchemasStatusCommand.ts index 5ca6b75e68260..f5652aa32c7c6 100644 --- a/clients/client-database-migration-service/commands/DescribeRefreshSchemasStatusCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeRefreshSchemasStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribeRefreshSchemasStatusCommand extends $Command< DescribeRefreshSchemasStatusCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeRefreshSchemasStatusCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationInstanceTaskLogsCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationInstanceTaskLogsCommand.ts index cb44536cfa66f..25cb67b784d60 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationInstanceTaskLogsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationInstanceTaskLogsCommand.ts @@ -36,6 +36,7 @@ export class DescribeReplicationInstanceTaskLogsCommand extends $Command< DescribeReplicationInstanceTaskLogsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeReplicationInstanceTaskLogsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationInstancesCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationInstancesCommand.ts index 4102642be23b0..d22cc9855d77d 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationInstancesCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationInstancesCommand.ts @@ -33,6 +33,7 @@ export class DescribeReplicationInstancesCommand extends $Command< DescribeReplicationInstancesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReplicationInstancesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationSubnetGroupsCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationSubnetGroupsCommand.ts index 8a203f605533d..ea7e95a76f931 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationSubnetGroupsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationSubnetGroupsCommand.ts @@ -32,6 +32,7 @@ export class DescribeReplicationSubnetGroupsCommand extends $Command< DescribeReplicationSubnetGroupsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeReplicationSubnetGroupsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentResultsCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentResultsCommand.ts index 35e227d88721c..41e8e8c8f80a6 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentResultsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentResultsCommand.ts @@ -37,6 +37,7 @@ export class DescribeReplicationTaskAssessmentResultsCommand extends $Command< DescribeReplicationTaskAssessmentResultsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeReplicationTaskAssessmentResultsCommand extends $Command< DescribeReplicationTaskAssessmentResultsCommandInput, DescribeReplicationTaskAssessmentResultsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentRunsCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentRunsCommand.ts index b3ac04254dacf..00ba077b45511 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentRunsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationTaskAssessmentRunsCommand.ts @@ -44,6 +44,7 @@ export class DescribeReplicationTaskAssessmentRunsCommand extends $Command< DescribeReplicationTaskAssessmentRunsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeReplicationTaskAssessmentRunsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationTaskIndividualAssessmentsCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationTaskIndividualAssessmentsCommand.ts index 7cb35aafe36c2..ba579d2dcd553 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationTaskIndividualAssessmentsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationTaskIndividualAssessmentsCommand.ts @@ -38,6 +38,7 @@ export class DescribeReplicationTaskIndividualAssessmentsCommand extends $Comman DescribeReplicationTaskIndividualAssessmentsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DescribeReplicationTaskIndividualAssessmentsCommand extends $Comman DescribeReplicationTaskIndividualAssessmentsCommandInput, DescribeReplicationTaskIndividualAssessmentsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeReplicationTasksCommand.ts b/clients/client-database-migration-service/commands/DescribeReplicationTasksCommand.ts index 1a863b9b1608f..f26f33b0e522c 100644 --- a/clients/client-database-migration-service/commands/DescribeReplicationTasksCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeReplicationTasksCommand.ts @@ -33,6 +33,7 @@ export class DescribeReplicationTasksCommand extends $Command< DescribeReplicationTasksCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReplicationTasksCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeSchemasCommand.ts b/clients/client-database-migration-service/commands/DescribeSchemasCommand.ts index e8be176ad3587..c9cfe0c6c700b 100644 --- a/clients/client-database-migration-service/commands/DescribeSchemasCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeSchemasCommand.ts @@ -34,6 +34,7 @@ export class DescribeSchemasCommand extends $Command< DescribeSchemasCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeSchemasCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/DescribeTableStatisticsCommand.ts b/clients/client-database-migration-service/commands/DescribeTableStatisticsCommand.ts index 7530a76c5ca4f..814714924eb98 100644 --- a/clients/client-database-migration-service/commands/DescribeTableStatisticsCommand.ts +++ b/clients/client-database-migration-service/commands/DescribeTableStatisticsCommand.ts @@ -36,6 +36,7 @@ export class DescribeTableStatisticsCommand extends $Command< DescribeTableStatisticsCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeTableStatisticsCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ImportCertificateCommand.ts b/clients/client-database-migration-service/commands/ImportCertificateCommand.ts index 74854126867e7..7f8d0593ae790 100644 --- a/clients/client-database-migration-service/commands/ImportCertificateCommand.ts +++ b/clients/client-database-migration-service/commands/ImportCertificateCommand.ts @@ -32,6 +32,7 @@ export class ImportCertificateCommand extends $Command< ImportCertificateCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ImportCertificateCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ListTagsForResourceCommand.ts b/clients/client-database-migration-service/commands/ListTagsForResourceCommand.ts index 99dae69cf6132..01e780270c922 100644 --- a/clients/client-database-migration-service/commands/ListTagsForResourceCommand.ts +++ b/clients/client-database-migration-service/commands/ListTagsForResourceCommand.ts @@ -36,6 +36,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ModifyEndpointCommand.ts b/clients/client-database-migration-service/commands/ModifyEndpointCommand.ts index 958f7363f7169..069c2abc0ac3f 100644 --- a/clients/client-database-migration-service/commands/ModifyEndpointCommand.ts +++ b/clients/client-database-migration-service/commands/ModifyEndpointCommand.ts @@ -32,6 +32,7 @@ export class ModifyEndpointCommand extends $Command< ModifyEndpointCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyEndpointCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ModifyEventSubscriptionCommand.ts b/clients/client-database-migration-service/commands/ModifyEventSubscriptionCommand.ts index a6e7d468a37f2..7dafac52012d4 100644 --- a/clients/client-database-migration-service/commands/ModifyEventSubscriptionCommand.ts +++ b/clients/client-database-migration-service/commands/ModifyEventSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class ModifyEventSubscriptionCommand extends $Command< ModifyEventSubscriptionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyEventSubscriptionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ModifyReplicationInstanceCommand.ts b/clients/client-database-migration-service/commands/ModifyReplicationInstanceCommand.ts index 7c0d4f666fbc9..079181627c0b4 100644 --- a/clients/client-database-migration-service/commands/ModifyReplicationInstanceCommand.ts +++ b/clients/client-database-migration-service/commands/ModifyReplicationInstanceCommand.ts @@ -36,6 +36,7 @@ export class ModifyReplicationInstanceCommand extends $Command< ModifyReplicationInstanceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyReplicationInstanceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ModifyReplicationSubnetGroupCommand.ts b/clients/client-database-migration-service/commands/ModifyReplicationSubnetGroupCommand.ts index d00367316d368..e8c15341f2d16 100644 --- a/clients/client-database-migration-service/commands/ModifyReplicationSubnetGroupCommand.ts +++ b/clients/client-database-migration-service/commands/ModifyReplicationSubnetGroupCommand.ts @@ -32,6 +32,7 @@ export class ModifyReplicationSubnetGroupCommand extends $Command< ModifyReplicationSubnetGroupCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyReplicationSubnetGroupCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ModifyReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/ModifyReplicationTaskCommand.ts index 1a077bfaa755d..983860a406e46 100644 --- a/clients/client-database-migration-service/commands/ModifyReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/ModifyReplicationTaskCommand.ts @@ -35,6 +35,7 @@ export class ModifyReplicationTaskCommand extends $Command< ModifyReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifyReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/MoveReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/MoveReplicationTaskCommand.ts index 5d0165950abdf..d0145e3e71913 100644 --- a/clients/client-database-migration-service/commands/MoveReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/MoveReplicationTaskCommand.ts @@ -35,6 +35,7 @@ export class MoveReplicationTaskCommand extends $Command< MoveReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class MoveReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/RebootReplicationInstanceCommand.ts b/clients/client-database-migration-service/commands/RebootReplicationInstanceCommand.ts index df0939ef9e723..48c4af8e704c8 100644 --- a/clients/client-database-migration-service/commands/RebootReplicationInstanceCommand.ts +++ b/clients/client-database-migration-service/commands/RebootReplicationInstanceCommand.ts @@ -33,6 +33,7 @@ export class RebootReplicationInstanceCommand extends $Command< RebootReplicationInstanceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RebootReplicationInstanceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/RefreshSchemasCommand.ts b/clients/client-database-migration-service/commands/RefreshSchemasCommand.ts index a70b73be9c605..80a0aa9df7890 100644 --- a/clients/client-database-migration-service/commands/RefreshSchemasCommand.ts +++ b/clients/client-database-migration-service/commands/RefreshSchemasCommand.ts @@ -34,6 +34,7 @@ export class RefreshSchemasCommand extends $Command< RefreshSchemasCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RefreshSchemasCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/ReloadTablesCommand.ts b/clients/client-database-migration-service/commands/ReloadTablesCommand.ts index 0f679a8caa314..2955a3ad57b2a 100644 --- a/clients/client-database-migration-service/commands/ReloadTablesCommand.ts +++ b/clients/client-database-migration-service/commands/ReloadTablesCommand.ts @@ -32,6 +32,7 @@ export class ReloadTablesCommand extends $Command< ReloadTablesCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReloadTablesCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/RemoveTagsFromResourceCommand.ts b/clients/client-database-migration-service/commands/RemoveTagsFromResourceCommand.ts index 2142dce66e223..c1e78c751f47e 100644 --- a/clients/client-database-migration-service/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-database-migration-service/commands/RemoveTagsFromResourceCommand.ts @@ -37,6 +37,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentCommand.ts b/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentCommand.ts index 9816fcd75527d..d0177df87556e 100644 --- a/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentCommand.ts +++ b/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentCommand.ts @@ -33,6 +33,7 @@ export class StartReplicationTaskAssessmentCommand extends $Command< StartReplicationTaskAssessmentCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartReplicationTaskAssessmentCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentRunCommand.ts b/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentRunCommand.ts index 5ff17b76fedd0..e2372f6002ca5 100644 --- a/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentRunCommand.ts +++ b/clients/client-database-migration-service/commands/StartReplicationTaskAssessmentRunCommand.ts @@ -42,6 +42,7 @@ export class StartReplicationTaskAssessmentRunCommand extends $Command< StartReplicationTaskAssessmentRunCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class StartReplicationTaskAssessmentRunCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/StartReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/StartReplicationTaskCommand.ts index d92b455c268f4..869bfa05195f3 100644 --- a/clients/client-database-migration-service/commands/StartReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/StartReplicationTaskCommand.ts @@ -35,6 +35,7 @@ export class StartReplicationTaskCommand extends $Command< StartReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/StopReplicationTaskCommand.ts b/clients/client-database-migration-service/commands/StopReplicationTaskCommand.ts index 7bc6c4e157df3..031099f4cc20f 100644 --- a/clients/client-database-migration-service/commands/StopReplicationTaskCommand.ts +++ b/clients/client-database-migration-service/commands/StopReplicationTaskCommand.ts @@ -32,6 +32,7 @@ export class StopReplicationTaskCommand extends $Command< StopReplicationTaskCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopReplicationTaskCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-database-migration-service/commands/TestConnectionCommand.ts b/clients/client-database-migration-service/commands/TestConnectionCommand.ts index d530e6c75ba26..215db62a205c9 100644 --- a/clients/client-database-migration-service/commands/TestConnectionCommand.ts +++ b/clients/client-database-migration-service/commands/TestConnectionCommand.ts @@ -32,6 +32,7 @@ export class TestConnectionCommand extends $Command< TestConnectionCommandOutput, DatabaseMigrationServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestConnectionCommand extends $Command< configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/BatchDeleteRecipeVersionCommand.ts b/clients/client-databrew/commands/BatchDeleteRecipeVersionCommand.ts index c12c1031b04e9..76fc58120bdc2 100644 --- a/clients/client-databrew/commands/BatchDeleteRecipeVersionCommand.ts +++ b/clients/client-databrew/commands/BatchDeleteRecipeVersionCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteRecipeVersionCommand extends $Command< BatchDeleteRecipeVersionCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteRecipeVersionCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateDatasetCommand.ts b/clients/client-databrew/commands/CreateDatasetCommand.ts index f791bffb71524..449ea8d51d7e0 100644 --- a/clients/client-databrew/commands/CreateDatasetCommand.ts +++ b/clients/client-databrew/commands/CreateDatasetCommand.ts @@ -28,6 +28,7 @@ export class CreateDatasetCommand extends $Command< CreateDatasetCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDatasetCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateProfileJobCommand.ts b/clients/client-databrew/commands/CreateProfileJobCommand.ts index 9845dcd2e594e..25b4ddcf68d00 100644 --- a/clients/client-databrew/commands/CreateProfileJobCommand.ts +++ b/clients/client-databrew/commands/CreateProfileJobCommand.ts @@ -29,6 +29,7 @@ export class CreateProfileJobCommand extends $Command< CreateProfileJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateProfileJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateProjectCommand.ts b/clients/client-databrew/commands/CreateProjectCommand.ts index fe3b480ac139d..408e91acdc7c3 100644 --- a/clients/client-databrew/commands/CreateProjectCommand.ts +++ b/clients/client-databrew/commands/CreateProjectCommand.ts @@ -28,6 +28,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProjectCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateRecipeCommand.ts b/clients/client-databrew/commands/CreateRecipeCommand.ts index d5b7740a34abd..fa7022b6389c8 100644 --- a/clients/client-databrew/commands/CreateRecipeCommand.ts +++ b/clients/client-databrew/commands/CreateRecipeCommand.ts @@ -28,6 +28,7 @@ export class CreateRecipeCommand extends $Command< CreateRecipeCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRecipeCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateRecipeJobCommand.ts b/clients/client-databrew/commands/CreateRecipeJobCommand.ts index c3b1720459996..2800480365ed5 100644 --- a/clients/client-databrew/commands/CreateRecipeJobCommand.ts +++ b/clients/client-databrew/commands/CreateRecipeJobCommand.ts @@ -30,6 +30,7 @@ export class CreateRecipeJobCommand extends $Command< CreateRecipeJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateRecipeJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/CreateScheduleCommand.ts b/clients/client-databrew/commands/CreateScheduleCommand.ts index 1c029ec8f5d5c..5176f03c41308 100644 --- a/clients/client-databrew/commands/CreateScheduleCommand.ts +++ b/clients/client-databrew/commands/CreateScheduleCommand.ts @@ -29,6 +29,7 @@ export class CreateScheduleCommand extends $Command< CreateScheduleCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateScheduleCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DeleteDatasetCommand.ts b/clients/client-databrew/commands/DeleteDatasetCommand.ts index 2d815b896b788..0d3420e9d4270 100644 --- a/clients/client-databrew/commands/DeleteDatasetCommand.ts +++ b/clients/client-databrew/commands/DeleteDatasetCommand.ts @@ -28,6 +28,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDatasetCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DeleteJobCommand.ts b/clients/client-databrew/commands/DeleteJobCommand.ts index baa13fde800cf..0b8567cf47ad4 100644 --- a/clients/client-databrew/commands/DeleteJobCommand.ts +++ b/clients/client-databrew/commands/DeleteJobCommand.ts @@ -29,6 +29,7 @@ export class DeleteJobCommand extends $Command< DeleteJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DeleteProjectCommand.ts b/clients/client-databrew/commands/DeleteProjectCommand.ts index e352ac31b7bb1..8b5cad26266e0 100644 --- a/clients/client-databrew/commands/DeleteProjectCommand.ts +++ b/clients/client-databrew/commands/DeleteProjectCommand.ts @@ -28,6 +28,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProjectCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DeleteRecipeVersionCommand.ts b/clients/client-databrew/commands/DeleteRecipeVersionCommand.ts index d0eb486c6fc94..3e4a466b4f766 100644 --- a/clients/client-databrew/commands/DeleteRecipeVersionCommand.ts +++ b/clients/client-databrew/commands/DeleteRecipeVersionCommand.ts @@ -28,6 +28,7 @@ export class DeleteRecipeVersionCommand extends $Command< DeleteRecipeVersionCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRecipeVersionCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DeleteScheduleCommand.ts b/clients/client-databrew/commands/DeleteScheduleCommand.ts index 12bd090232f52..bd1ca2c2c309a 100644 --- a/clients/client-databrew/commands/DeleteScheduleCommand.ts +++ b/clients/client-databrew/commands/DeleteScheduleCommand.ts @@ -28,6 +28,7 @@ export class DeleteScheduleCommand extends $Command< DeleteScheduleCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteScheduleCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DescribeDatasetCommand.ts b/clients/client-databrew/commands/DescribeDatasetCommand.ts index 220b974bf6490..48cab3577be45 100644 --- a/clients/client-databrew/commands/DescribeDatasetCommand.ts +++ b/clients/client-databrew/commands/DescribeDatasetCommand.ts @@ -29,6 +29,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDatasetCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DescribeJobCommand.ts b/clients/client-databrew/commands/DescribeJobCommand.ts index c14123430e883..6c3892dc47438 100644 --- a/clients/client-databrew/commands/DescribeJobCommand.ts +++ b/clients/client-databrew/commands/DescribeJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeJobCommand extends $Command< DescribeJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DescribeProjectCommand.ts b/clients/client-databrew/commands/DescribeProjectCommand.ts index c513312c47a6c..489cd912022e5 100644 --- a/clients/client-databrew/commands/DescribeProjectCommand.ts +++ b/clients/client-databrew/commands/DescribeProjectCommand.ts @@ -29,6 +29,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeProjectCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DescribeRecipeCommand.ts b/clients/client-databrew/commands/DescribeRecipeCommand.ts index 12cebccc85f9c..7024b300eb0b7 100644 --- a/clients/client-databrew/commands/DescribeRecipeCommand.ts +++ b/clients/client-databrew/commands/DescribeRecipeCommand.ts @@ -29,6 +29,7 @@ export class DescribeRecipeCommand extends $Command< DescribeRecipeCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeRecipeCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/DescribeScheduleCommand.ts b/clients/client-databrew/commands/DescribeScheduleCommand.ts index 5909843bd448a..5f6ba6f192a32 100644 --- a/clients/client-databrew/commands/DescribeScheduleCommand.ts +++ b/clients/client-databrew/commands/DescribeScheduleCommand.ts @@ -29,6 +29,7 @@ export class DescribeScheduleCommand extends $Command< DescribeScheduleCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeScheduleCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListDatasetsCommand.ts b/clients/client-databrew/commands/ListDatasetsCommand.ts index 038e6d67b0006..fb30b5a371860 100644 --- a/clients/client-databrew/commands/ListDatasetsCommand.ts +++ b/clients/client-databrew/commands/ListDatasetsCommand.ts @@ -28,6 +28,7 @@ export class ListDatasetsCommand extends $Command< ListDatasetsCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDatasetsCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListJobRunsCommand.ts b/clients/client-databrew/commands/ListJobRunsCommand.ts index be82ee1ccef84..5ff9be7376cdb 100644 --- a/clients/client-databrew/commands/ListJobRunsCommand.ts +++ b/clients/client-databrew/commands/ListJobRunsCommand.ts @@ -29,6 +29,7 @@ export class ListJobRunsCommand extends $Command< ListJobRunsCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListJobRunsCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListJobsCommand.ts b/clients/client-databrew/commands/ListJobsCommand.ts index 2e424859141d7..3e98cb8275b9b 100644 --- a/clients/client-databrew/commands/ListJobsCommand.ts +++ b/clients/client-databrew/commands/ListJobsCommand.ts @@ -28,6 +28,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobsCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListProjectsCommand.ts b/clients/client-databrew/commands/ListProjectsCommand.ts index 489567d76594e..cab64167ab204 100644 --- a/clients/client-databrew/commands/ListProjectsCommand.ts +++ b/clients/client-databrew/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListRecipeVersionsCommand.ts b/clients/client-databrew/commands/ListRecipeVersionsCommand.ts index 560184c0a396e..dd6614ac260c8 100644 --- a/clients/client-databrew/commands/ListRecipeVersionsCommand.ts +++ b/clients/client-databrew/commands/ListRecipeVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListRecipeVersionsCommand extends $Command< ListRecipeVersionsCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRecipeVersionsCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListRecipesCommand.ts b/clients/client-databrew/commands/ListRecipesCommand.ts index 9866aa6ad82e3..36bfe545d7e61 100644 --- a/clients/client-databrew/commands/ListRecipesCommand.ts +++ b/clients/client-databrew/commands/ListRecipesCommand.ts @@ -28,6 +28,7 @@ export class ListRecipesCommand extends $Command< ListRecipesCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRecipesCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListSchedulesCommand.ts b/clients/client-databrew/commands/ListSchedulesCommand.ts index 1d2084df430fb..034e2b0a823a1 100644 --- a/clients/client-databrew/commands/ListSchedulesCommand.ts +++ b/clients/client-databrew/commands/ListSchedulesCommand.ts @@ -28,6 +28,7 @@ export class ListSchedulesCommand extends $Command< ListSchedulesCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSchedulesCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/ListTagsForResourceCommand.ts b/clients/client-databrew/commands/ListTagsForResourceCommand.ts index 46a2ef52919c1..c4a09f57c6612 100644 --- a/clients/client-databrew/commands/ListTagsForResourceCommand.ts +++ b/clients/client-databrew/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/PublishRecipeCommand.ts b/clients/client-databrew/commands/PublishRecipeCommand.ts index 92ab00805c3c7..2636c03a46128 100644 --- a/clients/client-databrew/commands/PublishRecipeCommand.ts +++ b/clients/client-databrew/commands/PublishRecipeCommand.ts @@ -29,6 +29,7 @@ export class PublishRecipeCommand extends $Command< PublishRecipeCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PublishRecipeCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/SendProjectSessionActionCommand.ts b/clients/client-databrew/commands/SendProjectSessionActionCommand.ts index fea3a5aba8a71..db1190cef333c 100644 --- a/clients/client-databrew/commands/SendProjectSessionActionCommand.ts +++ b/clients/client-databrew/commands/SendProjectSessionActionCommand.ts @@ -29,6 +29,7 @@ export class SendProjectSessionActionCommand extends $Command< SendProjectSessionActionCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SendProjectSessionActionCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/StartJobRunCommand.ts b/clients/client-databrew/commands/StartJobRunCommand.ts index 730c530c03145..177ed5a30db97 100644 --- a/clients/client-databrew/commands/StartJobRunCommand.ts +++ b/clients/client-databrew/commands/StartJobRunCommand.ts @@ -28,6 +28,7 @@ export class StartJobRunCommand extends $Command< StartJobRunCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartJobRunCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/StartProjectSessionCommand.ts b/clients/client-databrew/commands/StartProjectSessionCommand.ts index 0b39c78585c31..ab3b88194cef9 100644 --- a/clients/client-databrew/commands/StartProjectSessionCommand.ts +++ b/clients/client-databrew/commands/StartProjectSessionCommand.ts @@ -29,6 +29,7 @@ export class StartProjectSessionCommand extends $Command< StartProjectSessionCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartProjectSessionCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/StopJobRunCommand.ts b/clients/client-databrew/commands/StopJobRunCommand.ts index f6dea6b914366..bf8a8aee30e0a 100644 --- a/clients/client-databrew/commands/StopJobRunCommand.ts +++ b/clients/client-databrew/commands/StopJobRunCommand.ts @@ -28,6 +28,7 @@ export class StopJobRunCommand extends $Command< StopJobRunCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopJobRunCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/TagResourceCommand.ts b/clients/client-databrew/commands/TagResourceCommand.ts index 194119406081b..70167daf6328c 100644 --- a/clients/client-databrew/commands/TagResourceCommand.ts +++ b/clients/client-databrew/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UntagResourceCommand.ts b/clients/client-databrew/commands/UntagResourceCommand.ts index 7395b86c2e912..5152728bd90a6 100644 --- a/clients/client-databrew/commands/UntagResourceCommand.ts +++ b/clients/client-databrew/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateDatasetCommand.ts b/clients/client-databrew/commands/UpdateDatasetCommand.ts index 6d50d0b466681..a9a6eebf576f3 100644 --- a/clients/client-databrew/commands/UpdateDatasetCommand.ts +++ b/clients/client-databrew/commands/UpdateDatasetCommand.ts @@ -29,6 +29,7 @@ export class UpdateDatasetCommand extends $Command< UpdateDatasetCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDatasetCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateProfileJobCommand.ts b/clients/client-databrew/commands/UpdateProfileJobCommand.ts index 8f6f9dbcee682..99b390285e52a 100644 --- a/clients/client-databrew/commands/UpdateProfileJobCommand.ts +++ b/clients/client-databrew/commands/UpdateProfileJobCommand.ts @@ -29,6 +29,7 @@ export class UpdateProfileJobCommand extends $Command< UpdateProfileJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateProfileJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateProjectCommand.ts b/clients/client-databrew/commands/UpdateProjectCommand.ts index 094b8953db35f..3eded4e72b843 100644 --- a/clients/client-databrew/commands/UpdateProjectCommand.ts +++ b/clients/client-databrew/commands/UpdateProjectCommand.ts @@ -29,6 +29,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateProjectCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateRecipeCommand.ts b/clients/client-databrew/commands/UpdateRecipeCommand.ts index a612d7befcb9c..2730a0bde9c1c 100644 --- a/clients/client-databrew/commands/UpdateRecipeCommand.ts +++ b/clients/client-databrew/commands/UpdateRecipeCommand.ts @@ -29,6 +29,7 @@ export class UpdateRecipeCommand extends $Command< UpdateRecipeCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateRecipeCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateRecipeJobCommand.ts b/clients/client-databrew/commands/UpdateRecipeJobCommand.ts index f9b7bef3d150e..22bfb9c81c752 100644 --- a/clients/client-databrew/commands/UpdateRecipeJobCommand.ts +++ b/clients/client-databrew/commands/UpdateRecipeJobCommand.ts @@ -29,6 +29,7 @@ export class UpdateRecipeJobCommand extends $Command< UpdateRecipeJobCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateRecipeJobCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-databrew/commands/UpdateScheduleCommand.ts b/clients/client-databrew/commands/UpdateScheduleCommand.ts index 01413eced2a75..59003f39bbae8 100644 --- a/clients/client-databrew/commands/UpdateScheduleCommand.ts +++ b/clients/client-databrew/commands/UpdateScheduleCommand.ts @@ -29,6 +29,7 @@ export class UpdateScheduleCommand extends $Command< UpdateScheduleCommandOutput, DataBrewClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateScheduleCommand extends $Command< configuration: DataBrewClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/CancelJobCommand.ts b/clients/client-dataexchange/commands/CancelJobCommand.ts index 69ceb50590da6..23813c1db688e 100644 --- a/clients/client-dataexchange/commands/CancelJobCommand.ts +++ b/clients/client-dataexchange/commands/CancelJobCommand.ts @@ -28,6 +28,7 @@ export class CancelJobCommand extends $Command< CancelJobCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelJobCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/CreateDataSetCommand.ts b/clients/client-dataexchange/commands/CreateDataSetCommand.ts index c1e558990d321..f3865db9ced91 100644 --- a/clients/client-dataexchange/commands/CreateDataSetCommand.ts +++ b/clients/client-dataexchange/commands/CreateDataSetCommand.ts @@ -28,6 +28,7 @@ export class CreateDataSetCommand extends $Command< CreateDataSetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDataSetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/CreateJobCommand.ts b/clients/client-dataexchange/commands/CreateJobCommand.ts index fd51b111e3378..a1d393daa03c8 100644 --- a/clients/client-dataexchange/commands/CreateJobCommand.ts +++ b/clients/client-dataexchange/commands/CreateJobCommand.ts @@ -28,6 +28,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateJobCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/CreateRevisionCommand.ts b/clients/client-dataexchange/commands/CreateRevisionCommand.ts index aa674c7e8e9a6..0b840cc918e79 100644 --- a/clients/client-dataexchange/commands/CreateRevisionCommand.ts +++ b/clients/client-dataexchange/commands/CreateRevisionCommand.ts @@ -28,6 +28,7 @@ export class CreateRevisionCommand extends $Command< CreateRevisionCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRevisionCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/DeleteAssetCommand.ts b/clients/client-dataexchange/commands/DeleteAssetCommand.ts index e82dbe9dcfaa5..6c11109cca5ab 100644 --- a/clients/client-dataexchange/commands/DeleteAssetCommand.ts +++ b/clients/client-dataexchange/commands/DeleteAssetCommand.ts @@ -28,6 +28,7 @@ export class DeleteAssetCommand extends $Command< DeleteAssetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAssetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/DeleteDataSetCommand.ts b/clients/client-dataexchange/commands/DeleteDataSetCommand.ts index a8a85c8629fc3..a0601a6bab8c4 100644 --- a/clients/client-dataexchange/commands/DeleteDataSetCommand.ts +++ b/clients/client-dataexchange/commands/DeleteDataSetCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataSetCommand extends $Command< DeleteDataSetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataSetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/DeleteRevisionCommand.ts b/clients/client-dataexchange/commands/DeleteRevisionCommand.ts index 888050f829281..f581a68cb8111 100644 --- a/clients/client-dataexchange/commands/DeleteRevisionCommand.ts +++ b/clients/client-dataexchange/commands/DeleteRevisionCommand.ts @@ -28,6 +28,7 @@ export class DeleteRevisionCommand extends $Command< DeleteRevisionCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRevisionCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/GetAssetCommand.ts b/clients/client-dataexchange/commands/GetAssetCommand.ts index d44c04b4e325e..cedbdfe32947d 100644 --- a/clients/client-dataexchange/commands/GetAssetCommand.ts +++ b/clients/client-dataexchange/commands/GetAssetCommand.ts @@ -28,6 +28,7 @@ export class GetAssetCommand extends $Command< GetAssetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAssetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/GetDataSetCommand.ts b/clients/client-dataexchange/commands/GetDataSetCommand.ts index b552b19565120..bdfd473eeb00f 100644 --- a/clients/client-dataexchange/commands/GetDataSetCommand.ts +++ b/clients/client-dataexchange/commands/GetDataSetCommand.ts @@ -28,6 +28,7 @@ export class GetDataSetCommand extends $Command< GetDataSetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataSetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/GetJobCommand.ts b/clients/client-dataexchange/commands/GetJobCommand.ts index d4ab3b37e82cc..0799be9623c1f 100644 --- a/clients/client-dataexchange/commands/GetJobCommand.ts +++ b/clients/client-dataexchange/commands/GetJobCommand.ts @@ -21,6 +21,7 @@ export type GetJobCommandOutput = GetJobResponse & __MetadataBearer; *

This operation returns information about a job.

*/ 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-dataexchange/commands/GetRevisionCommand.ts b/clients/client-dataexchange/commands/GetRevisionCommand.ts index 1cb1454f2c20a..8278717cf4843 100644 --- a/clients/client-dataexchange/commands/GetRevisionCommand.ts +++ b/clients/client-dataexchange/commands/GetRevisionCommand.ts @@ -28,6 +28,7 @@ export class GetRevisionCommand extends $Command< GetRevisionCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRevisionCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/ListDataSetRevisionsCommand.ts b/clients/client-dataexchange/commands/ListDataSetRevisionsCommand.ts index d20d3b796a9fc..215383dc1b469 100644 --- a/clients/client-dataexchange/commands/ListDataSetRevisionsCommand.ts +++ b/clients/client-dataexchange/commands/ListDataSetRevisionsCommand.ts @@ -28,6 +28,7 @@ export class ListDataSetRevisionsCommand extends $Command< ListDataSetRevisionsCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSetRevisionsCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/ListDataSetsCommand.ts b/clients/client-dataexchange/commands/ListDataSetsCommand.ts index 8ea57ad775408..8a08652ddf228 100644 --- a/clients/client-dataexchange/commands/ListDataSetsCommand.ts +++ b/clients/client-dataexchange/commands/ListDataSetsCommand.ts @@ -28,6 +28,7 @@ export class ListDataSetsCommand extends $Command< ListDataSetsCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSetsCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/ListJobsCommand.ts b/clients/client-dataexchange/commands/ListJobsCommand.ts index fb6621e429799..871724fb4208a 100644 --- a/clients/client-dataexchange/commands/ListJobsCommand.ts +++ b/clients/client-dataexchange/commands/ListJobsCommand.ts @@ -28,6 +28,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobsCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/ListRevisionAssetsCommand.ts b/clients/client-dataexchange/commands/ListRevisionAssetsCommand.ts index 9a1237bb62c62..baf40afcd5754 100644 --- a/clients/client-dataexchange/commands/ListRevisionAssetsCommand.ts +++ b/clients/client-dataexchange/commands/ListRevisionAssetsCommand.ts @@ -28,6 +28,7 @@ export class ListRevisionAssetsCommand extends $Command< ListRevisionAssetsCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRevisionAssetsCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/ListTagsForResourceCommand.ts b/clients/client-dataexchange/commands/ListTagsForResourceCommand.ts index 8f9b4eb2f51e3..07b69a79f91cd 100644 --- a/clients/client-dataexchange/commands/ListTagsForResourceCommand.ts +++ b/clients/client-dataexchange/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/StartJobCommand.ts b/clients/client-dataexchange/commands/StartJobCommand.ts index 69f12ad586f7a..2e38b27230592 100644 --- a/clients/client-dataexchange/commands/StartJobCommand.ts +++ b/clients/client-dataexchange/commands/StartJobCommand.ts @@ -28,6 +28,7 @@ export class StartJobCommand extends $Command< StartJobCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartJobCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/TagResourceCommand.ts b/clients/client-dataexchange/commands/TagResourceCommand.ts index 9ba7cfbf54bf6..88ce839b0663d 100644 --- a/clients/client-dataexchange/commands/TagResourceCommand.ts +++ b/clients/client-dataexchange/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/UntagResourceCommand.ts b/clients/client-dataexchange/commands/UntagResourceCommand.ts index defc61b8c641a..567af996d606f 100644 --- a/clients/client-dataexchange/commands/UntagResourceCommand.ts +++ b/clients/client-dataexchange/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/UpdateAssetCommand.ts b/clients/client-dataexchange/commands/UpdateAssetCommand.ts index a29ff709de337..a45506816ebd2 100644 --- a/clients/client-dataexchange/commands/UpdateAssetCommand.ts +++ b/clients/client-dataexchange/commands/UpdateAssetCommand.ts @@ -28,6 +28,7 @@ export class UpdateAssetCommand extends $Command< UpdateAssetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAssetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/UpdateDataSetCommand.ts b/clients/client-dataexchange/commands/UpdateDataSetCommand.ts index f2bcd33c08758..536cea0ddc38c 100644 --- a/clients/client-dataexchange/commands/UpdateDataSetCommand.ts +++ b/clients/client-dataexchange/commands/UpdateDataSetCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSetCommand extends $Command< UpdateDataSetCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSetCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dataexchange/commands/UpdateRevisionCommand.ts b/clients/client-dataexchange/commands/UpdateRevisionCommand.ts index 70de5fabbcd79..aedb28b8a32cc 100644 --- a/clients/client-dataexchange/commands/UpdateRevisionCommand.ts +++ b/clients/client-dataexchange/commands/UpdateRevisionCommand.ts @@ -28,6 +28,7 @@ export class UpdateRevisionCommand extends $Command< UpdateRevisionCommandOutput, DataExchangeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRevisionCommand extends $Command< configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CancelTaskExecutionCommand.ts b/clients/client-datasync/commands/CancelTaskExecutionCommand.ts index 0135f223a1d01..3628c6eb43d7b 100644 --- a/clients/client-datasync/commands/CancelTaskExecutionCommand.ts +++ b/clients/client-datasync/commands/CancelTaskExecutionCommand.ts @@ -35,6 +35,7 @@ export class CancelTaskExecutionCommand extends $Command< CancelTaskExecutionCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CancelTaskExecutionCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateAgentCommand.ts b/clients/client-datasync/commands/CreateAgentCommand.ts index 955fdceecc1fd..560f7f31f61ae 100644 --- a/clients/client-datasync/commands/CreateAgentCommand.ts +++ b/clients/client-datasync/commands/CreateAgentCommand.ts @@ -42,6 +42,7 @@ export class CreateAgentCommand extends $Command< CreateAgentCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateAgentCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationEfsCommand.ts b/clients/client-datasync/commands/CreateLocationEfsCommand.ts index ceadd81fe6e02..f4d1de5798301 100644 --- a/clients/client-datasync/commands/CreateLocationEfsCommand.ts +++ b/clients/client-datasync/commands/CreateLocationEfsCommand.ts @@ -28,6 +28,7 @@ export class CreateLocationEfsCommand extends $Command< CreateLocationEfsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLocationEfsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationFsxWindowsCommand.ts b/clients/client-datasync/commands/CreateLocationFsxWindowsCommand.ts index 0dfb6acfee396..dd4ad235cdf25 100644 --- a/clients/client-datasync/commands/CreateLocationFsxWindowsCommand.ts +++ b/clients/client-datasync/commands/CreateLocationFsxWindowsCommand.ts @@ -28,6 +28,7 @@ export class CreateLocationFsxWindowsCommand extends $Command< CreateLocationFsxWindowsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLocationFsxWindowsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationNfsCommand.ts b/clients/client-datasync/commands/CreateLocationNfsCommand.ts index 4d94bd164f9d3..26f9f40b2dc85 100644 --- a/clients/client-datasync/commands/CreateLocationNfsCommand.ts +++ b/clients/client-datasync/commands/CreateLocationNfsCommand.ts @@ -29,6 +29,7 @@ export class CreateLocationNfsCommand extends $Command< CreateLocationNfsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateLocationNfsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationObjectStorageCommand.ts b/clients/client-datasync/commands/CreateLocationObjectStorageCommand.ts index a28848e35badb..73b90b56e6194 100644 --- a/clients/client-datasync/commands/CreateLocationObjectStorageCommand.ts +++ b/clients/client-datasync/commands/CreateLocationObjectStorageCommand.ts @@ -29,6 +29,7 @@ export class CreateLocationObjectStorageCommand extends $Command< CreateLocationObjectStorageCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateLocationObjectStorageCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationS3Command.ts b/clients/client-datasync/commands/CreateLocationS3Command.ts index 1b201bf8c3bd3..346587a02168d 100644 --- a/clients/client-datasync/commands/CreateLocationS3Command.ts +++ b/clients/client-datasync/commands/CreateLocationS3Command.ts @@ -34,6 +34,7 @@ export class CreateLocationS3Command extends $Command< CreateLocationS3CommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateLocationS3Command extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateLocationSmbCommand.ts b/clients/client-datasync/commands/CreateLocationSmbCommand.ts index deebbe7208888..4267ea43bfbfa 100644 --- a/clients/client-datasync/commands/CreateLocationSmbCommand.ts +++ b/clients/client-datasync/commands/CreateLocationSmbCommand.ts @@ -29,6 +29,7 @@ export class CreateLocationSmbCommand extends $Command< CreateLocationSmbCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateLocationSmbCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/CreateTaskCommand.ts b/clients/client-datasync/commands/CreateTaskCommand.ts index 483a50e8fa169..44a7c55155211 100644 --- a/clients/client-datasync/commands/CreateTaskCommand.ts +++ b/clients/client-datasync/commands/CreateTaskCommand.ts @@ -39,6 +39,7 @@ export class CreateTaskCommand extends $Command< CreateTaskCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateTaskCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DeleteAgentCommand.ts b/clients/client-datasync/commands/DeleteAgentCommand.ts index ae541733044c8..b218d7ccb23ab 100644 --- a/clients/client-datasync/commands/DeleteAgentCommand.ts +++ b/clients/client-datasync/commands/DeleteAgentCommand.ts @@ -31,6 +31,7 @@ export class DeleteAgentCommand extends $Command< DeleteAgentCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteAgentCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DeleteLocationCommand.ts b/clients/client-datasync/commands/DeleteLocationCommand.ts index 6da86f9ae5862..96515b4066cf1 100644 --- a/clients/client-datasync/commands/DeleteLocationCommand.ts +++ b/clients/client-datasync/commands/DeleteLocationCommand.ts @@ -28,6 +28,7 @@ export class DeleteLocationCommand extends $Command< DeleteLocationCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLocationCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DeleteTaskCommand.ts b/clients/client-datasync/commands/DeleteTaskCommand.ts index b6bce86d85453..5b1bb1b09f4ef 100644 --- a/clients/client-datasync/commands/DeleteTaskCommand.ts +++ b/clients/client-datasync/commands/DeleteTaskCommand.ts @@ -28,6 +28,7 @@ export class DeleteTaskCommand extends $Command< DeleteTaskCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTaskCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeAgentCommand.ts b/clients/client-datasync/commands/DescribeAgentCommand.ts index 071ea6561a2ab..15076670ed98f 100644 --- a/clients/client-datasync/commands/DescribeAgentCommand.ts +++ b/clients/client-datasync/commands/DescribeAgentCommand.ts @@ -30,6 +30,7 @@ export class DescribeAgentCommand extends $Command< DescribeAgentCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAgentCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationEfsCommand.ts b/clients/client-datasync/commands/DescribeLocationEfsCommand.ts index a311fae827665..9b686c6fb4948 100644 --- a/clients/client-datasync/commands/DescribeLocationEfsCommand.ts +++ b/clients/client-datasync/commands/DescribeLocationEfsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLocationEfsCommand extends $Command< DescribeLocationEfsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLocationEfsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationFsxWindowsCommand.ts b/clients/client-datasync/commands/DescribeLocationFsxWindowsCommand.ts index 588c649a54e38..92bf42b003f64 100644 --- a/clients/client-datasync/commands/DescribeLocationFsxWindowsCommand.ts +++ b/clients/client-datasync/commands/DescribeLocationFsxWindowsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLocationFsxWindowsCommand extends $Command< DescribeLocationFsxWindowsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLocationFsxWindowsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationNfsCommand.ts b/clients/client-datasync/commands/DescribeLocationNfsCommand.ts index c9555e306fdef..60d9f0b717336 100644 --- a/clients/client-datasync/commands/DescribeLocationNfsCommand.ts +++ b/clients/client-datasync/commands/DescribeLocationNfsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLocationNfsCommand extends $Command< DescribeLocationNfsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLocationNfsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationObjectStorageCommand.ts b/clients/client-datasync/commands/DescribeLocationObjectStorageCommand.ts index d03279a098d11..930a1be8e26dd 100644 --- a/clients/client-datasync/commands/DescribeLocationObjectStorageCommand.ts +++ b/clients/client-datasync/commands/DescribeLocationObjectStorageCommand.ts @@ -29,6 +29,7 @@ export class DescribeLocationObjectStorageCommand extends $Command< DescribeLocationObjectStorageCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLocationObjectStorageCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationS3Command.ts b/clients/client-datasync/commands/DescribeLocationS3Command.ts index bfc28f946e6b9..66cfcc3e895d9 100644 --- a/clients/client-datasync/commands/DescribeLocationS3Command.ts +++ b/clients/client-datasync/commands/DescribeLocationS3Command.ts @@ -28,6 +28,7 @@ export class DescribeLocationS3Command extends $Command< DescribeLocationS3CommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLocationS3Command extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeLocationSmbCommand.ts b/clients/client-datasync/commands/DescribeLocationSmbCommand.ts index 8893927347daa..8a2324b58df86 100644 --- a/clients/client-datasync/commands/DescribeLocationSmbCommand.ts +++ b/clients/client-datasync/commands/DescribeLocationSmbCommand.ts @@ -28,6 +28,7 @@ export class DescribeLocationSmbCommand extends $Command< DescribeLocationSmbCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLocationSmbCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeTaskCommand.ts b/clients/client-datasync/commands/DescribeTaskCommand.ts index 6dfffc4085a30..f24173050d975 100644 --- a/clients/client-datasync/commands/DescribeTaskCommand.ts +++ b/clients/client-datasync/commands/DescribeTaskCommand.ts @@ -28,6 +28,7 @@ export class DescribeTaskCommand extends $Command< DescribeTaskCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTaskCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/DescribeTaskExecutionCommand.ts b/clients/client-datasync/commands/DescribeTaskExecutionCommand.ts index e91363fa0aa86..a31786711362b 100644 --- a/clients/client-datasync/commands/DescribeTaskExecutionCommand.ts +++ b/clients/client-datasync/commands/DescribeTaskExecutionCommand.ts @@ -28,6 +28,7 @@ export class DescribeTaskExecutionCommand extends $Command< DescribeTaskExecutionCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTaskExecutionCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/ListAgentsCommand.ts b/clients/client-datasync/commands/ListAgentsCommand.ts index 511cfd1ca4dad..40405848af65d 100644 --- a/clients/client-datasync/commands/ListAgentsCommand.ts +++ b/clients/client-datasync/commands/ListAgentsCommand.ts @@ -35,6 +35,7 @@ export class ListAgentsCommand extends $Command< ListAgentsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListAgentsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/ListLocationsCommand.ts b/clients/client-datasync/commands/ListLocationsCommand.ts index 219d287dd294d..5ac4825aa9fba 100644 --- a/clients/client-datasync/commands/ListLocationsCommand.ts +++ b/clients/client-datasync/commands/ListLocationsCommand.ts @@ -31,6 +31,7 @@ export class ListLocationsCommand extends $Command< ListLocationsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListLocationsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/ListTagsForResourceCommand.ts b/clients/client-datasync/commands/ListTagsForResourceCommand.ts index 45662ab3e944a..9633f328f336a 100644 --- a/clients/client-datasync/commands/ListTagsForResourceCommand.ts +++ b/clients/client-datasync/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/ListTaskExecutionsCommand.ts b/clients/client-datasync/commands/ListTaskExecutionsCommand.ts index 729b1e5c661b8..4214cfa7868d9 100644 --- a/clients/client-datasync/commands/ListTaskExecutionsCommand.ts +++ b/clients/client-datasync/commands/ListTaskExecutionsCommand.ts @@ -28,6 +28,7 @@ export class ListTaskExecutionsCommand extends $Command< ListTaskExecutionsCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTaskExecutionsCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/ListTasksCommand.ts b/clients/client-datasync/commands/ListTasksCommand.ts index 800b06b5d0800..a2949cd7714f2 100644 --- a/clients/client-datasync/commands/ListTasksCommand.ts +++ b/clients/client-datasync/commands/ListTasksCommand.ts @@ -25,6 +25,7 @@ export class ListTasksCommand extends $Command< ListTasksCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTasksCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/StartTaskExecutionCommand.ts b/clients/client-datasync/commands/StartTaskExecutionCommand.ts index 001092dcd5ac4..ba81657eff5c6 100644 --- a/clients/client-datasync/commands/StartTaskExecutionCommand.ts +++ b/clients/client-datasync/commands/StartTaskExecutionCommand.ts @@ -36,6 +36,7 @@ export class StartTaskExecutionCommand extends $Command< StartTaskExecutionCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartTaskExecutionCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/TagResourceCommand.ts b/clients/client-datasync/commands/TagResourceCommand.ts index 866c5b071c7fa..b445e3468d88e 100644 --- a/clients/client-datasync/commands/TagResourceCommand.ts +++ b/clients/client-datasync/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/UntagResourceCommand.ts b/clients/client-datasync/commands/UntagResourceCommand.ts index f8833388861c5..97bc153dec95c 100644 --- a/clients/client-datasync/commands/UntagResourceCommand.ts +++ b/clients/client-datasync/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/UpdateAgentCommand.ts b/clients/client-datasync/commands/UpdateAgentCommand.ts index fabbbb89994a1..a98008be38c2d 100644 --- a/clients/client-datasync/commands/UpdateAgentCommand.ts +++ b/clients/client-datasync/commands/UpdateAgentCommand.ts @@ -28,6 +28,7 @@ export class UpdateAgentCommand extends $Command< UpdateAgentCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAgentCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/UpdateTaskCommand.ts b/clients/client-datasync/commands/UpdateTaskCommand.ts index 1d0271416c1e0..bfea472f219ea 100644 --- a/clients/client-datasync/commands/UpdateTaskCommand.ts +++ b/clients/client-datasync/commands/UpdateTaskCommand.ts @@ -28,6 +28,7 @@ export class UpdateTaskCommand extends $Command< UpdateTaskCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTaskCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-datasync/commands/UpdateTaskExecutionCommand.ts b/clients/client-datasync/commands/UpdateTaskExecutionCommand.ts index d8e6cfccec4a9..66769a188cd06 100644 --- a/clients/client-datasync/commands/UpdateTaskExecutionCommand.ts +++ b/clients/client-datasync/commands/UpdateTaskExecutionCommand.ts @@ -37,6 +37,7 @@ export class UpdateTaskExecutionCommand extends $Command< UpdateTaskExecutionCommandOutput, DataSyncClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateTaskExecutionCommand extends $Command< configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/CreateClusterCommand.ts b/clients/client-dax/commands/CreateClusterCommand.ts index 152d0dd73e012..21036af6fc6b7 100644 --- a/clients/client-dax/commands/CreateClusterCommand.ts +++ b/clients/client-dax/commands/CreateClusterCommand.ts @@ -28,6 +28,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateClusterCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/CreateParameterGroupCommand.ts b/clients/client-dax/commands/CreateParameterGroupCommand.ts index fe48c34c8dd10..bf12442b6588e 100644 --- a/clients/client-dax/commands/CreateParameterGroupCommand.ts +++ b/clients/client-dax/commands/CreateParameterGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateParameterGroupCommand extends $Command< CreateParameterGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateParameterGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/CreateSubnetGroupCommand.ts b/clients/client-dax/commands/CreateSubnetGroupCommand.ts index 3dcfd80e18e31..c9b77023ebd28 100644 --- a/clients/client-dax/commands/CreateSubnetGroupCommand.ts +++ b/clients/client-dax/commands/CreateSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateSubnetGroupCommand extends $Command< CreateSubnetGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSubnetGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DecreaseReplicationFactorCommand.ts b/clients/client-dax/commands/DecreaseReplicationFactorCommand.ts index ba3b284e63e1b..25337741dee48 100644 --- a/clients/client-dax/commands/DecreaseReplicationFactorCommand.ts +++ b/clients/client-dax/commands/DecreaseReplicationFactorCommand.ts @@ -31,6 +31,7 @@ export class DecreaseReplicationFactorCommand extends $Command< DecreaseReplicationFactorCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DecreaseReplicationFactorCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DeleteClusterCommand.ts b/clients/client-dax/commands/DeleteClusterCommand.ts index 8dbd51eb4072e..a5584976b39dd 100644 --- a/clients/client-dax/commands/DeleteClusterCommand.ts +++ b/clients/client-dax/commands/DeleteClusterCommand.ts @@ -32,6 +32,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteClusterCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DeleteParameterGroupCommand.ts b/clients/client-dax/commands/DeleteParameterGroupCommand.ts index 0492525ab5711..45e413007c8c1 100644 --- a/clients/client-dax/commands/DeleteParameterGroupCommand.ts +++ b/clients/client-dax/commands/DeleteParameterGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteParameterGroupCommand extends $Command< DeleteParameterGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteParameterGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DeleteSubnetGroupCommand.ts b/clients/client-dax/commands/DeleteSubnetGroupCommand.ts index bf930c95c8c88..a44d0edc3458c 100644 --- a/clients/client-dax/commands/DeleteSubnetGroupCommand.ts +++ b/clients/client-dax/commands/DeleteSubnetGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteSubnetGroupCommand extends $Command< DeleteSubnetGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteSubnetGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeClustersCommand.ts b/clients/client-dax/commands/DescribeClustersCommand.ts index 4731c6482efc5..0dad06b6e2a9d 100644 --- a/clients/client-dax/commands/DescribeClustersCommand.ts +++ b/clients/client-dax/commands/DescribeClustersCommand.ts @@ -40,6 +40,7 @@ export class DescribeClustersCommand extends $Command< DescribeClustersCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeClustersCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeDefaultParametersCommand.ts b/clients/client-dax/commands/DescribeDefaultParametersCommand.ts index 66218920a8109..cdc01368d851c 100644 --- a/clients/client-dax/commands/DescribeDefaultParametersCommand.ts +++ b/clients/client-dax/commands/DescribeDefaultParametersCommand.ts @@ -29,6 +29,7 @@ export class DescribeDefaultParametersCommand extends $Command< DescribeDefaultParametersCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDefaultParametersCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeEventsCommand.ts b/clients/client-dax/commands/DescribeEventsCommand.ts index 67e6ddcf7f6ee..275db4babc5ca 100644 --- a/clients/client-dax/commands/DescribeEventsCommand.ts +++ b/clients/client-dax/commands/DescribeEventsCommand.ts @@ -32,6 +32,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEventsCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeParameterGroupsCommand.ts b/clients/client-dax/commands/DescribeParameterGroupsCommand.ts index 15bf0c67e4f4b..df7a4fbba0caa 100644 --- a/clients/client-dax/commands/DescribeParameterGroupsCommand.ts +++ b/clients/client-dax/commands/DescribeParameterGroupsCommand.ts @@ -29,6 +29,7 @@ export class DescribeParameterGroupsCommand extends $Command< DescribeParameterGroupsCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeParameterGroupsCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeParametersCommand.ts b/clients/client-dax/commands/DescribeParametersCommand.ts index e4ac631606884..2d12208b90eff 100644 --- a/clients/client-dax/commands/DescribeParametersCommand.ts +++ b/clients/client-dax/commands/DescribeParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeParametersCommand extends $Command< DescribeParametersCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeParametersCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/DescribeSubnetGroupsCommand.ts b/clients/client-dax/commands/DescribeSubnetGroupsCommand.ts index 738f956d23f35..e0695f76857b3 100644 --- a/clients/client-dax/commands/DescribeSubnetGroupsCommand.ts +++ b/clients/client-dax/commands/DescribeSubnetGroupsCommand.ts @@ -29,6 +29,7 @@ export class DescribeSubnetGroupsCommand extends $Command< DescribeSubnetGroupsCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSubnetGroupsCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/IncreaseReplicationFactorCommand.ts b/clients/client-dax/commands/IncreaseReplicationFactorCommand.ts index 263e15a435bd4..b409c9276db89 100644 --- a/clients/client-dax/commands/IncreaseReplicationFactorCommand.ts +++ b/clients/client-dax/commands/IncreaseReplicationFactorCommand.ts @@ -28,6 +28,7 @@ export class IncreaseReplicationFactorCommand extends $Command< IncreaseReplicationFactorCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class IncreaseReplicationFactorCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/ListTagsCommand.ts b/clients/client-dax/commands/ListTagsCommand.ts index 350caa267a937..832428be2cde1 100644 --- a/clients/client-dax/commands/ListTagsCommand.ts +++ b/clients/client-dax/commands/ListTagsCommand.ts @@ -22,6 +22,7 @@ export type ListTagsCommandOutput = ListTagsResponse & __MetadataBearer; * 10 times per second, per account.

*/ export class ListTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,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-dax/commands/RebootNodeCommand.ts b/clients/client-dax/commands/RebootNodeCommand.ts index 4e9af727d2411..5607f090c5fc3 100644 --- a/clients/client-dax/commands/RebootNodeCommand.ts +++ b/clients/client-dax/commands/RebootNodeCommand.ts @@ -34,6 +34,7 @@ export class RebootNodeCommand extends $Command< RebootNodeCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RebootNodeCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/TagResourceCommand.ts b/clients/client-dax/commands/TagResourceCommand.ts index 9d1bb0e6b0828..04eebad44f667 100644 --- a/clients/client-dax/commands/TagResourceCommand.ts +++ b/clients/client-dax/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/UntagResourceCommand.ts b/clients/client-dax/commands/UntagResourceCommand.ts index 4139048077f4a..c7b4cc92f7f52 100644 --- a/clients/client-dax/commands/UntagResourceCommand.ts +++ b/clients/client-dax/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/UpdateClusterCommand.ts b/clients/client-dax/commands/UpdateClusterCommand.ts index e34f65fb7e151..becacd24d8f99 100644 --- a/clients/client-dax/commands/UpdateClusterCommand.ts +++ b/clients/client-dax/commands/UpdateClusterCommand.ts @@ -30,6 +30,7 @@ export class UpdateClusterCommand extends $Command< UpdateClusterCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateClusterCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/UpdateParameterGroupCommand.ts b/clients/client-dax/commands/UpdateParameterGroupCommand.ts index 71b8252f87f79..0059788b70fb0 100644 --- a/clients/client-dax/commands/UpdateParameterGroupCommand.ts +++ b/clients/client-dax/commands/UpdateParameterGroupCommand.ts @@ -30,6 +30,7 @@ export class UpdateParameterGroupCommand extends $Command< UpdateParameterGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateParameterGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dax/commands/UpdateSubnetGroupCommand.ts b/clients/client-dax/commands/UpdateSubnetGroupCommand.ts index e910674405e8c..8a69af179a225 100644 --- a/clients/client-dax/commands/UpdateSubnetGroupCommand.ts +++ b/clients/client-dax/commands/UpdateSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateSubnetGroupCommand extends $Command< UpdateSubnetGroupCommandOutput, DAXClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSubnetGroupCommand extends $Command< configuration: DAXClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/AcceptInvitationCommand.ts b/clients/client-detective/commands/AcceptInvitationCommand.ts index d62ad8e04f4bc..6909d3e0b3142 100644 --- a/clients/client-detective/commands/AcceptInvitationCommand.ts +++ b/clients/client-detective/commands/AcceptInvitationCommand.ts @@ -31,6 +31,7 @@ export class AcceptInvitationCommand extends $Command< AcceptInvitationCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AcceptInvitationCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/CreateGraphCommand.ts b/clients/client-detective/commands/CreateGraphCommand.ts index f01d39afa2c88..c04b7b7a0a2e0 100644 --- a/clients/client-detective/commands/CreateGraphCommand.ts +++ b/clients/client-detective/commands/CreateGraphCommand.ts @@ -42,6 +42,7 @@ export class CreateGraphCommand extends $Command< CreateGraphCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateGraphCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/CreateMembersCommand.ts b/clients/client-detective/commands/CreateMembersCommand.ts index 3137ac4bb793e..d4e56158ff41f 100644 --- a/clients/client-detective/commands/CreateMembersCommand.ts +++ b/clients/client-detective/commands/CreateMembersCommand.ts @@ -48,6 +48,7 @@ export class CreateMembersCommand extends $Command< CreateMembersCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateMembersCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/DeleteGraphCommand.ts b/clients/client-detective/commands/DeleteGraphCommand.ts index fcaa403cd3639..c50c11f24ca9f 100644 --- a/clients/client-detective/commands/DeleteGraphCommand.ts +++ b/clients/client-detective/commands/DeleteGraphCommand.ts @@ -32,6 +32,7 @@ export class DeleteGraphCommand extends $Command< DeleteGraphCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteGraphCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/DeleteMembersCommand.ts b/clients/client-detective/commands/DeleteMembersCommand.ts index 2fcbf3ce99920..da4d0460f803f 100644 --- a/clients/client-detective/commands/DeleteMembersCommand.ts +++ b/clients/client-detective/commands/DeleteMembersCommand.ts @@ -32,6 +32,7 @@ export class DeleteMembersCommand extends $Command< DeleteMembersCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteMembersCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/DisassociateMembershipCommand.ts b/clients/client-detective/commands/DisassociateMembershipCommand.ts index 821f382eaa77b..0a444d9faeb34 100644 --- a/clients/client-detective/commands/DisassociateMembershipCommand.ts +++ b/clients/client-detective/commands/DisassociateMembershipCommand.ts @@ -29,6 +29,7 @@ export class DisassociateMembershipCommand extends $Command< DisassociateMembershipCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateMembershipCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/GetMembersCommand.ts b/clients/client-detective/commands/GetMembersCommand.ts index 781adf5c9ed58..719a592965101 100644 --- a/clients/client-detective/commands/GetMembersCommand.ts +++ b/clients/client-detective/commands/GetMembersCommand.ts @@ -29,6 +29,7 @@ export class GetMembersCommand extends $Command< GetMembersCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetMembersCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/ListGraphsCommand.ts b/clients/client-detective/commands/ListGraphsCommand.ts index c5a4cb71ec299..1fb28c8d9c856 100644 --- a/clients/client-detective/commands/ListGraphsCommand.ts +++ b/clients/client-detective/commands/ListGraphsCommand.ts @@ -31,6 +31,7 @@ export class ListGraphsCommand extends $Command< ListGraphsCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListGraphsCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/ListInvitationsCommand.ts b/clients/client-detective/commands/ListInvitationsCommand.ts index ba71994271973..8209ce0f59c8f 100644 --- a/clients/client-detective/commands/ListInvitationsCommand.ts +++ b/clients/client-detective/commands/ListInvitationsCommand.ts @@ -33,6 +33,7 @@ export class ListInvitationsCommand extends $Command< ListInvitationsCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListInvitationsCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/ListMembersCommand.ts b/clients/client-detective/commands/ListMembersCommand.ts index 5c845900bed9d..33d714ec378a1 100644 --- a/clients/client-detective/commands/ListMembersCommand.ts +++ b/clients/client-detective/commands/ListMembersCommand.ts @@ -29,6 +29,7 @@ export class ListMembersCommand extends $Command< ListMembersCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListMembersCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/RejectInvitationCommand.ts b/clients/client-detective/commands/RejectInvitationCommand.ts index ef628282de3b8..993620c8d0ed1 100644 --- a/clients/client-detective/commands/RejectInvitationCommand.ts +++ b/clients/client-detective/commands/RejectInvitationCommand.ts @@ -29,6 +29,7 @@ export class RejectInvitationCommand extends $Command< RejectInvitationCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RejectInvitationCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-detective/commands/StartMonitoringMemberCommand.ts b/clients/client-detective/commands/StartMonitoringMemberCommand.ts index 3f3d7bcf427fa..133f627553e03 100644 --- a/clients/client-detective/commands/StartMonitoringMemberCommand.ts +++ b/clients/client-detective/commands/StartMonitoringMemberCommand.ts @@ -40,6 +40,7 @@ export class StartMonitoringMemberCommand extends $Command< StartMonitoringMemberCommandOutput, DetectiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class StartMonitoringMemberCommand extends $Command< configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateDevicePoolCommand.ts b/clients/client-device-farm/commands/CreateDevicePoolCommand.ts index 00504877cedf8..9007ffe898d05 100644 --- a/clients/client-device-farm/commands/CreateDevicePoolCommand.ts +++ b/clients/client-device-farm/commands/CreateDevicePoolCommand.ts @@ -28,6 +28,7 @@ export class CreateDevicePoolCommand extends $Command< CreateDevicePoolCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDevicePoolCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateInstanceProfileCommand.ts b/clients/client-device-farm/commands/CreateInstanceProfileCommand.ts index a8abfc10907cf..07b46f004b427 100644 --- a/clients/client-device-farm/commands/CreateInstanceProfileCommand.ts +++ b/clients/client-device-farm/commands/CreateInstanceProfileCommand.ts @@ -29,6 +29,7 @@ export class CreateInstanceProfileCommand extends $Command< CreateInstanceProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateInstanceProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateNetworkProfileCommand.ts b/clients/client-device-farm/commands/CreateNetworkProfileCommand.ts index 301eba6a24b3b..b96a298119440 100644 --- a/clients/client-device-farm/commands/CreateNetworkProfileCommand.ts +++ b/clients/client-device-farm/commands/CreateNetworkProfileCommand.ts @@ -28,6 +28,7 @@ export class CreateNetworkProfileCommand extends $Command< CreateNetworkProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateNetworkProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateProjectCommand.ts b/clients/client-device-farm/commands/CreateProjectCommand.ts index 458bbbc28328f..f4c7d24436455 100644 --- a/clients/client-device-farm/commands/CreateProjectCommand.ts +++ b/clients/client-device-farm/commands/CreateProjectCommand.ts @@ -28,6 +28,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateRemoteAccessSessionCommand.ts b/clients/client-device-farm/commands/CreateRemoteAccessSessionCommand.ts index 2c0a345f3e17f..fe15c269e2999 100644 --- a/clients/client-device-farm/commands/CreateRemoteAccessSessionCommand.ts +++ b/clients/client-device-farm/commands/CreateRemoteAccessSessionCommand.ts @@ -28,6 +28,7 @@ export class CreateRemoteAccessSessionCommand extends $Command< CreateRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRemoteAccessSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateTestGridProjectCommand.ts b/clients/client-device-farm/commands/CreateTestGridProjectCommand.ts index d21295ad2e32e..bbff3a1be0ac6 100644 --- a/clients/client-device-farm/commands/CreateTestGridProjectCommand.ts +++ b/clients/client-device-farm/commands/CreateTestGridProjectCommand.ts @@ -29,6 +29,7 @@ export class CreateTestGridProjectCommand extends $Command< CreateTestGridProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTestGridProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateTestGridUrlCommand.ts b/clients/client-device-farm/commands/CreateTestGridUrlCommand.ts index 447f17bb83941..169ab52a5df11 100644 --- a/clients/client-device-farm/commands/CreateTestGridUrlCommand.ts +++ b/clients/client-device-farm/commands/CreateTestGridUrlCommand.ts @@ -29,6 +29,7 @@ export class CreateTestGridUrlCommand extends $Command< CreateTestGridUrlCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTestGridUrlCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateUploadCommand.ts b/clients/client-device-farm/commands/CreateUploadCommand.ts index 51953f0eaccb4..c102c3b5cc0a7 100644 --- a/clients/client-device-farm/commands/CreateUploadCommand.ts +++ b/clients/client-device-farm/commands/CreateUploadCommand.ts @@ -28,6 +28,7 @@ export class CreateUploadCommand extends $Command< CreateUploadCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUploadCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/CreateVPCEConfigurationCommand.ts b/clients/client-device-farm/commands/CreateVPCEConfigurationCommand.ts index c380d58a8d4a6..aa41081254d3e 100644 --- a/clients/client-device-farm/commands/CreateVPCEConfigurationCommand.ts +++ b/clients/client-device-farm/commands/CreateVPCEConfigurationCommand.ts @@ -29,6 +29,7 @@ export class CreateVPCEConfigurationCommand extends $Command< CreateVPCEConfigurationCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateVPCEConfigurationCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteDevicePoolCommand.ts b/clients/client-device-farm/commands/DeleteDevicePoolCommand.ts index edba29fd2fccd..58af42e7f4faf 100644 --- a/clients/client-device-farm/commands/DeleteDevicePoolCommand.ts +++ b/clients/client-device-farm/commands/DeleteDevicePoolCommand.ts @@ -29,6 +29,7 @@ export class DeleteDevicePoolCommand extends $Command< DeleteDevicePoolCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDevicePoolCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteInstanceProfileCommand.ts b/clients/client-device-farm/commands/DeleteInstanceProfileCommand.ts index 104ac1c28ed0d..5af4ae58f6d97 100644 --- a/clients/client-device-farm/commands/DeleteInstanceProfileCommand.ts +++ b/clients/client-device-farm/commands/DeleteInstanceProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteInstanceProfileCommand extends $Command< DeleteInstanceProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInstanceProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteNetworkProfileCommand.ts b/clients/client-device-farm/commands/DeleteNetworkProfileCommand.ts index a19ccb95e8e3a..f593693b14866 100644 --- a/clients/client-device-farm/commands/DeleteNetworkProfileCommand.ts +++ b/clients/client-device-farm/commands/DeleteNetworkProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteNetworkProfileCommand extends $Command< DeleteNetworkProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNetworkProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteProjectCommand.ts b/clients/client-device-farm/commands/DeleteProjectCommand.ts index 7113b329dbd57..3d155dc09ce29 100644 --- a/clients/client-device-farm/commands/DeleteProjectCommand.ts +++ b/clients/client-device-farm/commands/DeleteProjectCommand.ts @@ -29,6 +29,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteRemoteAccessSessionCommand.ts b/clients/client-device-farm/commands/DeleteRemoteAccessSessionCommand.ts index 36f5f478ee16d..81bc3844c5acd 100644 --- a/clients/client-device-farm/commands/DeleteRemoteAccessSessionCommand.ts +++ b/clients/client-device-farm/commands/DeleteRemoteAccessSessionCommand.ts @@ -28,6 +28,7 @@ export class DeleteRemoteAccessSessionCommand extends $Command< DeleteRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRemoteAccessSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteRunCommand.ts b/clients/client-device-farm/commands/DeleteRunCommand.ts index 8ed6809218b6e..f9a3964d9ec76 100644 --- a/clients/client-device-farm/commands/DeleteRunCommand.ts +++ b/clients/client-device-farm/commands/DeleteRunCommand.ts @@ -26,6 +26,7 @@ export class DeleteRunCommand extends $Command< DeleteRunCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteRunCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteTestGridProjectCommand.ts b/clients/client-device-farm/commands/DeleteTestGridProjectCommand.ts index 0391d5984ed3d..4c6d99bdf51ca 100644 --- a/clients/client-device-farm/commands/DeleteTestGridProjectCommand.ts +++ b/clients/client-device-farm/commands/DeleteTestGridProjectCommand.ts @@ -34,6 +34,7 @@ export class DeleteTestGridProjectCommand extends $Command< DeleteTestGridProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteTestGridProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteUploadCommand.ts b/clients/client-device-farm/commands/DeleteUploadCommand.ts index 9008d9fb21f78..a699b74348407 100644 --- a/clients/client-device-farm/commands/DeleteUploadCommand.ts +++ b/clients/client-device-farm/commands/DeleteUploadCommand.ts @@ -28,6 +28,7 @@ export class DeleteUploadCommand extends $Command< DeleteUploadCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUploadCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/DeleteVPCEConfigurationCommand.ts b/clients/client-device-farm/commands/DeleteVPCEConfigurationCommand.ts index 640f467a722de..db3f4d9e973c4 100644 --- a/clients/client-device-farm/commands/DeleteVPCEConfigurationCommand.ts +++ b/clients/client-device-farm/commands/DeleteVPCEConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteVPCEConfigurationCommand extends $Command< DeleteVPCEConfigurationCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVPCEConfigurationCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetAccountSettingsCommand.ts b/clients/client-device-farm/commands/GetAccountSettingsCommand.ts index 09b02952c3df8..8081555164602 100644 --- a/clients/client-device-farm/commands/GetAccountSettingsCommand.ts +++ b/clients/client-device-farm/commands/GetAccountSettingsCommand.ts @@ -29,6 +29,7 @@ export class GetAccountSettingsCommand extends $Command< GetAccountSettingsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccountSettingsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetDeviceCommand.ts b/clients/client-device-farm/commands/GetDeviceCommand.ts index b069ca985e13d..747515299e8fc 100644 --- a/clients/client-device-farm/commands/GetDeviceCommand.ts +++ b/clients/client-device-farm/commands/GetDeviceCommand.ts @@ -25,6 +25,7 @@ export class GetDeviceCommand extends $Command< GetDeviceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetDeviceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetDeviceInstanceCommand.ts b/clients/client-device-farm/commands/GetDeviceInstanceCommand.ts index a7fa5a74b384c..81b1962f24ec4 100644 --- a/clients/client-device-farm/commands/GetDeviceInstanceCommand.ts +++ b/clients/client-device-farm/commands/GetDeviceInstanceCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceInstanceCommand extends $Command< GetDeviceInstanceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceInstanceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetDevicePoolCommand.ts b/clients/client-device-farm/commands/GetDevicePoolCommand.ts index e3af30ee96992..f12e30ccb42b4 100644 --- a/clients/client-device-farm/commands/GetDevicePoolCommand.ts +++ b/clients/client-device-farm/commands/GetDevicePoolCommand.ts @@ -28,6 +28,7 @@ export class GetDevicePoolCommand extends $Command< GetDevicePoolCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDevicePoolCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetDevicePoolCompatibilityCommand.ts b/clients/client-device-farm/commands/GetDevicePoolCompatibilityCommand.ts index ca5e2f31622b0..74bd031179830 100644 --- a/clients/client-device-farm/commands/GetDevicePoolCompatibilityCommand.ts +++ b/clients/client-device-farm/commands/GetDevicePoolCompatibilityCommand.ts @@ -28,6 +28,7 @@ export class GetDevicePoolCompatibilityCommand extends $Command< GetDevicePoolCompatibilityCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDevicePoolCompatibilityCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetInstanceProfileCommand.ts b/clients/client-device-farm/commands/GetInstanceProfileCommand.ts index b23e327f72c87..36fc52221de5d 100644 --- a/clients/client-device-farm/commands/GetInstanceProfileCommand.ts +++ b/clients/client-device-farm/commands/GetInstanceProfileCommand.ts @@ -28,6 +28,7 @@ export class GetInstanceProfileCommand extends $Command< GetInstanceProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInstanceProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetJobCommand.ts b/clients/client-device-farm/commands/GetJobCommand.ts index 5914765bfc83b..3bf73e9f60759 100644 --- a/clients/client-device-farm/commands/GetJobCommand.ts +++ b/clients/client-device-farm/commands/GetJobCommand.ts @@ -21,6 +21,7 @@ export type GetJobCommandOutput = GetJobResult & __MetadataBearer; *

Gets information about a job.

*/ 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-device-farm/commands/GetNetworkProfileCommand.ts b/clients/client-device-farm/commands/GetNetworkProfileCommand.ts index 343cf9ba8a1ea..4b3224e61f91b 100644 --- a/clients/client-device-farm/commands/GetNetworkProfileCommand.ts +++ b/clients/client-device-farm/commands/GetNetworkProfileCommand.ts @@ -28,6 +28,7 @@ export class GetNetworkProfileCommand extends $Command< GetNetworkProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetNetworkProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetOfferingStatusCommand.ts b/clients/client-device-farm/commands/GetOfferingStatusCommand.ts index 1ef6285b9b79e..abe14820977a8 100644 --- a/clients/client-device-farm/commands/GetOfferingStatusCommand.ts +++ b/clients/client-device-farm/commands/GetOfferingStatusCommand.ts @@ -31,6 +31,7 @@ export class GetOfferingStatusCommand extends $Command< GetOfferingStatusCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetOfferingStatusCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetProjectCommand.ts b/clients/client-device-farm/commands/GetProjectCommand.ts index 328ad7abe221a..61df8edff0c05 100644 --- a/clients/client-device-farm/commands/GetProjectCommand.ts +++ b/clients/client-device-farm/commands/GetProjectCommand.ts @@ -28,6 +28,7 @@ export class GetProjectCommand extends $Command< GetProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetRemoteAccessSessionCommand.ts b/clients/client-device-farm/commands/GetRemoteAccessSessionCommand.ts index e8d0680a382bd..84b2b09cfd8f7 100644 --- a/clients/client-device-farm/commands/GetRemoteAccessSessionCommand.ts +++ b/clients/client-device-farm/commands/GetRemoteAccessSessionCommand.ts @@ -28,6 +28,7 @@ export class GetRemoteAccessSessionCommand extends $Command< GetRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRemoteAccessSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetRunCommand.ts b/clients/client-device-farm/commands/GetRunCommand.ts index 7516c88b1dc5e..6c0d39dbcea32 100644 --- a/clients/client-device-farm/commands/GetRunCommand.ts +++ b/clients/client-device-farm/commands/GetRunCommand.ts @@ -21,6 +21,7 @@ export type GetRunCommandOutput = GetRunResult & __MetadataBearer; *

Gets information about a run.

*/ export class GetRunCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetRunCommand 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-device-farm/commands/GetSuiteCommand.ts b/clients/client-device-farm/commands/GetSuiteCommand.ts index 08effbf4d3719..d596f184d72e7 100644 --- a/clients/client-device-farm/commands/GetSuiteCommand.ts +++ b/clients/client-device-farm/commands/GetSuiteCommand.ts @@ -25,6 +25,7 @@ export class GetSuiteCommand extends $Command< GetSuiteCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetSuiteCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetTestCommand.ts b/clients/client-device-farm/commands/GetTestCommand.ts index 86ed875577d51..b9b0ea99738a8 100644 --- a/clients/client-device-farm/commands/GetTestCommand.ts +++ b/clients/client-device-farm/commands/GetTestCommand.ts @@ -25,6 +25,7 @@ export class GetTestCommand extends $Command< GetTestCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetTestCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetTestGridProjectCommand.ts b/clients/client-device-farm/commands/GetTestGridProjectCommand.ts index caad3bffe7a0b..10b3d3415b2b6 100644 --- a/clients/client-device-farm/commands/GetTestGridProjectCommand.ts +++ b/clients/client-device-farm/commands/GetTestGridProjectCommand.ts @@ -28,6 +28,7 @@ export class GetTestGridProjectCommand extends $Command< GetTestGridProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTestGridProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetTestGridSessionCommand.ts b/clients/client-device-farm/commands/GetTestGridSessionCommand.ts index 67ae175d75331..cd300ee13fc83 100644 --- a/clients/client-device-farm/commands/GetTestGridSessionCommand.ts +++ b/clients/client-device-farm/commands/GetTestGridSessionCommand.ts @@ -37,6 +37,7 @@ export class GetTestGridSessionCommand extends $Command< GetTestGridSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetTestGridSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetUploadCommand.ts b/clients/client-device-farm/commands/GetUploadCommand.ts index dc27015935971..497003247c627 100644 --- a/clients/client-device-farm/commands/GetUploadCommand.ts +++ b/clients/client-device-farm/commands/GetUploadCommand.ts @@ -25,6 +25,7 @@ export class GetUploadCommand extends $Command< GetUploadCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetUploadCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/GetVPCEConfigurationCommand.ts b/clients/client-device-farm/commands/GetVPCEConfigurationCommand.ts index 24bb3215d2abb..dcac950ffa98e 100644 --- a/clients/client-device-farm/commands/GetVPCEConfigurationCommand.ts +++ b/clients/client-device-farm/commands/GetVPCEConfigurationCommand.ts @@ -29,6 +29,7 @@ export class GetVPCEConfigurationCommand extends $Command< GetVPCEConfigurationCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetVPCEConfigurationCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/InstallToRemoteAccessSessionCommand.ts b/clients/client-device-farm/commands/InstallToRemoteAccessSessionCommand.ts index a2ba30dc1e25c..d1c0202884d4e 100644 --- a/clients/client-device-farm/commands/InstallToRemoteAccessSessionCommand.ts +++ b/clients/client-device-farm/commands/InstallToRemoteAccessSessionCommand.ts @@ -30,6 +30,7 @@ export class InstallToRemoteAccessSessionCommand extends $Command< InstallToRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class InstallToRemoteAccessSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListArtifactsCommand.ts b/clients/client-device-farm/commands/ListArtifactsCommand.ts index 309d3fc274f1d..f92b1329c8a2a 100644 --- a/clients/client-device-farm/commands/ListArtifactsCommand.ts +++ b/clients/client-device-farm/commands/ListArtifactsCommand.ts @@ -28,6 +28,7 @@ export class ListArtifactsCommand extends $Command< ListArtifactsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListArtifactsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListDeviceInstancesCommand.ts b/clients/client-device-farm/commands/ListDeviceInstancesCommand.ts index 54e1cf86190c3..69f2e690b2237 100644 --- a/clients/client-device-farm/commands/ListDeviceInstancesCommand.ts +++ b/clients/client-device-farm/commands/ListDeviceInstancesCommand.ts @@ -29,6 +29,7 @@ export class ListDeviceInstancesCommand extends $Command< ListDeviceInstancesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDeviceInstancesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListDevicePoolsCommand.ts b/clients/client-device-farm/commands/ListDevicePoolsCommand.ts index cbe95d092c06a..9f5dcfbec2344 100644 --- a/clients/client-device-farm/commands/ListDevicePoolsCommand.ts +++ b/clients/client-device-farm/commands/ListDevicePoolsCommand.ts @@ -28,6 +28,7 @@ export class ListDevicePoolsCommand extends $Command< ListDevicePoolsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDevicePoolsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListDevicesCommand.ts b/clients/client-device-farm/commands/ListDevicesCommand.ts index 6551cbd8ee9f4..c8131512ae8f9 100644 --- a/clients/client-device-farm/commands/ListDevicesCommand.ts +++ b/clients/client-device-farm/commands/ListDevicesCommand.ts @@ -28,6 +28,7 @@ export class ListDevicesCommand extends $Command< ListDevicesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDevicesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListInstanceProfilesCommand.ts b/clients/client-device-farm/commands/ListInstanceProfilesCommand.ts index 37e4b5d05a1bb..501acfcf18aed 100644 --- a/clients/client-device-farm/commands/ListInstanceProfilesCommand.ts +++ b/clients/client-device-farm/commands/ListInstanceProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListInstanceProfilesCommand extends $Command< ListInstanceProfilesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInstanceProfilesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListJobsCommand.ts b/clients/client-device-farm/commands/ListJobsCommand.ts index f47c37e255323..c428c5cceffd1 100644 --- a/clients/client-device-farm/commands/ListJobsCommand.ts +++ b/clients/client-device-farm/commands/ListJobsCommand.ts @@ -25,6 +25,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListJobsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListNetworkProfilesCommand.ts b/clients/client-device-farm/commands/ListNetworkProfilesCommand.ts index d1a6804ce55f7..65523daae30df 100644 --- a/clients/client-device-farm/commands/ListNetworkProfilesCommand.ts +++ b/clients/client-device-farm/commands/ListNetworkProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListNetworkProfilesCommand extends $Command< ListNetworkProfilesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListNetworkProfilesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListOfferingPromotionsCommand.ts b/clients/client-device-farm/commands/ListOfferingPromotionsCommand.ts index d89990fa82136..25be8275431f2 100644 --- a/clients/client-device-farm/commands/ListOfferingPromotionsCommand.ts +++ b/clients/client-device-farm/commands/ListOfferingPromotionsCommand.ts @@ -30,6 +30,7 @@ export class ListOfferingPromotionsCommand extends $Command< ListOfferingPromotionsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListOfferingPromotionsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListOfferingTransactionsCommand.ts b/clients/client-device-farm/commands/ListOfferingTransactionsCommand.ts index 1cc4d8410f07f..eed3dc5a6e9d1 100644 --- a/clients/client-device-farm/commands/ListOfferingTransactionsCommand.ts +++ b/clients/client-device-farm/commands/ListOfferingTransactionsCommand.ts @@ -31,6 +31,7 @@ export class ListOfferingTransactionsCommand extends $Command< ListOfferingTransactionsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListOfferingTransactionsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListOfferingsCommand.ts b/clients/client-device-farm/commands/ListOfferingsCommand.ts index 2e9b4d1bd4952..979d8c49271d8 100644 --- a/clients/client-device-farm/commands/ListOfferingsCommand.ts +++ b/clients/client-device-farm/commands/ListOfferingsCommand.ts @@ -31,6 +31,7 @@ export class ListOfferingsCommand extends $Command< ListOfferingsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListOfferingsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListProjectsCommand.ts b/clients/client-device-farm/commands/ListProjectsCommand.ts index 96b476ebb3d3c..7e164d7a1ec4e 100644 --- a/clients/client-device-farm/commands/ListProjectsCommand.ts +++ b/clients/client-device-farm/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListRemoteAccessSessionsCommand.ts b/clients/client-device-farm/commands/ListRemoteAccessSessionsCommand.ts index 182040d83c7ad..f72f052007327 100644 --- a/clients/client-device-farm/commands/ListRemoteAccessSessionsCommand.ts +++ b/clients/client-device-farm/commands/ListRemoteAccessSessionsCommand.ts @@ -28,6 +28,7 @@ export class ListRemoteAccessSessionsCommand extends $Command< ListRemoteAccessSessionsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRemoteAccessSessionsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListRunsCommand.ts b/clients/client-device-farm/commands/ListRunsCommand.ts index 6edba59fed99a..99277fdba72d9 100644 --- a/clients/client-device-farm/commands/ListRunsCommand.ts +++ b/clients/client-device-farm/commands/ListRunsCommand.ts @@ -25,6 +25,7 @@ export class ListRunsCommand extends $Command< ListRunsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListRunsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListSamplesCommand.ts b/clients/client-device-farm/commands/ListSamplesCommand.ts index c1508575cf075..e4ea53ac91df0 100644 --- a/clients/client-device-farm/commands/ListSamplesCommand.ts +++ b/clients/client-device-farm/commands/ListSamplesCommand.ts @@ -28,6 +28,7 @@ export class ListSamplesCommand extends $Command< ListSamplesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSamplesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListSuitesCommand.ts b/clients/client-device-farm/commands/ListSuitesCommand.ts index d52ba7112c74c..836dc2fb06cfd 100644 --- a/clients/client-device-farm/commands/ListSuitesCommand.ts +++ b/clients/client-device-farm/commands/ListSuitesCommand.ts @@ -28,6 +28,7 @@ export class ListSuitesCommand extends $Command< ListSuitesCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSuitesCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTagsForResourceCommand.ts b/clients/client-device-farm/commands/ListTagsForResourceCommand.ts index 7ccaac5d625e7..4fd2e27049185 100644 --- a/clients/client-device-farm/commands/ListTagsForResourceCommand.ts +++ b/clients/client-device-farm/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTestGridProjectsCommand.ts b/clients/client-device-farm/commands/ListTestGridProjectsCommand.ts index c2c62ab724ed3..d238a0c3bcc0c 100644 --- a/clients/client-device-farm/commands/ListTestGridProjectsCommand.ts +++ b/clients/client-device-farm/commands/ListTestGridProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListTestGridProjectsCommand extends $Command< ListTestGridProjectsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTestGridProjectsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTestGridSessionActionsCommand.ts b/clients/client-device-farm/commands/ListTestGridSessionActionsCommand.ts index 6f170c23bf6fd..93da0e6d25a73 100644 --- a/clients/client-device-farm/commands/ListTestGridSessionActionsCommand.ts +++ b/clients/client-device-farm/commands/ListTestGridSessionActionsCommand.ts @@ -28,6 +28,7 @@ export class ListTestGridSessionActionsCommand extends $Command< ListTestGridSessionActionsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTestGridSessionActionsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTestGridSessionArtifactsCommand.ts b/clients/client-device-farm/commands/ListTestGridSessionArtifactsCommand.ts index 0c440b9f4afa7..f75b8d0bf7720 100644 --- a/clients/client-device-farm/commands/ListTestGridSessionArtifactsCommand.ts +++ b/clients/client-device-farm/commands/ListTestGridSessionArtifactsCommand.ts @@ -28,6 +28,7 @@ export class ListTestGridSessionArtifactsCommand extends $Command< ListTestGridSessionArtifactsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTestGridSessionArtifactsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTestGridSessionsCommand.ts b/clients/client-device-farm/commands/ListTestGridSessionsCommand.ts index 755be93995294..cc879abd65217 100644 --- a/clients/client-device-farm/commands/ListTestGridSessionsCommand.ts +++ b/clients/client-device-farm/commands/ListTestGridSessionsCommand.ts @@ -28,6 +28,7 @@ export class ListTestGridSessionsCommand extends $Command< ListTestGridSessionsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTestGridSessionsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListTestsCommand.ts b/clients/client-device-farm/commands/ListTestsCommand.ts index a599224f0b63a..3c79d3414860d 100644 --- a/clients/client-device-farm/commands/ListTestsCommand.ts +++ b/clients/client-device-farm/commands/ListTestsCommand.ts @@ -25,6 +25,7 @@ export class ListTestsCommand extends $Command< ListTestsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTestsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListUniqueProblemsCommand.ts b/clients/client-device-farm/commands/ListUniqueProblemsCommand.ts index 97fd14d41f1ff..7704c82e10c05 100644 --- a/clients/client-device-farm/commands/ListUniqueProblemsCommand.ts +++ b/clients/client-device-farm/commands/ListUniqueProblemsCommand.ts @@ -32,6 +32,7 @@ export class ListUniqueProblemsCommand extends $Command< ListUniqueProblemsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListUniqueProblemsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListUploadsCommand.ts b/clients/client-device-farm/commands/ListUploadsCommand.ts index 88416055517dd..397825ab7f9f7 100644 --- a/clients/client-device-farm/commands/ListUploadsCommand.ts +++ b/clients/client-device-farm/commands/ListUploadsCommand.ts @@ -28,6 +28,7 @@ export class ListUploadsCommand extends $Command< ListUploadsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUploadsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ListVPCEConfigurationsCommand.ts b/clients/client-device-farm/commands/ListVPCEConfigurationsCommand.ts index d4a00188b16fa..ff411ec00ca25 100644 --- a/clients/client-device-farm/commands/ListVPCEConfigurationsCommand.ts +++ b/clients/client-device-farm/commands/ListVPCEConfigurationsCommand.ts @@ -29,6 +29,7 @@ export class ListVPCEConfigurationsCommand extends $Command< ListVPCEConfigurationsCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListVPCEConfigurationsCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/PurchaseOfferingCommand.ts b/clients/client-device-farm/commands/PurchaseOfferingCommand.ts index 920bf123df2cd..6ae34cc006268 100644 --- a/clients/client-device-farm/commands/PurchaseOfferingCommand.ts +++ b/clients/client-device-farm/commands/PurchaseOfferingCommand.ts @@ -31,6 +31,7 @@ export class PurchaseOfferingCommand extends $Command< PurchaseOfferingCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PurchaseOfferingCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/RenewOfferingCommand.ts b/clients/client-device-farm/commands/RenewOfferingCommand.ts index bd466fee69a63..46bfad9e9e6a9 100644 --- a/clients/client-device-farm/commands/RenewOfferingCommand.ts +++ b/clients/client-device-farm/commands/RenewOfferingCommand.ts @@ -30,6 +30,7 @@ export class RenewOfferingCommand extends $Command< RenewOfferingCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RenewOfferingCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/ScheduleRunCommand.ts b/clients/client-device-farm/commands/ScheduleRunCommand.ts index f6e81415241c2..91723e9e3d880 100644 --- a/clients/client-device-farm/commands/ScheduleRunCommand.ts +++ b/clients/client-device-farm/commands/ScheduleRunCommand.ts @@ -28,6 +28,7 @@ export class ScheduleRunCommand extends $Command< ScheduleRunCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ScheduleRunCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/StopJobCommand.ts b/clients/client-device-farm/commands/StopJobCommand.ts index bb5c7d571be1f..75bcb4460972a 100644 --- a/clients/client-device-farm/commands/StopJobCommand.ts +++ b/clients/client-device-farm/commands/StopJobCommand.ts @@ -28,6 +28,7 @@ export class StopJobCommand extends $Command< StopJobCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopJobCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/StopRemoteAccessSessionCommand.ts b/clients/client-device-farm/commands/StopRemoteAccessSessionCommand.ts index a3aa755562383..01d262d7bb0f5 100644 --- a/clients/client-device-farm/commands/StopRemoteAccessSessionCommand.ts +++ b/clients/client-device-farm/commands/StopRemoteAccessSessionCommand.ts @@ -28,6 +28,7 @@ export class StopRemoteAccessSessionCommand extends $Command< StopRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopRemoteAccessSessionCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/StopRunCommand.ts b/clients/client-device-farm/commands/StopRunCommand.ts index e3a619e6d4c28..86c128aeecda6 100644 --- a/clients/client-device-farm/commands/StopRunCommand.ts +++ b/clients/client-device-farm/commands/StopRunCommand.ts @@ -28,6 +28,7 @@ export class StopRunCommand extends $Command< StopRunCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopRunCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/TagResourceCommand.ts b/clients/client-device-farm/commands/TagResourceCommand.ts index 44fcc75efae38..462b5870542f3 100644 --- a/clients/client-device-farm/commands/TagResourceCommand.ts +++ b/clients/client-device-farm/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UntagResourceCommand.ts b/clients/client-device-farm/commands/UntagResourceCommand.ts index 05c78b40371b4..9226d0e87846f 100644 --- a/clients/client-device-farm/commands/UntagResourceCommand.ts +++ b/clients/client-device-farm/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateDeviceInstanceCommand.ts b/clients/client-device-farm/commands/UpdateDeviceInstanceCommand.ts index de7aa3a5a41c9..291371508c556 100644 --- a/clients/client-device-farm/commands/UpdateDeviceInstanceCommand.ts +++ b/clients/client-device-farm/commands/UpdateDeviceInstanceCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeviceInstanceCommand extends $Command< UpdateDeviceInstanceCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeviceInstanceCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateDevicePoolCommand.ts b/clients/client-device-farm/commands/UpdateDevicePoolCommand.ts index 0e922f89d933d..5158d71c173ab 100644 --- a/clients/client-device-farm/commands/UpdateDevicePoolCommand.ts +++ b/clients/client-device-farm/commands/UpdateDevicePoolCommand.ts @@ -30,6 +30,7 @@ export class UpdateDevicePoolCommand extends $Command< UpdateDevicePoolCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateDevicePoolCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateInstanceProfileCommand.ts b/clients/client-device-farm/commands/UpdateInstanceProfileCommand.ts index 13ec3bc294bcd..205d1a452a496 100644 --- a/clients/client-device-farm/commands/UpdateInstanceProfileCommand.ts +++ b/clients/client-device-farm/commands/UpdateInstanceProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateInstanceProfileCommand extends $Command< UpdateInstanceProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInstanceProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateNetworkProfileCommand.ts b/clients/client-device-farm/commands/UpdateNetworkProfileCommand.ts index 90c0ecf16a5ae..735b94ef18836 100644 --- a/clients/client-device-farm/commands/UpdateNetworkProfileCommand.ts +++ b/clients/client-device-farm/commands/UpdateNetworkProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateNetworkProfileCommand extends $Command< UpdateNetworkProfileCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateNetworkProfileCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateProjectCommand.ts b/clients/client-device-farm/commands/UpdateProjectCommand.ts index ca7dae4f08e5e..6c8743dfc9fa7 100644 --- a/clients/client-device-farm/commands/UpdateProjectCommand.ts +++ b/clients/client-device-farm/commands/UpdateProjectCommand.ts @@ -29,6 +29,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateTestGridProjectCommand.ts b/clients/client-device-farm/commands/UpdateTestGridProjectCommand.ts index 9806980be9bf3..58954f744e3d3 100644 --- a/clients/client-device-farm/commands/UpdateTestGridProjectCommand.ts +++ b/clients/client-device-farm/commands/UpdateTestGridProjectCommand.ts @@ -28,6 +28,7 @@ export class UpdateTestGridProjectCommand extends $Command< UpdateTestGridProjectCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTestGridProjectCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateUploadCommand.ts b/clients/client-device-farm/commands/UpdateUploadCommand.ts index 2501b01cba92f..fb3ae65cb713b 100644 --- a/clients/client-device-farm/commands/UpdateUploadCommand.ts +++ b/clients/client-device-farm/commands/UpdateUploadCommand.ts @@ -28,6 +28,7 @@ export class UpdateUploadCommand extends $Command< UpdateUploadCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUploadCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-device-farm/commands/UpdateVPCEConfigurationCommand.ts b/clients/client-device-farm/commands/UpdateVPCEConfigurationCommand.ts index f287e46b22b93..065aa00c68603 100644 --- a/clients/client-device-farm/commands/UpdateVPCEConfigurationCommand.ts +++ b/clients/client-device-farm/commands/UpdateVPCEConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateVPCEConfigurationCommand extends $Command< UpdateVPCEConfigurationCommandOutput, DeviceFarmClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVPCEConfigurationCommand extends $Command< configuration: DeviceFarmClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/AddNotificationChannelCommand.ts b/clients/client-devops-guru/commands/AddNotificationChannelCommand.ts index f55e0a1e5f753..3edb2e143c759 100644 --- a/clients/client-devops-guru/commands/AddNotificationChannelCommand.ts +++ b/clients/client-devops-guru/commands/AddNotificationChannelCommand.ts @@ -25,6 +25,7 @@ export class AddNotificationChannelCommand extends $Command< AddNotificationChannelCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class AddNotificationChannelCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeAccountHealthCommand.ts b/clients/client-devops-guru/commands/DescribeAccountHealthCommand.ts index 2057e89fb86cb..92b032eb4c7b9 100644 --- a/clients/client-devops-guru/commands/DescribeAccountHealthCommand.ts +++ b/clients/client-devops-guru/commands/DescribeAccountHealthCommand.ts @@ -25,6 +25,7 @@ export class DescribeAccountHealthCommand extends $Command< DescribeAccountHealthCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeAccountHealthCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeAccountOverviewCommand.ts b/clients/client-devops-guru/commands/DescribeAccountOverviewCommand.ts index 049ff09527a01..bf24c891d95a5 100644 --- a/clients/client-devops-guru/commands/DescribeAccountOverviewCommand.ts +++ b/clients/client-devops-guru/commands/DescribeAccountOverviewCommand.ts @@ -25,6 +25,7 @@ export class DescribeAccountOverviewCommand extends $Command< DescribeAccountOverviewCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeAccountOverviewCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeAnomalyCommand.ts b/clients/client-devops-guru/commands/DescribeAnomalyCommand.ts index 80cac3cf4e100..488ce47332ef5 100644 --- a/clients/client-devops-guru/commands/DescribeAnomalyCommand.ts +++ b/clients/client-devops-guru/commands/DescribeAnomalyCommand.ts @@ -25,6 +25,7 @@ export class DescribeAnomalyCommand extends $Command< DescribeAnomalyCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeAnomalyCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeInsightCommand.ts b/clients/client-devops-guru/commands/DescribeInsightCommand.ts index 813a18e4dc4b6..c9d0035d6d3e4 100644 --- a/clients/client-devops-guru/commands/DescribeInsightCommand.ts +++ b/clients/client-devops-guru/commands/DescribeInsightCommand.ts @@ -25,6 +25,7 @@ export class DescribeInsightCommand extends $Command< DescribeInsightCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeInsightCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeResourceCollectionHealthCommand.ts b/clients/client-devops-guru/commands/DescribeResourceCollectionHealthCommand.ts index f68d0ac8098bd..3ca8c9c727151 100644 --- a/clients/client-devops-guru/commands/DescribeResourceCollectionHealthCommand.ts +++ b/clients/client-devops-guru/commands/DescribeResourceCollectionHealthCommand.ts @@ -25,6 +25,7 @@ export class DescribeResourceCollectionHealthCommand extends $Command< DescribeResourceCollectionHealthCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeResourceCollectionHealthCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/DescribeServiceIntegrationCommand.ts b/clients/client-devops-guru/commands/DescribeServiceIntegrationCommand.ts index 56d085832969a..4d8d14be33b11 100644 --- a/clients/client-devops-guru/commands/DescribeServiceIntegrationCommand.ts +++ b/clients/client-devops-guru/commands/DescribeServiceIntegrationCommand.ts @@ -25,6 +25,7 @@ export class DescribeServiceIntegrationCommand extends $Command< DescribeServiceIntegrationCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeServiceIntegrationCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/GetResourceCollectionCommand.ts b/clients/client-devops-guru/commands/GetResourceCollectionCommand.ts index d162b52020f52..2bc9a0be90335 100644 --- a/clients/client-devops-guru/commands/GetResourceCollectionCommand.ts +++ b/clients/client-devops-guru/commands/GetResourceCollectionCommand.ts @@ -25,6 +25,7 @@ export class GetResourceCollectionCommand extends $Command< GetResourceCollectionCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetResourceCollectionCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/ListAnomaliesForInsightCommand.ts b/clients/client-devops-guru/commands/ListAnomaliesForInsightCommand.ts index f52be8d7de448..7b5be662da7d6 100644 --- a/clients/client-devops-guru/commands/ListAnomaliesForInsightCommand.ts +++ b/clients/client-devops-guru/commands/ListAnomaliesForInsightCommand.ts @@ -25,6 +25,7 @@ export class ListAnomaliesForInsightCommand extends $Command< ListAnomaliesForInsightCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListAnomaliesForInsightCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/ListEventsCommand.ts b/clients/client-devops-guru/commands/ListEventsCommand.ts index ad9e86b886e09..56c787e8ebc2d 100644 --- a/clients/client-devops-guru/commands/ListEventsCommand.ts +++ b/clients/client-devops-guru/commands/ListEventsCommand.ts @@ -25,6 +25,7 @@ export class ListEventsCommand extends $Command< ListEventsCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListEventsCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/ListInsightsCommand.ts b/clients/client-devops-guru/commands/ListInsightsCommand.ts index 7c2b56687521c..39095e4e6c12c 100644 --- a/clients/client-devops-guru/commands/ListInsightsCommand.ts +++ b/clients/client-devops-guru/commands/ListInsightsCommand.ts @@ -25,6 +25,7 @@ export class ListInsightsCommand extends $Command< ListInsightsCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListInsightsCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/ListNotificationChannelsCommand.ts b/clients/client-devops-guru/commands/ListNotificationChannelsCommand.ts index bf652ef5aa1a4..bfa834ee9ec28 100644 --- a/clients/client-devops-guru/commands/ListNotificationChannelsCommand.ts +++ b/clients/client-devops-guru/commands/ListNotificationChannelsCommand.ts @@ -25,6 +25,7 @@ export class ListNotificationChannelsCommand extends $Command< ListNotificationChannelsCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListNotificationChannelsCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/ListRecommendationsCommand.ts b/clients/client-devops-guru/commands/ListRecommendationsCommand.ts index 30d00b5eb8966..4012446e35b0b 100644 --- a/clients/client-devops-guru/commands/ListRecommendationsCommand.ts +++ b/clients/client-devops-guru/commands/ListRecommendationsCommand.ts @@ -25,6 +25,7 @@ export class ListRecommendationsCommand extends $Command< ListRecommendationsCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListRecommendationsCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/PutFeedbackCommand.ts b/clients/client-devops-guru/commands/PutFeedbackCommand.ts index 51832905e253a..88120f0f7105b 100644 --- a/clients/client-devops-guru/commands/PutFeedbackCommand.ts +++ b/clients/client-devops-guru/commands/PutFeedbackCommand.ts @@ -25,6 +25,7 @@ export class PutFeedbackCommand extends $Command< PutFeedbackCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class PutFeedbackCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/RemoveNotificationChannelCommand.ts b/clients/client-devops-guru/commands/RemoveNotificationChannelCommand.ts index dbd333edf932f..7b6912de1c228 100644 --- a/clients/client-devops-guru/commands/RemoveNotificationChannelCommand.ts +++ b/clients/client-devops-guru/commands/RemoveNotificationChannelCommand.ts @@ -25,6 +25,7 @@ export class RemoveNotificationChannelCommand extends $Command< RemoveNotificationChannelCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class RemoveNotificationChannelCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/SearchInsightsCommand.ts b/clients/client-devops-guru/commands/SearchInsightsCommand.ts index 0301d44de86fc..396f7bc42b1eb 100644 --- a/clients/client-devops-guru/commands/SearchInsightsCommand.ts +++ b/clients/client-devops-guru/commands/SearchInsightsCommand.ts @@ -25,6 +25,7 @@ export class SearchInsightsCommand extends $Command< SearchInsightsCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class SearchInsightsCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/UpdateResourceCollectionCommand.ts b/clients/client-devops-guru/commands/UpdateResourceCollectionCommand.ts index 8fbe880b11f31..9e8b97b377e55 100644 --- a/clients/client-devops-guru/commands/UpdateResourceCollectionCommand.ts +++ b/clients/client-devops-guru/commands/UpdateResourceCollectionCommand.ts @@ -25,6 +25,7 @@ export class UpdateResourceCollectionCommand extends $Command< UpdateResourceCollectionCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateResourceCollectionCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-devops-guru/commands/UpdateServiceIntegrationCommand.ts b/clients/client-devops-guru/commands/UpdateServiceIntegrationCommand.ts index 531887ce6a045..89330aa1f80b5 100644 --- a/clients/client-devops-guru/commands/UpdateServiceIntegrationCommand.ts +++ b/clients/client-devops-guru/commands/UpdateServiceIntegrationCommand.ts @@ -25,6 +25,7 @@ export class UpdateServiceIntegrationCommand extends $Command< UpdateServiceIntegrationCommandOutput, DevOpsGuruClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateServiceIntegrationCommand extends $Command< configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AcceptDirectConnectGatewayAssociationProposalCommand.ts b/clients/client-direct-connect/commands/AcceptDirectConnectGatewayAssociationProposalCommand.ts index eb0f5b467d753..3fb4a1b41a76e 100644 --- a/clients/client-direct-connect/commands/AcceptDirectConnectGatewayAssociationProposalCommand.ts +++ b/clients/client-direct-connect/commands/AcceptDirectConnectGatewayAssociationProposalCommand.ts @@ -32,6 +32,7 @@ export class AcceptDirectConnectGatewayAssociationProposalCommand extends $Comma AcceptDirectConnectGatewayAssociationProposalCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AcceptDirectConnectGatewayAssociationProposalCommand extends $Comma AcceptDirectConnectGatewayAssociationProposalCommandInput, AcceptDirectConnectGatewayAssociationProposalCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AllocateConnectionOnInterconnectCommand.ts b/clients/client-direct-connect/commands/AllocateConnectionOnInterconnectCommand.ts index 580be196c86a7..3645132c4ab2f 100644 --- a/clients/client-direct-connect/commands/AllocateConnectionOnInterconnectCommand.ts +++ b/clients/client-direct-connect/commands/AllocateConnectionOnInterconnectCommand.ts @@ -33,6 +33,7 @@ export class AllocateConnectionOnInterconnectCommand extends $Command< AllocateConnectionOnInterconnectCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AllocateConnectionOnInterconnectCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AllocateHostedConnectionCommand.ts b/clients/client-direct-connect/commands/AllocateHostedConnectionCommand.ts index 3e02e60695cad..651cdd625bc44 100644 --- a/clients/client-direct-connect/commands/AllocateHostedConnectionCommand.ts +++ b/clients/client-direct-connect/commands/AllocateHostedConnectionCommand.ts @@ -32,6 +32,7 @@ export class AllocateHostedConnectionCommand extends $Command< AllocateHostedConnectionCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AllocateHostedConnectionCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AllocatePrivateVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/AllocatePrivateVirtualInterfaceCommand.ts index 3f95223422752..2319179dc3f01 100644 --- a/clients/client-direct-connect/commands/AllocatePrivateVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/AllocatePrivateVirtualInterfaceCommand.ts @@ -30,6 +30,7 @@ export class AllocatePrivateVirtualInterfaceCommand extends $Command< AllocatePrivateVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AllocatePrivateVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AllocatePublicVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/AllocatePublicVirtualInterfaceCommand.ts index a0a4fa0b196bb..5c7b9e5755aeb 100644 --- a/clients/client-direct-connect/commands/AllocatePublicVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/AllocatePublicVirtualInterfaceCommand.ts @@ -33,6 +33,7 @@ export class AllocatePublicVirtualInterfaceCommand extends $Command< AllocatePublicVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AllocatePublicVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AllocateTransitVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/AllocateTransitVirtualInterfaceCommand.ts index e81097f4324e4..50b826704a142 100644 --- a/clients/client-direct-connect/commands/AllocateTransitVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/AllocateTransitVirtualInterfaceCommand.ts @@ -30,6 +30,7 @@ export class AllocateTransitVirtualInterfaceCommand extends $Command< AllocateTransitVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AllocateTransitVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AssociateConnectionWithLagCommand.ts b/clients/client-direct-connect/commands/AssociateConnectionWithLagCommand.ts index 16fa8549ccf68..75a2aa9abf463 100644 --- a/clients/client-direct-connect/commands/AssociateConnectionWithLagCommand.ts +++ b/clients/client-direct-connect/commands/AssociateConnectionWithLagCommand.ts @@ -41,6 +41,7 @@ export class AssociateConnectionWithLagCommand extends $Command< AssociateConnectionWithLagCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AssociateConnectionWithLagCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AssociateHostedConnectionCommand.ts b/clients/client-direct-connect/commands/AssociateHostedConnectionCommand.ts index 9c9ba8a5c9886..e44256ba3a77b 100644 --- a/clients/client-direct-connect/commands/AssociateHostedConnectionCommand.ts +++ b/clients/client-direct-connect/commands/AssociateHostedConnectionCommand.ts @@ -35,6 +35,7 @@ export class AssociateHostedConnectionCommand extends $Command< AssociateHostedConnectionCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociateHostedConnectionCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/AssociateVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/AssociateVirtualInterfaceCommand.ts index 35ad730731918..6add7950f1350 100644 --- a/clients/client-direct-connect/commands/AssociateVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/AssociateVirtualInterfaceCommand.ts @@ -37,6 +37,7 @@ export class AssociateVirtualInterfaceCommand extends $Command< AssociateVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AssociateVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/ConfirmConnectionCommand.ts b/clients/client-direct-connect/commands/ConfirmConnectionCommand.ts index 2835b4cb7bcde..15c0a6655fd8b 100644 --- a/clients/client-direct-connect/commands/ConfirmConnectionCommand.ts +++ b/clients/client-direct-connect/commands/ConfirmConnectionCommand.ts @@ -30,6 +30,7 @@ export class ConfirmConnectionCommand extends $Command< ConfirmConnectionCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConfirmConnectionCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/ConfirmPrivateVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/ConfirmPrivateVirtualInterfaceCommand.ts index 068dfbbb8b62a..82dd5840f6d33 100644 --- a/clients/client-direct-connect/commands/ConfirmPrivateVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/ConfirmPrivateVirtualInterfaceCommand.ts @@ -31,6 +31,7 @@ export class ConfirmPrivateVirtualInterfaceCommand extends $Command< ConfirmPrivateVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ConfirmPrivateVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/ConfirmPublicVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/ConfirmPublicVirtualInterfaceCommand.ts index 06ef0f33a2e76..432409500d3f4 100644 --- a/clients/client-direct-connect/commands/ConfirmPublicVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/ConfirmPublicVirtualInterfaceCommand.ts @@ -30,6 +30,7 @@ export class ConfirmPublicVirtualInterfaceCommand extends $Command< ConfirmPublicVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConfirmPublicVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/ConfirmTransitVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/ConfirmTransitVirtualInterfaceCommand.ts index 2c7c2a32e40c5..cd1c5dc4a435a 100644 --- a/clients/client-direct-connect/commands/ConfirmTransitVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/ConfirmTransitVirtualInterfaceCommand.ts @@ -30,6 +30,7 @@ export class ConfirmTransitVirtualInterfaceCommand extends $Command< ConfirmTransitVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConfirmTransitVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateBGPPeerCommand.ts b/clients/client-direct-connect/commands/CreateBGPPeerCommand.ts index 2f93f0332027e..1b3835bed60bc 100644 --- a/clients/client-direct-connect/commands/CreateBGPPeerCommand.ts +++ b/clients/client-direct-connect/commands/CreateBGPPeerCommand.ts @@ -34,6 +34,7 @@ export class CreateBGPPeerCommand extends $Command< CreateBGPPeerCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateBGPPeerCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateConnectionCommand.ts b/clients/client-direct-connect/commands/CreateConnectionCommand.ts index a8bae2cfad5ee..82405e3c70fe4 100644 --- a/clients/client-direct-connect/commands/CreateConnectionCommand.ts +++ b/clients/client-direct-connect/commands/CreateConnectionCommand.ts @@ -36,6 +36,7 @@ export class CreateConnectionCommand extends $Command< CreateConnectionCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateConnectionCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationCommand.ts b/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationCommand.ts index 934e29181e75f..c0d0142aa694c 100644 --- a/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationCommand.ts +++ b/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationCommand.ts @@ -33,6 +33,7 @@ export class CreateDirectConnectGatewayAssociationCommand extends $Command< CreateDirectConnectGatewayAssociationCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateDirectConnectGatewayAssociationCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationProposalCommand.ts b/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationProposalCommand.ts index e3821317fa924..57593e14427ce 100644 --- a/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationProposalCommand.ts +++ b/clients/client-direct-connect/commands/CreateDirectConnectGatewayAssociationProposalCommand.ts @@ -33,6 +33,7 @@ export class CreateDirectConnectGatewayAssociationProposalCommand extends $Comma CreateDirectConnectGatewayAssociationProposalCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateDirectConnectGatewayAssociationProposalCommand extends $Comma CreateDirectConnectGatewayAssociationProposalCommandInput, CreateDirectConnectGatewayAssociationProposalCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateDirectConnectGatewayCommand.ts b/clients/client-direct-connect/commands/CreateDirectConnectGatewayCommand.ts index 2267ce5b01b2e..f76373e0fb27b 100644 --- a/clients/client-direct-connect/commands/CreateDirectConnectGatewayCommand.ts +++ b/clients/client-direct-connect/commands/CreateDirectConnectGatewayCommand.ts @@ -33,6 +33,7 @@ export class CreateDirectConnectGatewayCommand extends $Command< CreateDirectConnectGatewayCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateDirectConnectGatewayCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateInterconnectCommand.ts b/clients/client-direct-connect/commands/CreateInterconnectCommand.ts index aa01fb884dda1..cf89e09a2d7b2 100644 --- a/clients/client-direct-connect/commands/CreateInterconnectCommand.ts +++ b/clients/client-direct-connect/commands/CreateInterconnectCommand.ts @@ -43,6 +43,7 @@ export class CreateInterconnectCommand extends $Command< CreateInterconnectCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateInterconnectCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateLagCommand.ts b/clients/client-direct-connect/commands/CreateLagCommand.ts index 712726bc39d0f..67ac2f0579ace 100644 --- a/clients/client-direct-connect/commands/CreateLagCommand.ts +++ b/clients/client-direct-connect/commands/CreateLagCommand.ts @@ -42,6 +42,7 @@ export class CreateLagCommand extends $Command< CreateLagCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateLagCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreatePrivateVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/CreatePrivateVirtualInterfaceCommand.ts index 7d893db66d2e5..aad461e6a5aaf 100644 --- a/clients/client-direct-connect/commands/CreatePrivateVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/CreatePrivateVirtualInterfaceCommand.ts @@ -38,6 +38,7 @@ export class CreatePrivateVirtualInterfaceCommand extends $Command< CreatePrivateVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreatePrivateVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreatePublicVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/CreatePublicVirtualInterfaceCommand.ts index b03d3ef67139a..5d0a8aca687b1 100644 --- a/clients/client-direct-connect/commands/CreatePublicVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/CreatePublicVirtualInterfaceCommand.ts @@ -31,6 +31,7 @@ export class CreatePublicVirtualInterfaceCommand extends $Command< CreatePublicVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreatePublicVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/CreateTransitVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/CreateTransitVirtualInterfaceCommand.ts index 11eb8d8a1abf9..7241227bf635a 100644 --- a/clients/client-direct-connect/commands/CreateTransitVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/CreateTransitVirtualInterfaceCommand.ts @@ -37,6 +37,7 @@ export class CreateTransitVirtualInterfaceCommand extends $Command< CreateTransitVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateTransitVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteBGPPeerCommand.ts b/clients/client-direct-connect/commands/DeleteBGPPeerCommand.ts index ce706f48c2acb..bcc622bceaed2 100644 --- a/clients/client-direct-connect/commands/DeleteBGPPeerCommand.ts +++ b/clients/client-direct-connect/commands/DeleteBGPPeerCommand.ts @@ -29,6 +29,7 @@ export class DeleteBGPPeerCommand extends $Command< DeleteBGPPeerCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteBGPPeerCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteConnectionCommand.ts b/clients/client-direct-connect/commands/DeleteConnectionCommand.ts index 371d4f3c1f3fb..899c9941db808 100644 --- a/clients/client-direct-connect/commands/DeleteConnectionCommand.ts +++ b/clients/client-direct-connect/commands/DeleteConnectionCommand.ts @@ -31,6 +31,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteConnectionCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationCommand.ts b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationCommand.ts index 770e1ff90aa93..b31e9ee2bd76a 100644 --- a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationCommand.ts +++ b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationCommand.ts @@ -33,6 +33,7 @@ export class DeleteDirectConnectGatewayAssociationCommand extends $Command< DeleteDirectConnectGatewayAssociationCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteDirectConnectGatewayAssociationCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationProposalCommand.ts b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationProposalCommand.ts index 827235618a275..9853df3736f5e 100644 --- a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationProposalCommand.ts +++ b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayAssociationProposalCommand.ts @@ -32,6 +32,7 @@ export class DeleteDirectConnectGatewayAssociationProposalCommand extends $Comma DeleteDirectConnectGatewayAssociationProposalCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteDirectConnectGatewayAssociationProposalCommand extends $Comma DeleteDirectConnectGatewayAssociationProposalCommandInput, DeleteDirectConnectGatewayAssociationProposalCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayCommand.ts b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayCommand.ts index fc235c36b1b35..c0f28361b06ea 100644 --- a/clients/client-direct-connect/commands/DeleteDirectConnectGatewayCommand.ts +++ b/clients/client-direct-connect/commands/DeleteDirectConnectGatewayCommand.ts @@ -30,6 +30,7 @@ export class DeleteDirectConnectGatewayCommand extends $Command< DeleteDirectConnectGatewayCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDirectConnectGatewayCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteInterconnectCommand.ts b/clients/client-direct-connect/commands/DeleteInterconnectCommand.ts index 01bf2c7cb6b74..12b9037ba3bea 100644 --- a/clients/client-direct-connect/commands/DeleteInterconnectCommand.ts +++ b/clients/client-direct-connect/commands/DeleteInterconnectCommand.ts @@ -32,6 +32,7 @@ export class DeleteInterconnectCommand extends $Command< DeleteInterconnectCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteInterconnectCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteLagCommand.ts b/clients/client-direct-connect/commands/DeleteLagCommand.ts index 70beb9b317421..c29155095982b 100644 --- a/clients/client-direct-connect/commands/DeleteLagCommand.ts +++ b/clients/client-direct-connect/commands/DeleteLagCommand.ts @@ -26,6 +26,7 @@ export class DeleteLagCommand extends $Command< DeleteLagCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteLagCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DeleteVirtualInterfaceCommand.ts b/clients/client-direct-connect/commands/DeleteVirtualInterfaceCommand.ts index ae32aec6dc3ed..d439ce2219b0c 100644 --- a/clients/client-direct-connect/commands/DeleteVirtualInterfaceCommand.ts +++ b/clients/client-direct-connect/commands/DeleteVirtualInterfaceCommand.ts @@ -28,6 +28,7 @@ export class DeleteVirtualInterfaceCommand extends $Command< DeleteVirtualInterfaceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVirtualInterfaceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeConnectionLoaCommand.ts b/clients/client-direct-connect/commands/DescribeConnectionLoaCommand.ts index e899268bf18e4..a471537fa7bc7 100644 --- a/clients/client-direct-connect/commands/DescribeConnectionLoaCommand.ts +++ b/clients/client-direct-connect/commands/DescribeConnectionLoaCommand.ts @@ -33,6 +33,7 @@ export class DescribeConnectionLoaCommand extends $Command< DescribeConnectionLoaCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeConnectionLoaCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeConnectionsCommand.ts b/clients/client-direct-connect/commands/DescribeConnectionsCommand.ts index f0411b8b5a288..6e99cd30b59e0 100644 --- a/clients/client-direct-connect/commands/DescribeConnectionsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeConnectionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeConnectionsCommand extends $Command< DescribeConnectionsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConnectionsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeConnectionsOnInterconnectCommand.ts b/clients/client-direct-connect/commands/DescribeConnectionsOnInterconnectCommand.ts index 61ed2e90d2e98..1b2db41bc1ba2 100644 --- a/clients/client-direct-connect/commands/DescribeConnectionsOnInterconnectCommand.ts +++ b/clients/client-direct-connect/commands/DescribeConnectionsOnInterconnectCommand.ts @@ -32,6 +32,7 @@ export class DescribeConnectionsOnInterconnectCommand extends $Command< DescribeConnectionsOnInterconnectCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeConnectionsOnInterconnectCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationProposalsCommand.ts b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationProposalsCommand.ts index bd9a2376a1742..f2a76c2036b14 100644 --- a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationProposalsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationProposalsCommand.ts @@ -32,6 +32,7 @@ export class DescribeDirectConnectGatewayAssociationProposalsCommand extends $Co DescribeDirectConnectGatewayAssociationProposalsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDirectConnectGatewayAssociationProposalsCommand extends $Co DescribeDirectConnectGatewayAssociationProposalsCommandInput, DescribeDirectConnectGatewayAssociationProposalsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationsCommand.ts b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationsCommand.ts index c5f7a02963d93..be3b473ae2dd6 100644 --- a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAssociationsCommand.ts @@ -38,6 +38,7 @@ export class DescribeDirectConnectGatewayAssociationsCommand extends $Command< DescribeDirectConnectGatewayAssociationsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DescribeDirectConnectGatewayAssociationsCommand extends $Command< DescribeDirectConnectGatewayAssociationsCommandInput, DescribeDirectConnectGatewayAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAttachmentsCommand.ts b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAttachmentsCommand.ts index 98f15ce6069d3..07061db54821d 100644 --- a/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAttachmentsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeDirectConnectGatewayAttachmentsCommand.ts @@ -36,6 +36,7 @@ export class DescribeDirectConnectGatewayAttachmentsCommand extends $Command< DescribeDirectConnectGatewayAttachmentsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeDirectConnectGatewayAttachmentsCommand extends $Command< DescribeDirectConnectGatewayAttachmentsCommandInput, DescribeDirectConnectGatewayAttachmentsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeDirectConnectGatewaysCommand.ts b/clients/client-direct-connect/commands/DescribeDirectConnectGatewaysCommand.ts index faf61f2917284..962aabde1aadc 100644 --- a/clients/client-direct-connect/commands/DescribeDirectConnectGatewaysCommand.ts +++ b/clients/client-direct-connect/commands/DescribeDirectConnectGatewaysCommand.ts @@ -28,6 +28,7 @@ export class DescribeDirectConnectGatewaysCommand extends $Command< DescribeDirectConnectGatewaysCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDirectConnectGatewaysCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeHostedConnectionsCommand.ts b/clients/client-direct-connect/commands/DescribeHostedConnectionsCommand.ts index e85f9c47cbca0..4208a56c7b854 100644 --- a/clients/client-direct-connect/commands/DescribeHostedConnectionsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeHostedConnectionsCommand.ts @@ -32,6 +32,7 @@ export class DescribeHostedConnectionsCommand extends $Command< DescribeHostedConnectionsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeHostedConnectionsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeInterconnectLoaCommand.ts b/clients/client-direct-connect/commands/DescribeInterconnectLoaCommand.ts index 7aec5310d085f..1cc6f85da33cd 100644 --- a/clients/client-direct-connect/commands/DescribeInterconnectLoaCommand.ts +++ b/clients/client-direct-connect/commands/DescribeInterconnectLoaCommand.ts @@ -32,6 +32,7 @@ export class DescribeInterconnectLoaCommand extends $Command< DescribeInterconnectLoaCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeInterconnectLoaCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeInterconnectsCommand.ts b/clients/client-direct-connect/commands/DescribeInterconnectsCommand.ts index ae0623251d993..4bef0369dcea5 100644 --- a/clients/client-direct-connect/commands/DescribeInterconnectsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeInterconnectsCommand.ts @@ -28,6 +28,7 @@ export class DescribeInterconnectsCommand extends $Command< DescribeInterconnectsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInterconnectsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeLagsCommand.ts b/clients/client-direct-connect/commands/DescribeLagsCommand.ts index 608b5848bfd5d..17bb65c24f315 100644 --- a/clients/client-direct-connect/commands/DescribeLagsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeLagsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLagsCommand extends $Command< DescribeLagsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLagsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeLoaCommand.ts b/clients/client-direct-connect/commands/DescribeLoaCommand.ts index 7e5c38aa64d85..05838e1091586 100644 --- a/clients/client-direct-connect/commands/DescribeLoaCommand.ts +++ b/clients/client-direct-connect/commands/DescribeLoaCommand.ts @@ -31,6 +31,7 @@ export class DescribeLoaCommand extends $Command< DescribeLoaCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeLoaCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeLocationsCommand.ts b/clients/client-direct-connect/commands/DescribeLocationsCommand.ts index 077ebb3732d0c..e19ca4e9e65cb 100644 --- a/clients/client-direct-connect/commands/DescribeLocationsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeLocationsCommand.ts @@ -29,6 +29,7 @@ export class DescribeLocationsCommand extends $Command< DescribeLocationsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLocationsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeTagsCommand.ts b/clients/client-direct-connect/commands/DescribeTagsCommand.ts index 655de9b05ca05..92b98c6a0f7f9 100644 --- a/clients/client-direct-connect/commands/DescribeTagsCommand.ts +++ b/clients/client-direct-connect/commands/DescribeTagsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTagsCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeVirtualGatewaysCommand.ts b/clients/client-direct-connect/commands/DescribeVirtualGatewaysCommand.ts index 8ffef4b0a5e13..c62e204cf32ec 100644 --- a/clients/client-direct-connect/commands/DescribeVirtualGatewaysCommand.ts +++ b/clients/client-direct-connect/commands/DescribeVirtualGatewaysCommand.ts @@ -29,6 +29,7 @@ export class DescribeVirtualGatewaysCommand extends $Command< DescribeVirtualGatewaysCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeVirtualGatewaysCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DescribeVirtualInterfacesCommand.ts b/clients/client-direct-connect/commands/DescribeVirtualInterfacesCommand.ts index a78d7a294802c..5262e208e4dc9 100644 --- a/clients/client-direct-connect/commands/DescribeVirtualInterfacesCommand.ts +++ b/clients/client-direct-connect/commands/DescribeVirtualInterfacesCommand.ts @@ -32,6 +32,7 @@ export class DescribeVirtualInterfacesCommand extends $Command< DescribeVirtualInterfacesCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeVirtualInterfacesCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/DisassociateConnectionFromLagCommand.ts b/clients/client-direct-connect/commands/DisassociateConnectionFromLagCommand.ts index f4bc9431df899..b0a4f5d0cf838 100644 --- a/clients/client-direct-connect/commands/DisassociateConnectionFromLagCommand.ts +++ b/clients/client-direct-connect/commands/DisassociateConnectionFromLagCommand.ts @@ -37,6 +37,7 @@ export class DisassociateConnectionFromLagCommand extends $Command< DisassociateConnectionFromLagCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DisassociateConnectionFromLagCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/ListVirtualInterfaceTestHistoryCommand.ts b/clients/client-direct-connect/commands/ListVirtualInterfaceTestHistoryCommand.ts index 787cce67f0e52..d2c780ecbb335 100644 --- a/clients/client-direct-connect/commands/ListVirtualInterfaceTestHistoryCommand.ts +++ b/clients/client-direct-connect/commands/ListVirtualInterfaceTestHistoryCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualInterfaceTestHistoryCommand extends $Command< ListVirtualInterfaceTestHistoryCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualInterfaceTestHistoryCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/StartBgpFailoverTestCommand.ts b/clients/client-direct-connect/commands/StartBgpFailoverTestCommand.ts index 3d59cde74d2c0..a0f9ba3a15af7 100644 --- a/clients/client-direct-connect/commands/StartBgpFailoverTestCommand.ts +++ b/clients/client-direct-connect/commands/StartBgpFailoverTestCommand.ts @@ -31,6 +31,7 @@ export class StartBgpFailoverTestCommand extends $Command< StartBgpFailoverTestCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartBgpFailoverTestCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/StopBgpFailoverTestCommand.ts b/clients/client-direct-connect/commands/StopBgpFailoverTestCommand.ts index 3e37f63d9ea69..77c431e5997bc 100644 --- a/clients/client-direct-connect/commands/StopBgpFailoverTestCommand.ts +++ b/clients/client-direct-connect/commands/StopBgpFailoverTestCommand.ts @@ -28,6 +28,7 @@ export class StopBgpFailoverTestCommand extends $Command< StopBgpFailoverTestCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopBgpFailoverTestCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/TagResourceCommand.ts b/clients/client-direct-connect/commands/TagResourceCommand.ts index 793ce959160d2..fd54d26f8212a 100644 --- a/clients/client-direct-connect/commands/TagResourceCommand.ts +++ b/clients/client-direct-connect/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/UntagResourceCommand.ts b/clients/client-direct-connect/commands/UntagResourceCommand.ts index d983af7c25e63..ddb9434aa2da5 100644 --- a/clients/client-direct-connect/commands/UntagResourceCommand.ts +++ b/clients/client-direct-connect/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/UpdateDirectConnectGatewayAssociationCommand.ts b/clients/client-direct-connect/commands/UpdateDirectConnectGatewayAssociationCommand.ts index 441e3d47bc354..41bd3ed589ebb 100644 --- a/clients/client-direct-connect/commands/UpdateDirectConnectGatewayAssociationCommand.ts +++ b/clients/client-direct-connect/commands/UpdateDirectConnectGatewayAssociationCommand.ts @@ -33,6 +33,7 @@ export class UpdateDirectConnectGatewayAssociationCommand extends $Command< UpdateDirectConnectGatewayAssociationCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateDirectConnectGatewayAssociationCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/UpdateLagCommand.ts b/clients/client-direct-connect/commands/UpdateLagCommand.ts index f2ec85879da81..137d2cbaeb18f 100644 --- a/clients/client-direct-connect/commands/UpdateLagCommand.ts +++ b/clients/client-direct-connect/commands/UpdateLagCommand.ts @@ -41,6 +41,7 @@ export class UpdateLagCommand extends $Command< UpdateLagCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateLagCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-direct-connect/commands/UpdateVirtualInterfaceAttributesCommand.ts b/clients/client-direct-connect/commands/UpdateVirtualInterfaceAttributesCommand.ts index e379e7cba5b13..ad14df34b7475 100644 --- a/clients/client-direct-connect/commands/UpdateVirtualInterfaceAttributesCommand.ts +++ b/clients/client-direct-connect/commands/UpdateVirtualInterfaceAttributesCommand.ts @@ -34,6 +34,7 @@ export class UpdateVirtualInterfaceAttributesCommand extends $Command< UpdateVirtualInterfaceAttributesCommandOutput, DirectConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateVirtualInterfaceAttributesCommand extends $Command< configuration: DirectConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts b/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts index df4f61358a8fc..0b81b4b8ef463 100644 --- a/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts +++ b/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts @@ -28,6 +28,7 @@ export class AcceptSharedDirectoryCommand extends $Command< AcceptSharedDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptSharedDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/AddIpRoutesCommand.ts b/clients/client-directory-service/commands/AddIpRoutesCommand.ts index 5a1c1ec021e0c..8db38d9976ca1 100644 --- a/clients/client-directory-service/commands/AddIpRoutesCommand.ts +++ b/clients/client-directory-service/commands/AddIpRoutesCommand.ts @@ -29,6 +29,7 @@ export class AddIpRoutesCommand extends $Command< AddIpRoutesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AddIpRoutesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/AddRegionCommand.ts b/clients/client-directory-service/commands/AddRegionCommand.ts index 61d9ec9ac56a2..569ad03b95359 100644 --- a/clients/client-directory-service/commands/AddRegionCommand.ts +++ b/clients/client-directory-service/commands/AddRegionCommand.ts @@ -25,6 +25,7 @@ export class AddRegionCommand extends $Command< AddRegionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class AddRegionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/AddTagsToResourceCommand.ts b/clients/client-directory-service/commands/AddTagsToResourceCommand.ts index c40b858e2e526..c4f3776a14f20 100644 --- a/clients/client-directory-service/commands/AddTagsToResourceCommand.ts +++ b/clients/client-directory-service/commands/AddTagsToResourceCommand.ts @@ -28,6 +28,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts b/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts index 779d922f17879..c323faccd7ce2 100644 --- a/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts +++ b/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts @@ -28,6 +28,7 @@ export class CancelSchemaExtensionCommand extends $Command< CancelSchemaExtensionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelSchemaExtensionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ConnectDirectoryCommand.ts b/clients/client-directory-service/commands/ConnectDirectoryCommand.ts index f954af67edacb..5b3b66ef8a499 100644 --- a/clients/client-directory-service/commands/ConnectDirectoryCommand.ts +++ b/clients/client-directory-service/commands/ConnectDirectoryCommand.ts @@ -32,6 +32,7 @@ export class ConnectDirectoryCommand extends $Command< ConnectDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ConnectDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateAliasCommand.ts b/clients/client-directory-service/commands/CreateAliasCommand.ts index 4b0183a55dfd7..fd55a1edc85ee 100644 --- a/clients/client-directory-service/commands/CreateAliasCommand.ts +++ b/clients/client-directory-service/commands/CreateAliasCommand.ts @@ -33,6 +33,7 @@ export class CreateAliasCommand extends $Command< CreateAliasCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAliasCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateComputerCommand.ts b/clients/client-directory-service/commands/CreateComputerCommand.ts index 551ae9b535e0d..f43947ccf8418 100644 --- a/clients/client-directory-service/commands/CreateComputerCommand.ts +++ b/clients/client-directory-service/commands/CreateComputerCommand.ts @@ -28,6 +28,7 @@ export class CreateComputerCommand extends $Command< CreateComputerCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateComputerCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts b/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts index 5adbd6087226a..4a00df4740e9f 100644 --- a/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts +++ b/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts @@ -28,6 +28,7 @@ export class CreateConditionalForwarderCommand extends $Command< CreateConditionalForwarderCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConditionalForwarderCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateDirectoryCommand.ts b/clients/client-directory-service/commands/CreateDirectoryCommand.ts index 00144103d33f1..7cb64bebec969 100644 --- a/clients/client-directory-service/commands/CreateDirectoryCommand.ts +++ b/clients/client-directory-service/commands/CreateDirectoryCommand.ts @@ -33,6 +33,7 @@ export class CreateDirectoryCommand extends $Command< CreateDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts b/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts index 3f467bf7a695d..403c0953441cf 100644 --- a/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts +++ b/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts @@ -29,6 +29,7 @@ export class CreateLogSubscriptionCommand extends $Command< CreateLogSubscriptionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateLogSubscriptionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts b/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts index 683bb29bd1844..1a9326fde1823 100644 --- a/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts +++ b/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts @@ -29,6 +29,7 @@ export class CreateMicrosoftADCommand extends $Command< CreateMicrosoftADCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateMicrosoftADCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateSnapshotCommand.ts b/clients/client-directory-service/commands/CreateSnapshotCommand.ts index 53b42751f855d..cd42c59af35e5 100644 --- a/clients/client-directory-service/commands/CreateSnapshotCommand.ts +++ b/clients/client-directory-service/commands/CreateSnapshotCommand.ts @@ -31,6 +31,7 @@ export class CreateSnapshotCommand extends $Command< CreateSnapshotCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateSnapshotCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/CreateTrustCommand.ts b/clients/client-directory-service/commands/CreateTrustCommand.ts index e7761029138eb..a610f0e6971fa 100644 --- a/clients/client-directory-service/commands/CreateTrustCommand.ts +++ b/clients/client-directory-service/commands/CreateTrustCommand.ts @@ -29,6 +29,7 @@ export class CreateTrustCommand extends $Command< CreateTrustCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTrustCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts b/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts index a254a61fd7453..396b793b18d5d 100644 --- a/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts +++ b/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts @@ -28,6 +28,7 @@ export class DeleteConditionalForwarderCommand extends $Command< DeleteConditionalForwarderCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConditionalForwarderCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeleteDirectoryCommand.ts b/clients/client-directory-service/commands/DeleteDirectoryCommand.ts index abcdf5497eb2e..9d5de40a92379 100644 --- a/clients/client-directory-service/commands/DeleteDirectoryCommand.ts +++ b/clients/client-directory-service/commands/DeleteDirectoryCommand.ts @@ -32,6 +32,7 @@ export class DeleteDirectoryCommand extends $Command< DeleteDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts b/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts index 1ec996b8eb310..d27220f7b11cc 100644 --- a/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts +++ b/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteLogSubscriptionCommand extends $Command< DeleteLogSubscriptionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLogSubscriptionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeleteSnapshotCommand.ts b/clients/client-directory-service/commands/DeleteSnapshotCommand.ts index 75afb1761df9c..80ca76e6752be 100644 --- a/clients/client-directory-service/commands/DeleteSnapshotCommand.ts +++ b/clients/client-directory-service/commands/DeleteSnapshotCommand.ts @@ -28,6 +28,7 @@ export class DeleteSnapshotCommand extends $Command< DeleteSnapshotCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSnapshotCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeleteTrustCommand.ts b/clients/client-directory-service/commands/DeleteTrustCommand.ts index 035cd4feb5ee3..0ee0f1d4e4651 100644 --- a/clients/client-directory-service/commands/DeleteTrustCommand.ts +++ b/clients/client-directory-service/commands/DeleteTrustCommand.ts @@ -28,6 +28,7 @@ export class DeleteTrustCommand extends $Command< DeleteTrustCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTrustCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeregisterCertificateCommand.ts b/clients/client-directory-service/commands/DeregisterCertificateCommand.ts index 894be5a9da3de..4ee55adb6f272 100644 --- a/clients/client-directory-service/commands/DeregisterCertificateCommand.ts +++ b/clients/client-directory-service/commands/DeregisterCertificateCommand.ts @@ -28,6 +28,7 @@ export class DeregisterCertificateCommand extends $Command< DeregisterCertificateCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterCertificateCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts b/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts index 74ca11a542151..250745d246df9 100644 --- a/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts +++ b/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts @@ -28,6 +28,7 @@ export class DeregisterEventTopicCommand extends $Command< DeregisterEventTopicCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterEventTopicCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeCertificateCommand.ts b/clients/client-directory-service/commands/DescribeCertificateCommand.ts index 4309f1ce52b1b..de7041eea6bb4 100644 --- a/clients/client-directory-service/commands/DescribeCertificateCommand.ts +++ b/clients/client-directory-service/commands/DescribeCertificateCommand.ts @@ -28,6 +28,7 @@ export class DescribeCertificateCommand extends $Command< DescribeCertificateCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCertificateCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts b/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts index c6533f164f9bf..8d88b32aedcc4 100644 --- a/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts +++ b/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts @@ -29,6 +29,7 @@ export class DescribeConditionalForwardersCommand extends $Command< DescribeConditionalForwardersCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeConditionalForwardersCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts b/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts index 408d5a1de70ee..ab19377f63882 100644 --- a/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts +++ b/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts @@ -38,6 +38,7 @@ export class DescribeDirectoriesCommand extends $Command< DescribeDirectoriesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeDirectoriesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts b/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts index 11d312ac2e219..d860a160c4dde 100644 --- a/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts +++ b/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts @@ -28,6 +28,7 @@ export class DescribeDomainControllersCommand extends $Command< DescribeDomainControllersCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDomainControllersCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts b/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts index c19cb3611e90e..8dc698b5ee5c7 100644 --- a/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts +++ b/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts @@ -29,6 +29,7 @@ export class DescribeEventTopicsCommand extends $Command< DescribeEventTopicsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEventTopicsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts b/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts index a71db4e023bf3..7bef593dcd173 100644 --- a/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts +++ b/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLDAPSSettingsCommand extends $Command< DescribeLDAPSSettingsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLDAPSSettingsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeRegionsCommand.ts b/clients/client-directory-service/commands/DescribeRegionsCommand.ts index 4a98a17d57dd5..909c9ff0a3241 100644 --- a/clients/client-directory-service/commands/DescribeRegionsCommand.ts +++ b/clients/client-directory-service/commands/DescribeRegionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeRegionsCommand extends $Command< DescribeRegionsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeRegionsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts b/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts index b5c84d8ecf1c0..e52e17703675a 100644 --- a/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts +++ b/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts @@ -28,6 +28,7 @@ export class DescribeSharedDirectoriesCommand extends $Command< DescribeSharedDirectoriesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSharedDirectoriesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts b/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts index 8e1135889a73f..2c7eb12bb3dce 100644 --- a/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts +++ b/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts @@ -34,6 +34,7 @@ export class DescribeSnapshotsCommand extends $Command< DescribeSnapshotsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeSnapshotsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DescribeTrustsCommand.ts b/clients/client-directory-service/commands/DescribeTrustsCommand.ts index 0f58d1a7b979e..3be4e7173dc8a 100644 --- a/clients/client-directory-service/commands/DescribeTrustsCommand.ts +++ b/clients/client-directory-service/commands/DescribeTrustsCommand.ts @@ -29,6 +29,7 @@ export class DescribeTrustsCommand extends $Command< DescribeTrustsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTrustsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DisableClientAuthenticationCommand.ts b/clients/client-directory-service/commands/DisableClientAuthenticationCommand.ts index a972cd7965b9d..cf5a0bb8516db 100644 --- a/clients/client-directory-service/commands/DisableClientAuthenticationCommand.ts +++ b/clients/client-directory-service/commands/DisableClientAuthenticationCommand.ts @@ -28,6 +28,7 @@ export class DisableClientAuthenticationCommand extends $Command< DisableClientAuthenticationCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableClientAuthenticationCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DisableLDAPSCommand.ts b/clients/client-directory-service/commands/DisableLDAPSCommand.ts index 4b50c2b3df610..1138f10b7af37 100644 --- a/clients/client-directory-service/commands/DisableLDAPSCommand.ts +++ b/clients/client-directory-service/commands/DisableLDAPSCommand.ts @@ -28,6 +28,7 @@ export class DisableLDAPSCommand extends $Command< DisableLDAPSCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableLDAPSCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DisableRadiusCommand.ts b/clients/client-directory-service/commands/DisableRadiusCommand.ts index 7cf703eefeef5..ff83f13a45ad1 100644 --- a/clients/client-directory-service/commands/DisableRadiusCommand.ts +++ b/clients/client-directory-service/commands/DisableRadiusCommand.ts @@ -28,6 +28,7 @@ export class DisableRadiusCommand extends $Command< DisableRadiusCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableRadiusCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/DisableSsoCommand.ts b/clients/client-directory-service/commands/DisableSsoCommand.ts index 7540bfa2c3988..bc5cac00346a3 100644 --- a/clients/client-directory-service/commands/DisableSsoCommand.ts +++ b/clients/client-directory-service/commands/DisableSsoCommand.ts @@ -28,6 +28,7 @@ export class DisableSsoCommand extends $Command< DisableSsoCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableSsoCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/EnableClientAuthenticationCommand.ts b/clients/client-directory-service/commands/EnableClientAuthenticationCommand.ts index 84e58fbd67180..3c37fa6d587a2 100644 --- a/clients/client-directory-service/commands/EnableClientAuthenticationCommand.ts +++ b/clients/client-directory-service/commands/EnableClientAuthenticationCommand.ts @@ -28,6 +28,7 @@ export class EnableClientAuthenticationCommand extends $Command< EnableClientAuthenticationCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableClientAuthenticationCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/EnableLDAPSCommand.ts b/clients/client-directory-service/commands/EnableLDAPSCommand.ts index 8819128f04569..3162d418a4f4c 100644 --- a/clients/client-directory-service/commands/EnableLDAPSCommand.ts +++ b/clients/client-directory-service/commands/EnableLDAPSCommand.ts @@ -28,6 +28,7 @@ export class EnableLDAPSCommand extends $Command< EnableLDAPSCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableLDAPSCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/EnableRadiusCommand.ts b/clients/client-directory-service/commands/EnableRadiusCommand.ts index 777675df16716..4de80b4f95e9d 100644 --- a/clients/client-directory-service/commands/EnableRadiusCommand.ts +++ b/clients/client-directory-service/commands/EnableRadiusCommand.ts @@ -28,6 +28,7 @@ export class EnableRadiusCommand extends $Command< EnableRadiusCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableRadiusCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/EnableSsoCommand.ts b/clients/client-directory-service/commands/EnableSsoCommand.ts index dd88d245852b0..6c7fcca97d88b 100644 --- a/clients/client-directory-service/commands/EnableSsoCommand.ts +++ b/clients/client-directory-service/commands/EnableSsoCommand.ts @@ -25,6 +25,7 @@ export class EnableSsoCommand extends $Command< EnableSsoCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class EnableSsoCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts b/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts index c146886e6172f..aa87be4939a84 100644 --- a/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts +++ b/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts @@ -28,6 +28,7 @@ export class GetDirectoryLimitsCommand extends $Command< GetDirectoryLimitsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDirectoryLimitsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts b/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts index d95b1e7280fa7..9122f71af4543 100644 --- a/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts +++ b/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts @@ -28,6 +28,7 @@ export class GetSnapshotLimitsCommand extends $Command< GetSnapshotLimitsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSnapshotLimitsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ListCertificatesCommand.ts b/clients/client-directory-service/commands/ListCertificatesCommand.ts index 52e38c7cf9c35..e10f757b9d167 100644 --- a/clients/client-directory-service/commands/ListCertificatesCommand.ts +++ b/clients/client-directory-service/commands/ListCertificatesCommand.ts @@ -28,6 +28,7 @@ export class ListCertificatesCommand extends $Command< ListCertificatesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCertificatesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ListIpRoutesCommand.ts b/clients/client-directory-service/commands/ListIpRoutesCommand.ts index 2616e9a6df75c..110462665843e 100644 --- a/clients/client-directory-service/commands/ListIpRoutesCommand.ts +++ b/clients/client-directory-service/commands/ListIpRoutesCommand.ts @@ -28,6 +28,7 @@ export class ListIpRoutesCommand extends $Command< ListIpRoutesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIpRoutesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ListLogSubscriptionsCommand.ts b/clients/client-directory-service/commands/ListLogSubscriptionsCommand.ts index ef6f923aa605f..52485e643bf2f 100644 --- a/clients/client-directory-service/commands/ListLogSubscriptionsCommand.ts +++ b/clients/client-directory-service/commands/ListLogSubscriptionsCommand.ts @@ -28,6 +28,7 @@ export class ListLogSubscriptionsCommand extends $Command< ListLogSubscriptionsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLogSubscriptionsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ListSchemaExtensionsCommand.ts b/clients/client-directory-service/commands/ListSchemaExtensionsCommand.ts index 69745665916bf..6e0fcfd395bb1 100644 --- a/clients/client-directory-service/commands/ListSchemaExtensionsCommand.ts +++ b/clients/client-directory-service/commands/ListSchemaExtensionsCommand.ts @@ -28,6 +28,7 @@ export class ListSchemaExtensionsCommand extends $Command< ListSchemaExtensionsCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSchemaExtensionsCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ListTagsForResourceCommand.ts b/clients/client-directory-service/commands/ListTagsForResourceCommand.ts index 83eaf84389a19..53742d8f80388 100644 --- a/clients/client-directory-service/commands/ListTagsForResourceCommand.ts +++ b/clients/client-directory-service/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RegisterCertificateCommand.ts b/clients/client-directory-service/commands/RegisterCertificateCommand.ts index db8a31e6ecae7..6402a5601bce7 100644 --- a/clients/client-directory-service/commands/RegisterCertificateCommand.ts +++ b/clients/client-directory-service/commands/RegisterCertificateCommand.ts @@ -28,6 +28,7 @@ export class RegisterCertificateCommand extends $Command< RegisterCertificateCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterCertificateCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RegisterEventTopicCommand.ts b/clients/client-directory-service/commands/RegisterEventTopicCommand.ts index eee16ac426d7c..5dcc1d82240c5 100644 --- a/clients/client-directory-service/commands/RegisterEventTopicCommand.ts +++ b/clients/client-directory-service/commands/RegisterEventTopicCommand.ts @@ -28,6 +28,7 @@ export class RegisterEventTopicCommand extends $Command< RegisterEventTopicCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterEventTopicCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RejectSharedDirectoryCommand.ts b/clients/client-directory-service/commands/RejectSharedDirectoryCommand.ts index e73c5d637844a..a27293d3ac8ed 100644 --- a/clients/client-directory-service/commands/RejectSharedDirectoryCommand.ts +++ b/clients/client-directory-service/commands/RejectSharedDirectoryCommand.ts @@ -28,6 +28,7 @@ export class RejectSharedDirectoryCommand extends $Command< RejectSharedDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RejectSharedDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RemoveIpRoutesCommand.ts b/clients/client-directory-service/commands/RemoveIpRoutesCommand.ts index d8807740e31c5..14c50becd92ca 100644 --- a/clients/client-directory-service/commands/RemoveIpRoutesCommand.ts +++ b/clients/client-directory-service/commands/RemoveIpRoutesCommand.ts @@ -28,6 +28,7 @@ export class RemoveIpRoutesCommand extends $Command< RemoveIpRoutesCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveIpRoutesCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RemoveRegionCommand.ts b/clients/client-directory-service/commands/RemoveRegionCommand.ts index 0f904556bbfde..67eb868aed9b1 100644 --- a/clients/client-directory-service/commands/RemoveRegionCommand.ts +++ b/clients/client-directory-service/commands/RemoveRegionCommand.ts @@ -30,6 +30,7 @@ export class RemoveRegionCommand extends $Command< RemoveRegionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RemoveRegionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RemoveTagsFromResourceCommand.ts b/clients/client-directory-service/commands/RemoveTagsFromResourceCommand.ts index ecfcd47c8cdb4..20093a6b5a72f 100644 --- a/clients/client-directory-service/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-directory-service/commands/RemoveTagsFromResourceCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ResetUserPasswordCommand.ts b/clients/client-directory-service/commands/ResetUserPasswordCommand.ts index f3d2908efc48a..1f2672ef849fa 100644 --- a/clients/client-directory-service/commands/ResetUserPasswordCommand.ts +++ b/clients/client-directory-service/commands/ResetUserPasswordCommand.ts @@ -46,6 +46,7 @@ export class ResetUserPasswordCommand extends $Command< ResetUserPasswordCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ResetUserPasswordCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/RestoreFromSnapshotCommand.ts b/clients/client-directory-service/commands/RestoreFromSnapshotCommand.ts index 6b3b0d5fdec80..bbda0b7fc3e46 100644 --- a/clients/client-directory-service/commands/RestoreFromSnapshotCommand.ts +++ b/clients/client-directory-service/commands/RestoreFromSnapshotCommand.ts @@ -33,6 +33,7 @@ export class RestoreFromSnapshotCommand extends $Command< RestoreFromSnapshotCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RestoreFromSnapshotCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/ShareDirectoryCommand.ts b/clients/client-directory-service/commands/ShareDirectoryCommand.ts index dffcea6a29557..33e625c805c89 100644 --- a/clients/client-directory-service/commands/ShareDirectoryCommand.ts +++ b/clients/client-directory-service/commands/ShareDirectoryCommand.ts @@ -40,6 +40,7 @@ export class ShareDirectoryCommand extends $Command< ShareDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ShareDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/StartSchemaExtensionCommand.ts b/clients/client-directory-service/commands/StartSchemaExtensionCommand.ts index 4af533458e0d0..fe31e3d914b79 100644 --- a/clients/client-directory-service/commands/StartSchemaExtensionCommand.ts +++ b/clients/client-directory-service/commands/StartSchemaExtensionCommand.ts @@ -28,6 +28,7 @@ export class StartSchemaExtensionCommand extends $Command< StartSchemaExtensionCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartSchemaExtensionCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/UnshareDirectoryCommand.ts b/clients/client-directory-service/commands/UnshareDirectoryCommand.ts index f2f36526091b7..04e86c56afe74 100644 --- a/clients/client-directory-service/commands/UnshareDirectoryCommand.ts +++ b/clients/client-directory-service/commands/UnshareDirectoryCommand.ts @@ -28,6 +28,7 @@ export class UnshareDirectoryCommand extends $Command< UnshareDirectoryCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UnshareDirectoryCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/UpdateConditionalForwarderCommand.ts b/clients/client-directory-service/commands/UpdateConditionalForwarderCommand.ts index e95a5bf001556..0b4a860d25423 100644 --- a/clients/client-directory-service/commands/UpdateConditionalForwarderCommand.ts +++ b/clients/client-directory-service/commands/UpdateConditionalForwarderCommand.ts @@ -28,6 +28,7 @@ export class UpdateConditionalForwarderCommand extends $Command< UpdateConditionalForwarderCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConditionalForwarderCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/UpdateNumberOfDomainControllersCommand.ts b/clients/client-directory-service/commands/UpdateNumberOfDomainControllersCommand.ts index 49038ead9f781..afa648541c6a4 100644 --- a/clients/client-directory-service/commands/UpdateNumberOfDomainControllersCommand.ts +++ b/clients/client-directory-service/commands/UpdateNumberOfDomainControllersCommand.ts @@ -28,6 +28,7 @@ export class UpdateNumberOfDomainControllersCommand extends $Command< UpdateNumberOfDomainControllersCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateNumberOfDomainControllersCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/UpdateRadiusCommand.ts b/clients/client-directory-service/commands/UpdateRadiusCommand.ts index 8b570e971b7c6..dd3b966ca7f3a 100644 --- a/clients/client-directory-service/commands/UpdateRadiusCommand.ts +++ b/clients/client-directory-service/commands/UpdateRadiusCommand.ts @@ -28,6 +28,7 @@ export class UpdateRadiusCommand extends $Command< UpdateRadiusCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRadiusCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/UpdateTrustCommand.ts b/clients/client-directory-service/commands/UpdateTrustCommand.ts index af7d3da32f078..909d64d625d05 100644 --- a/clients/client-directory-service/commands/UpdateTrustCommand.ts +++ b/clients/client-directory-service/commands/UpdateTrustCommand.ts @@ -28,6 +28,7 @@ export class UpdateTrustCommand extends $Command< UpdateTrustCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTrustCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-directory-service/commands/VerifyTrustCommand.ts b/clients/client-directory-service/commands/VerifyTrustCommand.ts index 126cc6a265b86..79c81b19652e7 100644 --- a/clients/client-directory-service/commands/VerifyTrustCommand.ts +++ b/clients/client-directory-service/commands/VerifyTrustCommand.ts @@ -29,6 +29,7 @@ export class VerifyTrustCommand extends $Command< VerifyTrustCommandOutput, DirectoryServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class VerifyTrustCommand extends $Command< configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/CreateLifecyclePolicyCommand.ts b/clients/client-dlm/commands/CreateLifecyclePolicyCommand.ts index 3cbd11c4a22ec..9e5be282d5482 100644 --- a/clients/client-dlm/commands/CreateLifecyclePolicyCommand.ts +++ b/clients/client-dlm/commands/CreateLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class CreateLifecyclePolicyCommand extends $Command< CreateLifecyclePolicyCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLifecyclePolicyCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/DeleteLifecyclePolicyCommand.ts b/clients/client-dlm/commands/DeleteLifecyclePolicyCommand.ts index 23d4f076dff02..5f934bad002e6 100644 --- a/clients/client-dlm/commands/DeleteLifecyclePolicyCommand.ts +++ b/clients/client-dlm/commands/DeleteLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteLifecyclePolicyCommand extends $Command< DeleteLifecyclePolicyCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLifecyclePolicyCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/GetLifecyclePoliciesCommand.ts b/clients/client-dlm/commands/GetLifecyclePoliciesCommand.ts index 6e6dbf0c3d409..dd424b76fdc05 100644 --- a/clients/client-dlm/commands/GetLifecyclePoliciesCommand.ts +++ b/clients/client-dlm/commands/GetLifecyclePoliciesCommand.ts @@ -28,6 +28,7 @@ export class GetLifecyclePoliciesCommand extends $Command< GetLifecyclePoliciesCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLifecyclePoliciesCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/GetLifecyclePolicyCommand.ts b/clients/client-dlm/commands/GetLifecyclePolicyCommand.ts index a9e4b698b4671..b68e038662050 100644 --- a/clients/client-dlm/commands/GetLifecyclePolicyCommand.ts +++ b/clients/client-dlm/commands/GetLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetLifecyclePolicyCommand extends $Command< GetLifecyclePolicyCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLifecyclePolicyCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/ListTagsForResourceCommand.ts b/clients/client-dlm/commands/ListTagsForResourceCommand.ts index be2a715d62e92..ddaf20e62a5b5 100644 --- a/clients/client-dlm/commands/ListTagsForResourceCommand.ts +++ b/clients/client-dlm/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/TagResourceCommand.ts b/clients/client-dlm/commands/TagResourceCommand.ts index 0853eccc3246f..156abdce1fb98 100644 --- a/clients/client-dlm/commands/TagResourceCommand.ts +++ b/clients/client-dlm/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/UntagResourceCommand.ts b/clients/client-dlm/commands/UntagResourceCommand.ts index d33d1ee8bfca0..0ff175588e74b 100644 --- a/clients/client-dlm/commands/UntagResourceCommand.ts +++ b/clients/client-dlm/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dlm/commands/UpdateLifecyclePolicyCommand.ts b/clients/client-dlm/commands/UpdateLifecyclePolicyCommand.ts index ed1559090fa47..bd1283b6001e3 100644 --- a/clients/client-dlm/commands/UpdateLifecyclePolicyCommand.ts +++ b/clients/client-dlm/commands/UpdateLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class UpdateLifecyclePolicyCommand extends $Command< UpdateLifecyclePolicyCommandOutput, DLMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateLifecyclePolicyCommand extends $Command< configuration: DLMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/AddTagsToResourceCommand.ts b/clients/client-docdb/commands/AddTagsToResourceCommand.ts index efb4221c8a429..946788d5c115f 100644 --- a/clients/client-docdb/commands/AddTagsToResourceCommand.ts +++ b/clients/client-docdb/commands/AddTagsToResourceCommand.ts @@ -31,6 +31,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ApplyPendingMaintenanceActionCommand.ts b/clients/client-docdb/commands/ApplyPendingMaintenanceActionCommand.ts index 834a4f9358e35..27f3c407ec666 100644 --- a/clients/client-docdb/commands/ApplyPendingMaintenanceActionCommand.ts +++ b/clients/client-docdb/commands/ApplyPendingMaintenanceActionCommand.ts @@ -29,6 +29,7 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< ApplyPendingMaintenanceActionCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CopyDBClusterParameterGroupCommand.ts b/clients/client-docdb/commands/CopyDBClusterParameterGroupCommand.ts index 55ee9a405c6fd..634bad9686d79 100644 --- a/clients/client-docdb/commands/CopyDBClusterParameterGroupCommand.ts +++ b/clients/client-docdb/commands/CopyDBClusterParameterGroupCommand.ts @@ -28,6 +28,7 @@ export class CopyDBClusterParameterGroupCommand extends $Command< CopyDBClusterParameterGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyDBClusterParameterGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CopyDBClusterSnapshotCommand.ts b/clients/client-docdb/commands/CopyDBClusterSnapshotCommand.ts index 28dda39ad5137..fe4103b3dccc0 100644 --- a/clients/client-docdb/commands/CopyDBClusterSnapshotCommand.ts +++ b/clients/client-docdb/commands/CopyDBClusterSnapshotCommand.ts @@ -39,6 +39,7 @@ export class CopyDBClusterSnapshotCommand extends $Command< CopyDBClusterSnapshotCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CopyDBClusterSnapshotCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CreateDBClusterCommand.ts b/clients/client-docdb/commands/CreateDBClusterCommand.ts index 3a331eb929787..6a72d76682969 100644 --- a/clients/client-docdb/commands/CreateDBClusterCommand.ts +++ b/clients/client-docdb/commands/CreateDBClusterCommand.ts @@ -28,6 +28,7 @@ export class CreateDBClusterCommand extends $Command< CreateDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CreateDBClusterParameterGroupCommand.ts b/clients/client-docdb/commands/CreateDBClusterParameterGroupCommand.ts index 5e43e055e8034..d7def1c781101 100644 --- a/clients/client-docdb/commands/CreateDBClusterParameterGroupCommand.ts +++ b/clients/client-docdb/commands/CreateDBClusterParameterGroupCommand.ts @@ -46,6 +46,7 @@ export class CreateDBClusterParameterGroupCommand extends $Command< CreateDBClusterParameterGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreateDBClusterParameterGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CreateDBClusterSnapshotCommand.ts b/clients/client-docdb/commands/CreateDBClusterSnapshotCommand.ts index f777ba89e3294..03fb26e2f7733 100644 --- a/clients/client-docdb/commands/CreateDBClusterSnapshotCommand.ts +++ b/clients/client-docdb/commands/CreateDBClusterSnapshotCommand.ts @@ -28,6 +28,7 @@ export class CreateDBClusterSnapshotCommand extends $Command< CreateDBClusterSnapshotCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBClusterSnapshotCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CreateDBInstanceCommand.ts b/clients/client-docdb/commands/CreateDBInstanceCommand.ts index 4ba683c7bca40..87cc31bcf6b92 100644 --- a/clients/client-docdb/commands/CreateDBInstanceCommand.ts +++ b/clients/client-docdb/commands/CreateDBInstanceCommand.ts @@ -28,6 +28,7 @@ export class CreateDBInstanceCommand extends $Command< CreateDBInstanceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBInstanceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/CreateDBSubnetGroupCommand.ts b/clients/client-docdb/commands/CreateDBSubnetGroupCommand.ts index cb934bfefc39d..793d0bd4a7f96 100644 --- a/clients/client-docdb/commands/CreateDBSubnetGroupCommand.ts +++ b/clients/client-docdb/commands/CreateDBSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateDBSubnetGroupCommand extends $Command< CreateDBSubnetGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDBSubnetGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DeleteDBClusterCommand.ts b/clients/client-docdb/commands/DeleteDBClusterCommand.ts index ddaf138bf4884..8eb839eecba7c 100644 --- a/clients/client-docdb/commands/DeleteDBClusterCommand.ts +++ b/clients/client-docdb/commands/DeleteDBClusterCommand.ts @@ -31,6 +31,7 @@ export class DeleteDBClusterCommand extends $Command< DeleteDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DeleteDBClusterParameterGroupCommand.ts b/clients/client-docdb/commands/DeleteDBClusterParameterGroupCommand.ts index e664e8b0bf9a0..4125aeb68d3a7 100644 --- a/clients/client-docdb/commands/DeleteDBClusterParameterGroupCommand.ts +++ b/clients/client-docdb/commands/DeleteDBClusterParameterGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< DeleteDBClusterParameterGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DeleteDBClusterSnapshotCommand.ts b/clients/client-docdb/commands/DeleteDBClusterSnapshotCommand.ts index 8140ffaada8e3..2b40b92414841 100644 --- a/clients/client-docdb/commands/DeleteDBClusterSnapshotCommand.ts +++ b/clients/client-docdb/commands/DeleteDBClusterSnapshotCommand.ts @@ -33,6 +33,7 @@ export class DeleteDBClusterSnapshotCommand extends $Command< DeleteDBClusterSnapshotCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteDBClusterSnapshotCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DeleteDBInstanceCommand.ts b/clients/client-docdb/commands/DeleteDBInstanceCommand.ts index 695f47cfef26a..231da9b6a6ded 100644 --- a/clients/client-docdb/commands/DeleteDBInstanceCommand.ts +++ b/clients/client-docdb/commands/DeleteDBInstanceCommand.ts @@ -29,6 +29,7 @@ export class DeleteDBInstanceCommand extends $Command< DeleteDBInstanceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDBInstanceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DeleteDBSubnetGroupCommand.ts b/clients/client-docdb/commands/DeleteDBSubnetGroupCommand.ts index c2682822c0566..0ff5bfc05c495 100644 --- a/clients/client-docdb/commands/DeleteDBSubnetGroupCommand.ts +++ b/clients/client-docdb/commands/DeleteDBSubnetGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteDBSubnetGroupCommand extends $Command< DeleteDBSubnetGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteDBSubnetGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeCertificatesCommand.ts b/clients/client-docdb/commands/DescribeCertificatesCommand.ts index 200acab4ae256..9bdca05b5e4cb 100644 --- a/clients/client-docdb/commands/DescribeCertificatesCommand.ts +++ b/clients/client-docdb/commands/DescribeCertificatesCommand.ts @@ -29,6 +29,7 @@ export class DescribeCertificatesCommand extends $Command< DescribeCertificatesCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCertificatesCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBClusterParameterGroupsCommand.ts b/clients/client-docdb/commands/DescribeDBClusterParameterGroupsCommand.ts index 3852f2373c085..8c9ad878bed7c 100644 --- a/clients/client-docdb/commands/DescribeDBClusterParameterGroupsCommand.ts +++ b/clients/client-docdb/commands/DescribeDBClusterParameterGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< DescribeDBClusterParameterGroupsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBClusterParametersCommand.ts b/clients/client-docdb/commands/DescribeDBClusterParametersCommand.ts index 8d666685b522d..23da796833140 100644 --- a/clients/client-docdb/commands/DescribeDBClusterParametersCommand.ts +++ b/clients/client-docdb/commands/DescribeDBClusterParametersCommand.ts @@ -29,6 +29,7 @@ export class DescribeDBClusterParametersCommand extends $Command< DescribeDBClusterParametersCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDBClusterParametersCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBClusterSnapshotAttributesCommand.ts b/clients/client-docdb/commands/DescribeDBClusterSnapshotAttributesCommand.ts index f74c9013660c6..eae9b4c2a37a1 100644 --- a/clients/client-docdb/commands/DescribeDBClusterSnapshotAttributesCommand.ts +++ b/clients/client-docdb/commands/DescribeDBClusterSnapshotAttributesCommand.ts @@ -39,6 +39,7 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< DescribeDBClusterSnapshotAttributesCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBClusterSnapshotsCommand.ts b/clients/client-docdb/commands/DescribeDBClusterSnapshotsCommand.ts index 774f8ea852bf9..07a19a2797128 100644 --- a/clients/client-docdb/commands/DescribeDBClusterSnapshotsCommand.ts +++ b/clients/client-docdb/commands/DescribeDBClusterSnapshotsCommand.ts @@ -29,6 +29,7 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< DescribeDBClusterSnapshotsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBClustersCommand.ts b/clients/client-docdb/commands/DescribeDBClustersCommand.ts index 654920483a92c..ca89f981fe13e 100644 --- a/clients/client-docdb/commands/DescribeDBClustersCommand.ts +++ b/clients/client-docdb/commands/DescribeDBClustersCommand.ts @@ -33,6 +33,7 @@ export class DescribeDBClustersCommand extends $Command< DescribeDBClustersCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDBClustersCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBEngineVersionsCommand.ts b/clients/client-docdb/commands/DescribeDBEngineVersionsCommand.ts index 245f5685832d9..86a1f85a76e23 100644 --- a/clients/client-docdb/commands/DescribeDBEngineVersionsCommand.ts +++ b/clients/client-docdb/commands/DescribeDBEngineVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBEngineVersionsCommand extends $Command< DescribeDBEngineVersionsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBEngineVersionsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBInstancesCommand.ts b/clients/client-docdb/commands/DescribeDBInstancesCommand.ts index 844bc6c5bfffa..b6225093d89c8 100644 --- a/clients/client-docdb/commands/DescribeDBInstancesCommand.ts +++ b/clients/client-docdb/commands/DescribeDBInstancesCommand.ts @@ -29,6 +29,7 @@ export class DescribeDBInstancesCommand extends $Command< DescribeDBInstancesCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDBInstancesCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeDBSubnetGroupsCommand.ts b/clients/client-docdb/commands/DescribeDBSubnetGroupsCommand.ts index 1fd022cf3d956..102f54f63e470 100644 --- a/clients/client-docdb/commands/DescribeDBSubnetGroupsCommand.ts +++ b/clients/client-docdb/commands/DescribeDBSubnetGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDBSubnetGroupsCommand extends $Command< DescribeDBSubnetGroupsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDBSubnetGroupsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeEngineDefaultClusterParametersCommand.ts b/clients/client-docdb/commands/DescribeEngineDefaultClusterParametersCommand.ts index cc7a4c3a91cf8..cf01bc9b09f64 100644 --- a/clients/client-docdb/commands/DescribeEngineDefaultClusterParametersCommand.ts +++ b/clients/client-docdb/commands/DescribeEngineDefaultClusterParametersCommand.ts @@ -33,6 +33,7 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< DescribeEngineDefaultClusterParametersCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeEventCategoriesCommand.ts b/clients/client-docdb/commands/DescribeEventCategoriesCommand.ts index 614bf2eecabc1..fa232ef21228d 100644 --- a/clients/client-docdb/commands/DescribeEventCategoriesCommand.ts +++ b/clients/client-docdb/commands/DescribeEventCategoriesCommand.ts @@ -29,6 +29,7 @@ export class DescribeEventCategoriesCommand extends $Command< DescribeEventCategoriesCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEventCategoriesCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeEventsCommand.ts b/clients/client-docdb/commands/DescribeEventsCommand.ts index 62a4f5796ea66..75a587d94f00c 100644 --- a/clients/client-docdb/commands/DescribeEventsCommand.ts +++ b/clients/client-docdb/commands/DescribeEventsCommand.ts @@ -31,6 +31,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeEventsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribeOrderableDBInstanceOptionsCommand.ts b/clients/client-docdb/commands/DescribeOrderableDBInstanceOptionsCommand.ts index c761e91983851..082db227ea597 100644 --- a/clients/client-docdb/commands/DescribeOrderableDBInstanceOptionsCommand.ts +++ b/clients/client-docdb/commands/DescribeOrderableDBInstanceOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< DescribeOrderableDBInstanceOptionsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/DescribePendingMaintenanceActionsCommand.ts b/clients/client-docdb/commands/DescribePendingMaintenanceActionsCommand.ts index 3d14cdbfc37ab..a97e1ca83c5c1 100644 --- a/clients/client-docdb/commands/DescribePendingMaintenanceActionsCommand.ts +++ b/clients/client-docdb/commands/DescribePendingMaintenanceActionsCommand.ts @@ -29,6 +29,7 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< DescribePendingMaintenanceActionsCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/FailoverDBClusterCommand.ts b/clients/client-docdb/commands/FailoverDBClusterCommand.ts index 31d054b919c4d..ee8ae005c4c9e 100644 --- a/clients/client-docdb/commands/FailoverDBClusterCommand.ts +++ b/clients/client-docdb/commands/FailoverDBClusterCommand.ts @@ -34,6 +34,7 @@ export class FailoverDBClusterCommand extends $Command< FailoverDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class FailoverDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ListTagsForResourceCommand.ts b/clients/client-docdb/commands/ListTagsForResourceCommand.ts index ceb27852d96a6..99be025827ee8 100644 --- a/clients/client-docdb/commands/ListTagsForResourceCommand.ts +++ b/clients/client-docdb/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ModifyDBClusterCommand.ts b/clients/client-docdb/commands/ModifyDBClusterCommand.ts index 2c8a4dde7395f..18102ac2e2fdb 100644 --- a/clients/client-docdb/commands/ModifyDBClusterCommand.ts +++ b/clients/client-docdb/commands/ModifyDBClusterCommand.ts @@ -30,6 +30,7 @@ export class ModifyDBClusterCommand extends $Command< ModifyDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ModifyDBClusterParameterGroupCommand.ts b/clients/client-docdb/commands/ModifyDBClusterParameterGroupCommand.ts index 5efd767bbcaaa..867c3f48b582a 100644 --- a/clients/client-docdb/commands/ModifyDBClusterParameterGroupCommand.ts +++ b/clients/client-docdb/commands/ModifyDBClusterParameterGroupCommand.ts @@ -46,6 +46,7 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< ModifyDBClusterParameterGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ModifyDBClusterSnapshotAttributeCommand.ts b/clients/client-docdb/commands/ModifyDBClusterSnapshotAttributeCommand.ts index 9369ef17298ca..8365c894e9d27 100644 --- a/clients/client-docdb/commands/ModifyDBClusterSnapshotAttributeCommand.ts +++ b/clients/client-docdb/commands/ModifyDBClusterSnapshotAttributeCommand.ts @@ -40,6 +40,7 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< ModifyDBClusterSnapshotAttributeCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ModifyDBInstanceCommand.ts b/clients/client-docdb/commands/ModifyDBInstanceCommand.ts index c09f72d8a7d42..912b4c1a99e18 100644 --- a/clients/client-docdb/commands/ModifyDBInstanceCommand.ts +++ b/clients/client-docdb/commands/ModifyDBInstanceCommand.ts @@ -29,6 +29,7 @@ export class ModifyDBInstanceCommand extends $Command< ModifyDBInstanceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyDBInstanceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ModifyDBSubnetGroupCommand.ts b/clients/client-docdb/commands/ModifyDBSubnetGroupCommand.ts index ea7d4ee0b09a2..f02cd9cccc77e 100644 --- a/clients/client-docdb/commands/ModifyDBSubnetGroupCommand.ts +++ b/clients/client-docdb/commands/ModifyDBSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class ModifyDBSubnetGroupCommand extends $Command< ModifyDBSubnetGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyDBSubnetGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/RebootDBInstanceCommand.ts b/clients/client-docdb/commands/RebootDBInstanceCommand.ts index 13ca7fb620e9c..f2c3839743f40 100644 --- a/clients/client-docdb/commands/RebootDBInstanceCommand.ts +++ b/clients/client-docdb/commands/RebootDBInstanceCommand.ts @@ -34,6 +34,7 @@ export class RebootDBInstanceCommand extends $Command< RebootDBInstanceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RebootDBInstanceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/RemoveTagsFromResourceCommand.ts b/clients/client-docdb/commands/RemoveTagsFromResourceCommand.ts index f070a8645b1ee..50fc5bd9d15ef 100644 --- a/clients/client-docdb/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-docdb/commands/RemoveTagsFromResourceCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/ResetDBClusterParameterGroupCommand.ts b/clients/client-docdb/commands/ResetDBClusterParameterGroupCommand.ts index 0e4d33bb7fd7f..425e4db7fe5d9 100644 --- a/clients/client-docdb/commands/ResetDBClusterParameterGroupCommand.ts +++ b/clients/client-docdb/commands/ResetDBClusterParameterGroupCommand.ts @@ -35,6 +35,7 @@ export class ResetDBClusterParameterGroupCommand extends $Command< ResetDBClusterParameterGroupCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ResetDBClusterParameterGroupCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/RestoreDBClusterFromSnapshotCommand.ts b/clients/client-docdb/commands/RestoreDBClusterFromSnapshotCommand.ts index 216c30df51fdb..329e9eb562ac8 100644 --- a/clients/client-docdb/commands/RestoreDBClusterFromSnapshotCommand.ts +++ b/clients/client-docdb/commands/RestoreDBClusterFromSnapshotCommand.ts @@ -34,6 +34,7 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< RestoreDBClusterFromSnapshotCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/RestoreDBClusterToPointInTimeCommand.ts b/clients/client-docdb/commands/RestoreDBClusterToPointInTimeCommand.ts index 09e3740e5261e..d5e1e708fc6df 100644 --- a/clients/client-docdb/commands/RestoreDBClusterToPointInTimeCommand.ts +++ b/clients/client-docdb/commands/RestoreDBClusterToPointInTimeCommand.ts @@ -32,6 +32,7 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< RestoreDBClusterToPointInTimeCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/StartDBClusterCommand.ts b/clients/client-docdb/commands/StartDBClusterCommand.ts index 4a4ae38b5a1b1..59edac51b9077 100644 --- a/clients/client-docdb/commands/StartDBClusterCommand.ts +++ b/clients/client-docdb/commands/StartDBClusterCommand.ts @@ -30,6 +30,7 @@ export class StartDBClusterCommand extends $Command< StartDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-docdb/commands/StopDBClusterCommand.ts b/clients/client-docdb/commands/StopDBClusterCommand.ts index ff51076fd96e4..7a86b757e2260 100644 --- a/clients/client-docdb/commands/StopDBClusterCommand.ts +++ b/clients/client-docdb/commands/StopDBClusterCommand.ts @@ -31,6 +31,7 @@ export class StopDBClusterCommand extends $Command< StopDBClusterCommandOutput, DocDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StopDBClusterCommand extends $Command< configuration: DocDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb-streams/commands/DescribeStreamCommand.ts b/clients/client-dynamodb-streams/commands/DescribeStreamCommand.ts index 3ea52a03f2f38..7668269930ced 100644 --- a/clients/client-dynamodb-streams/commands/DescribeStreamCommand.ts +++ b/clients/client-dynamodb-streams/commands/DescribeStreamCommand.ts @@ -36,6 +36,7 @@ export class DescribeStreamCommand extends $Command< DescribeStreamCommandOutput, DynamoDBStreamsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeStreamCommand extends $Command< configuration: DynamoDBStreamsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb-streams/commands/GetRecordsCommand.ts b/clients/client-dynamodb-streams/commands/GetRecordsCommand.ts index af6741b826ec5..645cfc291ce8d 100644 --- a/clients/client-dynamodb-streams/commands/GetRecordsCommand.ts +++ b/clients/client-dynamodb-streams/commands/GetRecordsCommand.ts @@ -38,6 +38,7 @@ export class GetRecordsCommand extends $Command< GetRecordsCommandOutput, DynamoDBStreamsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetRecordsCommand extends $Command< configuration: DynamoDBStreamsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb-streams/commands/GetShardIteratorCommand.ts b/clients/client-dynamodb-streams/commands/GetShardIteratorCommand.ts index 7942dea7de447..537221beaefe4 100644 --- a/clients/client-dynamodb-streams/commands/GetShardIteratorCommand.ts +++ b/clients/client-dynamodb-streams/commands/GetShardIteratorCommand.ts @@ -35,6 +35,7 @@ export class GetShardIteratorCommand extends $Command< GetShardIteratorCommandOutput, DynamoDBStreamsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetShardIteratorCommand extends $Command< configuration: DynamoDBStreamsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb-streams/commands/ListStreamsCommand.ts b/clients/client-dynamodb-streams/commands/ListStreamsCommand.ts index 19f155e36b255..1bab9c18713d0 100644 --- a/clients/client-dynamodb-streams/commands/ListStreamsCommand.ts +++ b/clients/client-dynamodb-streams/commands/ListStreamsCommand.ts @@ -33,6 +33,7 @@ export class ListStreamsCommand extends $Command< ListStreamsCommandOutput, DynamoDBStreamsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListStreamsCommand extends $Command< configuration: DynamoDBStreamsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/BatchExecuteStatementCommand.ts b/clients/client-dynamodb/commands/BatchExecuteStatementCommand.ts index bdfd97993da42..3863193ec06fe 100644 --- a/clients/client-dynamodb/commands/BatchExecuteStatementCommand.ts +++ b/clients/client-dynamodb/commands/BatchExecuteStatementCommand.ts @@ -30,6 +30,7 @@ export class BatchExecuteStatementCommand extends $Command< BatchExecuteStatementCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchExecuteStatementCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/BatchGetItemCommand.ts b/clients/client-dynamodb/commands/BatchGetItemCommand.ts index 7fcba35ceeb63..01fa16db54ba8 100644 --- a/clients/client-dynamodb/commands/BatchGetItemCommand.ts +++ b/clients/client-dynamodb/commands/BatchGetItemCommand.ts @@ -73,6 +73,7 @@ export class BatchGetItemCommand extends $Command< BatchGetItemCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,7 +91,10 @@ export class BatchGetItemCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/BatchWriteItemCommand.ts b/clients/client-dynamodb/commands/BatchWriteItemCommand.ts index b37b282701086..08663b769fe87 100644 --- a/clients/client-dynamodb/commands/BatchWriteItemCommand.ts +++ b/clients/client-dynamodb/commands/BatchWriteItemCommand.ts @@ -102,6 +102,7 @@ export class BatchWriteItemCommand extends $Command< BatchWriteItemCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -119,7 +120,10 @@ export class BatchWriteItemCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/CreateBackupCommand.ts b/clients/client-dynamodb/commands/CreateBackupCommand.ts index c8701af25f220..813b00eb25b3c 100644 --- a/clients/client-dynamodb/commands/CreateBackupCommand.ts +++ b/clients/client-dynamodb/commands/CreateBackupCommand.ts @@ -57,6 +57,7 @@ export class CreateBackupCommand extends $Command< CreateBackupCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateBackupCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/CreateGlobalTableCommand.ts b/clients/client-dynamodb/commands/CreateGlobalTableCommand.ts index 7e33ecd89123a..eb60321dc0108 100644 --- a/clients/client-dynamodb/commands/CreateGlobalTableCommand.ts +++ b/clients/client-dynamodb/commands/CreateGlobalTableCommand.ts @@ -95,6 +95,7 @@ export class CreateGlobalTableCommand extends $Command< CreateGlobalTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -112,7 +113,10 @@ export class CreateGlobalTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/CreateTableCommand.ts b/clients/client-dynamodb/commands/CreateTableCommand.ts index 70305e0fbfda7..aadae53f0c4ec 100644 --- a/clients/client-dynamodb/commands/CreateTableCommand.ts +++ b/clients/client-dynamodb/commands/CreateTableCommand.ts @@ -40,6 +40,7 @@ export class CreateTableCommand extends $Command< CreateTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DeleteBackupCommand.ts b/clients/client-dynamodb/commands/DeleteBackupCommand.ts index 31fbc3a74b0fd..07ae986c04b4e 100644 --- a/clients/client-dynamodb/commands/DeleteBackupCommand.ts +++ b/clients/client-dynamodb/commands/DeleteBackupCommand.ts @@ -29,6 +29,7 @@ export class DeleteBackupCommand extends $Command< DeleteBackupCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteBackupCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DeleteItemCommand.ts b/clients/client-dynamodb/commands/DeleteItemCommand.ts index 1e0587b058693..132ee49a889b5 100644 --- a/clients/client-dynamodb/commands/DeleteItemCommand.ts +++ b/clients/client-dynamodb/commands/DeleteItemCommand.ts @@ -33,6 +33,7 @@ export class DeleteItemCommand extends $Command< DeleteItemCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteItemCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DeleteTableCommand.ts b/clients/client-dynamodb/commands/DeleteTableCommand.ts index 5dfd9059a32cc..758bf5c47f5ab 100644 --- a/clients/client-dynamodb/commands/DeleteTableCommand.ts +++ b/clients/client-dynamodb/commands/DeleteTableCommand.ts @@ -44,6 +44,7 @@ export class DeleteTableCommand extends $Command< DeleteTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DeleteTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeBackupCommand.ts b/clients/client-dynamodb/commands/DescribeBackupCommand.ts index e38240c495147..d00a8b05c25c4 100644 --- a/clients/client-dynamodb/commands/DescribeBackupCommand.ts +++ b/clients/client-dynamodb/commands/DescribeBackupCommand.ts @@ -29,6 +29,7 @@ export class DescribeBackupCommand extends $Command< DescribeBackupCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeBackupCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeContinuousBackupsCommand.ts b/clients/client-dynamodb/commands/DescribeContinuousBackupsCommand.ts index fa320b292598b..323955c24611c 100644 --- a/clients/client-dynamodb/commands/DescribeContinuousBackupsCommand.ts +++ b/clients/client-dynamodb/commands/DescribeContinuousBackupsCommand.ts @@ -38,6 +38,7 @@ export class DescribeContinuousBackupsCommand extends $Command< DescribeContinuousBackupsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeContinuousBackupsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeContributorInsightsCommand.ts b/clients/client-dynamodb/commands/DescribeContributorInsightsCommand.ts index ebf687597933d..7d02237461dd5 100644 --- a/clients/client-dynamodb/commands/DescribeContributorInsightsCommand.ts +++ b/clients/client-dynamodb/commands/DescribeContributorInsightsCommand.ts @@ -28,6 +28,7 @@ export class DescribeContributorInsightsCommand extends $Command< DescribeContributorInsightsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeContributorInsightsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeEndpointsCommand.ts b/clients/client-dynamodb/commands/DescribeEndpointsCommand.ts index 10d275db60f90..83e53b45aafe3 100644 --- a/clients/client-dynamodb/commands/DescribeEndpointsCommand.ts +++ b/clients/client-dynamodb/commands/DescribeEndpointsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEndpointsCommand extends $Command< DescribeEndpointsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEndpointsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeExportCommand.ts b/clients/client-dynamodb/commands/DescribeExportCommand.ts index 7d80b34920bdb..07aea03833cd6 100644 --- a/clients/client-dynamodb/commands/DescribeExportCommand.ts +++ b/clients/client-dynamodb/commands/DescribeExportCommand.ts @@ -28,6 +28,7 @@ export class DescribeExportCommand extends $Command< DescribeExportCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExportCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeGlobalTableCommand.ts b/clients/client-dynamodb/commands/DescribeGlobalTableCommand.ts index 6f160fc2ea06d..bf7b36a5a2d78 100644 --- a/clients/client-dynamodb/commands/DescribeGlobalTableCommand.ts +++ b/clients/client-dynamodb/commands/DescribeGlobalTableCommand.ts @@ -32,6 +32,7 @@ export class DescribeGlobalTableCommand extends $Command< DescribeGlobalTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeGlobalTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeGlobalTableSettingsCommand.ts b/clients/client-dynamodb/commands/DescribeGlobalTableSettingsCommand.ts index 270b271a16b25..5ae5aff77c7be 100644 --- a/clients/client-dynamodb/commands/DescribeGlobalTableSettingsCommand.ts +++ b/clients/client-dynamodb/commands/DescribeGlobalTableSettingsCommand.ts @@ -31,6 +31,7 @@ export class DescribeGlobalTableSettingsCommand extends $Command< DescribeGlobalTableSettingsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeGlobalTableSettingsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeKinesisStreamingDestinationCommand.ts b/clients/client-dynamodb/commands/DescribeKinesisStreamingDestinationCommand.ts index a6eb3e3cdc838..9861895c17103 100644 --- a/clients/client-dynamodb/commands/DescribeKinesisStreamingDestinationCommand.ts +++ b/clients/client-dynamodb/commands/DescribeKinesisStreamingDestinationCommand.ts @@ -32,6 +32,7 @@ export class DescribeKinesisStreamingDestinationCommand extends $Command< DescribeKinesisStreamingDestinationCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeKinesisStreamingDestinationCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeLimitsCommand.ts b/clients/client-dynamodb/commands/DescribeLimitsCommand.ts index 75748cddf9ad8..fa18c54464612 100644 --- a/clients/client-dynamodb/commands/DescribeLimitsCommand.ts +++ b/clients/client-dynamodb/commands/DescribeLimitsCommand.ts @@ -91,6 +91,7 @@ export class DescribeLimitsCommand extends $Command< DescribeLimitsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class DescribeLimitsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeTableCommand.ts b/clients/client-dynamodb/commands/DescribeTableCommand.ts index 219b8f08795c2..89a3ba1dbb3bd 100644 --- a/clients/client-dynamodb/commands/DescribeTableCommand.ts +++ b/clients/client-dynamodb/commands/DescribeTableCommand.ts @@ -34,6 +34,7 @@ export class DescribeTableCommand extends $Command< DescribeTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeTableReplicaAutoScalingCommand.ts b/clients/client-dynamodb/commands/DescribeTableReplicaAutoScalingCommand.ts index 1693f71000ce6..4c9348dd00388 100644 --- a/clients/client-dynamodb/commands/DescribeTableReplicaAutoScalingCommand.ts +++ b/clients/client-dynamodb/commands/DescribeTableReplicaAutoScalingCommand.ts @@ -31,6 +31,7 @@ export class DescribeTableReplicaAutoScalingCommand extends $Command< DescribeTableReplicaAutoScalingCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTableReplicaAutoScalingCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DescribeTimeToLiveCommand.ts b/clients/client-dynamodb/commands/DescribeTimeToLiveCommand.ts index 2ebb683d9dc40..0c8f68986a060 100644 --- a/clients/client-dynamodb/commands/DescribeTimeToLiveCommand.ts +++ b/clients/client-dynamodb/commands/DescribeTimeToLiveCommand.ts @@ -28,6 +28,7 @@ export class DescribeTimeToLiveCommand extends $Command< DescribeTimeToLiveCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTimeToLiveCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/DisableKinesisStreamingDestinationCommand.ts b/clients/client-dynamodb/commands/DisableKinesisStreamingDestinationCommand.ts index 2c62706b19bd1..f413028160dff 100644 --- a/clients/client-dynamodb/commands/DisableKinesisStreamingDestinationCommand.ts +++ b/clients/client-dynamodb/commands/DisableKinesisStreamingDestinationCommand.ts @@ -29,6 +29,7 @@ export class DisableKinesisStreamingDestinationCommand extends $Command< DisableKinesisStreamingDestinationCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableKinesisStreamingDestinationCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/EnableKinesisStreamingDestinationCommand.ts b/clients/client-dynamodb/commands/EnableKinesisStreamingDestinationCommand.ts index 4f0267c568f0c..089078bc388b9 100644 --- a/clients/client-dynamodb/commands/EnableKinesisStreamingDestinationCommand.ts +++ b/clients/client-dynamodb/commands/EnableKinesisStreamingDestinationCommand.ts @@ -31,6 +31,7 @@ export class EnableKinesisStreamingDestinationCommand extends $Command< EnableKinesisStreamingDestinationCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EnableKinesisStreamingDestinationCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ExecuteStatementCommand.ts b/clients/client-dynamodb/commands/ExecuteStatementCommand.ts index 4abf824cf0019..852c912708e40 100644 --- a/clients/client-dynamodb/commands/ExecuteStatementCommand.ts +++ b/clients/client-dynamodb/commands/ExecuteStatementCommand.ts @@ -30,6 +30,7 @@ export class ExecuteStatementCommand extends $Command< ExecuteStatementCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ExecuteStatementCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ExecuteTransactionCommand.ts b/clients/client-dynamodb/commands/ExecuteTransactionCommand.ts index cb7ec7ea31f55..f776ce386bb81 100644 --- a/clients/client-dynamodb/commands/ExecuteTransactionCommand.ts +++ b/clients/client-dynamodb/commands/ExecuteTransactionCommand.ts @@ -30,6 +30,7 @@ export class ExecuteTransactionCommand extends $Command< ExecuteTransactionCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ExecuteTransactionCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ExportTableToPointInTimeCommand.ts b/clients/client-dynamodb/commands/ExportTableToPointInTimeCommand.ts index ebb96c5a67d59..ba573828a2fbf 100644 --- a/clients/client-dynamodb/commands/ExportTableToPointInTimeCommand.ts +++ b/clients/client-dynamodb/commands/ExportTableToPointInTimeCommand.ts @@ -30,6 +30,7 @@ export class ExportTableToPointInTimeCommand extends $Command< ExportTableToPointInTimeCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ExportTableToPointInTimeCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/GetItemCommand.ts b/clients/client-dynamodb/commands/GetItemCommand.ts index 3d32a836af96a..2ca498349cb09 100644 --- a/clients/client-dynamodb/commands/GetItemCommand.ts +++ b/clients/client-dynamodb/commands/GetItemCommand.ts @@ -27,6 +27,7 @@ export type GetItemCommandOutput = GetItemOutput & __MetadataBearer; * returns the last updated value.

*/ export class GetItemCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class GetItemCommand 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-dynamodb/commands/ListBackupsCommand.ts b/clients/client-dynamodb/commands/ListBackupsCommand.ts index 36b85a86142f7..e155fa3a28614 100644 --- a/clients/client-dynamodb/commands/ListBackupsCommand.ts +++ b/clients/client-dynamodb/commands/ListBackupsCommand.ts @@ -34,6 +34,7 @@ export class ListBackupsCommand extends $Command< ListBackupsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListBackupsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ListContributorInsightsCommand.ts b/clients/client-dynamodb/commands/ListContributorInsightsCommand.ts index 3c7b49e6ef380..8e2eb5eb64656 100644 --- a/clients/client-dynamodb/commands/ListContributorInsightsCommand.ts +++ b/clients/client-dynamodb/commands/ListContributorInsightsCommand.ts @@ -28,6 +28,7 @@ export class ListContributorInsightsCommand extends $Command< ListContributorInsightsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListContributorInsightsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ListExportsCommand.ts b/clients/client-dynamodb/commands/ListExportsCommand.ts index d52255c2ce653..3242f370ee16e 100644 --- a/clients/client-dynamodb/commands/ListExportsCommand.ts +++ b/clients/client-dynamodb/commands/ListExportsCommand.ts @@ -28,6 +28,7 @@ export class ListExportsCommand extends $Command< ListExportsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListExportsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ListGlobalTablesCommand.ts b/clients/client-dynamodb/commands/ListGlobalTablesCommand.ts index 049aece2a3b40..59cd9b7bd22c8 100644 --- a/clients/client-dynamodb/commands/ListGlobalTablesCommand.ts +++ b/clients/client-dynamodb/commands/ListGlobalTablesCommand.ts @@ -31,6 +31,7 @@ export class ListGlobalTablesCommand extends $Command< ListGlobalTablesCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListGlobalTablesCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ListTablesCommand.ts b/clients/client-dynamodb/commands/ListTablesCommand.ts index 333cc4f0d0a37..7a004be6fba00 100644 --- a/clients/client-dynamodb/commands/ListTablesCommand.ts +++ b/clients/client-dynamodb/commands/ListTablesCommand.ts @@ -30,6 +30,7 @@ export class ListTablesCommand extends $Command< ListTablesCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTablesCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ListTagsOfResourceCommand.ts b/clients/client-dynamodb/commands/ListTagsOfResourceCommand.ts index b9d4820261f74..c8ae96dae5081 100644 --- a/clients/client-dynamodb/commands/ListTagsOfResourceCommand.ts +++ b/clients/client-dynamodb/commands/ListTagsOfResourceCommand.ts @@ -31,6 +31,7 @@ export class ListTagsOfResourceCommand extends $Command< ListTagsOfResourceCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListTagsOfResourceCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/PutItemCommand.ts b/clients/client-dynamodb/commands/PutItemCommand.ts index 1590d8b4c4495..1b96f28dc8b2c 100644 --- a/clients/client-dynamodb/commands/PutItemCommand.ts +++ b/clients/client-dynamodb/commands/PutItemCommand.ts @@ -88,6 +88,7 @@ export type PutItemCommandOutput = PutItemOutput & __MetadataBearer; *

For more information about PutItem, see Working with Items in the Amazon DynamoDB Developer Guide.

*/ export class PutItemCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -105,7 +106,10 @@ export class PutItemCommand 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-dynamodb/commands/QueryCommand.ts b/clients/client-dynamodb/commands/QueryCommand.ts index cb983c4be1725..b285512c5e160 100644 --- a/clients/client-dynamodb/commands/QueryCommand.ts +++ b/clients/client-dynamodb/commands/QueryCommand.ts @@ -76,6 +76,7 @@ export type QueryCommandOutput = QueryOutput & __MetadataBearer; * secondary index.

*/ export class QueryCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -93,7 +94,10 @@ export class QueryCommand 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-dynamodb/commands/RestoreTableFromBackupCommand.ts b/clients/client-dynamodb/commands/RestoreTableFromBackupCommand.ts index efe9d69398777..b8e7ea10a1cf1 100644 --- a/clients/client-dynamodb/commands/RestoreTableFromBackupCommand.ts +++ b/clients/client-dynamodb/commands/RestoreTableFromBackupCommand.ts @@ -52,6 +52,7 @@ export class RestoreTableFromBackupCommand extends $Command< RestoreTableFromBackupCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class RestoreTableFromBackupCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/RestoreTableToPointInTimeCommand.ts b/clients/client-dynamodb/commands/RestoreTableToPointInTimeCommand.ts index bb446152f2a2a..777010fa2affb 100644 --- a/clients/client-dynamodb/commands/RestoreTableToPointInTimeCommand.ts +++ b/clients/client-dynamodb/commands/RestoreTableToPointInTimeCommand.ts @@ -83,6 +83,7 @@ export class RestoreTableToPointInTimeCommand extends $Command< RestoreTableToPointInTimeCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -100,7 +101,10 @@ export class RestoreTableToPointInTimeCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/ScanCommand.ts b/clients/client-dynamodb/commands/ScanCommand.ts index 557eb04bf2fb1..ab3a3a61faaa9 100644 --- a/clients/client-dynamodb/commands/ScanCommand.ts +++ b/clients/client-dynamodb/commands/ScanCommand.ts @@ -45,6 +45,7 @@ export type ScanCommandOutput = ScanOutput & __MetadataBearer; * parameter to true.

*/ export class ScanCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class ScanCommand 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-dynamodb/commands/TagResourceCommand.ts b/clients/client-dynamodb/commands/TagResourceCommand.ts index d9332672cb8df..fc3e24dae1f79 100644 --- a/clients/client-dynamodb/commands/TagResourceCommand.ts +++ b/clients/client-dynamodb/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/TransactGetItemsCommand.ts b/clients/client-dynamodb/commands/TransactGetItemsCommand.ts index eb349a53e5759..61b9a5047a49a 100644 --- a/clients/client-dynamodb/commands/TransactGetItemsCommand.ts +++ b/clients/client-dynamodb/commands/TransactGetItemsCommand.ts @@ -53,6 +53,7 @@ export class TransactGetItemsCommand extends $Command< TransactGetItemsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class TransactGetItemsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/TransactWriteItemsCommand.ts b/clients/client-dynamodb/commands/TransactWriteItemsCommand.ts index 78cdfeddf2c28..2ab93799d9a54 100644 --- a/clients/client-dynamodb/commands/TransactWriteItemsCommand.ts +++ b/clients/client-dynamodb/commands/TransactWriteItemsCommand.ts @@ -101,6 +101,7 @@ export class TransactWriteItemsCommand extends $Command< TransactWriteItemsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -118,7 +119,10 @@ export class TransactWriteItemsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UntagResourceCommand.ts b/clients/client-dynamodb/commands/UntagResourceCommand.ts index 4b4eef616edc0..b425358f4c18c 100644 --- a/clients/client-dynamodb/commands/UntagResourceCommand.ts +++ b/clients/client-dynamodb/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateContinuousBackupsCommand.ts b/clients/client-dynamodb/commands/UpdateContinuousBackupsCommand.ts index 4d77b1f87c6c5..7f4926a8ece25 100644 --- a/clients/client-dynamodb/commands/UpdateContinuousBackupsCommand.ts +++ b/clients/client-dynamodb/commands/UpdateContinuousBackupsCommand.ts @@ -39,6 +39,7 @@ export class UpdateContinuousBackupsCommand extends $Command< UpdateContinuousBackupsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class UpdateContinuousBackupsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateContributorInsightsCommand.ts b/clients/client-dynamodb/commands/UpdateContributorInsightsCommand.ts index c4ac2c89b77d4..9dac663d8a327 100644 --- a/clients/client-dynamodb/commands/UpdateContributorInsightsCommand.ts +++ b/clients/client-dynamodb/commands/UpdateContributorInsightsCommand.ts @@ -28,6 +28,7 @@ export class UpdateContributorInsightsCommand extends $Command< UpdateContributorInsightsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateContributorInsightsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateGlobalTableCommand.ts b/clients/client-dynamodb/commands/UpdateGlobalTableCommand.ts index 9dc8effd5c0fc..29294b97c127b 100644 --- a/clients/client-dynamodb/commands/UpdateGlobalTableCommand.ts +++ b/clients/client-dynamodb/commands/UpdateGlobalTableCommand.ts @@ -56,6 +56,7 @@ export class UpdateGlobalTableCommand extends $Command< UpdateGlobalTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class UpdateGlobalTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateGlobalTableSettingsCommand.ts b/clients/client-dynamodb/commands/UpdateGlobalTableSettingsCommand.ts index 56bd8d6362e90..56fcc2408d543 100644 --- a/clients/client-dynamodb/commands/UpdateGlobalTableSettingsCommand.ts +++ b/clients/client-dynamodb/commands/UpdateGlobalTableSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateGlobalTableSettingsCommand extends $Command< UpdateGlobalTableSettingsCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGlobalTableSettingsCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateItemCommand.ts b/clients/client-dynamodb/commands/UpdateItemCommand.ts index cbedf5c17475d..855b92519235d 100644 --- a/clients/client-dynamodb/commands/UpdateItemCommand.ts +++ b/clients/client-dynamodb/commands/UpdateItemCommand.ts @@ -30,6 +30,7 @@ export class UpdateItemCommand extends $Command< UpdateItemCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateItemCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateTableCommand.ts b/clients/client-dynamodb/commands/UpdateTableCommand.ts index 35cae07e83540..bf2288b36d697 100644 --- a/clients/client-dynamodb/commands/UpdateTableCommand.ts +++ b/clients/client-dynamodb/commands/UpdateTableCommand.ts @@ -50,6 +50,7 @@ export class UpdateTableCommand extends $Command< UpdateTableCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class UpdateTableCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateTableReplicaAutoScalingCommand.ts b/clients/client-dynamodb/commands/UpdateTableReplicaAutoScalingCommand.ts index 25b03875be80d..ec0e19b31cdd2 100644 --- a/clients/client-dynamodb/commands/UpdateTableReplicaAutoScalingCommand.ts +++ b/clients/client-dynamodb/commands/UpdateTableReplicaAutoScalingCommand.ts @@ -31,6 +31,7 @@ export class UpdateTableReplicaAutoScalingCommand extends $Command< UpdateTableReplicaAutoScalingCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateTableReplicaAutoScalingCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-dynamodb/commands/UpdateTimeToLiveCommand.ts b/clients/client-dynamodb/commands/UpdateTimeToLiveCommand.ts index 86c2627380923..eae550bec5b99 100644 --- a/clients/client-dynamodb/commands/UpdateTimeToLiveCommand.ts +++ b/clients/client-dynamodb/commands/UpdateTimeToLiveCommand.ts @@ -52,6 +52,7 @@ export class UpdateTimeToLiveCommand extends $Command< UpdateTimeToLiveCommandOutput, DynamoDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class UpdateTimeToLiveCommand extends $Command< configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/CompleteSnapshotCommand.ts b/clients/client-ebs/commands/CompleteSnapshotCommand.ts index 70baaa99f3143..c1fea171083a8 100644 --- a/clients/client-ebs/commands/CompleteSnapshotCommand.ts +++ b/clients/client-ebs/commands/CompleteSnapshotCommand.ts @@ -30,6 +30,7 @@ export class CompleteSnapshotCommand extends $Command< CompleteSnapshotCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CompleteSnapshotCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/GetSnapshotBlockCommand.ts b/clients/client-ebs/commands/GetSnapshotBlockCommand.ts index d0e007d514995..6ec1b2d1ae69e 100644 --- a/clients/client-ebs/commands/GetSnapshotBlockCommand.ts +++ b/clients/client-ebs/commands/GetSnapshotBlockCommand.ts @@ -28,6 +28,7 @@ export class GetSnapshotBlockCommand extends $Command< GetSnapshotBlockCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSnapshotBlockCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/ListChangedBlocksCommand.ts b/clients/client-ebs/commands/ListChangedBlocksCommand.ts index e72f2301e2a7b..93744182ca65c 100644 --- a/clients/client-ebs/commands/ListChangedBlocksCommand.ts +++ b/clients/client-ebs/commands/ListChangedBlocksCommand.ts @@ -29,6 +29,7 @@ export class ListChangedBlocksCommand extends $Command< ListChangedBlocksCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListChangedBlocksCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/ListSnapshotBlocksCommand.ts b/clients/client-ebs/commands/ListSnapshotBlocksCommand.ts index 736d7f3efac6f..2e2567772fa0d 100644 --- a/clients/client-ebs/commands/ListSnapshotBlocksCommand.ts +++ b/clients/client-ebs/commands/ListSnapshotBlocksCommand.ts @@ -28,6 +28,7 @@ export class ListSnapshotBlocksCommand extends $Command< ListSnapshotBlocksCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSnapshotBlocksCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/PutSnapshotBlockCommand.ts b/clients/client-ebs/commands/PutSnapshotBlockCommand.ts index 0a3ee11d81d90..f01b1ae6d7cf0 100644 --- a/clients/client-ebs/commands/PutSnapshotBlockCommand.ts +++ b/clients/client-ebs/commands/PutSnapshotBlockCommand.ts @@ -33,6 +33,7 @@ export class PutSnapshotBlockCommand extends $Command< PutSnapshotBlockCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutSnapshotBlockCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ebs/commands/StartSnapshotCommand.ts b/clients/client-ebs/commands/StartSnapshotCommand.ts index a10673c907574..3fb6d2637b0b0 100644 --- a/clients/client-ebs/commands/StartSnapshotCommand.ts +++ b/clients/client-ebs/commands/StartSnapshotCommand.ts @@ -31,6 +31,7 @@ export class StartSnapshotCommand extends $Command< StartSnapshotCommandOutput, EBSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartSnapshotCommand extends $Command< configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2-instance-connect/commands/SendSSHPublicKeyCommand.ts b/clients/client-ec2-instance-connect/commands/SendSSHPublicKeyCommand.ts index adc7d164e7685..259b03ef385f5 100644 --- a/clients/client-ec2-instance-connect/commands/SendSSHPublicKeyCommand.ts +++ b/clients/client-ec2-instance-connect/commands/SendSSHPublicKeyCommand.ts @@ -32,6 +32,7 @@ export class SendSSHPublicKeyCommand extends $Command< SendSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SendSSHPublicKeyCommand extends $Command< configuration: EC2InstanceConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptReservedInstancesExchangeQuoteCommand.ts b/clients/client-ec2/commands/AcceptReservedInstancesExchangeQuoteCommand.ts index 49f09856d6d9e..1593443e64556 100644 --- a/clients/client-ec2/commands/AcceptReservedInstancesExchangeQuoteCommand.ts +++ b/clients/client-ec2/commands/AcceptReservedInstancesExchangeQuoteCommand.ts @@ -32,6 +32,7 @@ export class AcceptReservedInstancesExchangeQuoteCommand extends $Command< AcceptReservedInstancesExchangeQuoteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AcceptReservedInstancesExchangeQuoteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptTransitGatewayMulticastDomainAssociationsCommand.ts b/clients/client-ec2/commands/AcceptTransitGatewayMulticastDomainAssociationsCommand.ts index 4ca115e7dc098..738715653d281 100644 --- a/clients/client-ec2/commands/AcceptTransitGatewayMulticastDomainAssociationsCommand.ts +++ b/clients/client-ec2/commands/AcceptTransitGatewayMulticastDomainAssociationsCommand.ts @@ -32,6 +32,7 @@ export class AcceptTransitGatewayMulticastDomainAssociationsCommand extends $Com AcceptTransitGatewayMulticastDomainAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AcceptTransitGatewayMulticastDomainAssociationsCommand extends $Com AcceptTransitGatewayMulticastDomainAssociationsCommandInput, AcceptTransitGatewayMulticastDomainAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptTransitGatewayPeeringAttachmentCommand.ts b/clients/client-ec2/commands/AcceptTransitGatewayPeeringAttachmentCommand.ts index 0ae1003072fc7..1883103d8d2f2 100644 --- a/clients/client-ec2/commands/AcceptTransitGatewayPeeringAttachmentCommand.ts +++ b/clients/client-ec2/commands/AcceptTransitGatewayPeeringAttachmentCommand.ts @@ -33,6 +33,7 @@ export class AcceptTransitGatewayPeeringAttachmentCommand extends $Command< AcceptTransitGatewayPeeringAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AcceptTransitGatewayPeeringAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptTransitGatewayVpcAttachmentCommand.ts b/clients/client-ec2/commands/AcceptTransitGatewayVpcAttachmentCommand.ts index 90df09721fc1c..d5b309510885e 100644 --- a/clients/client-ec2/commands/AcceptTransitGatewayVpcAttachmentCommand.ts +++ b/clients/client-ec2/commands/AcceptTransitGatewayVpcAttachmentCommand.ts @@ -31,6 +31,7 @@ export class AcceptTransitGatewayVpcAttachmentCommand extends $Command< AcceptTransitGatewayVpcAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AcceptTransitGatewayVpcAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptVpcEndpointConnectionsCommand.ts b/clients/client-ec2/commands/AcceptVpcEndpointConnectionsCommand.ts index 90cd2faccf8bb..205f8137968bf 100644 --- a/clients/client-ec2/commands/AcceptVpcEndpointConnectionsCommand.ts +++ b/clients/client-ec2/commands/AcceptVpcEndpointConnectionsCommand.ts @@ -29,6 +29,7 @@ export class AcceptVpcEndpointConnectionsCommand extends $Command< AcceptVpcEndpointConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AcceptVpcEndpointConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AcceptVpcPeeringConnectionCommand.ts b/clients/client-ec2/commands/AcceptVpcPeeringConnectionCommand.ts index 8cd812522398c..934ac7e44433e 100644 --- a/clients/client-ec2/commands/AcceptVpcPeeringConnectionCommand.ts +++ b/clients/client-ec2/commands/AcceptVpcPeeringConnectionCommand.ts @@ -33,6 +33,7 @@ export class AcceptVpcPeeringConnectionCommand extends $Command< AcceptVpcPeeringConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AcceptVpcPeeringConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AdvertiseByoipCidrCommand.ts b/clients/client-ec2/commands/AdvertiseByoipCidrCommand.ts index bf0432232bf2b..d74a62eadeae1 100644 --- a/clients/client-ec2/commands/AdvertiseByoipCidrCommand.ts +++ b/clients/client-ec2/commands/AdvertiseByoipCidrCommand.ts @@ -38,6 +38,7 @@ export class AdvertiseByoipCidrCommand extends $Command< AdvertiseByoipCidrCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AdvertiseByoipCidrCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AllocateAddressCommand.ts b/clients/client-ec2/commands/AllocateAddressCommand.ts index 55bbb9ed49337..d52a51b7b4fc0 100644 --- a/clients/client-ec2/commands/AllocateAddressCommand.ts +++ b/clients/client-ec2/commands/AllocateAddressCommand.ts @@ -37,6 +37,7 @@ export class AllocateAddressCommand extends $Command< AllocateAddressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AllocateAddressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AllocateHostsCommand.ts b/clients/client-ec2/commands/AllocateHostsCommand.ts index 630c2a825049c..34bfb7337190c 100644 --- a/clients/client-ec2/commands/AllocateHostsCommand.ts +++ b/clients/client-ec2/commands/AllocateHostsCommand.ts @@ -27,6 +27,7 @@ export class AllocateHostsCommand extends $Command< AllocateHostsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class AllocateHostsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ApplySecurityGroupsToClientVpnTargetNetworkCommand.ts b/clients/client-ec2/commands/ApplySecurityGroupsToClientVpnTargetNetworkCommand.ts index 767c780a4fbab..5d67922024ce5 100644 --- a/clients/client-ec2/commands/ApplySecurityGroupsToClientVpnTargetNetworkCommand.ts +++ b/clients/client-ec2/commands/ApplySecurityGroupsToClientVpnTargetNetworkCommand.ts @@ -33,6 +33,7 @@ export class ApplySecurityGroupsToClientVpnTargetNetworkCommand extends $Command ApplySecurityGroupsToClientVpnTargetNetworkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ApplySecurityGroupsToClientVpnTargetNetworkCommand extends $Command ApplySecurityGroupsToClientVpnTargetNetworkCommandInput, ApplySecurityGroupsToClientVpnTargetNetworkCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssignIpv6AddressesCommand.ts b/clients/client-ec2/commands/AssignIpv6AddressesCommand.ts index 5b477c140008d..eae5480c461b4 100644 --- a/clients/client-ec2/commands/AssignIpv6AddressesCommand.ts +++ b/clients/client-ec2/commands/AssignIpv6AddressesCommand.ts @@ -34,6 +34,7 @@ export class AssignIpv6AddressesCommand extends $Command< AssignIpv6AddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssignIpv6AddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssignPrivateIpAddressesCommand.ts b/clients/client-ec2/commands/AssignPrivateIpAddressesCommand.ts index 38db528b7fc79..30402f3a250b0 100644 --- a/clients/client-ec2/commands/AssignPrivateIpAddressesCommand.ts +++ b/clients/client-ec2/commands/AssignPrivateIpAddressesCommand.ts @@ -39,6 +39,7 @@ export class AssignPrivateIpAddressesCommand extends $Command< AssignPrivateIpAddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AssignPrivateIpAddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateAddressCommand.ts b/clients/client-ec2/commands/AssociateAddressCommand.ts index 4f787b89b4f35..696a2279e4a6f 100644 --- a/clients/client-ec2/commands/AssociateAddressCommand.ts +++ b/clients/client-ec2/commands/AssociateAddressCommand.ts @@ -52,6 +52,7 @@ export class AssociateAddressCommand extends $Command< AssociateAddressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class AssociateAddressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateClientVpnTargetNetworkCommand.ts b/clients/client-ec2/commands/AssociateClientVpnTargetNetworkCommand.ts index 8e3214ed97b85..5ea695de0c92f 100644 --- a/clients/client-ec2/commands/AssociateClientVpnTargetNetworkCommand.ts +++ b/clients/client-ec2/commands/AssociateClientVpnTargetNetworkCommand.ts @@ -29,6 +29,7 @@ export class AssociateClientVpnTargetNetworkCommand extends $Command< AssociateClientVpnTargetNetworkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateClientVpnTargetNetworkCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateDhcpOptionsCommand.ts b/clients/client-ec2/commands/AssociateDhcpOptionsCommand.ts index ce87911d20b53..fb57ab30ac62c 100644 --- a/clients/client-ec2/commands/AssociateDhcpOptionsCommand.ts +++ b/clients/client-ec2/commands/AssociateDhcpOptionsCommand.ts @@ -31,6 +31,7 @@ export class AssociateDhcpOptionsCommand extends $Command< AssociateDhcpOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AssociateDhcpOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateEnclaveCertificateIamRoleCommand.ts b/clients/client-ec2/commands/AssociateEnclaveCertificateIamRoleCommand.ts index fb48dbaf5247c..973fe0afa4a65 100644 --- a/clients/client-ec2/commands/AssociateEnclaveCertificateIamRoleCommand.ts +++ b/clients/client-ec2/commands/AssociateEnclaveCertificateIamRoleCommand.ts @@ -46,6 +46,7 @@ export class AssociateEnclaveCertificateIamRoleCommand extends $Command< AssociateEnclaveCertificateIamRoleCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class AssociateEnclaveCertificateIamRoleCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateIamInstanceProfileCommand.ts b/clients/client-ec2/commands/AssociateIamInstanceProfileCommand.ts index 4dae237155377..c24d9d5a41cc5 100644 --- a/clients/client-ec2/commands/AssociateIamInstanceProfileCommand.ts +++ b/clients/client-ec2/commands/AssociateIamInstanceProfileCommand.ts @@ -29,6 +29,7 @@ export class AssociateIamInstanceProfileCommand extends $Command< AssociateIamInstanceProfileCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateIamInstanceProfileCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateRouteTableCommand.ts b/clients/client-ec2/commands/AssociateRouteTableCommand.ts index cb9a2db0ee9c4..4135ece758527 100644 --- a/clients/client-ec2/commands/AssociateRouteTableCommand.ts +++ b/clients/client-ec2/commands/AssociateRouteTableCommand.ts @@ -34,6 +34,7 @@ export class AssociateRouteTableCommand extends $Command< AssociateRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssociateRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateSubnetCidrBlockCommand.ts b/clients/client-ec2/commands/AssociateSubnetCidrBlockCommand.ts index c841042f96752..adb2d7e818691 100644 --- a/clients/client-ec2/commands/AssociateSubnetCidrBlockCommand.ts +++ b/clients/client-ec2/commands/AssociateSubnetCidrBlockCommand.ts @@ -29,6 +29,7 @@ export class AssociateSubnetCidrBlockCommand extends $Command< AssociateSubnetCidrBlockCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateSubnetCidrBlockCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateTransitGatewayMulticastDomainCommand.ts b/clients/client-ec2/commands/AssociateTransitGatewayMulticastDomainCommand.ts index 9210dcbacbbbc..535e7a7cd9c65 100644 --- a/clients/client-ec2/commands/AssociateTransitGatewayMulticastDomainCommand.ts +++ b/clients/client-ec2/commands/AssociateTransitGatewayMulticastDomainCommand.ts @@ -33,6 +33,7 @@ export class AssociateTransitGatewayMulticastDomainCommand extends $Command< AssociateTransitGatewayMulticastDomainCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AssociateTransitGatewayMulticastDomainCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateTransitGatewayRouteTableCommand.ts b/clients/client-ec2/commands/AssociateTransitGatewayRouteTableCommand.ts index d9bd18d6085a9..51503d7189bba 100644 --- a/clients/client-ec2/commands/AssociateTransitGatewayRouteTableCommand.ts +++ b/clients/client-ec2/commands/AssociateTransitGatewayRouteTableCommand.ts @@ -29,6 +29,7 @@ export class AssociateTransitGatewayRouteTableCommand extends $Command< AssociateTransitGatewayRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateTransitGatewayRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AssociateVpcCidrBlockCommand.ts b/clients/client-ec2/commands/AssociateVpcCidrBlockCommand.ts index 805131ee8a856..948f64a56018b 100644 --- a/clients/client-ec2/commands/AssociateVpcCidrBlockCommand.ts +++ b/clients/client-ec2/commands/AssociateVpcCidrBlockCommand.ts @@ -36,6 +36,7 @@ export class AssociateVpcCidrBlockCommand extends $Command< AssociateVpcCidrBlockCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateVpcCidrBlockCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AttachClassicLinkVpcCommand.ts b/clients/client-ec2/commands/AttachClassicLinkVpcCommand.ts index bc0c290d4fb1d..304a255797261 100644 --- a/clients/client-ec2/commands/AttachClassicLinkVpcCommand.ts +++ b/clients/client-ec2/commands/AttachClassicLinkVpcCommand.ts @@ -34,6 +34,7 @@ export class AttachClassicLinkVpcCommand extends $Command< AttachClassicLinkVpcCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AttachClassicLinkVpcCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AttachInternetGatewayCommand.ts b/clients/client-ec2/commands/AttachInternetGatewayCommand.ts index d5453577f5398..01a6cbb85ad87 100644 --- a/clients/client-ec2/commands/AttachInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/AttachInternetGatewayCommand.ts @@ -29,6 +29,7 @@ export class AttachInternetGatewayCommand extends $Command< AttachInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AttachInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AttachNetworkInterfaceCommand.ts b/clients/client-ec2/commands/AttachNetworkInterfaceCommand.ts index 0c446b98caea6..d312d30af7d5d 100644 --- a/clients/client-ec2/commands/AttachNetworkInterfaceCommand.ts +++ b/clients/client-ec2/commands/AttachNetworkInterfaceCommand.ts @@ -28,6 +28,7 @@ export class AttachNetworkInterfaceCommand extends $Command< AttachNetworkInterfaceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AttachNetworkInterfaceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AttachVolumeCommand.ts b/clients/client-ec2/commands/AttachVolumeCommand.ts index 2c11e9f77e1d8..e8f47e81d3aee 100644 --- a/clients/client-ec2/commands/AttachVolumeCommand.ts +++ b/clients/client-ec2/commands/AttachVolumeCommand.ts @@ -49,6 +49,7 @@ export class AttachVolumeCommand extends $Command< AttachVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class AttachVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AttachVpnGatewayCommand.ts b/clients/client-ec2/commands/AttachVpnGatewayCommand.ts index cbc125232576b..35bc12749a81c 100644 --- a/clients/client-ec2/commands/AttachVpnGatewayCommand.ts +++ b/clients/client-ec2/commands/AttachVpnGatewayCommand.ts @@ -30,6 +30,7 @@ export class AttachVpnGatewayCommand extends $Command< AttachVpnGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AttachVpnGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AuthorizeClientVpnIngressCommand.ts b/clients/client-ec2/commands/AuthorizeClientVpnIngressCommand.ts index 68e44cd785acf..e8ca224c857b7 100644 --- a/clients/client-ec2/commands/AuthorizeClientVpnIngressCommand.ts +++ b/clients/client-ec2/commands/AuthorizeClientVpnIngressCommand.ts @@ -30,6 +30,7 @@ export class AuthorizeClientVpnIngressCommand extends $Command< AuthorizeClientVpnIngressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AuthorizeClientVpnIngressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AuthorizeSecurityGroupEgressCommand.ts b/clients/client-ec2/commands/AuthorizeSecurityGroupEgressCommand.ts index 054c3d9c6a8e5..73c0366651231 100644 --- a/clients/client-ec2/commands/AuthorizeSecurityGroupEgressCommand.ts +++ b/clients/client-ec2/commands/AuthorizeSecurityGroupEgressCommand.ts @@ -36,6 +36,7 @@ export class AuthorizeSecurityGroupEgressCommand extends $Command< AuthorizeSecurityGroupEgressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AuthorizeSecurityGroupEgressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/AuthorizeSecurityGroupIngressCommand.ts b/clients/client-ec2/commands/AuthorizeSecurityGroupIngressCommand.ts index 8310d38bdb47e..514815260e926 100644 --- a/clients/client-ec2/commands/AuthorizeSecurityGroupIngressCommand.ts +++ b/clients/client-ec2/commands/AuthorizeSecurityGroupIngressCommand.ts @@ -37,6 +37,7 @@ export class AuthorizeSecurityGroupIngressCommand extends $Command< AuthorizeSecurityGroupIngressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AuthorizeSecurityGroupIngressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/BundleInstanceCommand.ts b/clients/client-ec2/commands/BundleInstanceCommand.ts index 792d0a953805f..065c699f0fd79 100644 --- a/clients/client-ec2/commands/BundleInstanceCommand.ts +++ b/clients/client-ec2/commands/BundleInstanceCommand.ts @@ -29,6 +29,7 @@ export class BundleInstanceCommand extends $Command< BundleInstanceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BundleInstanceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelBundleTaskCommand.ts b/clients/client-ec2/commands/CancelBundleTaskCommand.ts index 041c7ee02e0d5..9e71cef9aedcd 100644 --- a/clients/client-ec2/commands/CancelBundleTaskCommand.ts +++ b/clients/client-ec2/commands/CancelBundleTaskCommand.ts @@ -28,6 +28,7 @@ export class CancelBundleTaskCommand extends $Command< CancelBundleTaskCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelBundleTaskCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelCapacityReservationCommand.ts b/clients/client-ec2/commands/CancelCapacityReservationCommand.ts index c6e0e9bb31547..31f22da9aba4e 100644 --- a/clients/client-ec2/commands/CancelCapacityReservationCommand.ts +++ b/clients/client-ec2/commands/CancelCapacityReservationCommand.ts @@ -33,6 +33,7 @@ export class CancelCapacityReservationCommand extends $Command< CancelCapacityReservationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CancelCapacityReservationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelConversionTaskCommand.ts b/clients/client-ec2/commands/CancelConversionTaskCommand.ts index 45d36feb3a8d1..86e3d991f6270 100644 --- a/clients/client-ec2/commands/CancelConversionTaskCommand.ts +++ b/clients/client-ec2/commands/CancelConversionTaskCommand.ts @@ -32,6 +32,7 @@ export class CancelConversionTaskCommand extends $Command< CancelConversionTaskCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelConversionTaskCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelExportTaskCommand.ts b/clients/client-ec2/commands/CancelExportTaskCommand.ts index 479f313966048..7339e972073d7 100644 --- a/clients/client-ec2/commands/CancelExportTaskCommand.ts +++ b/clients/client-ec2/commands/CancelExportTaskCommand.ts @@ -30,6 +30,7 @@ export class CancelExportTaskCommand extends $Command< CancelExportTaskCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CancelExportTaskCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelImportTaskCommand.ts b/clients/client-ec2/commands/CancelImportTaskCommand.ts index d3ac375df456b..74be734744873 100644 --- a/clients/client-ec2/commands/CancelImportTaskCommand.ts +++ b/clients/client-ec2/commands/CancelImportTaskCommand.ts @@ -28,6 +28,7 @@ export class CancelImportTaskCommand extends $Command< CancelImportTaskCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelImportTaskCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelReservedInstancesListingCommand.ts b/clients/client-ec2/commands/CancelReservedInstancesListingCommand.ts index a8fdfe7a28853..99e420be185f7 100644 --- a/clients/client-ec2/commands/CancelReservedInstancesListingCommand.ts +++ b/clients/client-ec2/commands/CancelReservedInstancesListingCommand.ts @@ -31,6 +31,7 @@ export class CancelReservedInstancesListingCommand extends $Command< CancelReservedInstancesListingCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelReservedInstancesListingCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelSpotFleetRequestsCommand.ts b/clients/client-ec2/commands/CancelSpotFleetRequestsCommand.ts index b5b19332dbaed..2d879229bb4e1 100644 --- a/clients/client-ec2/commands/CancelSpotFleetRequestsCommand.ts +++ b/clients/client-ec2/commands/CancelSpotFleetRequestsCommand.ts @@ -33,6 +33,7 @@ export class CancelSpotFleetRequestsCommand extends $Command< CancelSpotFleetRequestsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CancelSpotFleetRequestsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CancelSpotInstanceRequestsCommand.ts b/clients/client-ec2/commands/CancelSpotInstanceRequestsCommand.ts index 40d7c6049634c..0d6377cbb57e0 100644 --- a/clients/client-ec2/commands/CancelSpotInstanceRequestsCommand.ts +++ b/clients/client-ec2/commands/CancelSpotInstanceRequestsCommand.ts @@ -31,6 +31,7 @@ export class CancelSpotInstanceRequestsCommand extends $Command< CancelSpotInstanceRequestsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelSpotInstanceRequestsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ConfirmProductInstanceCommand.ts b/clients/client-ec2/commands/ConfirmProductInstanceCommand.ts index 2b7ca5e341270..f350eaeda7833 100644 --- a/clients/client-ec2/commands/ConfirmProductInstanceCommand.ts +++ b/clients/client-ec2/commands/ConfirmProductInstanceCommand.ts @@ -30,6 +30,7 @@ export class ConfirmProductInstanceCommand extends $Command< ConfirmProductInstanceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConfirmProductInstanceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CopyFpgaImageCommand.ts b/clients/client-ec2/commands/CopyFpgaImageCommand.ts index 0250eee8eb1ff..3cc7bc3d90911 100644 --- a/clients/client-ec2/commands/CopyFpgaImageCommand.ts +++ b/clients/client-ec2/commands/CopyFpgaImageCommand.ts @@ -25,6 +25,7 @@ export class CopyFpgaImageCommand extends $Command< CopyFpgaImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CopyFpgaImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CopyImageCommand.ts b/clients/client-ec2/commands/CopyImageCommand.ts index e69ded4765549..5f4ebc314a5b5 100644 --- a/clients/client-ec2/commands/CopyImageCommand.ts +++ b/clients/client-ec2/commands/CopyImageCommand.ts @@ -26,6 +26,7 @@ export type CopyImageCommandOutput = CopyImageResult & __MetadataBearer; * in the Amazon Elastic Compute Cloud User Guide.

*/ export class CopyImageCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CopyImageCommand 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-ec2/commands/CopySnapshotCommand.ts b/clients/client-ec2/commands/CopySnapshotCommand.ts index e391a8fe8e0bf..ff5d9a291edb9 100644 --- a/clients/client-ec2/commands/CopySnapshotCommand.ts +++ b/clients/client-ec2/commands/CopySnapshotCommand.ts @@ -38,6 +38,7 @@ export class CopySnapshotCommand extends $Command< CopySnapshotCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class CopySnapshotCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getCopySnapshotPresignedUrlPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getCopySnapshotPresignedUrlPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateCapacityReservationCommand.ts b/clients/client-ec2/commands/CreateCapacityReservationCommand.ts index ab83ed893b7e5..d96d4c6465c47 100644 --- a/clients/client-ec2/commands/CreateCapacityReservationCommand.ts +++ b/clients/client-ec2/commands/CreateCapacityReservationCommand.ts @@ -44,6 +44,7 @@ export class CreateCapacityReservationCommand extends $Command< CreateCapacityReservationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateCapacityReservationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateCarrierGatewayCommand.ts b/clients/client-ec2/commands/CreateCarrierGatewayCommand.ts index 3e7eb21320c0b..fb8c8d61b3301 100644 --- a/clients/client-ec2/commands/CreateCarrierGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateCarrierGatewayCommand.ts @@ -29,6 +29,7 @@ export class CreateCarrierGatewayCommand extends $Command< CreateCarrierGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateCarrierGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateClientVpnEndpointCommand.ts b/clients/client-ec2/commands/CreateClientVpnEndpointCommand.ts index ece75fe3e74e6..aa32b053cd810 100644 --- a/clients/client-ec2/commands/CreateClientVpnEndpointCommand.ts +++ b/clients/client-ec2/commands/CreateClientVpnEndpointCommand.ts @@ -30,6 +30,7 @@ export class CreateClientVpnEndpointCommand extends $Command< CreateClientVpnEndpointCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateClientVpnEndpointCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateClientVpnRouteCommand.ts b/clients/client-ec2/commands/CreateClientVpnRouteCommand.ts index d526137c9e713..9dd0e7c1c07ce 100644 --- a/clients/client-ec2/commands/CreateClientVpnRouteCommand.ts +++ b/clients/client-ec2/commands/CreateClientVpnRouteCommand.ts @@ -29,6 +29,7 @@ export class CreateClientVpnRouteCommand extends $Command< CreateClientVpnRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateClientVpnRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateCustomerGatewayCommand.ts b/clients/client-ec2/commands/CreateCustomerGatewayCommand.ts index edf0c87515eaa..582b6d0505b8b 100644 --- a/clients/client-ec2/commands/CreateCustomerGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateCustomerGatewayCommand.ts @@ -63,6 +63,7 @@ export class CreateCustomerGatewayCommand extends $Command< CreateCustomerGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class CreateCustomerGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateDefaultSubnetCommand.ts b/clients/client-ec2/commands/CreateDefaultSubnetCommand.ts index 790da5c9615fa..559576565de91 100644 --- a/clients/client-ec2/commands/CreateDefaultSubnetCommand.ts +++ b/clients/client-ec2/commands/CreateDefaultSubnetCommand.ts @@ -31,6 +31,7 @@ export class CreateDefaultSubnetCommand extends $Command< CreateDefaultSubnetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDefaultSubnetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateDefaultVpcCommand.ts b/clients/client-ec2/commands/CreateDefaultVpcCommand.ts index 3f63e95fe8046..1459de50bcb66 100644 --- a/clients/client-ec2/commands/CreateDefaultVpcCommand.ts +++ b/clients/client-ec2/commands/CreateDefaultVpcCommand.ts @@ -39,6 +39,7 @@ export class CreateDefaultVpcCommand extends $Command< CreateDefaultVpcCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateDefaultVpcCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateDhcpOptionsCommand.ts b/clients/client-ec2/commands/CreateDhcpOptionsCommand.ts index dacff3232827a..905590574b530 100644 --- a/clients/client-ec2/commands/CreateDhcpOptionsCommand.ts +++ b/clients/client-ec2/commands/CreateDhcpOptionsCommand.ts @@ -80,6 +80,7 @@ export class CreateDhcpOptionsCommand extends $Command< CreateDhcpOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class CreateDhcpOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateEgressOnlyInternetGatewayCommand.ts b/clients/client-ec2/commands/CreateEgressOnlyInternetGatewayCommand.ts index c4df543b1472e..7dddc67f27f77 100644 --- a/clients/client-ec2/commands/CreateEgressOnlyInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateEgressOnlyInternetGatewayCommand.ts @@ -31,6 +31,7 @@ export class CreateEgressOnlyInternetGatewayCommand extends $Command< CreateEgressOnlyInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateEgressOnlyInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateFleetCommand.ts b/clients/client-ec2/commands/CreateFleetCommand.ts index 93251b38cc920..1b337cacb70dc 100644 --- a/clients/client-ec2/commands/CreateFleetCommand.ts +++ b/clients/client-ec2/commands/CreateFleetCommand.ts @@ -28,6 +28,7 @@ export class CreateFleetCommand extends $Command< CreateFleetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFleetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateFlowLogsCommand.ts b/clients/client-ec2/commands/CreateFlowLogsCommand.ts index 9bf62fadd83be..3155718502d63 100644 --- a/clients/client-ec2/commands/CreateFlowLogsCommand.ts +++ b/clients/client-ec2/commands/CreateFlowLogsCommand.ts @@ -38,6 +38,7 @@ export class CreateFlowLogsCommand extends $Command< CreateFlowLogsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateFlowLogsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateFpgaImageCommand.ts b/clients/client-ec2/commands/CreateFpgaImageCommand.ts index a4e138f9b7852..ba6cfc124827e 100644 --- a/clients/client-ec2/commands/CreateFpgaImageCommand.ts +++ b/clients/client-ec2/commands/CreateFpgaImageCommand.ts @@ -30,6 +30,7 @@ export class CreateFpgaImageCommand extends $Command< CreateFpgaImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateFpgaImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateImageCommand.ts b/clients/client-ec2/commands/CreateImageCommand.ts index bfda50c620dd5..92f5f4343ed01 100644 --- a/clients/client-ec2/commands/CreateImageCommand.ts +++ b/clients/client-ec2/commands/CreateImageCommand.ts @@ -28,6 +28,7 @@ export class CreateImageCommand extends $Command< CreateImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateInstanceExportTaskCommand.ts b/clients/client-ec2/commands/CreateInstanceExportTaskCommand.ts index 3efbd9687d173..a171d281c45e5 100644 --- a/clients/client-ec2/commands/CreateInstanceExportTaskCommand.ts +++ b/clients/client-ec2/commands/CreateInstanceExportTaskCommand.ts @@ -31,6 +31,7 @@ export class CreateInstanceExportTaskCommand extends $Command< CreateInstanceExportTaskCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateInstanceExportTaskCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateInternetGatewayCommand.ts b/clients/client-ec2/commands/CreateInternetGatewayCommand.ts index 8008bc1a69718..b1e4f9190fb10 100644 --- a/clients/client-ec2/commands/CreateInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateInternetGatewayCommand.ts @@ -30,6 +30,7 @@ export class CreateInternetGatewayCommand extends $Command< CreateInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateKeyPairCommand.ts b/clients/client-ec2/commands/CreateKeyPairCommand.ts index adbf87b3ad722..9cf639f257406 100644 --- a/clients/client-ec2/commands/CreateKeyPairCommand.ts +++ b/clients/client-ec2/commands/CreateKeyPairCommand.ts @@ -34,6 +34,7 @@ export class CreateKeyPairCommand extends $Command< CreateKeyPairCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateKeyPairCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateLaunchTemplateCommand.ts b/clients/client-ec2/commands/CreateLaunchTemplateCommand.ts index 82548dcedb91d..88755800a4937 100644 --- a/clients/client-ec2/commands/CreateLaunchTemplateCommand.ts +++ b/clients/client-ec2/commands/CreateLaunchTemplateCommand.ts @@ -32,6 +32,7 @@ export class CreateLaunchTemplateCommand extends $Command< CreateLaunchTemplateCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateLaunchTemplateCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateLaunchTemplateVersionCommand.ts b/clients/client-ec2/commands/CreateLaunchTemplateVersionCommand.ts index 71e0002142b2c..e3d288c76afeb 100644 --- a/clients/client-ec2/commands/CreateLaunchTemplateVersionCommand.ts +++ b/clients/client-ec2/commands/CreateLaunchTemplateVersionCommand.ts @@ -33,6 +33,7 @@ export class CreateLaunchTemplateVersionCommand extends $Command< CreateLaunchTemplateVersionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateLaunchTemplateVersionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateLocalGatewayRouteCommand.ts b/clients/client-ec2/commands/CreateLocalGatewayRouteCommand.ts index 2abb3ac896810..2017559820860 100644 --- a/clients/client-ec2/commands/CreateLocalGatewayRouteCommand.ts +++ b/clients/client-ec2/commands/CreateLocalGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class CreateLocalGatewayRouteCommand extends $Command< CreateLocalGatewayRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLocalGatewayRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.ts b/clients/client-ec2/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.ts index b8b158e089a7e..62bac0944728a 100644 --- a/clients/client-ec2/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.ts +++ b/clients/client-ec2/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.ts @@ -32,6 +32,7 @@ export class CreateLocalGatewayRouteTableVpcAssociationCommand extends $Command< CreateLocalGatewayRouteTableVpcAssociationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateLocalGatewayRouteTableVpcAssociationCommand extends $Command< CreateLocalGatewayRouteTableVpcAssociationCommandInput, CreateLocalGatewayRouteTableVpcAssociationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateManagedPrefixListCommand.ts b/clients/client-ec2/commands/CreateManagedPrefixListCommand.ts index c001206dd872a..62d0cad4bf169 100644 --- a/clients/client-ec2/commands/CreateManagedPrefixListCommand.ts +++ b/clients/client-ec2/commands/CreateManagedPrefixListCommand.ts @@ -29,6 +29,7 @@ export class CreateManagedPrefixListCommand extends $Command< CreateManagedPrefixListCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateManagedPrefixListCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNatGatewayCommand.ts b/clients/client-ec2/commands/CreateNatGatewayCommand.ts index d1e66d77f6794..976dbd346321f 100644 --- a/clients/client-ec2/commands/CreateNatGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateNatGatewayCommand.ts @@ -33,6 +33,7 @@ export class CreateNatGatewayCommand extends $Command< CreateNatGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateNatGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNetworkAclCommand.ts b/clients/client-ec2/commands/CreateNetworkAclCommand.ts index bfa0a1d1a3d98..2603d85ad7fa4 100644 --- a/clients/client-ec2/commands/CreateNetworkAclCommand.ts +++ b/clients/client-ec2/commands/CreateNetworkAclCommand.ts @@ -30,6 +30,7 @@ export class CreateNetworkAclCommand extends $Command< CreateNetworkAclCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateNetworkAclCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNetworkAclEntryCommand.ts b/clients/client-ec2/commands/CreateNetworkAclEntryCommand.ts index fbb71a8567212..7a197f74dd3e5 100644 --- a/clients/client-ec2/commands/CreateNetworkAclEntryCommand.ts +++ b/clients/client-ec2/commands/CreateNetworkAclEntryCommand.ts @@ -35,6 +35,7 @@ export class CreateNetworkAclEntryCommand extends $Command< CreateNetworkAclEntryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateNetworkAclEntryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNetworkInsightsPathCommand.ts b/clients/client-ec2/commands/CreateNetworkInsightsPathCommand.ts index 04462cc701842..1b06e2e88b8db 100644 --- a/clients/client-ec2/commands/CreateNetworkInsightsPathCommand.ts +++ b/clients/client-ec2/commands/CreateNetworkInsightsPathCommand.ts @@ -31,6 +31,7 @@ export class CreateNetworkInsightsPathCommand extends $Command< CreateNetworkInsightsPathCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateNetworkInsightsPathCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNetworkInterfaceCommand.ts b/clients/client-ec2/commands/CreateNetworkInterfaceCommand.ts index faa3c2bafc01b..0f2717eb3d570 100644 --- a/clients/client-ec2/commands/CreateNetworkInterfaceCommand.ts +++ b/clients/client-ec2/commands/CreateNetworkInterfaceCommand.ts @@ -30,6 +30,7 @@ export class CreateNetworkInterfaceCommand extends $Command< CreateNetworkInterfaceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateNetworkInterfaceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateNetworkInterfacePermissionCommand.ts b/clients/client-ec2/commands/CreateNetworkInterfacePermissionCommand.ts index fa5f5188693ea..978543cea99e4 100644 --- a/clients/client-ec2/commands/CreateNetworkInterfacePermissionCommand.ts +++ b/clients/client-ec2/commands/CreateNetworkInterfacePermissionCommand.ts @@ -30,6 +30,7 @@ export class CreateNetworkInterfacePermissionCommand extends $Command< CreateNetworkInterfacePermissionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateNetworkInterfacePermissionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreatePlacementGroupCommand.ts b/clients/client-ec2/commands/CreatePlacementGroupCommand.ts index ea1cf64e8768c..1523c44b7ff66 100644 --- a/clients/client-ec2/commands/CreatePlacementGroupCommand.ts +++ b/clients/client-ec2/commands/CreatePlacementGroupCommand.ts @@ -37,6 +37,7 @@ export class CreatePlacementGroupCommand extends $Command< CreatePlacementGroupCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreatePlacementGroupCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateReservedInstancesListingCommand.ts b/clients/client-ec2/commands/CreateReservedInstancesListingCommand.ts index 33bbd26ebdcb3..3ac2c7f5a4ed1 100644 --- a/clients/client-ec2/commands/CreateReservedInstancesListingCommand.ts +++ b/clients/client-ec2/commands/CreateReservedInstancesListingCommand.ts @@ -43,6 +43,7 @@ export class CreateReservedInstancesListingCommand extends $Command< CreateReservedInstancesListingCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateReservedInstancesListingCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateRouteCommand.ts b/clients/client-ec2/commands/CreateRouteCommand.ts index ff44370053f9d..a4d8da0870ae1 100644 --- a/clients/client-ec2/commands/CreateRouteCommand.ts +++ b/clients/client-ec2/commands/CreateRouteCommand.ts @@ -45,6 +45,7 @@ export class CreateRouteCommand extends $Command< CreateRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateRouteTableCommand.ts b/clients/client-ec2/commands/CreateRouteTableCommand.ts index 40d47586173d8..4900d9f766af0 100644 --- a/clients/client-ec2/commands/CreateRouteTableCommand.ts +++ b/clients/client-ec2/commands/CreateRouteTableCommand.ts @@ -30,6 +30,7 @@ export class CreateRouteTableCommand extends $Command< CreateRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateSecurityGroupCommand.ts b/clients/client-ec2/commands/CreateSecurityGroupCommand.ts index 346d3465d9930..eef96e4a182c7 100644 --- a/clients/client-ec2/commands/CreateSecurityGroupCommand.ts +++ b/clients/client-ec2/commands/CreateSecurityGroupCommand.ts @@ -42,6 +42,7 @@ export class CreateSecurityGroupCommand extends $Command< CreateSecurityGroupCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateSecurityGroupCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateSnapshotCommand.ts b/clients/client-ec2/commands/CreateSnapshotCommand.ts index bb2ecbc2229d9..69a70f5c39ad9 100644 --- a/clients/client-ec2/commands/CreateSnapshotCommand.ts +++ b/clients/client-ec2/commands/CreateSnapshotCommand.ts @@ -45,6 +45,7 @@ export class CreateSnapshotCommand extends $Command< CreateSnapshotCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateSnapshotCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateSnapshotsCommand.ts b/clients/client-ec2/commands/CreateSnapshotsCommand.ts index 7eaae5823b630..e0132dfa755be 100644 --- a/clients/client-ec2/commands/CreateSnapshotsCommand.ts +++ b/clients/client-ec2/commands/CreateSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class CreateSnapshotsCommand extends $Command< CreateSnapshotsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSnapshotsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateSpotDatafeedSubscriptionCommand.ts b/clients/client-ec2/commands/CreateSpotDatafeedSubscriptionCommand.ts index 3b9e8f64f6e79..a8938799b777f 100644 --- a/clients/client-ec2/commands/CreateSpotDatafeedSubscriptionCommand.ts +++ b/clients/client-ec2/commands/CreateSpotDatafeedSubscriptionCommand.ts @@ -31,6 +31,7 @@ export class CreateSpotDatafeedSubscriptionCommand extends $Command< CreateSpotDatafeedSubscriptionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateSpotDatafeedSubscriptionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateSubnetCommand.ts b/clients/client-ec2/commands/CreateSubnetCommand.ts index 6710f7b45feae..77a06bb249187 100644 --- a/clients/client-ec2/commands/CreateSubnetCommand.ts +++ b/clients/client-ec2/commands/CreateSubnetCommand.ts @@ -42,6 +42,7 @@ export class CreateSubnetCommand extends $Command< CreateSubnetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateSubnetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTagsCommand.ts b/clients/client-ec2/commands/CreateTagsCommand.ts index ba1cad3678e32..8581c6de7cfd5 100644 --- a/clients/client-ec2/commands/CreateTagsCommand.ts +++ b/clients/client-ec2/commands/CreateTagsCommand.ts @@ -34,6 +34,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateTagsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTrafficMirrorFilterCommand.ts b/clients/client-ec2/commands/CreateTrafficMirrorFilterCommand.ts index 362c473753386..962db5395c19a 100644 --- a/clients/client-ec2/commands/CreateTrafficMirrorFilterCommand.ts +++ b/clients/client-ec2/commands/CreateTrafficMirrorFilterCommand.ts @@ -31,6 +31,7 @@ export class CreateTrafficMirrorFilterCommand extends $Command< CreateTrafficMirrorFilterCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTrafficMirrorFilterCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTrafficMirrorFilterRuleCommand.ts b/clients/client-ec2/commands/CreateTrafficMirrorFilterRuleCommand.ts index 2b91dc8d99614..576681a860fec 100644 --- a/clients/client-ec2/commands/CreateTrafficMirrorFilterRuleCommand.ts +++ b/clients/client-ec2/commands/CreateTrafficMirrorFilterRuleCommand.ts @@ -30,6 +30,7 @@ export class CreateTrafficMirrorFilterRuleCommand extends $Command< CreateTrafficMirrorFilterRuleCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateTrafficMirrorFilterRuleCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTrafficMirrorSessionCommand.ts b/clients/client-ec2/commands/CreateTrafficMirrorSessionCommand.ts index 584ca9f5f61e2..e0e59729184e5 100644 --- a/clients/client-ec2/commands/CreateTrafficMirrorSessionCommand.ts +++ b/clients/client-ec2/commands/CreateTrafficMirrorSessionCommand.ts @@ -34,6 +34,7 @@ export class CreateTrafficMirrorSessionCommand extends $Command< CreateTrafficMirrorSessionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateTrafficMirrorSessionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTrafficMirrorTargetCommand.ts b/clients/client-ec2/commands/CreateTrafficMirrorTargetCommand.ts index a0a2482746938..50b47ac28824c 100644 --- a/clients/client-ec2/commands/CreateTrafficMirrorTargetCommand.ts +++ b/clients/client-ec2/commands/CreateTrafficMirrorTargetCommand.ts @@ -33,6 +33,7 @@ export class CreateTrafficMirrorTargetCommand extends $Command< CreateTrafficMirrorTargetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateTrafficMirrorTargetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayCommand.ts index 00e3cea067af1..f78f1b49ed9b4 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayCommand.ts @@ -40,6 +40,7 @@ export class CreateTransitGatewayCommand extends $Command< CreateTransitGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateTransitGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayConnectCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayConnectCommand.ts index 156555223ed90..f45d7e0aeaa04 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayConnectCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayConnectCommand.ts @@ -29,6 +29,7 @@ export class CreateTransitGatewayConnectCommand extends $Command< CreateTransitGatewayConnectCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTransitGatewayConnectCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayConnectPeerCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayConnectPeerCommand.ts index 921ab35b21a73..47790e37a1832 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayConnectPeerCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayConnectPeerCommand.ts @@ -31,6 +31,7 @@ export class CreateTransitGatewayConnectPeerCommand extends $Command< CreateTransitGatewayConnectPeerCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTransitGatewayConnectPeerCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayMulticastDomainCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayMulticastDomainCommand.ts index 5cf555df8c8a8..9b3bf582a202f 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayMulticastDomainCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayMulticastDomainCommand.ts @@ -33,6 +33,7 @@ export class CreateTransitGatewayMulticastDomainCommand extends $Command< CreateTransitGatewayMulticastDomainCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateTransitGatewayMulticastDomainCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayPeeringAttachmentCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayPeeringAttachmentCommand.ts index e9d3b21563f24..0f9d9178baf6c 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayPeeringAttachmentCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayPeeringAttachmentCommand.ts @@ -37,6 +37,7 @@ export class CreateTransitGatewayPeeringAttachmentCommand extends $Command< CreateTransitGatewayPeeringAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateTransitGatewayPeeringAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayPrefixListReferenceCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayPrefixListReferenceCommand.ts index 02d16795de076..861cf86d19ff7 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayPrefixListReferenceCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayPrefixListReferenceCommand.ts @@ -32,6 +32,7 @@ export class CreateTransitGatewayPrefixListReferenceCommand extends $Command< CreateTransitGatewayPrefixListReferenceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateTransitGatewayPrefixListReferenceCommand extends $Command< CreateTransitGatewayPrefixListReferenceCommandInput, CreateTransitGatewayPrefixListReferenceCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayRouteCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayRouteCommand.ts index 73173f87d4633..3c4fce3f4c12d 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayRouteCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class CreateTransitGatewayRouteCommand extends $Command< CreateTransitGatewayRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTransitGatewayRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayRouteTableCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayRouteTableCommand.ts index f0fcb2dd00ed8..bb11548a824b0 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayRouteTableCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayRouteTableCommand.ts @@ -28,6 +28,7 @@ export class CreateTransitGatewayRouteTableCommand extends $Command< CreateTransitGatewayRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTransitGatewayRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateTransitGatewayVpcAttachmentCommand.ts b/clients/client-ec2/commands/CreateTransitGatewayVpcAttachmentCommand.ts index 027c962efca21..e686828de3289 100644 --- a/clients/client-ec2/commands/CreateTransitGatewayVpcAttachmentCommand.ts +++ b/clients/client-ec2/commands/CreateTransitGatewayVpcAttachmentCommand.ts @@ -31,6 +31,7 @@ export class CreateTransitGatewayVpcAttachmentCommand extends $Command< CreateTransitGatewayVpcAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTransitGatewayVpcAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVolumeCommand.ts b/clients/client-ec2/commands/CreateVolumeCommand.ts index bee597e7cf632..f595057300afa 100644 --- a/clients/client-ec2/commands/CreateVolumeCommand.ts +++ b/clients/client-ec2/commands/CreateVolumeCommand.ts @@ -35,6 +35,7 @@ export class CreateVolumeCommand extends $Command< CreateVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpcCommand.ts b/clients/client-ec2/commands/CreateVpcCommand.ts index d2e5241e612f4..ffdbd508d160b 100644 --- a/clients/client-ec2/commands/CreateVpcCommand.ts +++ b/clients/client-ec2/commands/CreateVpcCommand.ts @@ -31,6 +31,7 @@ export type CreateVpcCommandOutput = CreateVpcResult & __MetadataBearer; * Amazon Elastic Compute Cloud User Guide.

*/ export class CreateVpcCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateVpcCommand 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-ec2/commands/CreateVpcEndpointCommand.ts b/clients/client-ec2/commands/CreateVpcEndpointCommand.ts index 4d3a1fe3ff0c3..d4893a17436fc 100644 --- a/clients/client-ec2/commands/CreateVpcEndpointCommand.ts +++ b/clients/client-ec2/commands/CreateVpcEndpointCommand.ts @@ -42,6 +42,7 @@ export class CreateVpcEndpointCommand extends $Command< CreateVpcEndpointCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateVpcEndpointCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpcEndpointConnectionNotificationCommand.ts b/clients/client-ec2/commands/CreateVpcEndpointConnectionNotificationCommand.ts index 49f7e25aa9848..028db0412c22a 100644 --- a/clients/client-ec2/commands/CreateVpcEndpointConnectionNotificationCommand.ts +++ b/clients/client-ec2/commands/CreateVpcEndpointConnectionNotificationCommand.ts @@ -36,6 +36,7 @@ export class CreateVpcEndpointConnectionNotificationCommand extends $Command< CreateVpcEndpointConnectionNotificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateVpcEndpointConnectionNotificationCommand extends $Command< CreateVpcEndpointConnectionNotificationCommandInput, CreateVpcEndpointConnectionNotificationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpcEndpointServiceConfigurationCommand.ts b/clients/client-ec2/commands/CreateVpcEndpointServiceConfigurationCommand.ts index f90f0e3e61e77..4a744408778f5 100644 --- a/clients/client-ec2/commands/CreateVpcEndpointServiceConfigurationCommand.ts +++ b/clients/client-ec2/commands/CreateVpcEndpointServiceConfigurationCommand.ts @@ -51,6 +51,7 @@ export class CreateVpcEndpointServiceConfigurationCommand extends $Command< CreateVpcEndpointServiceConfigurationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreateVpcEndpointServiceConfigurationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpcPeeringConnectionCommand.ts b/clients/client-ec2/commands/CreateVpcPeeringConnectionCommand.ts index c800741216183..8115a6fc4505c 100644 --- a/clients/client-ec2/commands/CreateVpcPeeringConnectionCommand.ts +++ b/clients/client-ec2/commands/CreateVpcPeeringConnectionCommand.ts @@ -39,6 +39,7 @@ export class CreateVpcPeeringConnectionCommand extends $Command< CreateVpcPeeringConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateVpcPeeringConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpnConnectionCommand.ts b/clients/client-ec2/commands/CreateVpnConnectionCommand.ts index 539e5162e5287..9bf24aa34c529 100644 --- a/clients/client-ec2/commands/CreateVpnConnectionCommand.ts +++ b/clients/client-ec2/commands/CreateVpnConnectionCommand.ts @@ -43,6 +43,7 @@ export class CreateVpnConnectionCommand extends $Command< CreateVpnConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateVpnConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpnConnectionRouteCommand.ts b/clients/client-ec2/commands/CreateVpnConnectionRouteCommand.ts index c99b440906fe6..cec9bf766286f 100644 --- a/clients/client-ec2/commands/CreateVpnConnectionRouteCommand.ts +++ b/clients/client-ec2/commands/CreateVpnConnectionRouteCommand.ts @@ -29,6 +29,7 @@ export class CreateVpnConnectionRouteCommand extends $Command< CreateVpnConnectionRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateVpnConnectionRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/CreateVpnGatewayCommand.ts b/clients/client-ec2/commands/CreateVpnGatewayCommand.ts index 91198f83b46e1..0f0590302e339 100644 --- a/clients/client-ec2/commands/CreateVpnGatewayCommand.ts +++ b/clients/client-ec2/commands/CreateVpnGatewayCommand.ts @@ -29,6 +29,7 @@ export class CreateVpnGatewayCommand extends $Command< CreateVpnGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateVpnGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteCarrierGatewayCommand.ts b/clients/client-ec2/commands/DeleteCarrierGatewayCommand.ts index 5aba3d9f658d3..5aa8be8f9808e 100644 --- a/clients/client-ec2/commands/DeleteCarrierGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteCarrierGatewayCommand.ts @@ -33,6 +33,7 @@ export class DeleteCarrierGatewayCommand extends $Command< DeleteCarrierGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteCarrierGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteClientVpnEndpointCommand.ts b/clients/client-ec2/commands/DeleteClientVpnEndpointCommand.ts index ea21b6b735011..dc64536410184 100644 --- a/clients/client-ec2/commands/DeleteClientVpnEndpointCommand.ts +++ b/clients/client-ec2/commands/DeleteClientVpnEndpointCommand.ts @@ -29,6 +29,7 @@ export class DeleteClientVpnEndpointCommand extends $Command< DeleteClientVpnEndpointCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteClientVpnEndpointCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteClientVpnRouteCommand.ts b/clients/client-ec2/commands/DeleteClientVpnRouteCommand.ts index bc0b809ab567e..d02483308414f 100644 --- a/clients/client-ec2/commands/DeleteClientVpnRouteCommand.ts +++ b/clients/client-ec2/commands/DeleteClientVpnRouteCommand.ts @@ -31,6 +31,7 @@ export class DeleteClientVpnRouteCommand extends $Command< DeleteClientVpnRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteClientVpnRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteCustomerGatewayCommand.ts b/clients/client-ec2/commands/DeleteCustomerGatewayCommand.ts index 66e7d9abbc2fb..93180235546b1 100644 --- a/clients/client-ec2/commands/DeleteCustomerGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteCustomerGatewayCommand.ts @@ -28,6 +28,7 @@ export class DeleteCustomerGatewayCommand extends $Command< DeleteCustomerGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCustomerGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteDhcpOptionsCommand.ts b/clients/client-ec2/commands/DeleteDhcpOptionsCommand.ts index 282d90ed65984..37b77c9b82f57 100644 --- a/clients/client-ec2/commands/DeleteDhcpOptionsCommand.ts +++ b/clients/client-ec2/commands/DeleteDhcpOptionsCommand.ts @@ -28,6 +28,7 @@ export class DeleteDhcpOptionsCommand extends $Command< DeleteDhcpOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDhcpOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteEgressOnlyInternetGatewayCommand.ts b/clients/client-ec2/commands/DeleteEgressOnlyInternetGatewayCommand.ts index 609cf651826ea..7f0dc3d8c3b38 100644 --- a/clients/client-ec2/commands/DeleteEgressOnlyInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteEgressOnlyInternetGatewayCommand.ts @@ -28,6 +28,7 @@ export class DeleteEgressOnlyInternetGatewayCommand extends $Command< DeleteEgressOnlyInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEgressOnlyInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteFleetsCommand.ts b/clients/client-ec2/commands/DeleteFleetsCommand.ts index 66805499c7f0c..5f309261c3d22 100644 --- a/clients/client-ec2/commands/DeleteFleetsCommand.ts +++ b/clients/client-ec2/commands/DeleteFleetsCommand.ts @@ -51,6 +51,7 @@ export class DeleteFleetsCommand extends $Command< DeleteFleetsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteFleetsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteFlowLogsCommand.ts b/clients/client-ec2/commands/DeleteFlowLogsCommand.ts index 3f879f9436815..59d9cddc675fe 100644 --- a/clients/client-ec2/commands/DeleteFlowLogsCommand.ts +++ b/clients/client-ec2/commands/DeleteFlowLogsCommand.ts @@ -25,6 +25,7 @@ export class DeleteFlowLogsCommand extends $Command< DeleteFlowLogsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteFlowLogsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteFpgaImageCommand.ts b/clients/client-ec2/commands/DeleteFpgaImageCommand.ts index 78f1fcef779a2..542d1f02f1655 100644 --- a/clients/client-ec2/commands/DeleteFpgaImageCommand.ts +++ b/clients/client-ec2/commands/DeleteFpgaImageCommand.ts @@ -25,6 +25,7 @@ export class DeleteFpgaImageCommand extends $Command< DeleteFpgaImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteFpgaImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteInternetGatewayCommand.ts b/clients/client-ec2/commands/DeleteInternetGatewayCommand.ts index 293e0832d7a7f..5cd89a7417166 100644 --- a/clients/client-ec2/commands/DeleteInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteInternetGatewayCommand.ts @@ -29,6 +29,7 @@ export class DeleteInternetGatewayCommand extends $Command< DeleteInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteKeyPairCommand.ts b/clients/client-ec2/commands/DeleteKeyPairCommand.ts index 81cb98238411d..ca189162df9d3 100644 --- a/clients/client-ec2/commands/DeleteKeyPairCommand.ts +++ b/clients/client-ec2/commands/DeleteKeyPairCommand.ts @@ -25,6 +25,7 @@ export class DeleteKeyPairCommand extends $Command< DeleteKeyPairCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteKeyPairCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteLaunchTemplateCommand.ts b/clients/client-ec2/commands/DeleteLaunchTemplateCommand.ts index d6d6169160952..b21a428f0bbac 100644 --- a/clients/client-ec2/commands/DeleteLaunchTemplateCommand.ts +++ b/clients/client-ec2/commands/DeleteLaunchTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteLaunchTemplateCommand extends $Command< DeleteLaunchTemplateCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLaunchTemplateCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteLaunchTemplateVersionsCommand.ts b/clients/client-ec2/commands/DeleteLaunchTemplateVersionsCommand.ts index b0dfcdcc2c3e9..995fb3d3c4028 100644 --- a/clients/client-ec2/commands/DeleteLaunchTemplateVersionsCommand.ts +++ b/clients/client-ec2/commands/DeleteLaunchTemplateVersionsCommand.ts @@ -31,6 +31,7 @@ export class DeleteLaunchTemplateVersionsCommand extends $Command< DeleteLaunchTemplateVersionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteLaunchTemplateVersionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteLocalGatewayRouteCommand.ts b/clients/client-ec2/commands/DeleteLocalGatewayRouteCommand.ts index 6592244339272..8f4adc5cad0f9 100644 --- a/clients/client-ec2/commands/DeleteLocalGatewayRouteCommand.ts +++ b/clients/client-ec2/commands/DeleteLocalGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteLocalGatewayRouteCommand extends $Command< DeleteLocalGatewayRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLocalGatewayRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.ts b/clients/client-ec2/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.ts index 9c3037338fed8..0702090cdf219 100644 --- a/clients/client-ec2/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.ts +++ b/clients/client-ec2/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.ts @@ -32,6 +32,7 @@ export class DeleteLocalGatewayRouteTableVpcAssociationCommand extends $Command< DeleteLocalGatewayRouteTableVpcAssociationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteLocalGatewayRouteTableVpcAssociationCommand extends $Command< DeleteLocalGatewayRouteTableVpcAssociationCommandInput, DeleteLocalGatewayRouteTableVpcAssociationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteManagedPrefixListCommand.ts b/clients/client-ec2/commands/DeleteManagedPrefixListCommand.ts index 641d60498c835..b41945d5c4979 100644 --- a/clients/client-ec2/commands/DeleteManagedPrefixListCommand.ts +++ b/clients/client-ec2/commands/DeleteManagedPrefixListCommand.ts @@ -28,6 +28,7 @@ export class DeleteManagedPrefixListCommand extends $Command< DeleteManagedPrefixListCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteManagedPrefixListCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNatGatewayCommand.ts b/clients/client-ec2/commands/DeleteNatGatewayCommand.ts index cd4bc518cc8c2..7eafcc41d6a61 100644 --- a/clients/client-ec2/commands/DeleteNatGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteNatGatewayCommand.ts @@ -28,6 +28,7 @@ export class DeleteNatGatewayCommand extends $Command< DeleteNatGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNatGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkAclCommand.ts b/clients/client-ec2/commands/DeleteNetworkAclCommand.ts index 9f75a6cfa547c..a33712ba3ac78 100644 --- a/clients/client-ec2/commands/DeleteNetworkAclCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkAclCommand.ts @@ -28,6 +28,7 @@ export class DeleteNetworkAclCommand extends $Command< DeleteNetworkAclCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNetworkAclCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkAclEntryCommand.ts b/clients/client-ec2/commands/DeleteNetworkAclEntryCommand.ts index e9fdeee5528e9..b84c747469968 100644 --- a/clients/client-ec2/commands/DeleteNetworkAclEntryCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkAclEntryCommand.ts @@ -28,6 +28,7 @@ export class DeleteNetworkAclEntryCommand extends $Command< DeleteNetworkAclEntryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNetworkAclEntryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkInsightsAnalysisCommand.ts b/clients/client-ec2/commands/DeleteNetworkInsightsAnalysisCommand.ts index 2cd1ea649df1e..e9f4e294ed3fb 100644 --- a/clients/client-ec2/commands/DeleteNetworkInsightsAnalysisCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkInsightsAnalysisCommand.ts @@ -29,6 +29,7 @@ export class DeleteNetworkInsightsAnalysisCommand extends $Command< DeleteNetworkInsightsAnalysisCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteNetworkInsightsAnalysisCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkInsightsPathCommand.ts b/clients/client-ec2/commands/DeleteNetworkInsightsPathCommand.ts index 7975ce279d7c4..ba215f5351950 100644 --- a/clients/client-ec2/commands/DeleteNetworkInsightsPathCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkInsightsPathCommand.ts @@ -28,6 +28,7 @@ export class DeleteNetworkInsightsPathCommand extends $Command< DeleteNetworkInsightsPathCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNetworkInsightsPathCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkInterfaceCommand.ts b/clients/client-ec2/commands/DeleteNetworkInterfaceCommand.ts index dafeb572281fb..bde7178b5d7a7 100644 --- a/clients/client-ec2/commands/DeleteNetworkInterfaceCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkInterfaceCommand.ts @@ -28,6 +28,7 @@ export class DeleteNetworkInterfaceCommand extends $Command< DeleteNetworkInterfaceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNetworkInterfaceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteNetworkInterfacePermissionCommand.ts b/clients/client-ec2/commands/DeleteNetworkInterfacePermissionCommand.ts index f22b3cb740ba1..3699aaf038a44 100644 --- a/clients/client-ec2/commands/DeleteNetworkInterfacePermissionCommand.ts +++ b/clients/client-ec2/commands/DeleteNetworkInterfacePermissionCommand.ts @@ -31,6 +31,7 @@ export class DeleteNetworkInterfacePermissionCommand extends $Command< DeleteNetworkInterfacePermissionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteNetworkInterfacePermissionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeletePlacementGroupCommand.ts b/clients/client-ec2/commands/DeletePlacementGroupCommand.ts index 1c007fad7e6ba..df42e1ae1fb2c 100644 --- a/clients/client-ec2/commands/DeletePlacementGroupCommand.ts +++ b/clients/client-ec2/commands/DeletePlacementGroupCommand.ts @@ -31,6 +31,7 @@ export class DeletePlacementGroupCommand extends $Command< DeletePlacementGroupCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePlacementGroupCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteQueuedReservedInstancesCommand.ts b/clients/client-ec2/commands/DeleteQueuedReservedInstancesCommand.ts index 6f29d3460cdc7..4d55e84ef21c0 100644 --- a/clients/client-ec2/commands/DeleteQueuedReservedInstancesCommand.ts +++ b/clients/client-ec2/commands/DeleteQueuedReservedInstancesCommand.ts @@ -28,6 +28,7 @@ export class DeleteQueuedReservedInstancesCommand extends $Command< DeleteQueuedReservedInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteQueuedReservedInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteRouteCommand.ts b/clients/client-ec2/commands/DeleteRouteCommand.ts index 8c3f0e8eb7564..4cadf6f44a98a 100644 --- a/clients/client-ec2/commands/DeleteRouteCommand.ts +++ b/clients/client-ec2/commands/DeleteRouteCommand.ts @@ -25,6 +25,7 @@ export class DeleteRouteCommand extends $Command< DeleteRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteRouteTableCommand.ts b/clients/client-ec2/commands/DeleteRouteTableCommand.ts index fd628c48f4f76..f05e62e620c68 100644 --- a/clients/client-ec2/commands/DeleteRouteTableCommand.ts +++ b/clients/client-ec2/commands/DeleteRouteTableCommand.ts @@ -28,6 +28,7 @@ export class DeleteRouteTableCommand extends $Command< DeleteRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteSecurityGroupCommand.ts b/clients/client-ec2/commands/DeleteSecurityGroupCommand.ts index e2b9b7b262ddf..7a152be397be4 100644 --- a/clients/client-ec2/commands/DeleteSecurityGroupCommand.ts +++ b/clients/client-ec2/commands/DeleteSecurityGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteSecurityGroupCommand extends $Command< DeleteSecurityGroupCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteSecurityGroupCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteSnapshotCommand.ts b/clients/client-ec2/commands/DeleteSnapshotCommand.ts index 824c71f50c492..4de8395e098df 100644 --- a/clients/client-ec2/commands/DeleteSnapshotCommand.ts +++ b/clients/client-ec2/commands/DeleteSnapshotCommand.ts @@ -34,6 +34,7 @@ export class DeleteSnapshotCommand extends $Command< DeleteSnapshotCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteSnapshotCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteSpotDatafeedSubscriptionCommand.ts b/clients/client-ec2/commands/DeleteSpotDatafeedSubscriptionCommand.ts index 72e22a302c6af..a46e947bfed2e 100644 --- a/clients/client-ec2/commands/DeleteSpotDatafeedSubscriptionCommand.ts +++ b/clients/client-ec2/commands/DeleteSpotDatafeedSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteSpotDatafeedSubscriptionCommand extends $Command< DeleteSpotDatafeedSubscriptionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSpotDatafeedSubscriptionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteSubnetCommand.ts b/clients/client-ec2/commands/DeleteSubnetCommand.ts index f686a2e88ed99..217cd5308dd6c 100644 --- a/clients/client-ec2/commands/DeleteSubnetCommand.ts +++ b/clients/client-ec2/commands/DeleteSubnetCommand.ts @@ -25,6 +25,7 @@ export class DeleteSubnetCommand extends $Command< DeleteSubnetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteSubnetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTagsCommand.ts b/clients/client-ec2/commands/DeleteTagsCommand.ts index 4412b7a5c2933..59c900c5d16dc 100644 --- a/clients/client-ec2/commands/DeleteTagsCommand.ts +++ b/clients/client-ec2/commands/DeleteTagsCommand.ts @@ -28,6 +28,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTagsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTrafficMirrorFilterCommand.ts b/clients/client-ec2/commands/DeleteTrafficMirrorFilterCommand.ts index e37627ae8747f..cbf1f0164bb31 100644 --- a/clients/client-ec2/commands/DeleteTrafficMirrorFilterCommand.ts +++ b/clients/client-ec2/commands/DeleteTrafficMirrorFilterCommand.ts @@ -29,6 +29,7 @@ export class DeleteTrafficMirrorFilterCommand extends $Command< DeleteTrafficMirrorFilterCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTrafficMirrorFilterCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTrafficMirrorFilterRuleCommand.ts b/clients/client-ec2/commands/DeleteTrafficMirrorFilterRuleCommand.ts index ceee9a003c2fc..33a2704af3547 100644 --- a/clients/client-ec2/commands/DeleteTrafficMirrorFilterRuleCommand.ts +++ b/clients/client-ec2/commands/DeleteTrafficMirrorFilterRuleCommand.ts @@ -28,6 +28,7 @@ export class DeleteTrafficMirrorFilterRuleCommand extends $Command< DeleteTrafficMirrorFilterRuleCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTrafficMirrorFilterRuleCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTrafficMirrorSessionCommand.ts b/clients/client-ec2/commands/DeleteTrafficMirrorSessionCommand.ts index a5173b9746b3a..6ba8b3d0d14d0 100644 --- a/clients/client-ec2/commands/DeleteTrafficMirrorSessionCommand.ts +++ b/clients/client-ec2/commands/DeleteTrafficMirrorSessionCommand.ts @@ -28,6 +28,7 @@ export class DeleteTrafficMirrorSessionCommand extends $Command< DeleteTrafficMirrorSessionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTrafficMirrorSessionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTrafficMirrorTargetCommand.ts b/clients/client-ec2/commands/DeleteTrafficMirrorTargetCommand.ts index 927a2777b339d..166456ccd6631 100644 --- a/clients/client-ec2/commands/DeleteTrafficMirrorTargetCommand.ts +++ b/clients/client-ec2/commands/DeleteTrafficMirrorTargetCommand.ts @@ -29,6 +29,7 @@ export class DeleteTrafficMirrorTargetCommand extends $Command< DeleteTrafficMirrorTargetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTrafficMirrorTargetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayCommand.ts index 8a49abf75f391..6c3427c8b867d 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayCommand.ts @@ -28,6 +28,7 @@ export class DeleteTransitGatewayCommand extends $Command< DeleteTransitGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTransitGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayConnectCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayConnectCommand.ts index ccdd3387116ab..b71ab19fe02e9 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayConnectCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayConnectCommand.ts @@ -29,6 +29,7 @@ export class DeleteTransitGatewayConnectCommand extends $Command< DeleteTransitGatewayConnectCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTransitGatewayConnectCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayConnectPeerCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayConnectPeerCommand.ts index 0e15aba094b23..efaad7d49530e 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayConnectPeerCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayConnectPeerCommand.ts @@ -28,6 +28,7 @@ export class DeleteTransitGatewayConnectPeerCommand extends $Command< DeleteTransitGatewayConnectPeerCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTransitGatewayConnectPeerCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayMulticastDomainCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayMulticastDomainCommand.ts index 3d02f95f68115..6ecd2559e27c2 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayMulticastDomainCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayMulticastDomainCommand.ts @@ -32,6 +32,7 @@ export class DeleteTransitGatewayMulticastDomainCommand extends $Command< DeleteTransitGatewayMulticastDomainCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteTransitGatewayMulticastDomainCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayPeeringAttachmentCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayPeeringAttachmentCommand.ts index 0f2f4d0752176..d525613d4c9ae 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayPeeringAttachmentCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayPeeringAttachmentCommand.ts @@ -32,6 +32,7 @@ export class DeleteTransitGatewayPeeringAttachmentCommand extends $Command< DeleteTransitGatewayPeeringAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteTransitGatewayPeeringAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayPrefixListReferenceCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayPrefixListReferenceCommand.ts index f7e7287b836c7..d23033eb0bd9e 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayPrefixListReferenceCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayPrefixListReferenceCommand.ts @@ -32,6 +32,7 @@ export class DeleteTransitGatewayPrefixListReferenceCommand extends $Command< DeleteTransitGatewayPrefixListReferenceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteTransitGatewayPrefixListReferenceCommand extends $Command< DeleteTransitGatewayPrefixListReferenceCommandInput, DeleteTransitGatewayPrefixListReferenceCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayRouteCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayRouteCommand.ts index 48be135f0310e..75a6df64e23dc 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayRouteCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteTransitGatewayRouteCommand extends $Command< DeleteTransitGatewayRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTransitGatewayRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayRouteTableCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayRouteTableCommand.ts index 58100ff493cd5..49fce71f9061d 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayRouteTableCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayRouteTableCommand.ts @@ -29,6 +29,7 @@ export class DeleteTransitGatewayRouteTableCommand extends $Command< DeleteTransitGatewayRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTransitGatewayRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteTransitGatewayVpcAttachmentCommand.ts b/clients/client-ec2/commands/DeleteTransitGatewayVpcAttachmentCommand.ts index 1b09b9045c851..cee5bacd45201 100644 --- a/clients/client-ec2/commands/DeleteTransitGatewayVpcAttachmentCommand.ts +++ b/clients/client-ec2/commands/DeleteTransitGatewayVpcAttachmentCommand.ts @@ -28,6 +28,7 @@ export class DeleteTransitGatewayVpcAttachmentCommand extends $Command< DeleteTransitGatewayVpcAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTransitGatewayVpcAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVolumeCommand.ts b/clients/client-ec2/commands/DeleteVolumeCommand.ts index a889f346ccfd9..de45b185d66eb 100644 --- a/clients/client-ec2/commands/DeleteVolumeCommand.ts +++ b/clients/client-ec2/commands/DeleteVolumeCommand.ts @@ -29,6 +29,7 @@ export class DeleteVolumeCommand extends $Command< DeleteVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpcCommand.ts b/clients/client-ec2/commands/DeleteVpcCommand.ts index 8970858d4028e..330063a04efd3 100644 --- a/clients/client-ec2/commands/DeleteVpcCommand.ts +++ b/clients/client-ec2/commands/DeleteVpcCommand.ts @@ -21,6 +21,7 @@ export type DeleteVpcCommandOutput = __MetadataBearer; *

Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

*/ export class DeleteVpcCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class DeleteVpcCommand 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-ec2/commands/DeleteVpcEndpointConnectionNotificationsCommand.ts b/clients/client-ec2/commands/DeleteVpcEndpointConnectionNotificationsCommand.ts index a1d725431c283..fe823930c9690 100644 --- a/clients/client-ec2/commands/DeleteVpcEndpointConnectionNotificationsCommand.ts +++ b/clients/client-ec2/commands/DeleteVpcEndpointConnectionNotificationsCommand.ts @@ -32,6 +32,7 @@ export class DeleteVpcEndpointConnectionNotificationsCommand extends $Command< DeleteVpcEndpointConnectionNotificationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteVpcEndpointConnectionNotificationsCommand extends $Command< DeleteVpcEndpointConnectionNotificationsCommandInput, DeleteVpcEndpointConnectionNotificationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpcEndpointServiceConfigurationsCommand.ts b/clients/client-ec2/commands/DeleteVpcEndpointServiceConfigurationsCommand.ts index 80f9cca1a1e13..be131c1f4702c 100644 --- a/clients/client-ec2/commands/DeleteVpcEndpointServiceConfigurationsCommand.ts +++ b/clients/client-ec2/commands/DeleteVpcEndpointServiceConfigurationsCommand.ts @@ -35,6 +35,7 @@ export class DeleteVpcEndpointServiceConfigurationsCommand extends $Command< DeleteVpcEndpointServiceConfigurationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteVpcEndpointServiceConfigurationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpcEndpointsCommand.ts b/clients/client-ec2/commands/DeleteVpcEndpointsCommand.ts index 5a281feee6b53..e71a3ce7dca14 100644 --- a/clients/client-ec2/commands/DeleteVpcEndpointsCommand.ts +++ b/clients/client-ec2/commands/DeleteVpcEndpointsCommand.ts @@ -30,6 +30,7 @@ export class DeleteVpcEndpointsCommand extends $Command< DeleteVpcEndpointsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteVpcEndpointsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpcPeeringConnectionCommand.ts b/clients/client-ec2/commands/DeleteVpcPeeringConnectionCommand.ts index ed1a281318be5..a9cb0bbfd23f2 100644 --- a/clients/client-ec2/commands/DeleteVpcPeeringConnectionCommand.ts +++ b/clients/client-ec2/commands/DeleteVpcPeeringConnectionCommand.ts @@ -32,6 +32,7 @@ export class DeleteVpcPeeringConnectionCommand extends $Command< DeleteVpcPeeringConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteVpcPeeringConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpnConnectionCommand.ts b/clients/client-ec2/commands/DeleteVpnConnectionCommand.ts index dcf52ff784c87..54d7a2a71b162 100644 --- a/clients/client-ec2/commands/DeleteVpnConnectionCommand.ts +++ b/clients/client-ec2/commands/DeleteVpnConnectionCommand.ts @@ -30,6 +30,7 @@ export class DeleteVpnConnectionCommand extends $Command< DeleteVpnConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteVpnConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpnConnectionRouteCommand.ts b/clients/client-ec2/commands/DeleteVpnConnectionRouteCommand.ts index d9f5ab9fa7303..0cf0b7694a033 100644 --- a/clients/client-ec2/commands/DeleteVpnConnectionRouteCommand.ts +++ b/clients/client-ec2/commands/DeleteVpnConnectionRouteCommand.ts @@ -28,6 +28,7 @@ export class DeleteVpnConnectionRouteCommand extends $Command< DeleteVpnConnectionRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVpnConnectionRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeleteVpnGatewayCommand.ts b/clients/client-ec2/commands/DeleteVpnGatewayCommand.ts index daa21d160612f..4b4e2e1b96ab9 100644 --- a/clients/client-ec2/commands/DeleteVpnGatewayCommand.ts +++ b/clients/client-ec2/commands/DeleteVpnGatewayCommand.ts @@ -28,6 +28,7 @@ export class DeleteVpnGatewayCommand extends $Command< DeleteVpnGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVpnGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeprovisionByoipCidrCommand.ts b/clients/client-ec2/commands/DeprovisionByoipCidrCommand.ts index 39099f8e02fcf..7f6a836838072 100644 --- a/clients/client-ec2/commands/DeprovisionByoipCidrCommand.ts +++ b/clients/client-ec2/commands/DeprovisionByoipCidrCommand.ts @@ -31,6 +31,7 @@ export class DeprovisionByoipCidrCommand extends $Command< DeprovisionByoipCidrCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeprovisionByoipCidrCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeregisterImageCommand.ts b/clients/client-ec2/commands/DeregisterImageCommand.ts index aba7d39e4f098..668a6657c18f9 100644 --- a/clients/client-ec2/commands/DeregisterImageCommand.ts +++ b/clients/client-ec2/commands/DeregisterImageCommand.ts @@ -32,6 +32,7 @@ export class DeregisterImageCommand extends $Command< DeregisterImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeregisterImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeregisterInstanceEventNotificationAttributesCommand.ts b/clients/client-ec2/commands/DeregisterInstanceEventNotificationAttributesCommand.ts index 1db0a129365af..98bcd627d895d 100644 --- a/clients/client-ec2/commands/DeregisterInstanceEventNotificationAttributesCommand.ts +++ b/clients/client-ec2/commands/DeregisterInstanceEventNotificationAttributesCommand.ts @@ -33,6 +33,7 @@ export class DeregisterInstanceEventNotificationAttributesCommand extends $Comma DeregisterInstanceEventNotificationAttributesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeregisterInstanceEventNotificationAttributesCommand extends $Comma DeregisterInstanceEventNotificationAttributesCommandInput, DeregisterInstanceEventNotificationAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.ts b/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.ts index 597d176074a5d..8761fa0aad75a 100644 --- a/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.ts +++ b/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.ts @@ -32,6 +32,7 @@ export class DeregisterTransitGatewayMulticastGroupMembersCommand extends $Comma DeregisterTransitGatewayMulticastGroupMembersCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeregisterTransitGatewayMulticastGroupMembersCommand extends $Comma DeregisterTransitGatewayMulticastGroupMembersCommandInput, DeregisterTransitGatewayMulticastGroupMembersCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.ts b/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.ts index 2213e967239d8..3e4f6b296029c 100644 --- a/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.ts +++ b/clients/client-ec2/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.ts @@ -32,6 +32,7 @@ export class DeregisterTransitGatewayMulticastGroupSourcesCommand extends $Comma DeregisterTransitGatewayMulticastGroupSourcesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeregisterTransitGatewayMulticastGroupSourcesCommand extends $Comma DeregisterTransitGatewayMulticastGroupSourcesCommandInput, DeregisterTransitGatewayMulticastGroupSourcesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeAccountAttributesCommand.ts b/clients/client-ec2/commands/DescribeAccountAttributesCommand.ts index 362c4930f241b..f6cad7902d9b0 100644 --- a/clients/client-ec2/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-ec2/commands/DescribeAccountAttributesCommand.ts @@ -62,6 +62,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeAddressesAttributeCommand.ts b/clients/client-ec2/commands/DescribeAddressesAttributeCommand.ts index 8279da9a72f85..fa16264f1172e 100644 --- a/clients/client-ec2/commands/DescribeAddressesAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeAddressesAttributeCommand.ts @@ -25,6 +25,7 @@ export class DescribeAddressesAttributeCommand extends $Command< DescribeAddressesAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeAddressesAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeAddressesCommand.ts b/clients/client-ec2/commands/DescribeAddressesCommand.ts index 8d0748b5fb846..bfaa634e744b0 100644 --- a/clients/client-ec2/commands/DescribeAddressesCommand.ts +++ b/clients/client-ec2/commands/DescribeAddressesCommand.ts @@ -30,6 +30,7 @@ export class DescribeAddressesCommand extends $Command< DescribeAddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeAggregateIdFormatCommand.ts b/clients/client-ec2/commands/DescribeAggregateIdFormatCommand.ts index d64f7df37f2b7..32f3f95e1233a 100644 --- a/clients/client-ec2/commands/DescribeAggregateIdFormatCommand.ts +++ b/clients/client-ec2/commands/DescribeAggregateIdFormatCommand.ts @@ -45,6 +45,7 @@ export class DescribeAggregateIdFormatCommand extends $Command< DescribeAggregateIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DescribeAggregateIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeAvailabilityZonesCommand.ts b/clients/client-ec2/commands/DescribeAvailabilityZonesCommand.ts index fe3409696a075..ab01bd3effff1 100644 --- a/clients/client-ec2/commands/DescribeAvailabilityZonesCommand.ts +++ b/clients/client-ec2/commands/DescribeAvailabilityZonesCommand.ts @@ -33,6 +33,7 @@ export class DescribeAvailabilityZonesCommand extends $Command< DescribeAvailabilityZonesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeAvailabilityZonesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeBundleTasksCommand.ts b/clients/client-ec2/commands/DescribeBundleTasksCommand.ts index 682b47d0894de..4a78b5e4e5cf8 100644 --- a/clients/client-ec2/commands/DescribeBundleTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeBundleTasksCommand.ts @@ -31,6 +31,7 @@ export class DescribeBundleTasksCommand extends $Command< DescribeBundleTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeBundleTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeByoipCidrsCommand.ts b/clients/client-ec2/commands/DescribeByoipCidrsCommand.ts index 1704e1f3ac4b8..57771a4ac1e8d 100644 --- a/clients/client-ec2/commands/DescribeByoipCidrsCommand.ts +++ b/clients/client-ec2/commands/DescribeByoipCidrsCommand.ts @@ -30,6 +30,7 @@ export class DescribeByoipCidrsCommand extends $Command< DescribeByoipCidrsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeByoipCidrsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeCapacityReservationsCommand.ts b/clients/client-ec2/commands/DescribeCapacityReservationsCommand.ts index 4fa29988c5c6f..7845b189d2d8d 100644 --- a/clients/client-ec2/commands/DescribeCapacityReservationsCommand.ts +++ b/clients/client-ec2/commands/DescribeCapacityReservationsCommand.ts @@ -29,6 +29,7 @@ export class DescribeCapacityReservationsCommand extends $Command< DescribeCapacityReservationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCapacityReservationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeCarrierGatewaysCommand.ts b/clients/client-ec2/commands/DescribeCarrierGatewaysCommand.ts index 097df393379bc..85c58f8f01ee6 100644 --- a/clients/client-ec2/commands/DescribeCarrierGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeCarrierGatewaysCommand.ts @@ -28,6 +28,7 @@ export class DescribeCarrierGatewaysCommand extends $Command< DescribeCarrierGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCarrierGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClassicLinkInstancesCommand.ts b/clients/client-ec2/commands/DescribeClassicLinkInstancesCommand.ts index bcaa636a2c52d..b7a585c9351eb 100644 --- a/clients/client-ec2/commands/DescribeClassicLinkInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeClassicLinkInstancesCommand.ts @@ -30,6 +30,7 @@ export class DescribeClassicLinkInstancesCommand extends $Command< DescribeClassicLinkInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeClassicLinkInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClientVpnAuthorizationRulesCommand.ts b/clients/client-ec2/commands/DescribeClientVpnAuthorizationRulesCommand.ts index 8632516e4f71d..0c5a610dc34f4 100644 --- a/clients/client-ec2/commands/DescribeClientVpnAuthorizationRulesCommand.ts +++ b/clients/client-ec2/commands/DescribeClientVpnAuthorizationRulesCommand.ts @@ -32,6 +32,7 @@ export class DescribeClientVpnAuthorizationRulesCommand extends $Command< DescribeClientVpnAuthorizationRulesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeClientVpnAuthorizationRulesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClientVpnConnectionsCommand.ts b/clients/client-ec2/commands/DescribeClientVpnConnectionsCommand.ts index 1215baa07f885..34631e0c2d26d 100644 --- a/clients/client-ec2/commands/DescribeClientVpnConnectionsCommand.ts +++ b/clients/client-ec2/commands/DescribeClientVpnConnectionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeClientVpnConnectionsCommand extends $Command< DescribeClientVpnConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeClientVpnConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClientVpnEndpointsCommand.ts b/clients/client-ec2/commands/DescribeClientVpnEndpointsCommand.ts index 54b7e27a56b7a..cada1b02d3260 100644 --- a/clients/client-ec2/commands/DescribeClientVpnEndpointsCommand.ts +++ b/clients/client-ec2/commands/DescribeClientVpnEndpointsCommand.ts @@ -28,6 +28,7 @@ export class DescribeClientVpnEndpointsCommand extends $Command< DescribeClientVpnEndpointsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClientVpnEndpointsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClientVpnRoutesCommand.ts b/clients/client-ec2/commands/DescribeClientVpnRoutesCommand.ts index 9363e33de2fc2..367b67673b0a0 100644 --- a/clients/client-ec2/commands/DescribeClientVpnRoutesCommand.ts +++ b/clients/client-ec2/commands/DescribeClientVpnRoutesCommand.ts @@ -28,6 +28,7 @@ export class DescribeClientVpnRoutesCommand extends $Command< DescribeClientVpnRoutesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClientVpnRoutesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeClientVpnTargetNetworksCommand.ts b/clients/client-ec2/commands/DescribeClientVpnTargetNetworksCommand.ts index dab43896224c5..a30a259d59b3a 100644 --- a/clients/client-ec2/commands/DescribeClientVpnTargetNetworksCommand.ts +++ b/clients/client-ec2/commands/DescribeClientVpnTargetNetworksCommand.ts @@ -28,6 +28,7 @@ export class DescribeClientVpnTargetNetworksCommand extends $Command< DescribeClientVpnTargetNetworksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClientVpnTargetNetworksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeCoipPoolsCommand.ts b/clients/client-ec2/commands/DescribeCoipPoolsCommand.ts index 9d67e7bb4e757..285058579c797 100644 --- a/clients/client-ec2/commands/DescribeCoipPoolsCommand.ts +++ b/clients/client-ec2/commands/DescribeCoipPoolsCommand.ts @@ -28,6 +28,7 @@ export class DescribeCoipPoolsCommand extends $Command< DescribeCoipPoolsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCoipPoolsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeConversionTasksCommand.ts b/clients/client-ec2/commands/DescribeConversionTasksCommand.ts index a5d7c46b6abe8..0db9dceccd26c 100644 --- a/clients/client-ec2/commands/DescribeConversionTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeConversionTasksCommand.ts @@ -30,6 +30,7 @@ export class DescribeConversionTasksCommand extends $Command< DescribeConversionTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeConversionTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeCustomerGatewaysCommand.ts b/clients/client-ec2/commands/DescribeCustomerGatewaysCommand.ts index b4b35adcf8707..cbccfdfe8a676 100644 --- a/clients/client-ec2/commands/DescribeCustomerGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeCustomerGatewaysCommand.ts @@ -29,6 +29,7 @@ export class DescribeCustomerGatewaysCommand extends $Command< DescribeCustomerGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCustomerGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeDhcpOptionsCommand.ts b/clients/client-ec2/commands/DescribeDhcpOptionsCommand.ts index 92bf0dae9b50c..14116418c0696 100644 --- a/clients/client-ec2/commands/DescribeDhcpOptionsCommand.ts +++ b/clients/client-ec2/commands/DescribeDhcpOptionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDhcpOptionsCommand extends $Command< DescribeDhcpOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDhcpOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeEgressOnlyInternetGatewaysCommand.ts b/clients/client-ec2/commands/DescribeEgressOnlyInternetGatewaysCommand.ts index a0850682c58f1..3d0d0b866e27f 100644 --- a/clients/client-ec2/commands/DescribeEgressOnlyInternetGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeEgressOnlyInternetGatewaysCommand.ts @@ -32,6 +32,7 @@ export class DescribeEgressOnlyInternetGatewaysCommand extends $Command< DescribeEgressOnlyInternetGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEgressOnlyInternetGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeElasticGpusCommand.ts b/clients/client-ec2/commands/DescribeElasticGpusCommand.ts index 9579ad621b647..d14d42c662fb5 100644 --- a/clients/client-ec2/commands/DescribeElasticGpusCommand.ts +++ b/clients/client-ec2/commands/DescribeElasticGpusCommand.ts @@ -29,6 +29,7 @@ export class DescribeElasticGpusCommand extends $Command< DescribeElasticGpusCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeElasticGpusCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeExportImageTasksCommand.ts b/clients/client-ec2/commands/DescribeExportImageTasksCommand.ts index 1ee3714bfa803..8bf44d59e618d 100644 --- a/clients/client-ec2/commands/DescribeExportImageTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeExportImageTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeExportImageTasksCommand extends $Command< DescribeExportImageTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExportImageTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeExportTasksCommand.ts b/clients/client-ec2/commands/DescribeExportTasksCommand.ts index 8b4cc5d39e193..314863e327384 100644 --- a/clients/client-ec2/commands/DescribeExportTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeExportTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeExportTasksCommand extends $Command< DescribeExportTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExportTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFastSnapshotRestoresCommand.ts b/clients/client-ec2/commands/DescribeFastSnapshotRestoresCommand.ts index a2fc708e90c30..a4a075d8a2f2a 100644 --- a/clients/client-ec2/commands/DescribeFastSnapshotRestoresCommand.ts +++ b/clients/client-ec2/commands/DescribeFastSnapshotRestoresCommand.ts @@ -28,6 +28,7 @@ export class DescribeFastSnapshotRestoresCommand extends $Command< DescribeFastSnapshotRestoresCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFastSnapshotRestoresCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFleetHistoryCommand.ts b/clients/client-ec2/commands/DescribeFleetHistoryCommand.ts index 75ca7b5f567cf..d39cf103ee3a2 100644 --- a/clients/client-ec2/commands/DescribeFleetHistoryCommand.ts +++ b/clients/client-ec2/commands/DescribeFleetHistoryCommand.ts @@ -31,6 +31,7 @@ export class DescribeFleetHistoryCommand extends $Command< DescribeFleetHistoryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeFleetHistoryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFleetInstancesCommand.ts b/clients/client-ec2/commands/DescribeFleetInstancesCommand.ts index c87bdb09a29bc..3b959c665e77f 100644 --- a/clients/client-ec2/commands/DescribeFleetInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeFleetInstancesCommand.ts @@ -28,6 +28,7 @@ export class DescribeFleetInstancesCommand extends $Command< DescribeFleetInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFleetInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFleetsCommand.ts b/clients/client-ec2/commands/DescribeFleetsCommand.ts index 665ab67f818c6..9d6f2e96eef7c 100644 --- a/clients/client-ec2/commands/DescribeFleetsCommand.ts +++ b/clients/client-ec2/commands/DescribeFleetsCommand.ts @@ -25,6 +25,7 @@ export class DescribeFleetsCommand extends $Command< DescribeFleetsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeFleetsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFlowLogsCommand.ts b/clients/client-ec2/commands/DescribeFlowLogsCommand.ts index 7be0cce3bdf2e..6374bdbe9361a 100644 --- a/clients/client-ec2/commands/DescribeFlowLogsCommand.ts +++ b/clients/client-ec2/commands/DescribeFlowLogsCommand.ts @@ -30,6 +30,7 @@ export class DescribeFlowLogsCommand extends $Command< DescribeFlowLogsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFlowLogsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFpgaImageAttributeCommand.ts b/clients/client-ec2/commands/DescribeFpgaImageAttributeCommand.ts index d0b74d39027cd..5540fb337370a 100644 --- a/clients/client-ec2/commands/DescribeFpgaImageAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeFpgaImageAttributeCommand.ts @@ -28,6 +28,7 @@ export class DescribeFpgaImageAttributeCommand extends $Command< DescribeFpgaImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFpgaImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeFpgaImagesCommand.ts b/clients/client-ec2/commands/DescribeFpgaImagesCommand.ts index c9fd416fd2001..c7245c53ae399 100644 --- a/clients/client-ec2/commands/DescribeFpgaImagesCommand.ts +++ b/clients/client-ec2/commands/DescribeFpgaImagesCommand.ts @@ -30,6 +30,7 @@ export class DescribeFpgaImagesCommand extends $Command< DescribeFpgaImagesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFpgaImagesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeHostReservationOfferingsCommand.ts b/clients/client-ec2/commands/DescribeHostReservationOfferingsCommand.ts index c596287dce050..d8695c183bae8 100644 --- a/clients/client-ec2/commands/DescribeHostReservationOfferingsCommand.ts +++ b/clients/client-ec2/commands/DescribeHostReservationOfferingsCommand.ts @@ -34,6 +34,7 @@ export class DescribeHostReservationOfferingsCommand extends $Command< DescribeHostReservationOfferingsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeHostReservationOfferingsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeHostReservationsCommand.ts b/clients/client-ec2/commands/DescribeHostReservationsCommand.ts index ea52512aa2642..e8baf7dd0494d 100644 --- a/clients/client-ec2/commands/DescribeHostReservationsCommand.ts +++ b/clients/client-ec2/commands/DescribeHostReservationsCommand.ts @@ -29,6 +29,7 @@ export class DescribeHostReservationsCommand extends $Command< DescribeHostReservationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeHostReservationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeHostsCommand.ts b/clients/client-ec2/commands/DescribeHostsCommand.ts index ba6a3161645aa..8e8bd308e7613 100644 --- a/clients/client-ec2/commands/DescribeHostsCommand.ts +++ b/clients/client-ec2/commands/DescribeHostsCommand.ts @@ -28,6 +28,7 @@ export class DescribeHostsCommand extends $Command< DescribeHostsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeHostsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeIamInstanceProfileAssociationsCommand.ts b/clients/client-ec2/commands/DescribeIamInstanceProfileAssociationsCommand.ts index 3e2ed6cd52f18..017c586e9e5a4 100644 --- a/clients/client-ec2/commands/DescribeIamInstanceProfileAssociationsCommand.ts +++ b/clients/client-ec2/commands/DescribeIamInstanceProfileAssociationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeIamInstanceProfileAssociationsCommand extends $Command< DescribeIamInstanceProfileAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeIamInstanceProfileAssociationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeIdFormatCommand.ts b/clients/client-ec2/commands/DescribeIdFormatCommand.ts index 6ddb3b855e9bf..316a874d9667d 100644 --- a/clients/client-ec2/commands/DescribeIdFormatCommand.ts +++ b/clients/client-ec2/commands/DescribeIdFormatCommand.ts @@ -47,6 +47,7 @@ export class DescribeIdFormatCommand extends $Command< DescribeIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeIdentityIdFormatCommand.ts b/clients/client-ec2/commands/DescribeIdentityIdFormatCommand.ts index 28cd5d31b2fb3..6f98a042bc079 100644 --- a/clients/client-ec2/commands/DescribeIdentityIdFormatCommand.ts +++ b/clients/client-ec2/commands/DescribeIdentityIdFormatCommand.ts @@ -46,6 +46,7 @@ export class DescribeIdentityIdFormatCommand extends $Command< DescribeIdentityIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DescribeIdentityIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeImageAttributeCommand.ts b/clients/client-ec2/commands/DescribeImageAttributeCommand.ts index d645cdddf1821..fd0513bce0122 100644 --- a/clients/client-ec2/commands/DescribeImageAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeImageAttributeCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageAttributeCommand extends $Command< DescribeImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeImagesCommand.ts b/clients/client-ec2/commands/DescribeImagesCommand.ts index a1f7729634ac7..68ba483a7b355 100644 --- a/clients/client-ec2/commands/DescribeImagesCommand.ts +++ b/clients/client-ec2/commands/DescribeImagesCommand.ts @@ -29,6 +29,7 @@ export class DescribeImagesCommand extends $Command< DescribeImagesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeImagesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeImportImageTasksCommand.ts b/clients/client-ec2/commands/DescribeImportImageTasksCommand.ts index 61c1a848fe9d5..5da6195ca5192 100644 --- a/clients/client-ec2/commands/DescribeImportImageTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeImportImageTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeImportImageTasksCommand extends $Command< DescribeImportImageTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImportImageTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeImportSnapshotTasksCommand.ts b/clients/client-ec2/commands/DescribeImportSnapshotTasksCommand.ts index d479c9c2aa599..39ef272ad7c96 100644 --- a/clients/client-ec2/commands/DescribeImportSnapshotTasksCommand.ts +++ b/clients/client-ec2/commands/DescribeImportSnapshotTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeImportSnapshotTasksCommand extends $Command< DescribeImportSnapshotTasksCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImportSnapshotTasksCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceAttributeCommand.ts b/clients/client-ec2/commands/DescribeInstanceAttributeCommand.ts index b00503c1540d7..322ae3ccf5012 100644 --- a/clients/client-ec2/commands/DescribeInstanceAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceAttributeCommand.ts @@ -35,6 +35,7 @@ export class DescribeInstanceAttributeCommand extends $Command< DescribeInstanceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeInstanceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceCreditSpecificationsCommand.ts b/clients/client-ec2/commands/DescribeInstanceCreditSpecificationsCommand.ts index f9ed37cf57356..2c84a0090391d 100644 --- a/clients/client-ec2/commands/DescribeInstanceCreditSpecificationsCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceCreditSpecificationsCommand.ts @@ -52,6 +52,7 @@ export class DescribeInstanceCreditSpecificationsCommand extends $Command< DescribeInstanceCreditSpecificationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DescribeInstanceCreditSpecificationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceEventNotificationAttributesCommand.ts b/clients/client-ec2/commands/DescribeInstanceEventNotificationAttributesCommand.ts index 3f86f3f98702b..0f8ce1d8329fa 100644 --- a/clients/client-ec2/commands/DescribeInstanceEventNotificationAttributesCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceEventNotificationAttributesCommand.ts @@ -33,6 +33,7 @@ export class DescribeInstanceEventNotificationAttributesCommand extends $Command DescribeInstanceEventNotificationAttributesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeInstanceEventNotificationAttributesCommand extends $Command DescribeInstanceEventNotificationAttributesCommandInput, DescribeInstanceEventNotificationAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceStatusCommand.ts b/clients/client-ec2/commands/DescribeInstanceStatusCommand.ts index 811ca31f53c31..6d38b62d8c3ec 100644 --- a/clients/client-ec2/commands/DescribeInstanceStatusCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceStatusCommand.ts @@ -57,6 +57,7 @@ export class DescribeInstanceStatusCommand extends $Command< DescribeInstanceStatusCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class DescribeInstanceStatusCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceTypeOfferingsCommand.ts b/clients/client-ec2/commands/DescribeInstanceTypeOfferingsCommand.ts index ba5a860684451..da51df62f80a8 100644 --- a/clients/client-ec2/commands/DescribeInstanceTypeOfferingsCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceTypeOfferingsCommand.ts @@ -29,6 +29,7 @@ export class DescribeInstanceTypeOfferingsCommand extends $Command< DescribeInstanceTypeOfferingsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeInstanceTypeOfferingsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstanceTypesCommand.ts b/clients/client-ec2/commands/DescribeInstanceTypesCommand.ts index 1f6880c631ae0..90f08e4e9e6a2 100644 --- a/clients/client-ec2/commands/DescribeInstanceTypesCommand.ts +++ b/clients/client-ec2/commands/DescribeInstanceTypesCommand.ts @@ -30,6 +30,7 @@ export class DescribeInstanceTypesCommand extends $Command< DescribeInstanceTypesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeInstanceTypesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInstancesCommand.ts b/clients/client-ec2/commands/DescribeInstancesCommand.ts index 43f07eebba234..082a8bc3293ca 100644 --- a/clients/client-ec2/commands/DescribeInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeInstancesCommand.ts @@ -42,6 +42,7 @@ export class DescribeInstancesCommand extends $Command< DescribeInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeInternetGatewaysCommand.ts b/clients/client-ec2/commands/DescribeInternetGatewaysCommand.ts index fcfd2b3970b00..77cea0377968c 100644 --- a/clients/client-ec2/commands/DescribeInternetGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeInternetGatewaysCommand.ts @@ -28,6 +28,7 @@ export class DescribeInternetGatewaysCommand extends $Command< DescribeInternetGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInternetGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeIpv6PoolsCommand.ts b/clients/client-ec2/commands/DescribeIpv6PoolsCommand.ts index d87c3a9ed4a47..49627559518b3 100644 --- a/clients/client-ec2/commands/DescribeIpv6PoolsCommand.ts +++ b/clients/client-ec2/commands/DescribeIpv6PoolsCommand.ts @@ -28,6 +28,7 @@ export class DescribeIpv6PoolsCommand extends $Command< DescribeIpv6PoolsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIpv6PoolsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeKeyPairsCommand.ts b/clients/client-ec2/commands/DescribeKeyPairsCommand.ts index f03cc1a8eea8f..c495e494cc050 100644 --- a/clients/client-ec2/commands/DescribeKeyPairsCommand.ts +++ b/clients/client-ec2/commands/DescribeKeyPairsCommand.ts @@ -30,6 +30,7 @@ export class DescribeKeyPairsCommand extends $Command< DescribeKeyPairsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeKeyPairsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLaunchTemplateVersionsCommand.ts b/clients/client-ec2/commands/DescribeLaunchTemplateVersionsCommand.ts index 76f9822caadca..d7b3efb89f032 100644 --- a/clients/client-ec2/commands/DescribeLaunchTemplateVersionsCommand.ts +++ b/clients/client-ec2/commands/DescribeLaunchTemplateVersionsCommand.ts @@ -31,6 +31,7 @@ export class DescribeLaunchTemplateVersionsCommand extends $Command< DescribeLaunchTemplateVersionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeLaunchTemplateVersionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLaunchTemplatesCommand.ts b/clients/client-ec2/commands/DescribeLaunchTemplatesCommand.ts index 01f090ad49633..e01f0f56d02be 100644 --- a/clients/client-ec2/commands/DescribeLaunchTemplatesCommand.ts +++ b/clients/client-ec2/commands/DescribeLaunchTemplatesCommand.ts @@ -28,6 +28,7 @@ export class DescribeLaunchTemplatesCommand extends $Command< DescribeLaunchTemplatesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLaunchTemplatesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.ts index c120643b5aaa9..feb1435ce075c 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsComm DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsComm DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandInput, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.ts index d88ab29b2f98b..f1df837a85eee 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeLocalGatewayRouteTableVpcAssociationsCommand extends $Comma DescribeLocalGatewayRouteTableVpcAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeLocalGatewayRouteTableVpcAssociationsCommand extends $Comma DescribeLocalGatewayRouteTableVpcAssociationsCommandInput, DescribeLocalGatewayRouteTableVpcAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewayRouteTablesCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewayRouteTablesCommand.ts index acefc422c594c..d855227b64f57 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewayRouteTablesCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewayRouteTablesCommand.ts @@ -29,6 +29,7 @@ export class DescribeLocalGatewayRouteTablesCommand extends $Command< DescribeLocalGatewayRouteTablesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLocalGatewayRouteTablesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.ts index 13523ee383a56..a3a6a5baa09eb 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.ts @@ -32,6 +32,7 @@ export class DescribeLocalGatewayVirtualInterfaceGroupsCommand extends $Command< DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeLocalGatewayVirtualInterfaceGroupsCommand extends $Command< DescribeLocalGatewayVirtualInterfaceGroupsCommandInput, DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfacesCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfacesCommand.ts index da3875595a010..c91a2bedeaf86 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfacesCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewayVirtualInterfacesCommand.ts @@ -32,6 +32,7 @@ export class DescribeLocalGatewayVirtualInterfacesCommand extends $Command< DescribeLocalGatewayVirtualInterfacesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeLocalGatewayVirtualInterfacesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeLocalGatewaysCommand.ts b/clients/client-ec2/commands/DescribeLocalGatewaysCommand.ts index 55879105622f8..0b2bcd4e712bb 100644 --- a/clients/client-ec2/commands/DescribeLocalGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeLocalGatewaysCommand.ts @@ -29,6 +29,7 @@ export class DescribeLocalGatewaysCommand extends $Command< DescribeLocalGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLocalGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeManagedPrefixListsCommand.ts b/clients/client-ec2/commands/DescribeManagedPrefixListsCommand.ts index 2dd004e77b6c9..f3ac45dbbb798 100644 --- a/clients/client-ec2/commands/DescribeManagedPrefixListsCommand.ts +++ b/clients/client-ec2/commands/DescribeManagedPrefixListsCommand.ts @@ -29,6 +29,7 @@ export class DescribeManagedPrefixListsCommand extends $Command< DescribeManagedPrefixListsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeManagedPrefixListsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeMovingAddressesCommand.ts b/clients/client-ec2/commands/DescribeMovingAddressesCommand.ts index 1896a9d553052..f92beeafcf9c4 100644 --- a/clients/client-ec2/commands/DescribeMovingAddressesCommand.ts +++ b/clients/client-ec2/commands/DescribeMovingAddressesCommand.ts @@ -28,6 +28,7 @@ export class DescribeMovingAddressesCommand extends $Command< DescribeMovingAddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMovingAddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNatGatewaysCommand.ts b/clients/client-ec2/commands/DescribeNatGatewaysCommand.ts index 29fabe0c0078f..46ff5a0ec424d 100644 --- a/clients/client-ec2/commands/DescribeNatGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeNatGatewaysCommand.ts @@ -28,6 +28,7 @@ export class DescribeNatGatewaysCommand extends $Command< DescribeNatGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNatGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkAclsCommand.ts b/clients/client-ec2/commands/DescribeNetworkAclsCommand.ts index 90042008f1ab7..f428250649f12 100644 --- a/clients/client-ec2/commands/DescribeNetworkAclsCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkAclsCommand.ts @@ -30,6 +30,7 @@ export class DescribeNetworkAclsCommand extends $Command< DescribeNetworkAclsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeNetworkAclsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkInsightsAnalysesCommand.ts b/clients/client-ec2/commands/DescribeNetworkInsightsAnalysesCommand.ts index a36c4bacbc970..76ff7c6a83325 100644 --- a/clients/client-ec2/commands/DescribeNetworkInsightsAnalysesCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkInsightsAnalysesCommand.ts @@ -28,6 +28,7 @@ export class DescribeNetworkInsightsAnalysesCommand extends $Command< DescribeNetworkInsightsAnalysesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNetworkInsightsAnalysesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkInsightsPathsCommand.ts b/clients/client-ec2/commands/DescribeNetworkInsightsPathsCommand.ts index 497cbcd704044..f76d72d923d54 100644 --- a/clients/client-ec2/commands/DescribeNetworkInsightsPathsCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkInsightsPathsCommand.ts @@ -28,6 +28,7 @@ export class DescribeNetworkInsightsPathsCommand extends $Command< DescribeNetworkInsightsPathsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNetworkInsightsPathsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkInterfaceAttributeCommand.ts b/clients/client-ec2/commands/DescribeNetworkInterfaceAttributeCommand.ts index 2e5fda5f8ffb1..ce985b73f9753 100644 --- a/clients/client-ec2/commands/DescribeNetworkInterfaceAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkInterfaceAttributeCommand.ts @@ -28,6 +28,7 @@ export class DescribeNetworkInterfaceAttributeCommand extends $Command< DescribeNetworkInterfaceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNetworkInterfaceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkInterfacePermissionsCommand.ts b/clients/client-ec2/commands/DescribeNetworkInterfacePermissionsCommand.ts index 99b5eb80a15e7..4b130456a800c 100644 --- a/clients/client-ec2/commands/DescribeNetworkInterfacePermissionsCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkInterfacePermissionsCommand.ts @@ -32,6 +32,7 @@ export class DescribeNetworkInterfacePermissionsCommand extends $Command< DescribeNetworkInterfacePermissionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeNetworkInterfacePermissionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeNetworkInterfacesCommand.ts b/clients/client-ec2/commands/DescribeNetworkInterfacesCommand.ts index 0b5f35a6c0acc..bc38ddffa021e 100644 --- a/clients/client-ec2/commands/DescribeNetworkInterfacesCommand.ts +++ b/clients/client-ec2/commands/DescribeNetworkInterfacesCommand.ts @@ -28,6 +28,7 @@ export class DescribeNetworkInterfacesCommand extends $Command< DescribeNetworkInterfacesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNetworkInterfacesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribePlacementGroupsCommand.ts b/clients/client-ec2/commands/DescribePlacementGroupsCommand.ts index deb7390e6d478..3bcc261d3fef4 100644 --- a/clients/client-ec2/commands/DescribePlacementGroupsCommand.ts +++ b/clients/client-ec2/commands/DescribePlacementGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribePlacementGroupsCommand extends $Command< DescribePlacementGroupsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribePlacementGroupsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribePrefixListsCommand.ts b/clients/client-ec2/commands/DescribePrefixListsCommand.ts index 238dcf1f90322..b9a5a68a8b331 100644 --- a/clients/client-ec2/commands/DescribePrefixListsCommand.ts +++ b/clients/client-ec2/commands/DescribePrefixListsCommand.ts @@ -30,6 +30,7 @@ export class DescribePrefixListsCommand extends $Command< DescribePrefixListsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribePrefixListsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribePrincipalIdFormatCommand.ts b/clients/client-ec2/commands/DescribePrincipalIdFormatCommand.ts index bddff745cd565..f2ae1fada66d7 100644 --- a/clients/client-ec2/commands/DescribePrincipalIdFormatCommand.ts +++ b/clients/client-ec2/commands/DescribePrincipalIdFormatCommand.ts @@ -45,6 +45,7 @@ export class DescribePrincipalIdFormatCommand extends $Command< DescribePrincipalIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DescribePrincipalIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribePublicIpv4PoolsCommand.ts b/clients/client-ec2/commands/DescribePublicIpv4PoolsCommand.ts index c47669522d5d5..ba6874e522c97 100644 --- a/clients/client-ec2/commands/DescribePublicIpv4PoolsCommand.ts +++ b/clients/client-ec2/commands/DescribePublicIpv4PoolsCommand.ts @@ -28,6 +28,7 @@ export class DescribePublicIpv4PoolsCommand extends $Command< DescribePublicIpv4PoolsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePublicIpv4PoolsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeRegionsCommand.ts b/clients/client-ec2/commands/DescribeRegionsCommand.ts index 30ab005bd41b3..2bb33228f5d05 100644 --- a/clients/client-ec2/commands/DescribeRegionsCommand.ts +++ b/clients/client-ec2/commands/DescribeRegionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeRegionsCommand extends $Command< DescribeRegionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRegionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeReservedInstancesCommand.ts b/clients/client-ec2/commands/DescribeReservedInstancesCommand.ts index 80a793d574008..5878760a844c6 100644 --- a/clients/client-ec2/commands/DescribeReservedInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeReservedInstancesCommand.ts @@ -30,6 +30,7 @@ export class DescribeReservedInstancesCommand extends $Command< DescribeReservedInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeReservedInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeReservedInstancesListingsCommand.ts b/clients/client-ec2/commands/DescribeReservedInstancesListingsCommand.ts index 0214493501f3d..bfc17be97a543 100644 --- a/clients/client-ec2/commands/DescribeReservedInstancesListingsCommand.ts +++ b/clients/client-ec2/commands/DescribeReservedInstancesListingsCommand.ts @@ -33,6 +33,7 @@ export class DescribeReservedInstancesListingsCommand extends $Command< DescribeReservedInstancesListingsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReservedInstancesListingsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeReservedInstancesModificationsCommand.ts b/clients/client-ec2/commands/DescribeReservedInstancesModificationsCommand.ts index 2c08c6cf7626b..12fe8733d08d2 100644 --- a/clients/client-ec2/commands/DescribeReservedInstancesModificationsCommand.ts +++ b/clients/client-ec2/commands/DescribeReservedInstancesModificationsCommand.ts @@ -33,6 +33,7 @@ export class DescribeReservedInstancesModificationsCommand extends $Command< DescribeReservedInstancesModificationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReservedInstancesModificationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeReservedInstancesOfferingsCommand.ts b/clients/client-ec2/commands/DescribeReservedInstancesOfferingsCommand.ts index f5d3ec21b055f..ccfe6ad4856ff 100644 --- a/clients/client-ec2/commands/DescribeReservedInstancesOfferingsCommand.ts +++ b/clients/client-ec2/commands/DescribeReservedInstancesOfferingsCommand.ts @@ -35,6 +35,7 @@ export class DescribeReservedInstancesOfferingsCommand extends $Command< DescribeReservedInstancesOfferingsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeReservedInstancesOfferingsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeRouteTablesCommand.ts b/clients/client-ec2/commands/DescribeRouteTablesCommand.ts index 13097ce25da95..7678114a49d1c 100644 --- a/clients/client-ec2/commands/DescribeRouteTablesCommand.ts +++ b/clients/client-ec2/commands/DescribeRouteTablesCommand.ts @@ -31,6 +31,7 @@ export class DescribeRouteTablesCommand extends $Command< DescribeRouteTablesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeRouteTablesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeScheduledInstanceAvailabilityCommand.ts b/clients/client-ec2/commands/DescribeScheduledInstanceAvailabilityCommand.ts index b638ec72fd062..21f3efa949e78 100644 --- a/clients/client-ec2/commands/DescribeScheduledInstanceAvailabilityCommand.ts +++ b/clients/client-ec2/commands/DescribeScheduledInstanceAvailabilityCommand.ts @@ -35,6 +35,7 @@ export class DescribeScheduledInstanceAvailabilityCommand extends $Command< DescribeScheduledInstanceAvailabilityCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeScheduledInstanceAvailabilityCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeScheduledInstancesCommand.ts b/clients/client-ec2/commands/DescribeScheduledInstancesCommand.ts index df7853511dfce..6bd20550f41d4 100644 --- a/clients/client-ec2/commands/DescribeScheduledInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeScheduledInstancesCommand.ts @@ -28,6 +28,7 @@ export class DescribeScheduledInstancesCommand extends $Command< DescribeScheduledInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScheduledInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSecurityGroupReferencesCommand.ts b/clients/client-ec2/commands/DescribeSecurityGroupReferencesCommand.ts index e1a0a4905a6c1..5d464bac72806 100644 --- a/clients/client-ec2/commands/DescribeSecurityGroupReferencesCommand.ts +++ b/clients/client-ec2/commands/DescribeSecurityGroupReferencesCommand.ts @@ -28,6 +28,7 @@ export class DescribeSecurityGroupReferencesCommand extends $Command< DescribeSecurityGroupReferencesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSecurityGroupReferencesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSecurityGroupsCommand.ts b/clients/client-ec2/commands/DescribeSecurityGroupsCommand.ts index d6c9227e7cdd7..4ffdb68cc94c6 100644 --- a/clients/client-ec2/commands/DescribeSecurityGroupsCommand.ts +++ b/clients/client-ec2/commands/DescribeSecurityGroupsCommand.ts @@ -34,6 +34,7 @@ export class DescribeSecurityGroupsCommand extends $Command< DescribeSecurityGroupsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeSecurityGroupsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSnapshotAttributeCommand.ts b/clients/client-ec2/commands/DescribeSnapshotAttributeCommand.ts index 7c2ee449f2f28..9ab36f6a2bd15 100644 --- a/clients/client-ec2/commands/DescribeSnapshotAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeSnapshotAttributeCommand.ts @@ -30,6 +30,7 @@ export class DescribeSnapshotAttributeCommand extends $Command< DescribeSnapshotAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeSnapshotAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSnapshotsCommand.ts b/clients/client-ec2/commands/DescribeSnapshotsCommand.ts index bf5c5335babfb..6f79147efcd4d 100644 --- a/clients/client-ec2/commands/DescribeSnapshotsCommand.ts +++ b/clients/client-ec2/commands/DescribeSnapshotsCommand.ts @@ -74,6 +74,7 @@ export class DescribeSnapshotsCommand extends $Command< DescribeSnapshotsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class DescribeSnapshotsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotDatafeedSubscriptionCommand.ts b/clients/client-ec2/commands/DescribeSpotDatafeedSubscriptionCommand.ts index 2c37f0dd9600b..66ac524741333 100644 --- a/clients/client-ec2/commands/DescribeSpotDatafeedSubscriptionCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotDatafeedSubscriptionCommand.ts @@ -29,6 +29,7 @@ export class DescribeSpotDatafeedSubscriptionCommand extends $Command< DescribeSpotDatafeedSubscriptionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSpotDatafeedSubscriptionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotFleetInstancesCommand.ts b/clients/client-ec2/commands/DescribeSpotFleetInstancesCommand.ts index 11d48684f6f4c..55875154aec3e 100644 --- a/clients/client-ec2/commands/DescribeSpotFleetInstancesCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotFleetInstancesCommand.ts @@ -28,6 +28,7 @@ export class DescribeSpotFleetInstancesCommand extends $Command< DescribeSpotFleetInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSpotFleetInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotFleetRequestHistoryCommand.ts b/clients/client-ec2/commands/DescribeSpotFleetRequestHistoryCommand.ts index 7dc254acc8626..f649f3e2b33f6 100644 --- a/clients/client-ec2/commands/DescribeSpotFleetRequestHistoryCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotFleetRequestHistoryCommand.ts @@ -30,6 +30,7 @@ export class DescribeSpotFleetRequestHistoryCommand extends $Command< DescribeSpotFleetRequestHistoryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeSpotFleetRequestHistoryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotFleetRequestsCommand.ts b/clients/client-ec2/commands/DescribeSpotFleetRequestsCommand.ts index b6fd509fb7e1c..eb019bf03de22 100644 --- a/clients/client-ec2/commands/DescribeSpotFleetRequestsCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotFleetRequestsCommand.ts @@ -29,6 +29,7 @@ export class DescribeSpotFleetRequestsCommand extends $Command< DescribeSpotFleetRequestsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSpotFleetRequestsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotInstanceRequestsCommand.ts b/clients/client-ec2/commands/DescribeSpotInstanceRequestsCommand.ts index 39313435cef5b..8432f0a084ae4 100644 --- a/clients/client-ec2/commands/DescribeSpotInstanceRequestsCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotInstanceRequestsCommand.ts @@ -43,6 +43,7 @@ export class DescribeSpotInstanceRequestsCommand extends $Command< DescribeSpotInstanceRequestsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DescribeSpotInstanceRequestsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSpotPriceHistoryCommand.ts b/clients/client-ec2/commands/DescribeSpotPriceHistoryCommand.ts index 185263e902460..d987d45dd1ede 100644 --- a/clients/client-ec2/commands/DescribeSpotPriceHistoryCommand.ts +++ b/clients/client-ec2/commands/DescribeSpotPriceHistoryCommand.ts @@ -32,6 +32,7 @@ export class DescribeSpotPriceHistoryCommand extends $Command< DescribeSpotPriceHistoryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeSpotPriceHistoryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeStaleSecurityGroupsCommand.ts b/clients/client-ec2/commands/DescribeStaleSecurityGroupsCommand.ts index e19a4a198f189..922a79143f135 100644 --- a/clients/client-ec2/commands/DescribeStaleSecurityGroupsCommand.ts +++ b/clients/client-ec2/commands/DescribeStaleSecurityGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeStaleSecurityGroupsCommand extends $Command< DescribeStaleSecurityGroupsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStaleSecurityGroupsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeSubnetsCommand.ts b/clients/client-ec2/commands/DescribeSubnetsCommand.ts index 834ad4a9bb877..a24cc768e8adf 100644 --- a/clients/client-ec2/commands/DescribeSubnetsCommand.ts +++ b/clients/client-ec2/commands/DescribeSubnetsCommand.ts @@ -27,6 +27,7 @@ export class DescribeSubnetsCommand extends $Command< DescribeSubnetsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class DescribeSubnetsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTagsCommand.ts b/clients/client-ec2/commands/DescribeTagsCommand.ts index 41450de5778c6..5b03d347d0334 100644 --- a/clients/client-ec2/commands/DescribeTagsCommand.ts +++ b/clients/client-ec2/commands/DescribeTagsCommand.ts @@ -27,6 +27,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class DescribeTagsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTrafficMirrorFiltersCommand.ts b/clients/client-ec2/commands/DescribeTrafficMirrorFiltersCommand.ts index afb7d5d0ede26..9ee3e0317cc40 100644 --- a/clients/client-ec2/commands/DescribeTrafficMirrorFiltersCommand.ts +++ b/clients/client-ec2/commands/DescribeTrafficMirrorFiltersCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrafficMirrorFiltersCommand extends $Command< DescribeTrafficMirrorFiltersCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrafficMirrorFiltersCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTrafficMirrorSessionsCommand.ts b/clients/client-ec2/commands/DescribeTrafficMirrorSessionsCommand.ts index e13d524dd2ec8..819e5e2ff37a7 100644 --- a/clients/client-ec2/commands/DescribeTrafficMirrorSessionsCommand.ts +++ b/clients/client-ec2/commands/DescribeTrafficMirrorSessionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrafficMirrorSessionsCommand extends $Command< DescribeTrafficMirrorSessionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrafficMirrorSessionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTrafficMirrorTargetsCommand.ts b/clients/client-ec2/commands/DescribeTrafficMirrorTargetsCommand.ts index 3ad5219acda3f..dc86387017147 100644 --- a/clients/client-ec2/commands/DescribeTrafficMirrorTargetsCommand.ts +++ b/clients/client-ec2/commands/DescribeTrafficMirrorTargetsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrafficMirrorTargetsCommand extends $Command< DescribeTrafficMirrorTargetsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrafficMirrorTargetsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayAttachmentsCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayAttachmentsCommand.ts index ff44a5c50f9aa..a3822f2f145e3 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayAttachmentsCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayAttachmentsCommand.ts @@ -29,6 +29,7 @@ export class DescribeTransitGatewayAttachmentsCommand extends $Command< DescribeTransitGatewayAttachmentsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTransitGatewayAttachmentsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayConnectPeersCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayConnectPeersCommand.ts index 1fe9e549ac7c5..42894b1aebcb7 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayConnectPeersCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayConnectPeersCommand.ts @@ -32,6 +32,7 @@ export class DescribeTransitGatewayConnectPeersCommand extends $Command< DescribeTransitGatewayConnectPeersCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTransitGatewayConnectPeersCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayConnectsCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayConnectsCommand.ts index d3cf9cd1fe345..82e9d6bb39552 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayConnectsCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayConnectsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTransitGatewayConnectsCommand extends $Command< DescribeTransitGatewayConnectsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTransitGatewayConnectsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayMulticastDomainsCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayMulticastDomainsCommand.ts index 4d896ca2e1da1..4de36b2396df3 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayMulticastDomainsCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayMulticastDomainsCommand.ts @@ -32,6 +32,7 @@ export class DescribeTransitGatewayMulticastDomainsCommand extends $Command< DescribeTransitGatewayMulticastDomainsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTransitGatewayMulticastDomainsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayPeeringAttachmentsCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayPeeringAttachmentsCommand.ts index e98425694cf9d..2207bc1879751 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayPeeringAttachmentsCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayPeeringAttachmentsCommand.ts @@ -32,6 +32,7 @@ export class DescribeTransitGatewayPeeringAttachmentsCommand extends $Command< DescribeTransitGatewayPeeringAttachmentsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeTransitGatewayPeeringAttachmentsCommand extends $Command< DescribeTransitGatewayPeeringAttachmentsCommandInput, DescribeTransitGatewayPeeringAttachmentsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayRouteTablesCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayRouteTablesCommand.ts index 4c40e71a6e6e9..da33730235acb 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayRouteTablesCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayRouteTablesCommand.ts @@ -29,6 +29,7 @@ export class DescribeTransitGatewayRouteTablesCommand extends $Command< DescribeTransitGatewayRouteTablesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTransitGatewayRouteTablesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewayVpcAttachmentsCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewayVpcAttachmentsCommand.ts index 79dfd62afd5d7..35260e2470310 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewayVpcAttachmentsCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewayVpcAttachmentsCommand.ts @@ -33,6 +33,7 @@ export class DescribeTransitGatewayVpcAttachmentsCommand extends $Command< DescribeTransitGatewayVpcAttachmentsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeTransitGatewayVpcAttachmentsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeTransitGatewaysCommand.ts b/clients/client-ec2/commands/DescribeTransitGatewaysCommand.ts index 07fe038b87aae..8bc58e34d1361 100644 --- a/clients/client-ec2/commands/DescribeTransitGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeTransitGatewaysCommand.ts @@ -29,6 +29,7 @@ export class DescribeTransitGatewaysCommand extends $Command< DescribeTransitGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTransitGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVolumeAttributeCommand.ts b/clients/client-ec2/commands/DescribeVolumeAttributeCommand.ts index e742d77528fae..7f14b317ddc77 100644 --- a/clients/client-ec2/commands/DescribeVolumeAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeVolumeAttributeCommand.ts @@ -30,6 +30,7 @@ export class DescribeVolumeAttributeCommand extends $Command< DescribeVolumeAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeVolumeAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVolumeStatusCommand.ts b/clients/client-ec2/commands/DescribeVolumeStatusCommand.ts index 27a00324d4a9b..072697520d218 100644 --- a/clients/client-ec2/commands/DescribeVolumeStatusCommand.ts +++ b/clients/client-ec2/commands/DescribeVolumeStatusCommand.ts @@ -61,6 +61,7 @@ export class DescribeVolumeStatusCommand extends $Command< DescribeVolumeStatusCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class DescribeVolumeStatusCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVolumesCommand.ts b/clients/client-ec2/commands/DescribeVolumesCommand.ts index 50cd9a31025af..2139858f106af 100644 --- a/clients/client-ec2/commands/DescribeVolumesCommand.ts +++ b/clients/client-ec2/commands/DescribeVolumesCommand.ts @@ -32,6 +32,7 @@ export class DescribeVolumesCommand extends $Command< DescribeVolumesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeVolumesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVolumesModificationsCommand.ts b/clients/client-ec2/commands/DescribeVolumesModificationsCommand.ts index 39537cc5cdfdc..14e83fffb6742 100644 --- a/clients/client-ec2/commands/DescribeVolumesModificationsCommand.ts +++ b/clients/client-ec2/commands/DescribeVolumesModificationsCommand.ts @@ -35,6 +35,7 @@ export class DescribeVolumesModificationsCommand extends $Command< DescribeVolumesModificationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeVolumesModificationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcAttributeCommand.ts b/clients/client-ec2/commands/DescribeVpcAttributeCommand.ts index f573fcb406671..dc95f78404875 100644 --- a/clients/client-ec2/commands/DescribeVpcAttributeCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcAttributeCommand.ts @@ -28,6 +28,7 @@ export class DescribeVpcAttributeCommand extends $Command< DescribeVpcAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVpcAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcClassicLinkCommand.ts b/clients/client-ec2/commands/DescribeVpcClassicLinkCommand.ts index f7f1a7c40b344..5836f6676ca0d 100644 --- a/clients/client-ec2/commands/DescribeVpcClassicLinkCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcClassicLinkCommand.ts @@ -28,6 +28,7 @@ export class DescribeVpcClassicLinkCommand extends $Command< DescribeVpcClassicLinkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVpcClassicLinkCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcClassicLinkDnsSupportCommand.ts b/clients/client-ec2/commands/DescribeVpcClassicLinkDnsSupportCommand.ts index ffef8bd5775e5..0efc3a0624b3e 100644 --- a/clients/client-ec2/commands/DescribeVpcClassicLinkDnsSupportCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcClassicLinkDnsSupportCommand.ts @@ -32,6 +32,7 @@ export class DescribeVpcClassicLinkDnsSupportCommand extends $Command< DescribeVpcClassicLinkDnsSupportCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeVpcClassicLinkDnsSupportCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointConnectionNotificationsCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointConnectionNotificationsCommand.ts index 7fdec7c7f2aa5..cc734183b8125 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointConnectionNotificationsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointConnectionNotificationsCommand.ts @@ -33,6 +33,7 @@ export class DescribeVpcEndpointConnectionNotificationsCommand extends $Command< DescribeVpcEndpointConnectionNotificationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeVpcEndpointConnectionNotificationsCommand extends $Command< DescribeVpcEndpointConnectionNotificationsCommandInput, DescribeVpcEndpointConnectionNotificationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointConnectionsCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointConnectionsCommand.ts index 6d6adadfb498f..e7afda20c5c22 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointConnectionsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointConnectionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeVpcEndpointConnectionsCommand extends $Command< DescribeVpcEndpointConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeVpcEndpointConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointServiceConfigurationsCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointServiceConfigurationsCommand.ts index 8adbda6eb776d..a1b94fc1127bc 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointServiceConfigurationsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointServiceConfigurationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeVpcEndpointServiceConfigurationsCommand extends $Command< DescribeVpcEndpointServiceConfigurationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeVpcEndpointServiceConfigurationsCommand extends $Command< DescribeVpcEndpointServiceConfigurationsCommandInput, DescribeVpcEndpointServiceConfigurationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointServicePermissionsCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointServicePermissionsCommand.ts index 67d8b17ee8133..d55fb7a7143f3 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointServicePermissionsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointServicePermissionsCommand.ts @@ -33,6 +33,7 @@ export class DescribeVpcEndpointServicePermissionsCommand extends $Command< DescribeVpcEndpointServicePermissionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeVpcEndpointServicePermissionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointServicesCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointServicesCommand.ts index 8bc388d4224f9..0468f0a07f0d8 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointServicesCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointServicesCommand.ts @@ -35,6 +35,7 @@ export class DescribeVpcEndpointServicesCommand extends $Command< DescribeVpcEndpointServicesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeVpcEndpointServicesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcEndpointsCommand.ts b/clients/client-ec2/commands/DescribeVpcEndpointsCommand.ts index 94c130d0b226f..3f9d518968a7b 100644 --- a/clients/client-ec2/commands/DescribeVpcEndpointsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcEndpointsCommand.ts @@ -28,6 +28,7 @@ export class DescribeVpcEndpointsCommand extends $Command< DescribeVpcEndpointsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVpcEndpointsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcPeeringConnectionsCommand.ts b/clients/client-ec2/commands/DescribeVpcPeeringConnectionsCommand.ts index b79a8a412dc3c..2d5f7540ff655 100644 --- a/clients/client-ec2/commands/DescribeVpcPeeringConnectionsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcPeeringConnectionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeVpcPeeringConnectionsCommand extends $Command< DescribeVpcPeeringConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVpcPeeringConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpcsCommand.ts b/clients/client-ec2/commands/DescribeVpcsCommand.ts index d10bfba8ee891..46bdf8e191a94 100644 --- a/clients/client-ec2/commands/DescribeVpcsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpcsCommand.ts @@ -25,6 +25,7 @@ export class DescribeVpcsCommand extends $Command< DescribeVpcsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DescribeVpcsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpnConnectionsCommand.ts b/clients/client-ec2/commands/DescribeVpnConnectionsCommand.ts index dedf9ed55d3d8..b9931757f6e70 100644 --- a/clients/client-ec2/commands/DescribeVpnConnectionsCommand.ts +++ b/clients/client-ec2/commands/DescribeVpnConnectionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeVpnConnectionsCommand extends $Command< DescribeVpnConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeVpnConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DescribeVpnGatewaysCommand.ts b/clients/client-ec2/commands/DescribeVpnGatewaysCommand.ts index 780815a7c3f19..ca0a42535a10b 100644 --- a/clients/client-ec2/commands/DescribeVpnGatewaysCommand.ts +++ b/clients/client-ec2/commands/DescribeVpnGatewaysCommand.ts @@ -29,6 +29,7 @@ export class DescribeVpnGatewaysCommand extends $Command< DescribeVpnGatewaysCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeVpnGatewaysCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DetachClassicLinkVpcCommand.ts b/clients/client-ec2/commands/DetachClassicLinkVpcCommand.ts index b575118411ee5..205750c61ce50 100644 --- a/clients/client-ec2/commands/DetachClassicLinkVpcCommand.ts +++ b/clients/client-ec2/commands/DetachClassicLinkVpcCommand.ts @@ -28,6 +28,7 @@ export class DetachClassicLinkVpcCommand extends $Command< DetachClassicLinkVpcCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachClassicLinkVpcCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DetachInternetGatewayCommand.ts b/clients/client-ec2/commands/DetachInternetGatewayCommand.ts index 044d0ba6ea39a..7ee7a5172b232 100644 --- a/clients/client-ec2/commands/DetachInternetGatewayCommand.ts +++ b/clients/client-ec2/commands/DetachInternetGatewayCommand.ts @@ -30,6 +30,7 @@ export class DetachInternetGatewayCommand extends $Command< DetachInternetGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DetachInternetGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DetachNetworkInterfaceCommand.ts b/clients/client-ec2/commands/DetachNetworkInterfaceCommand.ts index 180ae72abaca2..8286dd69a2722 100644 --- a/clients/client-ec2/commands/DetachNetworkInterfaceCommand.ts +++ b/clients/client-ec2/commands/DetachNetworkInterfaceCommand.ts @@ -28,6 +28,7 @@ export class DetachNetworkInterfaceCommand extends $Command< DetachNetworkInterfaceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachNetworkInterfaceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DetachVolumeCommand.ts b/clients/client-ec2/commands/DetachVolumeCommand.ts index 6dec142ef4dc9..dc10737e7feb9 100644 --- a/clients/client-ec2/commands/DetachVolumeCommand.ts +++ b/clients/client-ec2/commands/DetachVolumeCommand.ts @@ -36,6 +36,7 @@ export class DetachVolumeCommand extends $Command< DetachVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DetachVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DetachVpnGatewayCommand.ts b/clients/client-ec2/commands/DetachVpnGatewayCommand.ts index 42c0d0cfecd88..e2bf72584b106 100644 --- a/clients/client-ec2/commands/DetachVpnGatewayCommand.ts +++ b/clients/client-ec2/commands/DetachVpnGatewayCommand.ts @@ -30,6 +30,7 @@ export class DetachVpnGatewayCommand extends $Command< DetachVpnGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DetachVpnGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableEbsEncryptionByDefaultCommand.ts b/clients/client-ec2/commands/DisableEbsEncryptionByDefaultCommand.ts index ecfd3feb66999..e03b2772c7aa3 100644 --- a/clients/client-ec2/commands/DisableEbsEncryptionByDefaultCommand.ts +++ b/clients/client-ec2/commands/DisableEbsEncryptionByDefaultCommand.ts @@ -34,6 +34,7 @@ export class DisableEbsEncryptionByDefaultCommand extends $Command< DisableEbsEncryptionByDefaultCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DisableEbsEncryptionByDefaultCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableFastSnapshotRestoresCommand.ts b/clients/client-ec2/commands/DisableFastSnapshotRestoresCommand.ts index 1dd8f1c1fa7ae..052a294c85b68 100644 --- a/clients/client-ec2/commands/DisableFastSnapshotRestoresCommand.ts +++ b/clients/client-ec2/commands/DisableFastSnapshotRestoresCommand.ts @@ -28,6 +28,7 @@ export class DisableFastSnapshotRestoresCommand extends $Command< DisableFastSnapshotRestoresCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableFastSnapshotRestoresCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableTransitGatewayRouteTablePropagationCommand.ts b/clients/client-ec2/commands/DisableTransitGatewayRouteTablePropagationCommand.ts index 7ee0ebb9438e6..74c9bfc555bcc 100644 --- a/clients/client-ec2/commands/DisableTransitGatewayRouteTablePropagationCommand.ts +++ b/clients/client-ec2/commands/DisableTransitGatewayRouteTablePropagationCommand.ts @@ -33,6 +33,7 @@ export class DisableTransitGatewayRouteTablePropagationCommand extends $Command< DisableTransitGatewayRouteTablePropagationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisableTransitGatewayRouteTablePropagationCommand extends $Command< DisableTransitGatewayRouteTablePropagationCommandInput, DisableTransitGatewayRouteTablePropagationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableVgwRoutePropagationCommand.ts b/clients/client-ec2/commands/DisableVgwRoutePropagationCommand.ts index c7a44140daddb..8249f76f2c8d6 100644 --- a/clients/client-ec2/commands/DisableVgwRoutePropagationCommand.ts +++ b/clients/client-ec2/commands/DisableVgwRoutePropagationCommand.ts @@ -28,6 +28,7 @@ export class DisableVgwRoutePropagationCommand extends $Command< DisableVgwRoutePropagationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableVgwRoutePropagationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableVpcClassicLinkCommand.ts b/clients/client-ec2/commands/DisableVpcClassicLinkCommand.ts index 24de67f467148..f892e356973f7 100644 --- a/clients/client-ec2/commands/DisableVpcClassicLinkCommand.ts +++ b/clients/client-ec2/commands/DisableVpcClassicLinkCommand.ts @@ -28,6 +28,7 @@ export class DisableVpcClassicLinkCommand extends $Command< DisableVpcClassicLinkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableVpcClassicLinkCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisableVpcClassicLinkDnsSupportCommand.ts b/clients/client-ec2/commands/DisableVpcClassicLinkDnsSupportCommand.ts index 833334786b50a..28b3537de0e4d 100644 --- a/clients/client-ec2/commands/DisableVpcClassicLinkDnsSupportCommand.ts +++ b/clients/client-ec2/commands/DisableVpcClassicLinkDnsSupportCommand.ts @@ -32,6 +32,7 @@ export class DisableVpcClassicLinkDnsSupportCommand extends $Command< DisableVpcClassicLinkDnsSupportCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisableVpcClassicLinkDnsSupportCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateAddressCommand.ts b/clients/client-ec2/commands/DisassociateAddressCommand.ts index 728a56da79b79..de93bf60cfccb 100644 --- a/clients/client-ec2/commands/DisassociateAddressCommand.ts +++ b/clients/client-ec2/commands/DisassociateAddressCommand.ts @@ -32,6 +32,7 @@ export class DisassociateAddressCommand extends $Command< DisassociateAddressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateAddressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateClientVpnTargetNetworkCommand.ts b/clients/client-ec2/commands/DisassociateClientVpnTargetNetworkCommand.ts index 32235a8ad51be..3e3d3dc4163bf 100644 --- a/clients/client-ec2/commands/DisassociateClientVpnTargetNetworkCommand.ts +++ b/clients/client-ec2/commands/DisassociateClientVpnTargetNetworkCommand.ts @@ -48,6 +48,7 @@ export class DisassociateClientVpnTargetNetworkCommand extends $Command< DisassociateClientVpnTargetNetworkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DisassociateClientVpnTargetNetworkCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateEnclaveCertificateIamRoleCommand.ts b/clients/client-ec2/commands/DisassociateEnclaveCertificateIamRoleCommand.ts index cd3cfaed292c2..54e8f67fc87c2 100644 --- a/clients/client-ec2/commands/DisassociateEnclaveCertificateIamRoleCommand.ts +++ b/clients/client-ec2/commands/DisassociateEnclaveCertificateIamRoleCommand.ts @@ -36,6 +36,7 @@ export class DisassociateEnclaveCertificateIamRoleCommand extends $Command< DisassociateEnclaveCertificateIamRoleCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisassociateEnclaveCertificateIamRoleCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateIamInstanceProfileCommand.ts b/clients/client-ec2/commands/DisassociateIamInstanceProfileCommand.ts index dd967eedcfa43..bfee12296896d 100644 --- a/clients/client-ec2/commands/DisassociateIamInstanceProfileCommand.ts +++ b/clients/client-ec2/commands/DisassociateIamInstanceProfileCommand.ts @@ -30,6 +30,7 @@ export class DisassociateIamInstanceProfileCommand extends $Command< DisassociateIamInstanceProfileCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociateIamInstanceProfileCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateRouteTableCommand.ts b/clients/client-ec2/commands/DisassociateRouteTableCommand.ts index 2db2d9baa4e48..d2ad1562896f8 100644 --- a/clients/client-ec2/commands/DisassociateRouteTableCommand.ts +++ b/clients/client-ec2/commands/DisassociateRouteTableCommand.ts @@ -32,6 +32,7 @@ export class DisassociateRouteTableCommand extends $Command< DisassociateRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateSubnetCidrBlockCommand.ts b/clients/client-ec2/commands/DisassociateSubnetCidrBlockCommand.ts index 75bd830be01e4..bb15c02a48b74 100644 --- a/clients/client-ec2/commands/DisassociateSubnetCidrBlockCommand.ts +++ b/clients/client-ec2/commands/DisassociateSubnetCidrBlockCommand.ts @@ -28,6 +28,7 @@ export class DisassociateSubnetCidrBlockCommand extends $Command< DisassociateSubnetCidrBlockCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateSubnetCidrBlockCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateTransitGatewayMulticastDomainCommand.ts b/clients/client-ec2/commands/DisassociateTransitGatewayMulticastDomainCommand.ts index 08fab49e38add..9b5ed30b9a3a6 100644 --- a/clients/client-ec2/commands/DisassociateTransitGatewayMulticastDomainCommand.ts +++ b/clients/client-ec2/commands/DisassociateTransitGatewayMulticastDomainCommand.ts @@ -32,6 +32,7 @@ export class DisassociateTransitGatewayMulticastDomainCommand extends $Command< DisassociateTransitGatewayMulticastDomainCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociateTransitGatewayMulticastDomainCommand extends $Command< DisassociateTransitGatewayMulticastDomainCommandInput, DisassociateTransitGatewayMulticastDomainCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateTransitGatewayRouteTableCommand.ts b/clients/client-ec2/commands/DisassociateTransitGatewayRouteTableCommand.ts index 062698539dbd4..e48c4a6d948c9 100644 --- a/clients/client-ec2/commands/DisassociateTransitGatewayRouteTableCommand.ts +++ b/clients/client-ec2/commands/DisassociateTransitGatewayRouteTableCommand.ts @@ -32,6 +32,7 @@ export class DisassociateTransitGatewayRouteTableCommand extends $Command< DisassociateTransitGatewayRouteTableCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateTransitGatewayRouteTableCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/DisassociateVpcCidrBlockCommand.ts b/clients/client-ec2/commands/DisassociateVpcCidrBlockCommand.ts index 6dffb76e8810f..d3bc922809051 100644 --- a/clients/client-ec2/commands/DisassociateVpcCidrBlockCommand.ts +++ b/clients/client-ec2/commands/DisassociateVpcCidrBlockCommand.ts @@ -33,6 +33,7 @@ export class DisassociateVpcCidrBlockCommand extends $Command< DisassociateVpcCidrBlockCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DisassociateVpcCidrBlockCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableEbsEncryptionByDefaultCommand.ts b/clients/client-ec2/commands/EnableEbsEncryptionByDefaultCommand.ts index e4114ffa7db99..b651990c71ea2 100644 --- a/clients/client-ec2/commands/EnableEbsEncryptionByDefaultCommand.ts +++ b/clients/client-ec2/commands/EnableEbsEncryptionByDefaultCommand.ts @@ -39,6 +39,7 @@ export class EnableEbsEncryptionByDefaultCommand extends $Command< EnableEbsEncryptionByDefaultCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class EnableEbsEncryptionByDefaultCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableFastSnapshotRestoresCommand.ts b/clients/client-ec2/commands/EnableFastSnapshotRestoresCommand.ts index 819ff53fc021e..3d18305164fb2 100644 --- a/clients/client-ec2/commands/EnableFastSnapshotRestoresCommand.ts +++ b/clients/client-ec2/commands/EnableFastSnapshotRestoresCommand.ts @@ -33,6 +33,7 @@ export class EnableFastSnapshotRestoresCommand extends $Command< EnableFastSnapshotRestoresCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class EnableFastSnapshotRestoresCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableTransitGatewayRouteTablePropagationCommand.ts b/clients/client-ec2/commands/EnableTransitGatewayRouteTablePropagationCommand.ts index c621428970330..a39280e8df1d2 100644 --- a/clients/client-ec2/commands/EnableTransitGatewayRouteTablePropagationCommand.ts +++ b/clients/client-ec2/commands/EnableTransitGatewayRouteTablePropagationCommand.ts @@ -33,6 +33,7 @@ export class EnableTransitGatewayRouteTablePropagationCommand extends $Command< EnableTransitGatewayRouteTablePropagationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class EnableTransitGatewayRouteTablePropagationCommand extends $Command< EnableTransitGatewayRouteTablePropagationCommandInput, EnableTransitGatewayRouteTablePropagationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableVgwRoutePropagationCommand.ts b/clients/client-ec2/commands/EnableVgwRoutePropagationCommand.ts index f57a6b5d3687a..47b0aa11a8ec7 100644 --- a/clients/client-ec2/commands/EnableVgwRoutePropagationCommand.ts +++ b/clients/client-ec2/commands/EnableVgwRoutePropagationCommand.ts @@ -28,6 +28,7 @@ export class EnableVgwRoutePropagationCommand extends $Command< EnableVgwRoutePropagationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableVgwRoutePropagationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableVolumeIOCommand.ts b/clients/client-ec2/commands/EnableVolumeIOCommand.ts index 45bb28a192474..c429110ddc05c 100644 --- a/clients/client-ec2/commands/EnableVolumeIOCommand.ts +++ b/clients/client-ec2/commands/EnableVolumeIOCommand.ts @@ -26,6 +26,7 @@ export class EnableVolumeIOCommand extends $Command< EnableVolumeIOCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class EnableVolumeIOCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableVpcClassicLinkCommand.ts b/clients/client-ec2/commands/EnableVpcClassicLinkCommand.ts index 1503eea243e9f..8884c92f1240d 100644 --- a/clients/client-ec2/commands/EnableVpcClassicLinkCommand.ts +++ b/clients/client-ec2/commands/EnableVpcClassicLinkCommand.ts @@ -34,6 +34,7 @@ export class EnableVpcClassicLinkCommand extends $Command< EnableVpcClassicLinkCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class EnableVpcClassicLinkCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/EnableVpcClassicLinkDnsSupportCommand.ts b/clients/client-ec2/commands/EnableVpcClassicLinkDnsSupportCommand.ts index d102120036fb4..14ec5579545e8 100644 --- a/clients/client-ec2/commands/EnableVpcClassicLinkDnsSupportCommand.ts +++ b/clients/client-ec2/commands/EnableVpcClassicLinkDnsSupportCommand.ts @@ -34,6 +34,7 @@ export class EnableVpcClassicLinkDnsSupportCommand extends $Command< EnableVpcClassicLinkDnsSupportCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class EnableVpcClassicLinkDnsSupportCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ExportClientVpnClientCertificateRevocationListCommand.ts b/clients/client-ec2/commands/ExportClientVpnClientCertificateRevocationListCommand.ts index 47f3822976303..c97b13ede5877 100644 --- a/clients/client-ec2/commands/ExportClientVpnClientCertificateRevocationListCommand.ts +++ b/clients/client-ec2/commands/ExportClientVpnClientCertificateRevocationListCommand.ts @@ -32,6 +32,7 @@ export class ExportClientVpnClientCertificateRevocationListCommand extends $Comm ExportClientVpnClientCertificateRevocationListCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ExportClientVpnClientCertificateRevocationListCommand extends $Comm ExportClientVpnClientCertificateRevocationListCommandInput, ExportClientVpnClientCertificateRevocationListCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ExportClientVpnClientConfigurationCommand.ts b/clients/client-ec2/commands/ExportClientVpnClientConfigurationCommand.ts index 9b5edf66501ec..5547e0047e885 100644 --- a/clients/client-ec2/commands/ExportClientVpnClientConfigurationCommand.ts +++ b/clients/client-ec2/commands/ExportClientVpnClientConfigurationCommand.ts @@ -34,6 +34,7 @@ export class ExportClientVpnClientConfigurationCommand extends $Command< ExportClientVpnClientConfigurationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ExportClientVpnClientConfigurationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ExportImageCommand.ts b/clients/client-ec2/commands/ExportImageCommand.ts index e95b0718d43a2..bb2c4b4c4ac66 100644 --- a/clients/client-ec2/commands/ExportImageCommand.ts +++ b/clients/client-ec2/commands/ExportImageCommand.ts @@ -26,6 +26,7 @@ export class ExportImageCommand extends $Command< ExportImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class ExportImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ExportTransitGatewayRoutesCommand.ts b/clients/client-ec2/commands/ExportTransitGatewayRoutesCommand.ts index 05b845d227566..0f5e9f1b16c93 100644 --- a/clients/client-ec2/commands/ExportTransitGatewayRoutesCommand.ts +++ b/clients/client-ec2/commands/ExportTransitGatewayRoutesCommand.ts @@ -32,6 +32,7 @@ export class ExportTransitGatewayRoutesCommand extends $Command< ExportTransitGatewayRoutesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ExportTransitGatewayRoutesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetAssociatedEnclaveCertificateIamRolesCommand.ts b/clients/client-ec2/commands/GetAssociatedEnclaveCertificateIamRolesCommand.ts index d54516e48d6f8..8efd1aac54fb2 100644 --- a/clients/client-ec2/commands/GetAssociatedEnclaveCertificateIamRolesCommand.ts +++ b/clients/client-ec2/commands/GetAssociatedEnclaveCertificateIamRolesCommand.ts @@ -35,6 +35,7 @@ export class GetAssociatedEnclaveCertificateIamRolesCommand extends $Command< GetAssociatedEnclaveCertificateIamRolesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetAssociatedEnclaveCertificateIamRolesCommand extends $Command< GetAssociatedEnclaveCertificateIamRolesCommandInput, GetAssociatedEnclaveCertificateIamRolesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetAssociatedIpv6PoolCidrsCommand.ts b/clients/client-ec2/commands/GetAssociatedIpv6PoolCidrsCommand.ts index 789b08de606c0..5f90cc4cfd6da 100644 --- a/clients/client-ec2/commands/GetAssociatedIpv6PoolCidrsCommand.ts +++ b/clients/client-ec2/commands/GetAssociatedIpv6PoolCidrsCommand.ts @@ -28,6 +28,7 @@ export class GetAssociatedIpv6PoolCidrsCommand extends $Command< GetAssociatedIpv6PoolCidrsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAssociatedIpv6PoolCidrsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetCapacityReservationUsageCommand.ts b/clients/client-ec2/commands/GetCapacityReservationUsageCommand.ts index 75348edc899b5..15002f24730b4 100644 --- a/clients/client-ec2/commands/GetCapacityReservationUsageCommand.ts +++ b/clients/client-ec2/commands/GetCapacityReservationUsageCommand.ts @@ -30,6 +30,7 @@ export class GetCapacityReservationUsageCommand extends $Command< GetCapacityReservationUsageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetCapacityReservationUsageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetCoipPoolUsageCommand.ts b/clients/client-ec2/commands/GetCoipPoolUsageCommand.ts index 035f6cbd051a9..9399b291cca3b 100644 --- a/clients/client-ec2/commands/GetCoipPoolUsageCommand.ts +++ b/clients/client-ec2/commands/GetCoipPoolUsageCommand.ts @@ -28,6 +28,7 @@ export class GetCoipPoolUsageCommand extends $Command< GetCoipPoolUsageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCoipPoolUsageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetConsoleOutputCommand.ts b/clients/client-ec2/commands/GetConsoleOutputCommand.ts index 5d2cef91f4575..aa71c44f41b69 100644 --- a/clients/client-ec2/commands/GetConsoleOutputCommand.ts +++ b/clients/client-ec2/commands/GetConsoleOutputCommand.ts @@ -40,6 +40,7 @@ export class GetConsoleOutputCommand extends $Command< GetConsoleOutputCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetConsoleOutputCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetConsoleScreenshotCommand.ts b/clients/client-ec2/commands/GetConsoleScreenshotCommand.ts index 8ca85e9c4cc04..1080888f6f1bc 100644 --- a/clients/client-ec2/commands/GetConsoleScreenshotCommand.ts +++ b/clients/client-ec2/commands/GetConsoleScreenshotCommand.ts @@ -30,6 +30,7 @@ export class GetConsoleScreenshotCommand extends $Command< GetConsoleScreenshotCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetConsoleScreenshotCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetDefaultCreditSpecificationCommand.ts b/clients/client-ec2/commands/GetDefaultCreditSpecificationCommand.ts index 8308dd6f1222b..afff04680f22e 100644 --- a/clients/client-ec2/commands/GetDefaultCreditSpecificationCommand.ts +++ b/clients/client-ec2/commands/GetDefaultCreditSpecificationCommand.ts @@ -31,6 +31,7 @@ export class GetDefaultCreditSpecificationCommand extends $Command< GetDefaultCreditSpecificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetDefaultCreditSpecificationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetEbsDefaultKmsKeyIdCommand.ts b/clients/client-ec2/commands/GetEbsDefaultKmsKeyIdCommand.ts index 568975a79da0a..3c3d28997fc80 100644 --- a/clients/client-ec2/commands/GetEbsDefaultKmsKeyIdCommand.ts +++ b/clients/client-ec2/commands/GetEbsDefaultKmsKeyIdCommand.ts @@ -32,6 +32,7 @@ export class GetEbsDefaultKmsKeyIdCommand extends $Command< GetEbsDefaultKmsKeyIdCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetEbsDefaultKmsKeyIdCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetEbsEncryptionByDefaultCommand.ts b/clients/client-ec2/commands/GetEbsEncryptionByDefaultCommand.ts index ff86e4d1eec0e..ccf7728a5d945 100644 --- a/clients/client-ec2/commands/GetEbsEncryptionByDefaultCommand.ts +++ b/clients/client-ec2/commands/GetEbsEncryptionByDefaultCommand.ts @@ -31,6 +31,7 @@ export class GetEbsEncryptionByDefaultCommand extends $Command< GetEbsEncryptionByDefaultCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetEbsEncryptionByDefaultCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetGroupsForCapacityReservationCommand.ts b/clients/client-ec2/commands/GetGroupsForCapacityReservationCommand.ts index 56b051b51b1fe..d736fed899b59 100644 --- a/clients/client-ec2/commands/GetGroupsForCapacityReservationCommand.ts +++ b/clients/client-ec2/commands/GetGroupsForCapacityReservationCommand.ts @@ -28,6 +28,7 @@ export class GetGroupsForCapacityReservationCommand extends $Command< GetGroupsForCapacityReservationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupsForCapacityReservationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetHostReservationPurchasePreviewCommand.ts b/clients/client-ec2/commands/GetHostReservationPurchasePreviewCommand.ts index 2f5db959550cb..2dabda909d6e8 100644 --- a/clients/client-ec2/commands/GetHostReservationPurchasePreviewCommand.ts +++ b/clients/client-ec2/commands/GetHostReservationPurchasePreviewCommand.ts @@ -32,6 +32,7 @@ export class GetHostReservationPurchasePreviewCommand extends $Command< GetHostReservationPurchasePreviewCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetHostReservationPurchasePreviewCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetLaunchTemplateDataCommand.ts b/clients/client-ec2/commands/GetLaunchTemplateDataCommand.ts index 75ef1e913194c..0423da8f0dcae 100644 --- a/clients/client-ec2/commands/GetLaunchTemplateDataCommand.ts +++ b/clients/client-ec2/commands/GetLaunchTemplateDataCommand.ts @@ -32,6 +32,7 @@ export class GetLaunchTemplateDataCommand extends $Command< GetLaunchTemplateDataCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetLaunchTemplateDataCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetManagedPrefixListAssociationsCommand.ts b/clients/client-ec2/commands/GetManagedPrefixListAssociationsCommand.ts index 7eaac4f23386f..8a7fb774861a1 100644 --- a/clients/client-ec2/commands/GetManagedPrefixListAssociationsCommand.ts +++ b/clients/client-ec2/commands/GetManagedPrefixListAssociationsCommand.ts @@ -28,6 +28,7 @@ export class GetManagedPrefixListAssociationsCommand extends $Command< GetManagedPrefixListAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetManagedPrefixListAssociationsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetManagedPrefixListEntriesCommand.ts b/clients/client-ec2/commands/GetManagedPrefixListEntriesCommand.ts index ab71db8d2d030..74facceca247c 100644 --- a/clients/client-ec2/commands/GetManagedPrefixListEntriesCommand.ts +++ b/clients/client-ec2/commands/GetManagedPrefixListEntriesCommand.ts @@ -28,6 +28,7 @@ export class GetManagedPrefixListEntriesCommand extends $Command< GetManagedPrefixListEntriesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetManagedPrefixListEntriesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetPasswordDataCommand.ts b/clients/client-ec2/commands/GetPasswordDataCommand.ts index e27c110650d26..2e394359b186f 100644 --- a/clients/client-ec2/commands/GetPasswordDataCommand.ts +++ b/clients/client-ec2/commands/GetPasswordDataCommand.ts @@ -37,6 +37,7 @@ export class GetPasswordDataCommand extends $Command< GetPasswordDataCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetPasswordDataCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetReservedInstancesExchangeQuoteCommand.ts b/clients/client-ec2/commands/GetReservedInstancesExchangeQuoteCommand.ts index 71bcfc630d3ab..e942898fdf221 100644 --- a/clients/client-ec2/commands/GetReservedInstancesExchangeQuoteCommand.ts +++ b/clients/client-ec2/commands/GetReservedInstancesExchangeQuoteCommand.ts @@ -30,6 +30,7 @@ export class GetReservedInstancesExchangeQuoteCommand extends $Command< GetReservedInstancesExchangeQuoteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetReservedInstancesExchangeQuoteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetTransitGatewayAttachmentPropagationsCommand.ts b/clients/client-ec2/commands/GetTransitGatewayAttachmentPropagationsCommand.ts index d5ec17e7c4c8d..5326bdf601261 100644 --- a/clients/client-ec2/commands/GetTransitGatewayAttachmentPropagationsCommand.ts +++ b/clients/client-ec2/commands/GetTransitGatewayAttachmentPropagationsCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayAttachmentPropagationsCommand extends $Command< GetTransitGatewayAttachmentPropagationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetTransitGatewayAttachmentPropagationsCommand extends $Command< GetTransitGatewayAttachmentPropagationsCommandInput, GetTransitGatewayAttachmentPropagationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetTransitGatewayMulticastDomainAssociationsCommand.ts b/clients/client-ec2/commands/GetTransitGatewayMulticastDomainAssociationsCommand.ts index 97f9c35c7892f..722b3484fa291 100644 --- a/clients/client-ec2/commands/GetTransitGatewayMulticastDomainAssociationsCommand.ts +++ b/clients/client-ec2/commands/GetTransitGatewayMulticastDomainAssociationsCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayMulticastDomainAssociationsCommand extends $Comman GetTransitGatewayMulticastDomainAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetTransitGatewayMulticastDomainAssociationsCommand extends $Comman GetTransitGatewayMulticastDomainAssociationsCommandInput, GetTransitGatewayMulticastDomainAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetTransitGatewayPrefixListReferencesCommand.ts b/clients/client-ec2/commands/GetTransitGatewayPrefixListReferencesCommand.ts index 7eacd0e65c98b..b95240b64a412 100644 --- a/clients/client-ec2/commands/GetTransitGatewayPrefixListReferencesCommand.ts +++ b/clients/client-ec2/commands/GetTransitGatewayPrefixListReferencesCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayPrefixListReferencesCommand extends $Command< GetTransitGatewayPrefixListReferencesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetTransitGatewayPrefixListReferencesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetTransitGatewayRouteTableAssociationsCommand.ts b/clients/client-ec2/commands/GetTransitGatewayRouteTableAssociationsCommand.ts index 4280ef2f788f6..e17d70c033766 100644 --- a/clients/client-ec2/commands/GetTransitGatewayRouteTableAssociationsCommand.ts +++ b/clients/client-ec2/commands/GetTransitGatewayRouteTableAssociationsCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayRouteTableAssociationsCommand extends $Command< GetTransitGatewayRouteTableAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetTransitGatewayRouteTableAssociationsCommand extends $Command< GetTransitGatewayRouteTableAssociationsCommandInput, GetTransitGatewayRouteTableAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/GetTransitGatewayRouteTablePropagationsCommand.ts b/clients/client-ec2/commands/GetTransitGatewayRouteTablePropagationsCommand.ts index b70778c70430f..b507707f595fb 100644 --- a/clients/client-ec2/commands/GetTransitGatewayRouteTablePropagationsCommand.ts +++ b/clients/client-ec2/commands/GetTransitGatewayRouteTablePropagationsCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayRouteTablePropagationsCommand extends $Command< GetTransitGatewayRouteTablePropagationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetTransitGatewayRouteTablePropagationsCommand extends $Command< GetTransitGatewayRouteTablePropagationsCommandInput, GetTransitGatewayRouteTablePropagationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportClientVpnClientCertificateRevocationListCommand.ts b/clients/client-ec2/commands/ImportClientVpnClientCertificateRevocationListCommand.ts index 6d891ba95b94d..0df1bb5e1aee1 100644 --- a/clients/client-ec2/commands/ImportClientVpnClientCertificateRevocationListCommand.ts +++ b/clients/client-ec2/commands/ImportClientVpnClientCertificateRevocationListCommand.ts @@ -33,6 +33,7 @@ export class ImportClientVpnClientCertificateRevocationListCommand extends $Comm ImportClientVpnClientCertificateRevocationListCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ImportClientVpnClientCertificateRevocationListCommand extends $Comm ImportClientVpnClientCertificateRevocationListCommandInput, ImportClientVpnClientCertificateRevocationListCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportImageCommand.ts b/clients/client-ec2/commands/ImportImageCommand.ts index 079fb0b2170ea..59f097501141b 100644 --- a/clients/client-ec2/commands/ImportImageCommand.ts +++ b/clients/client-ec2/commands/ImportImageCommand.ts @@ -27,6 +27,7 @@ export class ImportImageCommand extends $Command< ImportImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ImportImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportInstanceCommand.ts b/clients/client-ec2/commands/ImportInstanceCommand.ts index e74e30a457b3a..65dd657e65b27 100644 --- a/clients/client-ec2/commands/ImportInstanceCommand.ts +++ b/clients/client-ec2/commands/ImportInstanceCommand.ts @@ -29,6 +29,7 @@ export class ImportInstanceCommand extends $Command< ImportInstanceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ImportInstanceCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportKeyPairCommand.ts b/clients/client-ec2/commands/ImportKeyPairCommand.ts index 9c90f8f2db626..b76a427799f6d 100644 --- a/clients/client-ec2/commands/ImportKeyPairCommand.ts +++ b/clients/client-ec2/commands/ImportKeyPairCommand.ts @@ -30,6 +30,7 @@ export class ImportKeyPairCommand extends $Command< ImportKeyPairCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ImportKeyPairCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportSnapshotCommand.ts b/clients/client-ec2/commands/ImportSnapshotCommand.ts index 262b31d904a8b..2005f5445f1d7 100644 --- a/clients/client-ec2/commands/ImportSnapshotCommand.ts +++ b/clients/client-ec2/commands/ImportSnapshotCommand.ts @@ -25,6 +25,7 @@ export class ImportSnapshotCommand extends $Command< ImportSnapshotCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ImportSnapshotCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ImportVolumeCommand.ts b/clients/client-ec2/commands/ImportVolumeCommand.ts index 68a3ade7ccc30..8661031d74542 100644 --- a/clients/client-ec2/commands/ImportVolumeCommand.ts +++ b/clients/client-ec2/commands/ImportVolumeCommand.ts @@ -27,6 +27,7 @@ export class ImportVolumeCommand extends $Command< ImportVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ImportVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyAddressAttributeCommand.ts b/clients/client-ec2/commands/ModifyAddressAttributeCommand.ts index da0f225f12183..eb544f62bc913 100644 --- a/clients/client-ec2/commands/ModifyAddressAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyAddressAttributeCommand.ts @@ -25,6 +25,7 @@ export class ModifyAddressAttributeCommand extends $Command< ModifyAddressAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ModifyAddressAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyAvailabilityZoneGroupCommand.ts b/clients/client-ec2/commands/ModifyAvailabilityZoneGroupCommand.ts index 83306179c0e6c..249f2f28798be 100644 --- a/clients/client-ec2/commands/ModifyAvailabilityZoneGroupCommand.ts +++ b/clients/client-ec2/commands/ModifyAvailabilityZoneGroupCommand.ts @@ -31,6 +31,7 @@ export class ModifyAvailabilityZoneGroupCommand extends $Command< ModifyAvailabilityZoneGroupCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ModifyAvailabilityZoneGroupCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyCapacityReservationCommand.ts b/clients/client-ec2/commands/ModifyCapacityReservationCommand.ts index d0404284ba738..9f34c037a70ba 100644 --- a/clients/client-ec2/commands/ModifyCapacityReservationCommand.ts +++ b/clients/client-ec2/commands/ModifyCapacityReservationCommand.ts @@ -32,6 +32,7 @@ export class ModifyCapacityReservationCommand extends $Command< ModifyCapacityReservationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyCapacityReservationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyClientVpnEndpointCommand.ts b/clients/client-ec2/commands/ModifyClientVpnEndpointCommand.ts index 6854ca2796fc5..6624dbd6f4613 100644 --- a/clients/client-ec2/commands/ModifyClientVpnEndpointCommand.ts +++ b/clients/client-ec2/commands/ModifyClientVpnEndpointCommand.ts @@ -28,6 +28,7 @@ export class ModifyClientVpnEndpointCommand extends $Command< ModifyClientVpnEndpointCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyClientVpnEndpointCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyDefaultCreditSpecificationCommand.ts b/clients/client-ec2/commands/ModifyDefaultCreditSpecificationCommand.ts index 6d7bdec67b7fb..6e6a0239a5ba4 100644 --- a/clients/client-ec2/commands/ModifyDefaultCreditSpecificationCommand.ts +++ b/clients/client-ec2/commands/ModifyDefaultCreditSpecificationCommand.ts @@ -41,6 +41,7 @@ export class ModifyDefaultCreditSpecificationCommand extends $Command< ModifyDefaultCreditSpecificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ModifyDefaultCreditSpecificationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyEbsDefaultKmsKeyIdCommand.ts b/clients/client-ec2/commands/ModifyEbsDefaultKmsKeyIdCommand.ts index 982f20c42b1a1..b41ad24c3fe22 100644 --- a/clients/client-ec2/commands/ModifyEbsDefaultKmsKeyIdCommand.ts +++ b/clients/client-ec2/commands/ModifyEbsDefaultKmsKeyIdCommand.ts @@ -35,6 +35,7 @@ export class ModifyEbsDefaultKmsKeyIdCommand extends $Command< ModifyEbsDefaultKmsKeyIdCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifyEbsDefaultKmsKeyIdCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyFleetCommand.ts b/clients/client-ec2/commands/ModifyFleetCommand.ts index 8ca1d1fa46a4e..35aeb5e870451 100644 --- a/clients/client-ec2/commands/ModifyFleetCommand.ts +++ b/clients/client-ec2/commands/ModifyFleetCommand.ts @@ -46,6 +46,7 @@ export class ModifyFleetCommand extends $Command< ModifyFleetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ModifyFleetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyFpgaImageAttributeCommand.ts b/clients/client-ec2/commands/ModifyFpgaImageAttributeCommand.ts index 8efb20dd0e4e4..96c1f87cf3a2f 100644 --- a/clients/client-ec2/commands/ModifyFpgaImageAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyFpgaImageAttributeCommand.ts @@ -28,6 +28,7 @@ export class ModifyFpgaImageAttributeCommand extends $Command< ModifyFpgaImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyFpgaImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyHostsCommand.ts b/clients/client-ec2/commands/ModifyHostsCommand.ts index 88592652f34ea..cdeeb83ed7662 100644 --- a/clients/client-ec2/commands/ModifyHostsCommand.ts +++ b/clients/client-ec2/commands/ModifyHostsCommand.ts @@ -32,6 +32,7 @@ export class ModifyHostsCommand extends $Command< ModifyHostsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyHostsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyIdFormatCommand.ts b/clients/client-ec2/commands/ModifyIdFormatCommand.ts index 3c94bbb526272..6c891dd4069fc 100644 --- a/clients/client-ec2/commands/ModifyIdFormatCommand.ts +++ b/clients/client-ec2/commands/ModifyIdFormatCommand.ts @@ -48,6 +48,7 @@ export class ModifyIdFormatCommand extends $Command< ModifyIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class ModifyIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyIdentityIdFormatCommand.ts b/clients/client-ec2/commands/ModifyIdentityIdFormatCommand.ts index 464b34c06c5bf..60df96997ad9f 100644 --- a/clients/client-ec2/commands/ModifyIdentityIdFormatCommand.ts +++ b/clients/client-ec2/commands/ModifyIdentityIdFormatCommand.ts @@ -49,6 +49,7 @@ export class ModifyIdentityIdFormatCommand extends $Command< ModifyIdentityIdFormatCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class ModifyIdentityIdFormatCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyImageAttributeCommand.ts b/clients/client-ec2/commands/ModifyImageAttributeCommand.ts index c152bf281c8c0..e35473300c420 100644 --- a/clients/client-ec2/commands/ModifyImageAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyImageAttributeCommand.ts @@ -33,6 +33,7 @@ export class ModifyImageAttributeCommand extends $Command< ModifyImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstanceAttributeCommand.ts b/clients/client-ec2/commands/ModifyInstanceAttributeCommand.ts index dbbc4fa388162..60ac55dc59804 100644 --- a/clients/client-ec2/commands/ModifyInstanceAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyInstanceAttributeCommand.ts @@ -38,6 +38,7 @@ export class ModifyInstanceAttributeCommand extends $Command< ModifyInstanceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ModifyInstanceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstanceCapacityReservationAttributesCommand.ts b/clients/client-ec2/commands/ModifyInstanceCapacityReservationAttributesCommand.ts index d35e3867d89b9..da9cccb405eda 100644 --- a/clients/client-ec2/commands/ModifyInstanceCapacityReservationAttributesCommand.ts +++ b/clients/client-ec2/commands/ModifyInstanceCapacityReservationAttributesCommand.ts @@ -34,6 +34,7 @@ export class ModifyInstanceCapacityReservationAttributesCommand extends $Command ModifyInstanceCapacityReservationAttributesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ModifyInstanceCapacityReservationAttributesCommand extends $Command ModifyInstanceCapacityReservationAttributesCommandInput, ModifyInstanceCapacityReservationAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstanceCreditSpecificationCommand.ts b/clients/client-ec2/commands/ModifyInstanceCreditSpecificationCommand.ts index 9874c7abc981c..61cee5c405d0f 100644 --- a/clients/client-ec2/commands/ModifyInstanceCreditSpecificationCommand.ts +++ b/clients/client-ec2/commands/ModifyInstanceCreditSpecificationCommand.ts @@ -33,6 +33,7 @@ export class ModifyInstanceCreditSpecificationCommand extends $Command< ModifyInstanceCreditSpecificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyInstanceCreditSpecificationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstanceEventStartTimeCommand.ts b/clients/client-ec2/commands/ModifyInstanceEventStartTimeCommand.ts index 0c98d2ddf7585..8f6a893230f40 100644 --- a/clients/client-ec2/commands/ModifyInstanceEventStartTimeCommand.ts +++ b/clients/client-ec2/commands/ModifyInstanceEventStartTimeCommand.ts @@ -28,6 +28,7 @@ export class ModifyInstanceEventStartTimeCommand extends $Command< ModifyInstanceEventStartTimeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyInstanceEventStartTimeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstanceMetadataOptionsCommand.ts b/clients/client-ec2/commands/ModifyInstanceMetadataOptionsCommand.ts index 62a639797ef86..3fb41304036aa 100644 --- a/clients/client-ec2/commands/ModifyInstanceMetadataOptionsCommand.ts +++ b/clients/client-ec2/commands/ModifyInstanceMetadataOptionsCommand.ts @@ -33,6 +33,7 @@ export class ModifyInstanceMetadataOptionsCommand extends $Command< ModifyInstanceMetadataOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyInstanceMetadataOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyInstancePlacementCommand.ts b/clients/client-ec2/commands/ModifyInstancePlacementCommand.ts index fd4bfc86d0d01..8fee79ab9b364 100644 --- a/clients/client-ec2/commands/ModifyInstancePlacementCommand.ts +++ b/clients/client-ec2/commands/ModifyInstancePlacementCommand.ts @@ -55,6 +55,7 @@ export class ModifyInstancePlacementCommand extends $Command< ModifyInstancePlacementCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class ModifyInstancePlacementCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyLaunchTemplateCommand.ts b/clients/client-ec2/commands/ModifyLaunchTemplateCommand.ts index 7ac71e9b37247..3bfa90e170fc1 100644 --- a/clients/client-ec2/commands/ModifyLaunchTemplateCommand.ts +++ b/clients/client-ec2/commands/ModifyLaunchTemplateCommand.ts @@ -30,6 +30,7 @@ export class ModifyLaunchTemplateCommand extends $Command< ModifyLaunchTemplateCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyLaunchTemplateCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyManagedPrefixListCommand.ts b/clients/client-ec2/commands/ModifyManagedPrefixListCommand.ts index 47706ffaa166c..76116cc5fc866 100644 --- a/clients/client-ec2/commands/ModifyManagedPrefixListCommand.ts +++ b/clients/client-ec2/commands/ModifyManagedPrefixListCommand.ts @@ -32,6 +32,7 @@ export class ModifyManagedPrefixListCommand extends $Command< ModifyManagedPrefixListCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyManagedPrefixListCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyNetworkInterfaceAttributeCommand.ts b/clients/client-ec2/commands/ModifyNetworkInterfaceAttributeCommand.ts index f08b5a7185bd2..e42be80f1602c 100644 --- a/clients/client-ec2/commands/ModifyNetworkInterfaceAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyNetworkInterfaceAttributeCommand.ts @@ -30,6 +30,7 @@ export class ModifyNetworkInterfaceAttributeCommand extends $Command< ModifyNetworkInterfaceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyNetworkInterfaceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyReservedInstancesCommand.ts b/clients/client-ec2/commands/ModifyReservedInstancesCommand.ts index 284f6ffd87e62..e98b5a4073766 100644 --- a/clients/client-ec2/commands/ModifyReservedInstancesCommand.ts +++ b/clients/client-ec2/commands/ModifyReservedInstancesCommand.ts @@ -33,6 +33,7 @@ export class ModifyReservedInstancesCommand extends $Command< ModifyReservedInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyReservedInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifySnapshotAttributeCommand.ts b/clients/client-ec2/commands/ModifySnapshotAttributeCommand.ts index 62f07e6e7c051..90434fcf0fc61 100644 --- a/clients/client-ec2/commands/ModifySnapshotAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifySnapshotAttributeCommand.ts @@ -35,6 +35,7 @@ export class ModifySnapshotAttributeCommand extends $Command< ModifySnapshotAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifySnapshotAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifySpotFleetRequestCommand.ts b/clients/client-ec2/commands/ModifySpotFleetRequestCommand.ts index 3f015268f5555..0d690ad7acfbd 100644 --- a/clients/client-ec2/commands/ModifySpotFleetRequestCommand.ts +++ b/clients/client-ec2/commands/ModifySpotFleetRequestCommand.ts @@ -51,6 +51,7 @@ export class ModifySpotFleetRequestCommand extends $Command< ModifySpotFleetRequestCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class ModifySpotFleetRequestCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifySubnetAttributeCommand.ts b/clients/client-ec2/commands/ModifySubnetAttributeCommand.ts index 08acfb465ab8d..e4d48a49748f5 100644 --- a/clients/client-ec2/commands/ModifySubnetAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifySubnetAttributeCommand.ts @@ -28,6 +28,7 @@ export class ModifySubnetAttributeCommand extends $Command< ModifySubnetAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifySubnetAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.ts b/clients/client-ec2/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.ts index 0a5658c982085..82eaf8a6466f9 100644 --- a/clients/client-ec2/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.ts +++ b/clients/client-ec2/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.ts @@ -37,6 +37,7 @@ export class ModifyTrafficMirrorFilterNetworkServicesCommand extends $Command< ModifyTrafficMirrorFilterNetworkServicesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ModifyTrafficMirrorFilterNetworkServicesCommand extends $Command< ModifyTrafficMirrorFilterNetworkServicesCommandInput, ModifyTrafficMirrorFilterNetworkServicesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTrafficMirrorFilterRuleCommand.ts b/clients/client-ec2/commands/ModifyTrafficMirrorFilterRuleCommand.ts index cf583c5c348a1..32c7c5858dc86 100644 --- a/clients/client-ec2/commands/ModifyTrafficMirrorFilterRuleCommand.ts +++ b/clients/client-ec2/commands/ModifyTrafficMirrorFilterRuleCommand.ts @@ -31,6 +31,7 @@ export class ModifyTrafficMirrorFilterRuleCommand extends $Command< ModifyTrafficMirrorFilterRuleCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ModifyTrafficMirrorFilterRuleCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTrafficMirrorSessionCommand.ts b/clients/client-ec2/commands/ModifyTrafficMirrorSessionCommand.ts index 19a86211ecb7b..ec0b37cf515e6 100644 --- a/clients/client-ec2/commands/ModifyTrafficMirrorSessionCommand.ts +++ b/clients/client-ec2/commands/ModifyTrafficMirrorSessionCommand.ts @@ -28,6 +28,7 @@ export class ModifyTrafficMirrorSessionCommand extends $Command< ModifyTrafficMirrorSessionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyTrafficMirrorSessionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTransitGatewayCommand.ts b/clients/client-ec2/commands/ModifyTransitGatewayCommand.ts index d59a174effc7e..a7c73e5fa2712 100644 --- a/clients/client-ec2/commands/ModifyTransitGatewayCommand.ts +++ b/clients/client-ec2/commands/ModifyTransitGatewayCommand.ts @@ -28,6 +28,7 @@ export class ModifyTransitGatewayCommand extends $Command< ModifyTransitGatewayCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyTransitGatewayCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTransitGatewayPrefixListReferenceCommand.ts b/clients/client-ec2/commands/ModifyTransitGatewayPrefixListReferenceCommand.ts index 0e68f2242004d..60574d73b5128 100644 --- a/clients/client-ec2/commands/ModifyTransitGatewayPrefixListReferenceCommand.ts +++ b/clients/client-ec2/commands/ModifyTransitGatewayPrefixListReferenceCommand.ts @@ -32,6 +32,7 @@ export class ModifyTransitGatewayPrefixListReferenceCommand extends $Command< ModifyTransitGatewayPrefixListReferenceCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifyTransitGatewayPrefixListReferenceCommand extends $Command< ModifyTransitGatewayPrefixListReferenceCommandInput, ModifyTransitGatewayPrefixListReferenceCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyTransitGatewayVpcAttachmentCommand.ts b/clients/client-ec2/commands/ModifyTransitGatewayVpcAttachmentCommand.ts index 861be1db034e6..c6ccfe44f2a45 100644 --- a/clients/client-ec2/commands/ModifyTransitGatewayVpcAttachmentCommand.ts +++ b/clients/client-ec2/commands/ModifyTransitGatewayVpcAttachmentCommand.ts @@ -28,6 +28,7 @@ export class ModifyTransitGatewayVpcAttachmentCommand extends $Command< ModifyTransitGatewayVpcAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyTransitGatewayVpcAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVolumeAttributeCommand.ts b/clients/client-ec2/commands/ModifyVolumeAttributeCommand.ts index 045ecdfcb0eec..c17023a0f7e93 100644 --- a/clients/client-ec2/commands/ModifyVolumeAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyVolumeAttributeCommand.ts @@ -34,6 +34,7 @@ export class ModifyVolumeAttributeCommand extends $Command< ModifyVolumeAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ModifyVolumeAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVolumeCommand.ts b/clients/client-ec2/commands/ModifyVolumeCommand.ts index 82a8e735cbe03..c9529ab5cbc05 100644 --- a/clients/client-ec2/commands/ModifyVolumeCommand.ts +++ b/clients/client-ec2/commands/ModifyVolumeCommand.ts @@ -46,6 +46,7 @@ export class ModifyVolumeCommand extends $Command< ModifyVolumeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ModifyVolumeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcAttributeCommand.ts b/clients/client-ec2/commands/ModifyVpcAttributeCommand.ts index 9eeac6e6c7177..e1dea18d467e9 100644 --- a/clients/client-ec2/commands/ModifyVpcAttributeCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcAttributeCommand.ts @@ -28,6 +28,7 @@ export class ModifyVpcAttributeCommand extends $Command< ModifyVpcAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyVpcAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcEndpointCommand.ts b/clients/client-ec2/commands/ModifyVpcEndpointCommand.ts index afabd7efd5826..85d0d5904fe06 100644 --- a/clients/client-ec2/commands/ModifyVpcEndpointCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcEndpointCommand.ts @@ -31,6 +31,7 @@ export class ModifyVpcEndpointCommand extends $Command< ModifyVpcEndpointCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ModifyVpcEndpointCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcEndpointConnectionNotificationCommand.ts b/clients/client-ec2/commands/ModifyVpcEndpointConnectionNotificationCommand.ts index 72f603e8c9f92..0b3da1eedc221 100644 --- a/clients/client-ec2/commands/ModifyVpcEndpointConnectionNotificationCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcEndpointConnectionNotificationCommand.ts @@ -33,6 +33,7 @@ export class ModifyVpcEndpointConnectionNotificationCommand extends $Command< ModifyVpcEndpointConnectionNotificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyVpcEndpointConnectionNotificationCommand extends $Command< ModifyVpcEndpointConnectionNotificationCommandInput, ModifyVpcEndpointConnectionNotificationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcEndpointServiceConfigurationCommand.ts b/clients/client-ec2/commands/ModifyVpcEndpointServiceConfigurationCommand.ts index b29d1b940e1e7..f02b7b051c02e 100644 --- a/clients/client-ec2/commands/ModifyVpcEndpointServiceConfigurationCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcEndpointServiceConfigurationCommand.ts @@ -39,6 +39,7 @@ export class ModifyVpcEndpointServiceConfigurationCommand extends $Command< ModifyVpcEndpointServiceConfigurationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ModifyVpcEndpointServiceConfigurationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcEndpointServicePermissionsCommand.ts b/clients/client-ec2/commands/ModifyVpcEndpointServicePermissionsCommand.ts index 84dc9eac0a9fc..e74c829535275 100644 --- a/clients/client-ec2/commands/ModifyVpcEndpointServicePermissionsCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcEndpointServicePermissionsCommand.ts @@ -36,6 +36,7 @@ export class ModifyVpcEndpointServicePermissionsCommand extends $Command< ModifyVpcEndpointServicePermissionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyVpcEndpointServicePermissionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcPeeringConnectionOptionsCommand.ts b/clients/client-ec2/commands/ModifyVpcPeeringConnectionOptionsCommand.ts index 153467b6af86d..de8b898887a57 100644 --- a/clients/client-ec2/commands/ModifyVpcPeeringConnectionOptionsCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcPeeringConnectionOptionsCommand.ts @@ -49,6 +49,7 @@ export class ModifyVpcPeeringConnectionOptionsCommand extends $Command< ModifyVpcPeeringConnectionOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class ModifyVpcPeeringConnectionOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpcTenancyCommand.ts b/clients/client-ec2/commands/ModifyVpcTenancyCommand.ts index ec190dcee3fa4..5da3cef5648cd 100644 --- a/clients/client-ec2/commands/ModifyVpcTenancyCommand.ts +++ b/clients/client-ec2/commands/ModifyVpcTenancyCommand.ts @@ -35,6 +35,7 @@ export class ModifyVpcTenancyCommand extends $Command< ModifyVpcTenancyCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifyVpcTenancyCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpnConnectionCommand.ts b/clients/client-ec2/commands/ModifyVpnConnectionCommand.ts index 3e5a1b0b81d43..72fe820d80505 100644 --- a/clients/client-ec2/commands/ModifyVpnConnectionCommand.ts +++ b/clients/client-ec2/commands/ModifyVpnConnectionCommand.ts @@ -60,6 +60,7 @@ export class ModifyVpnConnectionCommand extends $Command< ModifyVpnConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class ModifyVpnConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpnConnectionOptionsCommand.ts b/clients/client-ec2/commands/ModifyVpnConnectionOptionsCommand.ts index 13051efc5ca9e..e11a55a48e526 100644 --- a/clients/client-ec2/commands/ModifyVpnConnectionOptionsCommand.ts +++ b/clients/client-ec2/commands/ModifyVpnConnectionOptionsCommand.ts @@ -29,6 +29,7 @@ export class ModifyVpnConnectionOptionsCommand extends $Command< ModifyVpnConnectionOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyVpnConnectionOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpnTunnelCertificateCommand.ts b/clients/client-ec2/commands/ModifyVpnTunnelCertificateCommand.ts index 84ac2fb9ff5a7..9c122b8d1d040 100644 --- a/clients/client-ec2/commands/ModifyVpnTunnelCertificateCommand.ts +++ b/clients/client-ec2/commands/ModifyVpnTunnelCertificateCommand.ts @@ -28,6 +28,7 @@ export class ModifyVpnTunnelCertificateCommand extends $Command< ModifyVpnTunnelCertificateCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyVpnTunnelCertificateCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ModifyVpnTunnelOptionsCommand.ts b/clients/client-ec2/commands/ModifyVpnTunnelOptionsCommand.ts index 27e1e053a5f9d..652a37671a5a9 100644 --- a/clients/client-ec2/commands/ModifyVpnTunnelOptionsCommand.ts +++ b/clients/client-ec2/commands/ModifyVpnTunnelOptionsCommand.ts @@ -31,6 +31,7 @@ export class ModifyVpnTunnelOptionsCommand extends $Command< ModifyVpnTunnelOptionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ModifyVpnTunnelOptionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/MonitorInstancesCommand.ts b/clients/client-ec2/commands/MonitorInstancesCommand.ts index aaa6c8ef9ede5..a265dffde59da 100644 --- a/clients/client-ec2/commands/MonitorInstancesCommand.ts +++ b/clients/client-ec2/commands/MonitorInstancesCommand.ts @@ -32,6 +32,7 @@ export class MonitorInstancesCommand extends $Command< MonitorInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class MonitorInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/MoveAddressToVpcCommand.ts b/clients/client-ec2/commands/MoveAddressToVpcCommand.ts index fba3a2c094a68..cc2ffd4ff21d0 100644 --- a/clients/client-ec2/commands/MoveAddressToVpcCommand.ts +++ b/clients/client-ec2/commands/MoveAddressToVpcCommand.ts @@ -33,6 +33,7 @@ export class MoveAddressToVpcCommand extends $Command< MoveAddressToVpcCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class MoveAddressToVpcCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ProvisionByoipCidrCommand.ts b/clients/client-ec2/commands/ProvisionByoipCidrCommand.ts index c3e0d2d7cad89..b3838a4a3866d 100644 --- a/clients/client-ec2/commands/ProvisionByoipCidrCommand.ts +++ b/clients/client-ec2/commands/ProvisionByoipCidrCommand.ts @@ -39,6 +39,7 @@ export class ProvisionByoipCidrCommand extends $Command< ProvisionByoipCidrCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ProvisionByoipCidrCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/PurchaseHostReservationCommand.ts b/clients/client-ec2/commands/PurchaseHostReservationCommand.ts index 63c84e1a4d6d2..dc3ea690a9ae1 100644 --- a/clients/client-ec2/commands/PurchaseHostReservationCommand.ts +++ b/clients/client-ec2/commands/PurchaseHostReservationCommand.ts @@ -31,6 +31,7 @@ export class PurchaseHostReservationCommand extends $Command< PurchaseHostReservationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PurchaseHostReservationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/PurchaseReservedInstancesOfferingCommand.ts b/clients/client-ec2/commands/PurchaseReservedInstancesOfferingCommand.ts index 292f99a470945..1222b53e69934 100644 --- a/clients/client-ec2/commands/PurchaseReservedInstancesOfferingCommand.ts +++ b/clients/client-ec2/commands/PurchaseReservedInstancesOfferingCommand.ts @@ -37,6 +37,7 @@ export class PurchaseReservedInstancesOfferingCommand extends $Command< PurchaseReservedInstancesOfferingCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PurchaseReservedInstancesOfferingCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/PurchaseScheduledInstancesCommand.ts b/clients/client-ec2/commands/PurchaseScheduledInstancesCommand.ts index 32fdac6e44339..30edc22706ba7 100644 --- a/clients/client-ec2/commands/PurchaseScheduledInstancesCommand.ts +++ b/clients/client-ec2/commands/PurchaseScheduledInstancesCommand.ts @@ -33,6 +33,7 @@ export class PurchaseScheduledInstancesCommand extends $Command< PurchaseScheduledInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PurchaseScheduledInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RebootInstancesCommand.ts b/clients/client-ec2/commands/RebootInstancesCommand.ts index 6324d689732a6..05ea10e5f0798 100644 --- a/clients/client-ec2/commands/RebootInstancesCommand.ts +++ b/clients/client-ec2/commands/RebootInstancesCommand.ts @@ -33,6 +33,7 @@ export class RebootInstancesCommand extends $Command< RebootInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RebootInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RegisterImageCommand.ts b/clients/client-ec2/commands/RegisterImageCommand.ts index c8755d0cc836f..78c1948d97fe3 100644 --- a/clients/client-ec2/commands/RegisterImageCommand.ts +++ b/clients/client-ec2/commands/RegisterImageCommand.ts @@ -63,6 +63,7 @@ export class RegisterImageCommand extends $Command< RegisterImageCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class RegisterImageCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RegisterInstanceEventNotificationAttributesCommand.ts b/clients/client-ec2/commands/RegisterInstanceEventNotificationAttributesCommand.ts index 6acc76806c388..05f26c68a78b5 100644 --- a/clients/client-ec2/commands/RegisterInstanceEventNotificationAttributesCommand.ts +++ b/clients/client-ec2/commands/RegisterInstanceEventNotificationAttributesCommand.ts @@ -34,6 +34,7 @@ export class RegisterInstanceEventNotificationAttributesCommand extends $Command RegisterInstanceEventNotificationAttributesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class RegisterInstanceEventNotificationAttributesCommand extends $Command RegisterInstanceEventNotificationAttributesCommandInput, RegisterInstanceEventNotificationAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupMembersCommand.ts b/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupMembersCommand.ts index 974109692d095..97d9a1c79d511 100644 --- a/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupMembersCommand.ts +++ b/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupMembersCommand.ts @@ -37,6 +37,7 @@ export class RegisterTransitGatewayMulticastGroupMembersCommand extends $Command RegisterTransitGatewayMulticastGroupMembersCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RegisterTransitGatewayMulticastGroupMembersCommand extends $Command RegisterTransitGatewayMulticastGroupMembersCommandInput, RegisterTransitGatewayMulticastGroupMembersCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.ts b/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.ts index 4da5e6e10b189..f3e387f059ef0 100644 --- a/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.ts +++ b/clients/client-ec2/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.ts @@ -37,6 +37,7 @@ export class RegisterTransitGatewayMulticastGroupSourcesCommand extends $Command RegisterTransitGatewayMulticastGroupSourcesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RegisterTransitGatewayMulticastGroupSourcesCommand extends $Command RegisterTransitGatewayMulticastGroupSourcesCommandInput, RegisterTransitGatewayMulticastGroupSourcesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.ts b/clients/client-ec2/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.ts index 069b79f332f09..dfb737bc61dec 100644 --- a/clients/client-ec2/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.ts +++ b/clients/client-ec2/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.ts @@ -32,6 +32,7 @@ export class RejectTransitGatewayMulticastDomainAssociationsCommand extends $Com RejectTransitGatewayMulticastDomainAssociationsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RejectTransitGatewayMulticastDomainAssociationsCommand extends $Com RejectTransitGatewayMulticastDomainAssociationsCommandInput, RejectTransitGatewayMulticastDomainAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RejectTransitGatewayPeeringAttachmentCommand.ts b/clients/client-ec2/commands/RejectTransitGatewayPeeringAttachmentCommand.ts index 83721491bbe72..d959debdaecf9 100644 --- a/clients/client-ec2/commands/RejectTransitGatewayPeeringAttachmentCommand.ts +++ b/clients/client-ec2/commands/RejectTransitGatewayPeeringAttachmentCommand.ts @@ -32,6 +32,7 @@ export class RejectTransitGatewayPeeringAttachmentCommand extends $Command< RejectTransitGatewayPeeringAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RejectTransitGatewayPeeringAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RejectTransitGatewayVpcAttachmentCommand.ts b/clients/client-ec2/commands/RejectTransitGatewayVpcAttachmentCommand.ts index db5e5199bc7c9..08b6f2bfda468 100644 --- a/clients/client-ec2/commands/RejectTransitGatewayVpcAttachmentCommand.ts +++ b/clients/client-ec2/commands/RejectTransitGatewayVpcAttachmentCommand.ts @@ -31,6 +31,7 @@ export class RejectTransitGatewayVpcAttachmentCommand extends $Command< RejectTransitGatewayVpcAttachmentCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RejectTransitGatewayVpcAttachmentCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RejectVpcEndpointConnectionsCommand.ts b/clients/client-ec2/commands/RejectVpcEndpointConnectionsCommand.ts index 42cdcba9f9602..8dfa5aa1a0a55 100644 --- a/clients/client-ec2/commands/RejectVpcEndpointConnectionsCommand.ts +++ b/clients/client-ec2/commands/RejectVpcEndpointConnectionsCommand.ts @@ -29,6 +29,7 @@ export class RejectVpcEndpointConnectionsCommand extends $Command< RejectVpcEndpointConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RejectVpcEndpointConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RejectVpcPeeringConnectionCommand.ts b/clients/client-ec2/commands/RejectVpcPeeringConnectionCommand.ts index 8b3e1fefc7bab..7de72ce706ca2 100644 --- a/clients/client-ec2/commands/RejectVpcPeeringConnectionCommand.ts +++ b/clients/client-ec2/commands/RejectVpcPeeringConnectionCommand.ts @@ -31,6 +31,7 @@ export class RejectVpcPeeringConnectionCommand extends $Command< RejectVpcPeeringConnectionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RejectVpcPeeringConnectionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReleaseAddressCommand.ts b/clients/client-ec2/commands/ReleaseAddressCommand.ts index 11849e8ca4b2b..56409c28e4645 100644 --- a/clients/client-ec2/commands/ReleaseAddressCommand.ts +++ b/clients/client-ec2/commands/ReleaseAddressCommand.ts @@ -36,6 +36,7 @@ export class ReleaseAddressCommand extends $Command< ReleaseAddressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ReleaseAddressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReleaseHostsCommand.ts b/clients/client-ec2/commands/ReleaseHostsCommand.ts index 672f1470d2746..88c64a318fa74 100644 --- a/clients/client-ec2/commands/ReleaseHostsCommand.ts +++ b/clients/client-ec2/commands/ReleaseHostsCommand.ts @@ -33,6 +33,7 @@ export class ReleaseHostsCommand extends $Command< ReleaseHostsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ReleaseHostsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceIamInstanceProfileAssociationCommand.ts b/clients/client-ec2/commands/ReplaceIamInstanceProfileAssociationCommand.ts index 22e3da495b310..c2546e9dfb3cf 100644 --- a/clients/client-ec2/commands/ReplaceIamInstanceProfileAssociationCommand.ts +++ b/clients/client-ec2/commands/ReplaceIamInstanceProfileAssociationCommand.ts @@ -36,6 +36,7 @@ export class ReplaceIamInstanceProfileAssociationCommand extends $Command< ReplaceIamInstanceProfileAssociationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ReplaceIamInstanceProfileAssociationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceNetworkAclAssociationCommand.ts b/clients/client-ec2/commands/ReplaceNetworkAclAssociationCommand.ts index 0f60b32a761a9..bc382a0929434 100644 --- a/clients/client-ec2/commands/ReplaceNetworkAclAssociationCommand.ts +++ b/clients/client-ec2/commands/ReplaceNetworkAclAssociationCommand.ts @@ -32,6 +32,7 @@ export class ReplaceNetworkAclAssociationCommand extends $Command< ReplaceNetworkAclAssociationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReplaceNetworkAclAssociationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceNetworkAclEntryCommand.ts b/clients/client-ec2/commands/ReplaceNetworkAclEntryCommand.ts index 3746b65d308ce..7ff279c8ebbd2 100644 --- a/clients/client-ec2/commands/ReplaceNetworkAclEntryCommand.ts +++ b/clients/client-ec2/commands/ReplaceNetworkAclEntryCommand.ts @@ -29,6 +29,7 @@ export class ReplaceNetworkAclEntryCommand extends $Command< ReplaceNetworkAclEntryCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ReplaceNetworkAclEntryCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceRouteCommand.ts b/clients/client-ec2/commands/ReplaceRouteCommand.ts index d57a247d368dc..a1ec1e92042b2 100644 --- a/clients/client-ec2/commands/ReplaceRouteCommand.ts +++ b/clients/client-ec2/commands/ReplaceRouteCommand.ts @@ -30,6 +30,7 @@ export class ReplaceRouteCommand extends $Command< ReplaceRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ReplaceRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceRouteTableAssociationCommand.ts b/clients/client-ec2/commands/ReplaceRouteTableAssociationCommand.ts index 617dd19cd8e44..0d6f64b27b79f 100644 --- a/clients/client-ec2/commands/ReplaceRouteTableAssociationCommand.ts +++ b/clients/client-ec2/commands/ReplaceRouteTableAssociationCommand.ts @@ -32,6 +32,7 @@ export class ReplaceRouteTableAssociationCommand extends $Command< ReplaceRouteTableAssociationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReplaceRouteTableAssociationCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReplaceTransitGatewayRouteCommand.ts b/clients/client-ec2/commands/ReplaceTransitGatewayRouteCommand.ts index 2062dcfd35568..844eaa14fdd86 100644 --- a/clients/client-ec2/commands/ReplaceTransitGatewayRouteCommand.ts +++ b/clients/client-ec2/commands/ReplaceTransitGatewayRouteCommand.ts @@ -28,6 +28,7 @@ export class ReplaceTransitGatewayRouteCommand extends $Command< ReplaceTransitGatewayRouteCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ReplaceTransitGatewayRouteCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ReportInstanceStatusCommand.ts b/clients/client-ec2/commands/ReportInstanceStatusCommand.ts index e441425b6addd..9589b7b18c4cd 100644 --- a/clients/client-ec2/commands/ReportInstanceStatusCommand.ts +++ b/clients/client-ec2/commands/ReportInstanceStatusCommand.ts @@ -32,6 +32,7 @@ export class ReportInstanceStatusCommand extends $Command< ReportInstanceStatusCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReportInstanceStatusCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RequestSpotFleetCommand.ts b/clients/client-ec2/commands/RequestSpotFleetCommand.ts index 7f2aacca3174e..7f50f1c44e43f 100644 --- a/clients/client-ec2/commands/RequestSpotFleetCommand.ts +++ b/clients/client-ec2/commands/RequestSpotFleetCommand.ts @@ -43,6 +43,7 @@ export class RequestSpotFleetCommand extends $Command< RequestSpotFleetCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class RequestSpotFleetCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RequestSpotInstancesCommand.ts b/clients/client-ec2/commands/RequestSpotInstancesCommand.ts index 538a3d4c45cf8..836ee0be36e24 100644 --- a/clients/client-ec2/commands/RequestSpotInstancesCommand.ts +++ b/clients/client-ec2/commands/RequestSpotInstancesCommand.ts @@ -29,6 +29,7 @@ export class RequestSpotInstancesCommand extends $Command< RequestSpotInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RequestSpotInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetAddressAttributeCommand.ts b/clients/client-ec2/commands/ResetAddressAttributeCommand.ts index 5fd2f0742c3cb..1997b56254682 100644 --- a/clients/client-ec2/commands/ResetAddressAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetAddressAttributeCommand.ts @@ -25,6 +25,7 @@ export class ResetAddressAttributeCommand extends $Command< ResetAddressAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ResetAddressAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetEbsDefaultKmsKeyIdCommand.ts b/clients/client-ec2/commands/ResetEbsDefaultKmsKeyIdCommand.ts index 6be0299e7694b..546f93ce8f4b3 100644 --- a/clients/client-ec2/commands/ResetEbsDefaultKmsKeyIdCommand.ts +++ b/clients/client-ec2/commands/ResetEbsDefaultKmsKeyIdCommand.ts @@ -33,6 +33,7 @@ export class ResetEbsDefaultKmsKeyIdCommand extends $Command< ResetEbsDefaultKmsKeyIdCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ResetEbsDefaultKmsKeyIdCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetFpgaImageAttributeCommand.ts b/clients/client-ec2/commands/ResetFpgaImageAttributeCommand.ts index d6a262bb638ae..e7ad69700dd57 100644 --- a/clients/client-ec2/commands/ResetFpgaImageAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetFpgaImageAttributeCommand.ts @@ -29,6 +29,7 @@ export class ResetFpgaImageAttributeCommand extends $Command< ResetFpgaImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ResetFpgaImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetImageAttributeCommand.ts b/clients/client-ec2/commands/ResetImageAttributeCommand.ts index 993c2236930ad..1e30156e22f77 100644 --- a/clients/client-ec2/commands/ResetImageAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetImageAttributeCommand.ts @@ -31,6 +31,7 @@ export class ResetImageAttributeCommand extends $Command< ResetImageAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResetImageAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetInstanceAttributeCommand.ts b/clients/client-ec2/commands/ResetInstanceAttributeCommand.ts index f6f8a6a4ba2d9..67c89de316da7 100644 --- a/clients/client-ec2/commands/ResetInstanceAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetInstanceAttributeCommand.ts @@ -36,6 +36,7 @@ export class ResetInstanceAttributeCommand extends $Command< ResetInstanceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ResetInstanceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetNetworkInterfaceAttributeCommand.ts b/clients/client-ec2/commands/ResetNetworkInterfaceAttributeCommand.ts index 9b7daa68f418f..6343751f49cb5 100644 --- a/clients/client-ec2/commands/ResetNetworkInterfaceAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetNetworkInterfaceAttributeCommand.ts @@ -28,6 +28,7 @@ export class ResetNetworkInterfaceAttributeCommand extends $Command< ResetNetworkInterfaceAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResetNetworkInterfaceAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/ResetSnapshotAttributeCommand.ts b/clients/client-ec2/commands/ResetSnapshotAttributeCommand.ts index acf518c6893e6..9467312107563 100644 --- a/clients/client-ec2/commands/ResetSnapshotAttributeCommand.ts +++ b/clients/client-ec2/commands/ResetSnapshotAttributeCommand.ts @@ -30,6 +30,7 @@ export class ResetSnapshotAttributeCommand extends $Command< ResetSnapshotAttributeCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ResetSnapshotAttributeCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RestoreAddressToClassicCommand.ts b/clients/client-ec2/commands/RestoreAddressToClassicCommand.ts index 641911376474f..c33c11b596062 100644 --- a/clients/client-ec2/commands/RestoreAddressToClassicCommand.ts +++ b/clients/client-ec2/commands/RestoreAddressToClassicCommand.ts @@ -28,6 +28,7 @@ export class RestoreAddressToClassicCommand extends $Command< RestoreAddressToClassicCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RestoreAddressToClassicCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RestoreManagedPrefixListVersionCommand.ts b/clients/client-ec2/commands/RestoreManagedPrefixListVersionCommand.ts index 4bd0c4dc29efb..f073ea12ee493 100644 --- a/clients/client-ec2/commands/RestoreManagedPrefixListVersionCommand.ts +++ b/clients/client-ec2/commands/RestoreManagedPrefixListVersionCommand.ts @@ -28,6 +28,7 @@ export class RestoreManagedPrefixListVersionCommand extends $Command< RestoreManagedPrefixListVersionCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RestoreManagedPrefixListVersionCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RevokeClientVpnIngressCommand.ts b/clients/client-ec2/commands/RevokeClientVpnIngressCommand.ts index f56db2b40dd6f..300f44b9f943d 100644 --- a/clients/client-ec2/commands/RevokeClientVpnIngressCommand.ts +++ b/clients/client-ec2/commands/RevokeClientVpnIngressCommand.ts @@ -28,6 +28,7 @@ export class RevokeClientVpnIngressCommand extends $Command< RevokeClientVpnIngressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokeClientVpnIngressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RevokeSecurityGroupEgressCommand.ts b/clients/client-ec2/commands/RevokeSecurityGroupEgressCommand.ts index 026b991a17d10..2720093c04573 100644 --- a/clients/client-ec2/commands/RevokeSecurityGroupEgressCommand.ts +++ b/clients/client-ec2/commands/RevokeSecurityGroupEgressCommand.ts @@ -42,6 +42,7 @@ export class RevokeSecurityGroupEgressCommand extends $Command< RevokeSecurityGroupEgressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class RevokeSecurityGroupEgressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RevokeSecurityGroupIngressCommand.ts b/clients/client-ec2/commands/RevokeSecurityGroupIngressCommand.ts index 43c576dd63f58..11417265154cd 100644 --- a/clients/client-ec2/commands/RevokeSecurityGroupIngressCommand.ts +++ b/clients/client-ec2/commands/RevokeSecurityGroupIngressCommand.ts @@ -40,6 +40,7 @@ export class RevokeSecurityGroupIngressCommand extends $Command< RevokeSecurityGroupIngressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RevokeSecurityGroupIngressCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RunInstancesCommand.ts b/clients/client-ec2/commands/RunInstancesCommand.ts index 75483ebf568ec..be453c223352c 100644 --- a/clients/client-ec2/commands/RunInstancesCommand.ts +++ b/clients/client-ec2/commands/RunInstancesCommand.ts @@ -84,6 +84,7 @@ export class RunInstancesCommand extends $Command< RunInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -101,7 +102,10 @@ export class RunInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/RunScheduledInstancesCommand.ts b/clients/client-ec2/commands/RunScheduledInstancesCommand.ts index 50a963aa26f77..4eea792b9eeeb 100644 --- a/clients/client-ec2/commands/RunScheduledInstancesCommand.ts +++ b/clients/client-ec2/commands/RunScheduledInstancesCommand.ts @@ -33,6 +33,7 @@ export class RunScheduledInstancesCommand extends $Command< RunScheduledInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RunScheduledInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/SearchLocalGatewayRoutesCommand.ts b/clients/client-ec2/commands/SearchLocalGatewayRoutesCommand.ts index d7caa56e29ce7..68fa991421f5e 100644 --- a/clients/client-ec2/commands/SearchLocalGatewayRoutesCommand.ts +++ b/clients/client-ec2/commands/SearchLocalGatewayRoutesCommand.ts @@ -28,6 +28,7 @@ export class SearchLocalGatewayRoutesCommand extends $Command< SearchLocalGatewayRoutesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchLocalGatewayRoutesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/SearchTransitGatewayMulticastGroupsCommand.ts b/clients/client-ec2/commands/SearchTransitGatewayMulticastGroupsCommand.ts index 7de4000dc1922..fb26eebeed385 100644 --- a/clients/client-ec2/commands/SearchTransitGatewayMulticastGroupsCommand.ts +++ b/clients/client-ec2/commands/SearchTransitGatewayMulticastGroupsCommand.ts @@ -32,6 +32,7 @@ export class SearchTransitGatewayMulticastGroupsCommand extends $Command< SearchTransitGatewayMulticastGroupsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SearchTransitGatewayMulticastGroupsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/SearchTransitGatewayRoutesCommand.ts b/clients/client-ec2/commands/SearchTransitGatewayRoutesCommand.ts index 3efd015485adb..290b13beb4bc8 100644 --- a/clients/client-ec2/commands/SearchTransitGatewayRoutesCommand.ts +++ b/clients/client-ec2/commands/SearchTransitGatewayRoutesCommand.ts @@ -28,6 +28,7 @@ export class SearchTransitGatewayRoutesCommand extends $Command< SearchTransitGatewayRoutesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchTransitGatewayRoutesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/SendDiagnosticInterruptCommand.ts b/clients/client-ec2/commands/SendDiagnosticInterruptCommand.ts index d01fb8f205c51..eb8822c2cd34d 100644 --- a/clients/client-ec2/commands/SendDiagnosticInterruptCommand.ts +++ b/clients/client-ec2/commands/SendDiagnosticInterruptCommand.ts @@ -43,6 +43,7 @@ export class SendDiagnosticInterruptCommand extends $Command< SendDiagnosticInterruptCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class SendDiagnosticInterruptCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/StartInstancesCommand.ts b/clients/client-ec2/commands/StartInstancesCommand.ts index 13a66d5794b42..cbaff82f64a92 100644 --- a/clients/client-ec2/commands/StartInstancesCommand.ts +++ b/clients/client-ec2/commands/StartInstancesCommand.ts @@ -41,6 +41,7 @@ export class StartInstancesCommand extends $Command< StartInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class StartInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/StartNetworkInsightsAnalysisCommand.ts b/clients/client-ec2/commands/StartNetworkInsightsAnalysisCommand.ts index 8ece797cdb9e3..9e2b09ffaf7bc 100644 --- a/clients/client-ec2/commands/StartNetworkInsightsAnalysisCommand.ts +++ b/clients/client-ec2/commands/StartNetworkInsightsAnalysisCommand.ts @@ -29,6 +29,7 @@ export class StartNetworkInsightsAnalysisCommand extends $Command< StartNetworkInsightsAnalysisCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartNetworkInsightsAnalysisCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.ts b/clients/client-ec2/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.ts index a0fe930eaea09..991477b7613ad 100644 --- a/clients/client-ec2/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.ts +++ b/clients/client-ec2/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.ts @@ -35,6 +35,7 @@ export class StartVpcEndpointServicePrivateDnsVerificationCommand extends $Comma StartVpcEndpointServicePrivateDnsVerificationCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StartVpcEndpointServicePrivateDnsVerificationCommand extends $Comma StartVpcEndpointServicePrivateDnsVerificationCommandInput, StartVpcEndpointServicePrivateDnsVerificationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/StopInstancesCommand.ts b/clients/client-ec2/commands/StopInstancesCommand.ts index fef2e4ac5292e..d97a803c71e13 100644 --- a/clients/client-ec2/commands/StopInstancesCommand.ts +++ b/clients/client-ec2/commands/StopInstancesCommand.ts @@ -58,6 +58,7 @@ export class StopInstancesCommand extends $Command< StopInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class StopInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/TerminateClientVpnConnectionsCommand.ts b/clients/client-ec2/commands/TerminateClientVpnConnectionsCommand.ts index 5c6b2a0042dc0..a16faacdddcef 100644 --- a/clients/client-ec2/commands/TerminateClientVpnConnectionsCommand.ts +++ b/clients/client-ec2/commands/TerminateClientVpnConnectionsCommand.ts @@ -28,6 +28,7 @@ export class TerminateClientVpnConnectionsCommand extends $Command< TerminateClientVpnConnectionsCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TerminateClientVpnConnectionsCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/TerminateInstancesCommand.ts b/clients/client-ec2/commands/TerminateInstancesCommand.ts index e25d097f61449..846b411dec3b6 100644 --- a/clients/client-ec2/commands/TerminateInstancesCommand.ts +++ b/clients/client-ec2/commands/TerminateInstancesCommand.ts @@ -45,6 +45,7 @@ export class TerminateInstancesCommand extends $Command< TerminateInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class TerminateInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/UnassignIpv6AddressesCommand.ts b/clients/client-ec2/commands/UnassignIpv6AddressesCommand.ts index 5837b8e2ef2db..d8f85fc5f5506 100644 --- a/clients/client-ec2/commands/UnassignIpv6AddressesCommand.ts +++ b/clients/client-ec2/commands/UnassignIpv6AddressesCommand.ts @@ -28,6 +28,7 @@ export class UnassignIpv6AddressesCommand extends $Command< UnassignIpv6AddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UnassignIpv6AddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/UnassignPrivateIpAddressesCommand.ts b/clients/client-ec2/commands/UnassignPrivateIpAddressesCommand.ts index 7b385b134fb7c..246086348d35d 100644 --- a/clients/client-ec2/commands/UnassignPrivateIpAddressesCommand.ts +++ b/clients/client-ec2/commands/UnassignPrivateIpAddressesCommand.ts @@ -28,6 +28,7 @@ export class UnassignPrivateIpAddressesCommand extends $Command< UnassignPrivateIpAddressesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UnassignPrivateIpAddressesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/UnmonitorInstancesCommand.ts b/clients/client-ec2/commands/UnmonitorInstancesCommand.ts index ac147afaf91eb..3f6318295a4da 100644 --- a/clients/client-ec2/commands/UnmonitorInstancesCommand.ts +++ b/clients/client-ec2/commands/UnmonitorInstancesCommand.ts @@ -30,6 +30,7 @@ export class UnmonitorInstancesCommand extends $Command< UnmonitorInstancesCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UnmonitorInstancesCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.ts b/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.ts index cf2d408b8bd2e..10b023bbe2794 100644 --- a/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.ts +++ b/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.ts @@ -37,6 +37,7 @@ export class UpdateSecurityGroupRuleDescriptionsEgressCommand extends $Command< UpdateSecurityGroupRuleDescriptionsEgressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateSecurityGroupRuleDescriptionsEgressCommand extends $Command< UpdateSecurityGroupRuleDescriptionsEgressCommandInput, UpdateSecurityGroupRuleDescriptionsEgressCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.ts b/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.ts index e2742d2ba81a3..58c12608cf1fa 100644 --- a/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.ts +++ b/clients/client-ec2/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.ts @@ -37,6 +37,7 @@ export class UpdateSecurityGroupRuleDescriptionsIngressCommand extends $Command< UpdateSecurityGroupRuleDescriptionsIngressCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateSecurityGroupRuleDescriptionsIngressCommand extends $Command< UpdateSecurityGroupRuleDescriptionsIngressCommandInput, UpdateSecurityGroupRuleDescriptionsIngressCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ec2/commands/WithdrawByoipCidrCommand.ts b/clients/client-ec2/commands/WithdrawByoipCidrCommand.ts index cdf9f6b4b05ca..aeee6472dc55a 100644 --- a/clients/client-ec2/commands/WithdrawByoipCidrCommand.ts +++ b/clients/client-ec2/commands/WithdrawByoipCidrCommand.ts @@ -32,6 +32,7 @@ export class WithdrawByoipCidrCommand extends $Command< WithdrawByoipCidrCommandOutput, EC2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class WithdrawByoipCidrCommand extends $Command< configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/BatchCheckLayerAvailabilityCommand.ts b/clients/client-ecr-public/commands/BatchCheckLayerAvailabilityCommand.ts index 6913c5fa9d121..2b77346647383 100644 --- a/clients/client-ecr-public/commands/BatchCheckLayerAvailabilityCommand.ts +++ b/clients/client-ecr-public/commands/BatchCheckLayerAvailabilityCommand.ts @@ -34,6 +34,7 @@ export class BatchCheckLayerAvailabilityCommand extends $Command< BatchCheckLayerAvailabilityCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchCheckLayerAvailabilityCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/BatchDeleteImageCommand.ts b/clients/client-ecr-public/commands/BatchDeleteImageCommand.ts index f5254e9900b1e..03049f6bf5e8b 100644 --- a/clients/client-ecr-public/commands/BatchDeleteImageCommand.ts +++ b/clients/client-ecr-public/commands/BatchDeleteImageCommand.ts @@ -33,6 +33,7 @@ export class BatchDeleteImageCommand extends $Command< BatchDeleteImageCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class BatchDeleteImageCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/CompleteLayerUploadCommand.ts b/clients/client-ecr-public/commands/CompleteLayerUploadCommand.ts index f6bb5f50b91cd..c0902bb0e3d12 100644 --- a/clients/client-ecr-public/commands/CompleteLayerUploadCommand.ts +++ b/clients/client-ecr-public/commands/CompleteLayerUploadCommand.ts @@ -35,6 +35,7 @@ export class CompleteLayerUploadCommand extends $Command< CompleteLayerUploadCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CompleteLayerUploadCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/CreateRepositoryCommand.ts b/clients/client-ecr-public/commands/CreateRepositoryCommand.ts index 0c2e4595ee5ae..19c0e07bace55 100644 --- a/clients/client-ecr-public/commands/CreateRepositoryCommand.ts +++ b/clients/client-ecr-public/commands/CreateRepositoryCommand.ts @@ -29,6 +29,7 @@ export class CreateRepositoryCommand extends $Command< CreateRepositoryCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateRepositoryCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DeleteRepositoryCommand.ts b/clients/client-ecr-public/commands/DeleteRepositoryCommand.ts index b533db7e93f8d..50a152a8b0844 100644 --- a/clients/client-ecr-public/commands/DeleteRepositoryCommand.ts +++ b/clients/client-ecr-public/commands/DeleteRepositoryCommand.ts @@ -30,6 +30,7 @@ export class DeleteRepositoryCommand extends $Command< DeleteRepositoryCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteRepositoryCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DeleteRepositoryPolicyCommand.ts b/clients/client-ecr-public/commands/DeleteRepositoryPolicyCommand.ts index 747c7bfe1fbef..4bb9e7e3df103 100644 --- a/clients/client-ecr-public/commands/DeleteRepositoryPolicyCommand.ts +++ b/clients/client-ecr-public/commands/DeleteRepositoryPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteRepositoryPolicyCommand extends $Command< DeleteRepositoryPolicyCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRepositoryPolicyCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DescribeImageTagsCommand.ts b/clients/client-ecr-public/commands/DescribeImageTagsCommand.ts index 8de189abca8d2..53dc89e923dcf 100644 --- a/clients/client-ecr-public/commands/DescribeImageTagsCommand.ts +++ b/clients/client-ecr-public/commands/DescribeImageTagsCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageTagsCommand extends $Command< DescribeImageTagsCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageTagsCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DescribeImagesCommand.ts b/clients/client-ecr-public/commands/DescribeImagesCommand.ts index b3ca709371ff6..108d2af30821e 100644 --- a/clients/client-ecr-public/commands/DescribeImagesCommand.ts +++ b/clients/client-ecr-public/commands/DescribeImagesCommand.ts @@ -34,6 +34,7 @@ export class DescribeImagesCommand extends $Command< DescribeImagesCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeImagesCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DescribeRegistriesCommand.ts b/clients/client-ecr-public/commands/DescribeRegistriesCommand.ts index 48972a8198dba..a9711e7801784 100644 --- a/clients/client-ecr-public/commands/DescribeRegistriesCommand.ts +++ b/clients/client-ecr-public/commands/DescribeRegistriesCommand.ts @@ -28,6 +28,7 @@ export class DescribeRegistriesCommand extends $Command< DescribeRegistriesCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRegistriesCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/DescribeRepositoriesCommand.ts b/clients/client-ecr-public/commands/DescribeRepositoriesCommand.ts index a1db0f3bb9f6c..f9b921b2211ea 100644 --- a/clients/client-ecr-public/commands/DescribeRepositoriesCommand.ts +++ b/clients/client-ecr-public/commands/DescribeRepositoriesCommand.ts @@ -28,6 +28,7 @@ export class DescribeRepositoriesCommand extends $Command< DescribeRepositoriesCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRepositoriesCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/GetAuthorizationTokenCommand.ts b/clients/client-ecr-public/commands/GetAuthorizationTokenCommand.ts index 2e8ce97bd20b1..480233c18dd99 100644 --- a/clients/client-ecr-public/commands/GetAuthorizationTokenCommand.ts +++ b/clients/client-ecr-public/commands/GetAuthorizationTokenCommand.ts @@ -32,6 +32,7 @@ export class GetAuthorizationTokenCommand extends $Command< GetAuthorizationTokenCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetAuthorizationTokenCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/GetRegistryCatalogDataCommand.ts b/clients/client-ecr-public/commands/GetRegistryCatalogDataCommand.ts index be3d0893dfb56..d38510f2ca9fa 100644 --- a/clients/client-ecr-public/commands/GetRegistryCatalogDataCommand.ts +++ b/clients/client-ecr-public/commands/GetRegistryCatalogDataCommand.ts @@ -28,6 +28,7 @@ export class GetRegistryCatalogDataCommand extends $Command< GetRegistryCatalogDataCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRegistryCatalogDataCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/GetRepositoryCatalogDataCommand.ts b/clients/client-ecr-public/commands/GetRepositoryCatalogDataCommand.ts index be71e0ec8415f..80f88b5f7b7cd 100644 --- a/clients/client-ecr-public/commands/GetRepositoryCatalogDataCommand.ts +++ b/clients/client-ecr-public/commands/GetRepositoryCatalogDataCommand.ts @@ -29,6 +29,7 @@ export class GetRepositoryCatalogDataCommand extends $Command< GetRepositoryCatalogDataCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetRepositoryCatalogDataCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/GetRepositoryPolicyCommand.ts b/clients/client-ecr-public/commands/GetRepositoryPolicyCommand.ts index ca042bff09393..3b62626cf79a5 100644 --- a/clients/client-ecr-public/commands/GetRepositoryPolicyCommand.ts +++ b/clients/client-ecr-public/commands/GetRepositoryPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetRepositoryPolicyCommand extends $Command< GetRepositoryPolicyCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRepositoryPolicyCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/InitiateLayerUploadCommand.ts b/clients/client-ecr-public/commands/InitiateLayerUploadCommand.ts index 8d3280ac3b18c..a2c18fbc1cb75 100644 --- a/clients/client-ecr-public/commands/InitiateLayerUploadCommand.ts +++ b/clients/client-ecr-public/commands/InitiateLayerUploadCommand.ts @@ -34,6 +34,7 @@ export class InitiateLayerUploadCommand extends $Command< InitiateLayerUploadCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class InitiateLayerUploadCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/PutImageCommand.ts b/clients/client-ecr-public/commands/PutImageCommand.ts index 88b5f412186b0..694f66348177c 100644 --- a/clients/client-ecr-public/commands/PutImageCommand.ts +++ b/clients/client-ecr-public/commands/PutImageCommand.ts @@ -32,6 +32,7 @@ export class PutImageCommand extends $Command< PutImageCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutImageCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/PutRegistryCatalogDataCommand.ts b/clients/client-ecr-public/commands/PutRegistryCatalogDataCommand.ts index 02b0323b1bd75..2659f4d3967b5 100644 --- a/clients/client-ecr-public/commands/PutRegistryCatalogDataCommand.ts +++ b/clients/client-ecr-public/commands/PutRegistryCatalogDataCommand.ts @@ -28,6 +28,7 @@ export class PutRegistryCatalogDataCommand extends $Command< PutRegistryCatalogDataCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutRegistryCatalogDataCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/PutRepositoryCatalogDataCommand.ts b/clients/client-ecr-public/commands/PutRepositoryCatalogDataCommand.ts index c31b63bc026fb..514daf6519bc0 100644 --- a/clients/client-ecr-public/commands/PutRepositoryCatalogDataCommand.ts +++ b/clients/client-ecr-public/commands/PutRepositoryCatalogDataCommand.ts @@ -28,6 +28,7 @@ export class PutRepositoryCatalogDataCommand extends $Command< PutRepositoryCatalogDataCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutRepositoryCatalogDataCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/SetRepositoryPolicyCommand.ts b/clients/client-ecr-public/commands/SetRepositoryPolicyCommand.ts index 012165f4d2289..ff053e847b9fb 100644 --- a/clients/client-ecr-public/commands/SetRepositoryPolicyCommand.ts +++ b/clients/client-ecr-public/commands/SetRepositoryPolicyCommand.ts @@ -30,6 +30,7 @@ export class SetRepositoryPolicyCommand extends $Command< SetRepositoryPolicyCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetRepositoryPolicyCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr-public/commands/UploadLayerPartCommand.ts b/clients/client-ecr-public/commands/UploadLayerPartCommand.ts index a166c3c070943..bca57da1a281c 100644 --- a/clients/client-ecr-public/commands/UploadLayerPartCommand.ts +++ b/clients/client-ecr-public/commands/UploadLayerPartCommand.ts @@ -34,6 +34,7 @@ export class UploadLayerPartCommand extends $Command< UploadLayerPartCommandOutput, ECRPUBLICClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UploadLayerPartCommand extends $Command< configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/BatchCheckLayerAvailabilityCommand.ts b/clients/client-ecr/commands/BatchCheckLayerAvailabilityCommand.ts index cceb7ec24d7d0..44e5711bf882e 100644 --- a/clients/client-ecr/commands/BatchCheckLayerAvailabilityCommand.ts +++ b/clients/client-ecr/commands/BatchCheckLayerAvailabilityCommand.ts @@ -35,6 +35,7 @@ export class BatchCheckLayerAvailabilityCommand extends $Command< BatchCheckLayerAvailabilityCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchCheckLayerAvailabilityCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/BatchDeleteImageCommand.ts b/clients/client-ecr/commands/BatchDeleteImageCommand.ts index 0301a0ef05beb..cca1466b48d1b 100644 --- a/clients/client-ecr/commands/BatchDeleteImageCommand.ts +++ b/clients/client-ecr/commands/BatchDeleteImageCommand.ts @@ -33,6 +33,7 @@ export class BatchDeleteImageCommand extends $Command< BatchDeleteImageCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class BatchDeleteImageCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/BatchGetImageCommand.ts b/clients/client-ecr/commands/BatchGetImageCommand.ts index f051bec99557e..9ced7f2a22a1e 100644 --- a/clients/client-ecr/commands/BatchGetImageCommand.ts +++ b/clients/client-ecr/commands/BatchGetImageCommand.ts @@ -31,6 +31,7 @@ export class BatchGetImageCommand extends $Command< BatchGetImageCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class BatchGetImageCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/CompleteLayerUploadCommand.ts b/clients/client-ecr/commands/CompleteLayerUploadCommand.ts index 13f7133e6f2a7..8da5fad017010 100644 --- a/clients/client-ecr/commands/CompleteLayerUploadCommand.ts +++ b/clients/client-ecr/commands/CompleteLayerUploadCommand.ts @@ -36,6 +36,7 @@ export class CompleteLayerUploadCommand extends $Command< CompleteLayerUploadCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CompleteLayerUploadCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/CreateRepositoryCommand.ts b/clients/client-ecr/commands/CreateRepositoryCommand.ts index c74ac594a5855..40e8544ee97ff 100644 --- a/clients/client-ecr/commands/CreateRepositoryCommand.ts +++ b/clients/client-ecr/commands/CreateRepositoryCommand.ts @@ -29,6 +29,7 @@ export class CreateRepositoryCommand extends $Command< CreateRepositoryCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateRepositoryCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DeleteLifecyclePolicyCommand.ts b/clients/client-ecr/commands/DeleteLifecyclePolicyCommand.ts index feb19a65fa9c8..5e9b6d35cc497 100644 --- a/clients/client-ecr/commands/DeleteLifecyclePolicyCommand.ts +++ b/clients/client-ecr/commands/DeleteLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteLifecyclePolicyCommand extends $Command< DeleteLifecyclePolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLifecyclePolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DeleteRegistryPolicyCommand.ts b/clients/client-ecr/commands/DeleteRegistryPolicyCommand.ts index 122cea169cdf1..ecd99f898d9c8 100644 --- a/clients/client-ecr/commands/DeleteRegistryPolicyCommand.ts +++ b/clients/client-ecr/commands/DeleteRegistryPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteRegistryPolicyCommand extends $Command< DeleteRegistryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRegistryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DeleteRepositoryCommand.ts b/clients/client-ecr/commands/DeleteRepositoryCommand.ts index 49158053cb3eb..9712cbcbe968a 100644 --- a/clients/client-ecr/commands/DeleteRepositoryCommand.ts +++ b/clients/client-ecr/commands/DeleteRepositoryCommand.ts @@ -30,6 +30,7 @@ export class DeleteRepositoryCommand extends $Command< DeleteRepositoryCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteRepositoryCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DeleteRepositoryPolicyCommand.ts b/clients/client-ecr/commands/DeleteRepositoryPolicyCommand.ts index 692c00f7507fb..abc962fb98e4e 100644 --- a/clients/client-ecr/commands/DeleteRepositoryPolicyCommand.ts +++ b/clients/client-ecr/commands/DeleteRepositoryPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteRepositoryPolicyCommand extends $Command< DeleteRepositoryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRepositoryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DescribeImageScanFindingsCommand.ts b/clients/client-ecr/commands/DescribeImageScanFindingsCommand.ts index e9c1eb6c522ed..285d23372109a 100644 --- a/clients/client-ecr/commands/DescribeImageScanFindingsCommand.ts +++ b/clients/client-ecr/commands/DescribeImageScanFindingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageScanFindingsCommand extends $Command< DescribeImageScanFindingsCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageScanFindingsCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DescribeImagesCommand.ts b/clients/client-ecr/commands/DescribeImagesCommand.ts index bb15fcddff9ae..95a29e5a5cae2 100644 --- a/clients/client-ecr/commands/DescribeImagesCommand.ts +++ b/clients/client-ecr/commands/DescribeImagesCommand.ts @@ -34,6 +34,7 @@ export class DescribeImagesCommand extends $Command< DescribeImagesCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeImagesCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DescribeRegistryCommand.ts b/clients/client-ecr/commands/DescribeRegistryCommand.ts index 4d8d713ff3635..99bd610f326d9 100644 --- a/clients/client-ecr/commands/DescribeRegistryCommand.ts +++ b/clients/client-ecr/commands/DescribeRegistryCommand.ts @@ -30,6 +30,7 @@ export class DescribeRegistryCommand extends $Command< DescribeRegistryCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeRegistryCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/DescribeRepositoriesCommand.ts b/clients/client-ecr/commands/DescribeRepositoriesCommand.ts index 75a44c3c356e9..4a6954ff2a1f3 100644 --- a/clients/client-ecr/commands/DescribeRepositoriesCommand.ts +++ b/clients/client-ecr/commands/DescribeRepositoriesCommand.ts @@ -28,6 +28,7 @@ export class DescribeRepositoriesCommand extends $Command< DescribeRepositoriesCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRepositoriesCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetAuthorizationTokenCommand.ts b/clients/client-ecr/commands/GetAuthorizationTokenCommand.ts index 74fb593c88358..91499adc6d9ca 100644 --- a/clients/client-ecr/commands/GetAuthorizationTokenCommand.ts +++ b/clients/client-ecr/commands/GetAuthorizationTokenCommand.ts @@ -35,6 +35,7 @@ export class GetAuthorizationTokenCommand extends $Command< GetAuthorizationTokenCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetAuthorizationTokenCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetDownloadUrlForLayerCommand.ts b/clients/client-ecr/commands/GetDownloadUrlForLayerCommand.ts index 00bcad4f6d673..4d0a3107b8dc5 100644 --- a/clients/client-ecr/commands/GetDownloadUrlForLayerCommand.ts +++ b/clients/client-ecr/commands/GetDownloadUrlForLayerCommand.ts @@ -35,6 +35,7 @@ export class GetDownloadUrlForLayerCommand extends $Command< GetDownloadUrlForLayerCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetDownloadUrlForLayerCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetLifecyclePolicyCommand.ts b/clients/client-ecr/commands/GetLifecyclePolicyCommand.ts index 0329e45994ae4..640df146521d5 100644 --- a/clients/client-ecr/commands/GetLifecyclePolicyCommand.ts +++ b/clients/client-ecr/commands/GetLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetLifecyclePolicyCommand extends $Command< GetLifecyclePolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLifecyclePolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetLifecyclePolicyPreviewCommand.ts b/clients/client-ecr/commands/GetLifecyclePolicyPreviewCommand.ts index 7ad936fbb4d72..6d1caa92ffd7b 100644 --- a/clients/client-ecr/commands/GetLifecyclePolicyPreviewCommand.ts +++ b/clients/client-ecr/commands/GetLifecyclePolicyPreviewCommand.ts @@ -29,6 +29,7 @@ export class GetLifecyclePolicyPreviewCommand extends $Command< GetLifecyclePolicyPreviewCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetLifecyclePolicyPreviewCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetRegistryPolicyCommand.ts b/clients/client-ecr/commands/GetRegistryPolicyCommand.ts index ef425affebfc9..c62fe2f1fcb95 100644 --- a/clients/client-ecr/commands/GetRegistryPolicyCommand.ts +++ b/clients/client-ecr/commands/GetRegistryPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetRegistryPolicyCommand extends $Command< GetRegistryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRegistryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/GetRepositoryPolicyCommand.ts b/clients/client-ecr/commands/GetRepositoryPolicyCommand.ts index 3a12528ae3729..dd72ff98c9a74 100644 --- a/clients/client-ecr/commands/GetRepositoryPolicyCommand.ts +++ b/clients/client-ecr/commands/GetRepositoryPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetRepositoryPolicyCommand extends $Command< GetRepositoryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRepositoryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/InitiateLayerUploadCommand.ts b/clients/client-ecr/commands/InitiateLayerUploadCommand.ts index f86d139a3563b..4d385f6b6b4f7 100644 --- a/clients/client-ecr/commands/InitiateLayerUploadCommand.ts +++ b/clients/client-ecr/commands/InitiateLayerUploadCommand.ts @@ -35,6 +35,7 @@ export class InitiateLayerUploadCommand extends $Command< InitiateLayerUploadCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class InitiateLayerUploadCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/ListImagesCommand.ts b/clients/client-ecr/commands/ListImagesCommand.ts index 15d8a12e89834..8a957b84778c0 100644 --- a/clients/client-ecr/commands/ListImagesCommand.ts +++ b/clients/client-ecr/commands/ListImagesCommand.ts @@ -34,6 +34,7 @@ export class ListImagesCommand extends $Command< ListImagesCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListImagesCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/ListTagsForResourceCommand.ts b/clients/client-ecr/commands/ListTagsForResourceCommand.ts index c83491a80a143..8cfdecde6e56f 100644 --- a/clients/client-ecr/commands/ListTagsForResourceCommand.ts +++ b/clients/client-ecr/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/PutImageCommand.ts b/clients/client-ecr/commands/PutImageCommand.ts index 07222e4f4c267..75aeab15c152e 100644 --- a/clients/client-ecr/commands/PutImageCommand.ts +++ b/clients/client-ecr/commands/PutImageCommand.ts @@ -29,6 +29,7 @@ export type PutImageCommandOutput = PutImageResponse & __MetadataBearer; * */ export class PutImageCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutImageCommand 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-ecr/commands/PutImageScanningConfigurationCommand.ts b/clients/client-ecr/commands/PutImageScanningConfigurationCommand.ts index e1ad4f8127565..9e7b6835bcb0f 100644 --- a/clients/client-ecr/commands/PutImageScanningConfigurationCommand.ts +++ b/clients/client-ecr/commands/PutImageScanningConfigurationCommand.ts @@ -28,6 +28,7 @@ export class PutImageScanningConfigurationCommand extends $Command< PutImageScanningConfigurationCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutImageScanningConfigurationCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/PutImageTagMutabilityCommand.ts b/clients/client-ecr/commands/PutImageTagMutabilityCommand.ts index cb143372f21ef..14ac42ce516a1 100644 --- a/clients/client-ecr/commands/PutImageTagMutabilityCommand.ts +++ b/clients/client-ecr/commands/PutImageTagMutabilityCommand.ts @@ -30,6 +30,7 @@ export class PutImageTagMutabilityCommand extends $Command< PutImageTagMutabilityCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutImageTagMutabilityCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/PutLifecyclePolicyCommand.ts b/clients/client-ecr/commands/PutLifecyclePolicyCommand.ts index e0fc7c95dd241..fe6e570d107dc 100644 --- a/clients/client-ecr/commands/PutLifecyclePolicyCommand.ts +++ b/clients/client-ecr/commands/PutLifecyclePolicyCommand.ts @@ -30,6 +30,7 @@ export class PutLifecyclePolicyCommand extends $Command< PutLifecyclePolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutLifecyclePolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/PutRegistryPolicyCommand.ts b/clients/client-ecr/commands/PutRegistryPolicyCommand.ts index a56ce25b6f4ec..51fa00e8dc2da 100644 --- a/clients/client-ecr/commands/PutRegistryPolicyCommand.ts +++ b/clients/client-ecr/commands/PutRegistryPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutRegistryPolicyCommand extends $Command< PutRegistryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutRegistryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/PutReplicationConfigurationCommand.ts b/clients/client-ecr/commands/PutReplicationConfigurationCommand.ts index c3678c16a18db..54a62e66e8fea 100644 --- a/clients/client-ecr/commands/PutReplicationConfigurationCommand.ts +++ b/clients/client-ecr/commands/PutReplicationConfigurationCommand.ts @@ -38,6 +38,7 @@ export class PutReplicationConfigurationCommand extends $Command< PutReplicationConfigurationCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutReplicationConfigurationCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/SetRepositoryPolicyCommand.ts b/clients/client-ecr/commands/SetRepositoryPolicyCommand.ts index a3ce10e5ae268..9a766e98f4770 100644 --- a/clients/client-ecr/commands/SetRepositoryPolicyCommand.ts +++ b/clients/client-ecr/commands/SetRepositoryPolicyCommand.ts @@ -30,6 +30,7 @@ export class SetRepositoryPolicyCommand extends $Command< SetRepositoryPolicyCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetRepositoryPolicyCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/StartImageScanCommand.ts b/clients/client-ecr/commands/StartImageScanCommand.ts index d0895d8ebd0fc..1db00972148f3 100644 --- a/clients/client-ecr/commands/StartImageScanCommand.ts +++ b/clients/client-ecr/commands/StartImageScanCommand.ts @@ -31,6 +31,7 @@ export class StartImageScanCommand extends $Command< StartImageScanCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartImageScanCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/StartLifecyclePolicyPreviewCommand.ts b/clients/client-ecr/commands/StartLifecyclePolicyPreviewCommand.ts index b1f9be4a90ce5..42ba75334c74c 100644 --- a/clients/client-ecr/commands/StartLifecyclePolicyPreviewCommand.ts +++ b/clients/client-ecr/commands/StartLifecyclePolicyPreviewCommand.ts @@ -29,6 +29,7 @@ export class StartLifecyclePolicyPreviewCommand extends $Command< StartLifecyclePolicyPreviewCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartLifecyclePolicyPreviewCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/TagResourceCommand.ts b/clients/client-ecr/commands/TagResourceCommand.ts index ea20b7b602cdd..7d3722f493fd6 100644 --- a/clients/client-ecr/commands/TagResourceCommand.ts +++ b/clients/client-ecr/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/UntagResourceCommand.ts b/clients/client-ecr/commands/UntagResourceCommand.ts index 1802fac577db2..0aa2e1ca15015 100644 --- a/clients/client-ecr/commands/UntagResourceCommand.ts +++ b/clients/client-ecr/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecr/commands/UploadLayerPartCommand.ts b/clients/client-ecr/commands/UploadLayerPartCommand.ts index 7ac19508efb7e..18616521da322 100644 --- a/clients/client-ecr/commands/UploadLayerPartCommand.ts +++ b/clients/client-ecr/commands/UploadLayerPartCommand.ts @@ -35,6 +35,7 @@ export class UploadLayerPartCommand extends $Command< UploadLayerPartCommandOutput, ECRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UploadLayerPartCommand extends $Command< configuration: ECRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/CreateCapacityProviderCommand.ts b/clients/client-ecs/commands/CreateCapacityProviderCommand.ts index 71018b583dd95..6b86f07421ef7 100644 --- a/clients/client-ecs/commands/CreateCapacityProviderCommand.ts +++ b/clients/client-ecs/commands/CreateCapacityProviderCommand.ts @@ -34,6 +34,7 @@ export class CreateCapacityProviderCommand extends $Command< CreateCapacityProviderCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateCapacityProviderCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/CreateClusterCommand.ts b/clients/client-ecs/commands/CreateClusterCommand.ts index 85c60b4c79b7d..451f554bc9524 100644 --- a/clients/client-ecs/commands/CreateClusterCommand.ts +++ b/clients/client-ecs/commands/CreateClusterCommand.ts @@ -39,6 +39,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateClusterCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/CreateServiceCommand.ts b/clients/client-ecs/commands/CreateServiceCommand.ts index eec6ff3221f65..92b2464904258 100644 --- a/clients/client-ecs/commands/CreateServiceCommand.ts +++ b/clients/client-ecs/commands/CreateServiceCommand.ts @@ -133,6 +133,7 @@ export class CreateServiceCommand extends $Command< CreateServiceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -150,7 +151,10 @@ export class CreateServiceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/CreateTaskSetCommand.ts b/clients/client-ecs/commands/CreateTaskSetCommand.ts index ebfe1b983757d..5c6a09d4cfce9 100644 --- a/clients/client-ecs/commands/CreateTaskSetCommand.ts +++ b/clients/client-ecs/commands/CreateTaskSetCommand.ts @@ -31,6 +31,7 @@ export class CreateTaskSetCommand extends $Command< CreateTaskSetCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTaskSetCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteAccountSettingCommand.ts b/clients/client-ecs/commands/DeleteAccountSettingCommand.ts index 5daa46924bb82..1b136729ee13c 100644 --- a/clients/client-ecs/commands/DeleteAccountSettingCommand.ts +++ b/clients/client-ecs/commands/DeleteAccountSettingCommand.ts @@ -29,6 +29,7 @@ export class DeleteAccountSettingCommand extends $Command< DeleteAccountSettingCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAccountSettingCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteAttributesCommand.ts b/clients/client-ecs/commands/DeleteAttributesCommand.ts index 0136834397e0b..50cf5d3a07808 100644 --- a/clients/client-ecs/commands/DeleteAttributesCommand.ts +++ b/clients/client-ecs/commands/DeleteAttributesCommand.ts @@ -28,6 +28,7 @@ export class DeleteAttributesCommand extends $Command< DeleteAttributesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAttributesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteCapacityProviderCommand.ts b/clients/client-ecs/commands/DeleteCapacityProviderCommand.ts index 1b82130b9f69a..d292f430f517e 100644 --- a/clients/client-ecs/commands/DeleteCapacityProviderCommand.ts +++ b/clients/client-ecs/commands/DeleteCapacityProviderCommand.ts @@ -42,6 +42,7 @@ export class DeleteCapacityProviderCommand extends $Command< DeleteCapacityProviderCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DeleteCapacityProviderCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteClusterCommand.ts b/clients/client-ecs/commands/DeleteClusterCommand.ts index 56e1759bf8ec2..f35f46e27f6b0 100644 --- a/clients/client-ecs/commands/DeleteClusterCommand.ts +++ b/clients/client-ecs/commands/DeleteClusterCommand.ts @@ -34,6 +34,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteClusterCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteServiceCommand.ts b/clients/client-ecs/commands/DeleteServiceCommand.ts index 2d7f6152c27dc..673735b78538c 100644 --- a/clients/client-ecs/commands/DeleteServiceCommand.ts +++ b/clients/client-ecs/commands/DeleteServiceCommand.ts @@ -48,6 +48,7 @@ export class DeleteServiceCommand extends $Command< DeleteServiceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DeleteServiceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeleteTaskSetCommand.ts b/clients/client-ecs/commands/DeleteTaskSetCommand.ts index e0911c815fc01..91fc0eda1628d 100644 --- a/clients/client-ecs/commands/DeleteTaskSetCommand.ts +++ b/clients/client-ecs/commands/DeleteTaskSetCommand.ts @@ -29,6 +29,7 @@ export class DeleteTaskSetCommand extends $Command< DeleteTaskSetCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTaskSetCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeregisterContainerInstanceCommand.ts b/clients/client-ecs/commands/DeregisterContainerInstanceCommand.ts index 86dacac5cb984..c1760ab74db08 100644 --- a/clients/client-ecs/commands/DeregisterContainerInstanceCommand.ts +++ b/clients/client-ecs/commands/DeregisterContainerInstanceCommand.ts @@ -40,6 +40,7 @@ export class DeregisterContainerInstanceCommand extends $Command< DeregisterContainerInstanceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeregisterContainerInstanceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DeregisterTaskDefinitionCommand.ts b/clients/client-ecs/commands/DeregisterTaskDefinitionCommand.ts index 24ab330d4cf71..34b05b36c1b23 100644 --- a/clients/client-ecs/commands/DeregisterTaskDefinitionCommand.ts +++ b/clients/client-ecs/commands/DeregisterTaskDefinitionCommand.ts @@ -43,6 +43,7 @@ export class DeregisterTaskDefinitionCommand extends $Command< DeregisterTaskDefinitionCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DeregisterTaskDefinitionCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeCapacityProvidersCommand.ts b/clients/client-ecs/commands/DescribeCapacityProvidersCommand.ts index de2d051736178..2d4fb117a28d9 100644 --- a/clients/client-ecs/commands/DescribeCapacityProvidersCommand.ts +++ b/clients/client-ecs/commands/DescribeCapacityProvidersCommand.ts @@ -28,6 +28,7 @@ export class DescribeCapacityProvidersCommand extends $Command< DescribeCapacityProvidersCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCapacityProvidersCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeClustersCommand.ts b/clients/client-ecs/commands/DescribeClustersCommand.ts index a3d3d5eec759d..2cdb4870a3823 100644 --- a/clients/client-ecs/commands/DescribeClustersCommand.ts +++ b/clients/client-ecs/commands/DescribeClustersCommand.ts @@ -28,6 +28,7 @@ export class DescribeClustersCommand extends $Command< DescribeClustersCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClustersCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeContainerInstancesCommand.ts b/clients/client-ecs/commands/DescribeContainerInstancesCommand.ts index 46c8b1e467799..47248ca20456f 100644 --- a/clients/client-ecs/commands/DescribeContainerInstancesCommand.ts +++ b/clients/client-ecs/commands/DescribeContainerInstancesCommand.ts @@ -29,6 +29,7 @@ export class DescribeContainerInstancesCommand extends $Command< DescribeContainerInstancesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeContainerInstancesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeServicesCommand.ts b/clients/client-ecs/commands/DescribeServicesCommand.ts index 58cfd97c6a929..e3f9035431154 100644 --- a/clients/client-ecs/commands/DescribeServicesCommand.ts +++ b/clients/client-ecs/commands/DescribeServicesCommand.ts @@ -28,6 +28,7 @@ export class DescribeServicesCommand extends $Command< DescribeServicesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeServicesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeTaskDefinitionCommand.ts b/clients/client-ecs/commands/DescribeTaskDefinitionCommand.ts index 3b419396e44ae..abbb880bbed45 100644 --- a/clients/client-ecs/commands/DescribeTaskDefinitionCommand.ts +++ b/clients/client-ecs/commands/DescribeTaskDefinitionCommand.ts @@ -35,6 +35,7 @@ export class DescribeTaskDefinitionCommand extends $Command< DescribeTaskDefinitionCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeTaskDefinitionCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeTaskSetsCommand.ts b/clients/client-ecs/commands/DescribeTaskSetsCommand.ts index 0d3225a11428a..89a3dc15f4ecf 100644 --- a/clients/client-ecs/commands/DescribeTaskSetsCommand.ts +++ b/clients/client-ecs/commands/DescribeTaskSetsCommand.ts @@ -31,6 +31,7 @@ export class DescribeTaskSetsCommand extends $Command< DescribeTaskSetsCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTaskSetsCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DescribeTasksCommand.ts b/clients/client-ecs/commands/DescribeTasksCommand.ts index 6cbe6eaf7a68a..78e89abf0217e 100644 --- a/clients/client-ecs/commands/DescribeTasksCommand.ts +++ b/clients/client-ecs/commands/DescribeTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeTasksCommand extends $Command< DescribeTasksCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTasksCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/DiscoverPollEndpointCommand.ts b/clients/client-ecs/commands/DiscoverPollEndpointCommand.ts index ecc78c4a4aded..597413dc733a8 100644 --- a/clients/client-ecs/commands/DiscoverPollEndpointCommand.ts +++ b/clients/client-ecs/commands/DiscoverPollEndpointCommand.ts @@ -32,6 +32,7 @@ export class DiscoverPollEndpointCommand extends $Command< DiscoverPollEndpointCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DiscoverPollEndpointCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListAccountSettingsCommand.ts b/clients/client-ecs/commands/ListAccountSettingsCommand.ts index e83bde3e1fa58..b4e8ef1ff1763 100644 --- a/clients/client-ecs/commands/ListAccountSettingsCommand.ts +++ b/clients/client-ecs/commands/ListAccountSettingsCommand.ts @@ -28,6 +28,7 @@ export class ListAccountSettingsCommand extends $Command< ListAccountSettingsCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAccountSettingsCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListAttributesCommand.ts b/clients/client-ecs/commands/ListAttributesCommand.ts index efe69334d6ca9..d1ab873ea93b2 100644 --- a/clients/client-ecs/commands/ListAttributesCommand.ts +++ b/clients/client-ecs/commands/ListAttributesCommand.ts @@ -34,6 +34,7 @@ export class ListAttributesCommand extends $Command< ListAttributesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListAttributesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListClustersCommand.ts b/clients/client-ecs/commands/ListClustersCommand.ts index 6e1ccb5a9e0e7..4ee4531266aa0 100644 --- a/clients/client-ecs/commands/ListClustersCommand.ts +++ b/clients/client-ecs/commands/ListClustersCommand.ts @@ -28,6 +28,7 @@ export class ListClustersCommand extends $Command< ListClustersCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListClustersCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListContainerInstancesCommand.ts b/clients/client-ecs/commands/ListContainerInstancesCommand.ts index 9a30fe921f61f..18e415225367f 100644 --- a/clients/client-ecs/commands/ListContainerInstancesCommand.ts +++ b/clients/client-ecs/commands/ListContainerInstancesCommand.ts @@ -31,6 +31,7 @@ export class ListContainerInstancesCommand extends $Command< ListContainerInstancesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListContainerInstancesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListServicesCommand.ts b/clients/client-ecs/commands/ListServicesCommand.ts index bee7ef9792336..a315a6e9c3c28 100644 --- a/clients/client-ecs/commands/ListServicesCommand.ts +++ b/clients/client-ecs/commands/ListServicesCommand.ts @@ -28,6 +28,7 @@ export class ListServicesCommand extends $Command< ListServicesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListServicesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListTagsForResourceCommand.ts b/clients/client-ecs/commands/ListTagsForResourceCommand.ts index 8df1b803a274a..8dbe3cb4728a4 100644 --- a/clients/client-ecs/commands/ListTagsForResourceCommand.ts +++ b/clients/client-ecs/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListTaskDefinitionFamiliesCommand.ts b/clients/client-ecs/commands/ListTaskDefinitionFamiliesCommand.ts index b1cfc80680fef..34b568b56ba7c 100644 --- a/clients/client-ecs/commands/ListTaskDefinitionFamiliesCommand.ts +++ b/clients/client-ecs/commands/ListTaskDefinitionFamiliesCommand.ts @@ -34,6 +34,7 @@ export class ListTaskDefinitionFamiliesCommand extends $Command< ListTaskDefinitionFamiliesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListTaskDefinitionFamiliesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListTaskDefinitionsCommand.ts b/clients/client-ecs/commands/ListTaskDefinitionsCommand.ts index 3546b9368f04e..25c97b6575fb8 100644 --- a/clients/client-ecs/commands/ListTaskDefinitionsCommand.ts +++ b/clients/client-ecs/commands/ListTaskDefinitionsCommand.ts @@ -30,6 +30,7 @@ export class ListTaskDefinitionsCommand extends $Command< ListTaskDefinitionsCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTaskDefinitionsCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/ListTasksCommand.ts b/clients/client-ecs/commands/ListTasksCommand.ts index fe9b4a15518b0..fc039be86b20b 100644 --- a/clients/client-ecs/commands/ListTasksCommand.ts +++ b/clients/client-ecs/commands/ListTasksCommand.ts @@ -26,6 +26,7 @@ export type ListTasksCommandOutput = ListTasksResponse & __MetadataBearer; * appear in the returned results for at least one hour.

*/ export class ListTasksCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class ListTasksCommand 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-ecs/commands/PutAccountSettingCommand.ts b/clients/client-ecs/commands/PutAccountSettingCommand.ts index 536bb97eccdf3..6b4ef29ab53f1 100644 --- a/clients/client-ecs/commands/PutAccountSettingCommand.ts +++ b/clients/client-ecs/commands/PutAccountSettingCommand.ts @@ -51,6 +51,7 @@ export class PutAccountSettingCommand extends $Command< PutAccountSettingCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class PutAccountSettingCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/PutAccountSettingDefaultCommand.ts b/clients/client-ecs/commands/PutAccountSettingDefaultCommand.ts index 8516ca736ecbd..57a04a979a967 100644 --- a/clients/client-ecs/commands/PutAccountSettingDefaultCommand.ts +++ b/clients/client-ecs/commands/PutAccountSettingDefaultCommand.ts @@ -30,6 +30,7 @@ export class PutAccountSettingDefaultCommand extends $Command< PutAccountSettingDefaultCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutAccountSettingDefaultCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/PutAttributesCommand.ts b/clients/client-ecs/commands/PutAttributesCommand.ts index bf64d6c4b95aa..32b3765720b9a 100644 --- a/clients/client-ecs/commands/PutAttributesCommand.ts +++ b/clients/client-ecs/commands/PutAttributesCommand.ts @@ -32,6 +32,7 @@ export class PutAttributesCommand extends $Command< PutAttributesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutAttributesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/PutClusterCapacityProvidersCommand.ts b/clients/client-ecs/commands/PutClusterCapacityProvidersCommand.ts index ea69d28e01222..2a6748a44d79f 100644 --- a/clients/client-ecs/commands/PutClusterCapacityProvidersCommand.ts +++ b/clients/client-ecs/commands/PutClusterCapacityProvidersCommand.ts @@ -41,6 +41,7 @@ export class PutClusterCapacityProvidersCommand extends $Command< PutClusterCapacityProvidersCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class PutClusterCapacityProvidersCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/RegisterContainerInstanceCommand.ts b/clients/client-ecs/commands/RegisterContainerInstanceCommand.ts index a9bf5f8c8ba7c..48a801238cb88 100644 --- a/clients/client-ecs/commands/RegisterContainerInstanceCommand.ts +++ b/clients/client-ecs/commands/RegisterContainerInstanceCommand.ts @@ -33,6 +33,7 @@ export class RegisterContainerInstanceCommand extends $Command< RegisterContainerInstanceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RegisterContainerInstanceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/RegisterTaskDefinitionCommand.ts b/clients/client-ecs/commands/RegisterTaskDefinitionCommand.ts index bfb217d96672b..f88d6223f41f7 100644 --- a/clients/client-ecs/commands/RegisterTaskDefinitionCommand.ts +++ b/clients/client-ecs/commands/RegisterTaskDefinitionCommand.ts @@ -45,6 +45,7 @@ export class RegisterTaskDefinitionCommand extends $Command< RegisterTaskDefinitionCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class RegisterTaskDefinitionCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/RunTaskCommand.ts b/clients/client-ecs/commands/RunTaskCommand.ts index b49a5095b54f1..773289bd035c4 100644 --- a/clients/client-ecs/commands/RunTaskCommand.ts +++ b/clients/client-ecs/commands/RunTaskCommand.ts @@ -49,6 +49,7 @@ export type RunTaskCommandOutput = RunTaskResponse & __MetadataBearer; * */ export class RunTaskCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class RunTaskCommand 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-ecs/commands/StartTaskCommand.ts b/clients/client-ecs/commands/StartTaskCommand.ts index aae09fc253e62..664d619eb63ad 100644 --- a/clients/client-ecs/commands/StartTaskCommand.ts +++ b/clients/client-ecs/commands/StartTaskCommand.ts @@ -25,6 +25,7 @@ export type StartTaskCommandOutput = StartTaskResponse & __MetadataBearer; * Amazon Elastic Container Service Developer Guide.

*/ export class StartTaskCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class StartTaskCommand 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-ecs/commands/StopTaskCommand.ts b/clients/client-ecs/commands/StopTaskCommand.ts index f5329fb683b3d..605564825f2f7 100644 --- a/clients/client-ecs/commands/StopTaskCommand.ts +++ b/clients/client-ecs/commands/StopTaskCommand.ts @@ -33,6 +33,7 @@ export type StopTaskCommandOutput = StopTaskResponse & __MetadataBearer; * */ export class StopTaskCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopTaskCommand 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-ecs/commands/SubmitAttachmentStateChangesCommand.ts b/clients/client-ecs/commands/SubmitAttachmentStateChangesCommand.ts index 1d2f0e666b086..dae6206544a1a 100644 --- a/clients/client-ecs/commands/SubmitAttachmentStateChangesCommand.ts +++ b/clients/client-ecs/commands/SubmitAttachmentStateChangesCommand.ts @@ -32,6 +32,7 @@ export class SubmitAttachmentStateChangesCommand extends $Command< SubmitAttachmentStateChangesCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SubmitAttachmentStateChangesCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/SubmitContainerStateChangeCommand.ts b/clients/client-ecs/commands/SubmitContainerStateChangeCommand.ts index c28d6bf3bf8be..a36ec903b4da2 100644 --- a/clients/client-ecs/commands/SubmitContainerStateChangeCommand.ts +++ b/clients/client-ecs/commands/SubmitContainerStateChangeCommand.ts @@ -32,6 +32,7 @@ export class SubmitContainerStateChangeCommand extends $Command< SubmitContainerStateChangeCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SubmitContainerStateChangeCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/SubmitTaskStateChangeCommand.ts b/clients/client-ecs/commands/SubmitTaskStateChangeCommand.ts index 0e4e5a8641998..6993456da59f2 100644 --- a/clients/client-ecs/commands/SubmitTaskStateChangeCommand.ts +++ b/clients/client-ecs/commands/SubmitTaskStateChangeCommand.ts @@ -32,6 +32,7 @@ export class SubmitTaskStateChangeCommand extends $Command< SubmitTaskStateChangeCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SubmitTaskStateChangeCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/TagResourceCommand.ts b/clients/client-ecs/commands/TagResourceCommand.ts index 80a503c8a0096..f2bf61de2a59c 100644 --- a/clients/client-ecs/commands/TagResourceCommand.ts +++ b/clients/client-ecs/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UntagResourceCommand.ts b/clients/client-ecs/commands/UntagResourceCommand.ts index 4fd49af623844..b30a0e3caa189 100644 --- a/clients/client-ecs/commands/UntagResourceCommand.ts +++ b/clients/client-ecs/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateCapacityProviderCommand.ts b/clients/client-ecs/commands/UpdateCapacityProviderCommand.ts index 0b630ef5b913e..554bd2d018f74 100644 --- a/clients/client-ecs/commands/UpdateCapacityProviderCommand.ts +++ b/clients/client-ecs/commands/UpdateCapacityProviderCommand.ts @@ -28,6 +28,7 @@ export class UpdateCapacityProviderCommand extends $Command< UpdateCapacityProviderCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCapacityProviderCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateClusterSettingsCommand.ts b/clients/client-ecs/commands/UpdateClusterSettingsCommand.ts index 351fd6ebf191e..c6952f19ad619 100644 --- a/clients/client-ecs/commands/UpdateClusterSettingsCommand.ts +++ b/clients/client-ecs/commands/UpdateClusterSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateClusterSettingsCommand extends $Command< UpdateClusterSettingsCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateClusterSettingsCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateContainerAgentCommand.ts b/clients/client-ecs/commands/UpdateContainerAgentCommand.ts index 6fbde774b90c8..7ca4f5586559e 100644 --- a/clients/client-ecs/commands/UpdateContainerAgentCommand.ts +++ b/clients/client-ecs/commands/UpdateContainerAgentCommand.ts @@ -36,6 +36,7 @@ export class UpdateContainerAgentCommand extends $Command< UpdateContainerAgentCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateContainerAgentCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateContainerInstancesStateCommand.ts b/clients/client-ecs/commands/UpdateContainerInstancesStateCommand.ts index c244beb671d06..e92092de42758 100644 --- a/clients/client-ecs/commands/UpdateContainerInstancesStateCommand.ts +++ b/clients/client-ecs/commands/UpdateContainerInstancesStateCommand.ts @@ -76,6 +76,7 @@ export class UpdateContainerInstancesStateCommand extends $Command< UpdateContainerInstancesStateCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -93,7 +94,10 @@ export class UpdateContainerInstancesStateCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateServiceCommand.ts b/clients/client-ecs/commands/UpdateServiceCommand.ts index ea1c0bef7d3c1..878a34748bd94 100644 --- a/clients/client-ecs/commands/UpdateServiceCommand.ts +++ b/clients/client-ecs/commands/UpdateServiceCommand.ts @@ -136,6 +136,7 @@ export class UpdateServiceCommand extends $Command< UpdateServiceCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -153,7 +154,10 @@ export class UpdateServiceCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateServicePrimaryTaskSetCommand.ts b/clients/client-ecs/commands/UpdateServicePrimaryTaskSetCommand.ts index 831e0667d2a71..55b4e80952d13 100644 --- a/clients/client-ecs/commands/UpdateServicePrimaryTaskSetCommand.ts +++ b/clients/client-ecs/commands/UpdateServicePrimaryTaskSetCommand.ts @@ -32,6 +32,7 @@ export class UpdateServicePrimaryTaskSetCommand extends $Command< UpdateServicePrimaryTaskSetCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateServicePrimaryTaskSetCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ecs/commands/UpdateTaskSetCommand.ts b/clients/client-ecs/commands/UpdateTaskSetCommand.ts index c55cf31c1c031..4c457c53cda46 100644 --- a/clients/client-ecs/commands/UpdateTaskSetCommand.ts +++ b/clients/client-ecs/commands/UpdateTaskSetCommand.ts @@ -30,6 +30,7 @@ export class UpdateTaskSetCommand extends $Command< UpdateTaskSetCommandOutput, ECSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateTaskSetCommand extends $Command< configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/CreateAccessPointCommand.ts b/clients/client-efs/commands/CreateAccessPointCommand.ts index 9623c3b53f9a6..74e63793ce25a 100644 --- a/clients/client-efs/commands/CreateAccessPointCommand.ts +++ b/clients/client-efs/commands/CreateAccessPointCommand.ts @@ -33,6 +33,7 @@ export class CreateAccessPointCommand extends $Command< CreateAccessPointCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAccessPointCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/CreateFileSystemCommand.ts b/clients/client-efs/commands/CreateFileSystemCommand.ts index bf8ec581106b5..ae2f316f0696a 100644 --- a/clients/client-efs/commands/CreateFileSystemCommand.ts +++ b/clients/client-efs/commands/CreateFileSystemCommand.ts @@ -77,6 +77,7 @@ export class CreateFileSystemCommand extends $Command< CreateFileSystemCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class CreateFileSystemCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/CreateMountTargetCommand.ts b/clients/client-efs/commands/CreateMountTargetCommand.ts index af6ba5134bc87..ba6e27f034e6e 100644 --- a/clients/client-efs/commands/CreateMountTargetCommand.ts +++ b/clients/client-efs/commands/CreateMountTargetCommand.ts @@ -154,6 +154,7 @@ export class CreateMountTargetCommand extends $Command< CreateMountTargetCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -171,7 +172,10 @@ export class CreateMountTargetCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/CreateTagsCommand.ts b/clients/client-efs/commands/CreateTagsCommand.ts index fe340087d1472..20f7d4d62551a 100644 --- a/clients/client-efs/commands/CreateTagsCommand.ts +++ b/clients/client-efs/commands/CreateTagsCommand.ts @@ -33,6 +33,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateTagsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DeleteAccessPointCommand.ts b/clients/client-efs/commands/DeleteAccessPointCommand.ts index 85cb41915c80f..48511bd9c9b54 100644 --- a/clients/client-efs/commands/DeleteAccessPointCommand.ts +++ b/clients/client-efs/commands/DeleteAccessPointCommand.ts @@ -31,6 +31,7 @@ export class DeleteAccessPointCommand extends $Command< DeleteAccessPointCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteAccessPointCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DeleteFileSystemCommand.ts b/clients/client-efs/commands/DeleteFileSystemCommand.ts index aa35220076d8b..951f41715cde2 100644 --- a/clients/client-efs/commands/DeleteFileSystemCommand.ts +++ b/clients/client-efs/commands/DeleteFileSystemCommand.ts @@ -42,6 +42,7 @@ export class DeleteFileSystemCommand extends $Command< DeleteFileSystemCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DeleteFileSystemCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DeleteFileSystemPolicyCommand.ts b/clients/client-efs/commands/DeleteFileSystemPolicyCommand.ts index 1789b62290835..07eb5b6725e7d 100644 --- a/clients/client-efs/commands/DeleteFileSystemPolicyCommand.ts +++ b/clients/client-efs/commands/DeleteFileSystemPolicyCommand.ts @@ -31,6 +31,7 @@ export class DeleteFileSystemPolicyCommand extends $Command< DeleteFileSystemPolicyCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteFileSystemPolicyCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DeleteMountTargetCommand.ts b/clients/client-efs/commands/DeleteMountTargetCommand.ts index 333289d19a07d..7fadc6cd5687f 100644 --- a/clients/client-efs/commands/DeleteMountTargetCommand.ts +++ b/clients/client-efs/commands/DeleteMountTargetCommand.ts @@ -61,6 +61,7 @@ export class DeleteMountTargetCommand extends $Command< DeleteMountTargetCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class DeleteMountTargetCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DeleteTagsCommand.ts b/clients/client-efs/commands/DeleteTagsCommand.ts index 4f22fc70fd4aa..2bde7772f94f0 100644 --- a/clients/client-efs/commands/DeleteTagsCommand.ts +++ b/clients/client-efs/commands/DeleteTagsCommand.ts @@ -34,6 +34,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteTagsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeAccessPointsCommand.ts b/clients/client-efs/commands/DescribeAccessPointsCommand.ts index 76d94b59f285d..b0b1279ee8449 100644 --- a/clients/client-efs/commands/DescribeAccessPointsCommand.ts +++ b/clients/client-efs/commands/DescribeAccessPointsCommand.ts @@ -31,6 +31,7 @@ export class DescribeAccessPointsCommand extends $Command< DescribeAccessPointsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeAccessPointsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeBackupPolicyCommand.ts b/clients/client-efs/commands/DescribeBackupPolicyCommand.ts index 7128908368d53..a11515dfc188e 100644 --- a/clients/client-efs/commands/DescribeBackupPolicyCommand.ts +++ b/clients/client-efs/commands/DescribeBackupPolicyCommand.ts @@ -28,6 +28,7 @@ export class DescribeBackupPolicyCommand extends $Command< DescribeBackupPolicyCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBackupPolicyCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeFileSystemPolicyCommand.ts b/clients/client-efs/commands/DescribeFileSystemPolicyCommand.ts index 3360bde99b636..8e7cb48bab8e4 100644 --- a/clients/client-efs/commands/DescribeFileSystemPolicyCommand.ts +++ b/clients/client-efs/commands/DescribeFileSystemPolicyCommand.ts @@ -29,6 +29,7 @@ export class DescribeFileSystemPolicyCommand extends $Command< DescribeFileSystemPolicyCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeFileSystemPolicyCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeFileSystemsCommand.ts b/clients/client-efs/commands/DescribeFileSystemsCommand.ts index 86fd2b9224b28..5e271c29b724f 100644 --- a/clients/client-efs/commands/DescribeFileSystemsCommand.ts +++ b/clients/client-efs/commands/DescribeFileSystemsCommand.ts @@ -50,6 +50,7 @@ export class DescribeFileSystemsCommand extends $Command< DescribeFileSystemsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DescribeFileSystemsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeLifecycleConfigurationCommand.ts b/clients/client-efs/commands/DescribeLifecycleConfigurationCommand.ts index 3daa1a1eee06a..03270443844e0 100644 --- a/clients/client-efs/commands/DescribeLifecycleConfigurationCommand.ts +++ b/clients/client-efs/commands/DescribeLifecycleConfigurationCommand.ts @@ -34,6 +34,7 @@ export class DescribeLifecycleConfigurationCommand extends $Command< DescribeLifecycleConfigurationCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeLifecycleConfigurationCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeMountTargetSecurityGroupsCommand.ts b/clients/client-efs/commands/DescribeMountTargetSecurityGroupsCommand.ts index 38bf5348fe21c..418ac3211e4bb 100644 --- a/clients/client-efs/commands/DescribeMountTargetSecurityGroupsCommand.ts +++ b/clients/client-efs/commands/DescribeMountTargetSecurityGroupsCommand.ts @@ -47,6 +47,7 @@ export class DescribeMountTargetSecurityGroupsCommand extends $Command< DescribeMountTargetSecurityGroupsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeMountTargetSecurityGroupsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeMountTargetsCommand.ts b/clients/client-efs/commands/DescribeMountTargetsCommand.ts index cef343bbfc1da..a69c069896153 100644 --- a/clients/client-efs/commands/DescribeMountTargetsCommand.ts +++ b/clients/client-efs/commands/DescribeMountTargetsCommand.ts @@ -35,6 +35,7 @@ export class DescribeMountTargetsCommand extends $Command< DescribeMountTargetsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeMountTargetsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/DescribeTagsCommand.ts b/clients/client-efs/commands/DescribeTagsCommand.ts index a146779e01698..e1b4652256a16 100644 --- a/clients/client-efs/commands/DescribeTagsCommand.ts +++ b/clients/client-efs/commands/DescribeTagsCommand.ts @@ -32,6 +32,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTagsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/ListTagsForResourceCommand.ts b/clients/client-efs/commands/ListTagsForResourceCommand.ts index 2e437f4cd0af4..03487920020cb 100644 --- a/clients/client-efs/commands/ListTagsForResourceCommand.ts +++ b/clients/client-efs/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/ModifyMountTargetSecurityGroupsCommand.ts b/clients/client-efs/commands/ModifyMountTargetSecurityGroupsCommand.ts index 156bb1241eddc..8b0968120e7d7 100644 --- a/clients/client-efs/commands/ModifyMountTargetSecurityGroupsCommand.ts +++ b/clients/client-efs/commands/ModifyMountTargetSecurityGroupsCommand.ts @@ -47,6 +47,7 @@ export class ModifyMountTargetSecurityGroupsCommand extends $Command< ModifyMountTargetSecurityGroupsCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class ModifyMountTargetSecurityGroupsCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/PutBackupPolicyCommand.ts b/clients/client-efs/commands/PutBackupPolicyCommand.ts index 705e8a6778e10..9635c6e33bccc 100644 --- a/clients/client-efs/commands/PutBackupPolicyCommand.ts +++ b/clients/client-efs/commands/PutBackupPolicyCommand.ts @@ -28,6 +28,7 @@ export class PutBackupPolicyCommand extends $Command< PutBackupPolicyCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutBackupPolicyCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/PutFileSystemPolicyCommand.ts b/clients/client-efs/commands/PutFileSystemPolicyCommand.ts index bcef585b86762..ff28ea5ed7158 100644 --- a/clients/client-efs/commands/PutFileSystemPolicyCommand.ts +++ b/clients/client-efs/commands/PutFileSystemPolicyCommand.ts @@ -35,6 +35,7 @@ export class PutFileSystemPolicyCommand extends $Command< PutFileSystemPolicyCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutFileSystemPolicyCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/PutLifecycleConfigurationCommand.ts b/clients/client-efs/commands/PutLifecycleConfigurationCommand.ts index 001ea25168624..c24e1da00cfea 100644 --- a/clients/client-efs/commands/PutLifecycleConfigurationCommand.ts +++ b/clients/client-efs/commands/PutLifecycleConfigurationCommand.ts @@ -56,6 +56,7 @@ export class PutLifecycleConfigurationCommand extends $Command< PutLifecycleConfigurationCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class PutLifecycleConfigurationCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/TagResourceCommand.ts b/clients/client-efs/commands/TagResourceCommand.ts index 2eb29b5a85153..bffa074632499 100644 --- a/clients/client-efs/commands/TagResourceCommand.ts +++ b/clients/client-efs/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/UntagResourceCommand.ts b/clients/client-efs/commands/UntagResourceCommand.ts index 6b6fdddd29cb6..0e56ea2fd6f41 100644 --- a/clients/client-efs/commands/UntagResourceCommand.ts +++ b/clients/client-efs/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-efs/commands/UpdateFileSystemCommand.ts b/clients/client-efs/commands/UpdateFileSystemCommand.ts index 770a1e559892b..0b835f5e4d161 100644 --- a/clients/client-efs/commands/UpdateFileSystemCommand.ts +++ b/clients/client-efs/commands/UpdateFileSystemCommand.ts @@ -29,6 +29,7 @@ export class UpdateFileSystemCommand extends $Command< UpdateFileSystemCommandOutput, EFSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateFileSystemCommand extends $Command< configuration: EFSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/CreateAddonCommand.ts b/clients/client-eks/commands/CreateAddonCommand.ts index 781e16bf93f6d..7ff4b53e0a06c 100644 --- a/clients/client-eks/commands/CreateAddonCommand.ts +++ b/clients/client-eks/commands/CreateAddonCommand.ts @@ -33,6 +33,7 @@ export class CreateAddonCommand extends $Command< CreateAddonCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAddonCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/CreateClusterCommand.ts b/clients/client-eks/commands/CreateClusterCommand.ts index 2d610596d3605..f005da0cd6c68 100644 --- a/clients/client-eks/commands/CreateClusterCommand.ts +++ b/clients/client-eks/commands/CreateClusterCommand.ts @@ -64,6 +64,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class CreateClusterCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/CreateFargateProfileCommand.ts b/clients/client-eks/commands/CreateFargateProfileCommand.ts index 4a018fcba8903..f475b3cfe6538 100644 --- a/clients/client-eks/commands/CreateFargateProfileCommand.ts +++ b/clients/client-eks/commands/CreateFargateProfileCommand.ts @@ -51,6 +51,7 @@ export class CreateFargateProfileCommand extends $Command< CreateFargateProfileCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreateFargateProfileCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/CreateNodegroupCommand.ts b/clients/client-eks/commands/CreateNodegroupCommand.ts index 4ee17c7abc4c3..8d68390c67592 100644 --- a/clients/client-eks/commands/CreateNodegroupCommand.ts +++ b/clients/client-eks/commands/CreateNodegroupCommand.ts @@ -37,6 +37,7 @@ export class CreateNodegroupCommand extends $Command< CreateNodegroupCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateNodegroupCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DeleteAddonCommand.ts b/clients/client-eks/commands/DeleteAddonCommand.ts index 9c3077855bbeb..245ed23e6e7f1 100644 --- a/clients/client-eks/commands/DeleteAddonCommand.ts +++ b/clients/client-eks/commands/DeleteAddonCommand.ts @@ -30,6 +30,7 @@ export class DeleteAddonCommand extends $Command< DeleteAddonCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAddonCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DeleteClusterCommand.ts b/clients/client-eks/commands/DeleteClusterCommand.ts index 77d455598d6ff..7e601b2d8d9ed 100644 --- a/clients/client-eks/commands/DeleteClusterCommand.ts +++ b/clients/client-eks/commands/DeleteClusterCommand.ts @@ -35,6 +35,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteClusterCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DeleteFargateProfileCommand.ts b/clients/client-eks/commands/DeleteFargateProfileCommand.ts index d31e31e18ad0b..2dd08f4133922 100644 --- a/clients/client-eks/commands/DeleteFargateProfileCommand.ts +++ b/clients/client-eks/commands/DeleteFargateProfileCommand.ts @@ -35,6 +35,7 @@ export class DeleteFargateProfileCommand extends $Command< DeleteFargateProfileCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteFargateProfileCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DeleteNodegroupCommand.ts b/clients/client-eks/commands/DeleteNodegroupCommand.ts index ef10ad4ee4fe0..f88da64af6dd1 100644 --- a/clients/client-eks/commands/DeleteNodegroupCommand.ts +++ b/clients/client-eks/commands/DeleteNodegroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteNodegroupCommand extends $Command< DeleteNodegroupCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNodegroupCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeAddonCommand.ts b/clients/client-eks/commands/DescribeAddonCommand.ts index e7f8821c6e267..e300c3741c7a9 100644 --- a/clients/client-eks/commands/DescribeAddonCommand.ts +++ b/clients/client-eks/commands/DescribeAddonCommand.ts @@ -28,6 +28,7 @@ export class DescribeAddonCommand extends $Command< DescribeAddonCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAddonCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeAddonVersionsCommand.ts b/clients/client-eks/commands/DescribeAddonVersionsCommand.ts index 7555edac0ad91..0ef64ca050a1b 100644 --- a/clients/client-eks/commands/DescribeAddonVersionsCommand.ts +++ b/clients/client-eks/commands/DescribeAddonVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAddonVersionsCommand extends $Command< DescribeAddonVersionsCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAddonVersionsCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeClusterCommand.ts b/clients/client-eks/commands/DescribeClusterCommand.ts index 5d9c83226605a..ea9c09ed46381 100644 --- a/clients/client-eks/commands/DescribeClusterCommand.ts +++ b/clients/client-eks/commands/DescribeClusterCommand.ts @@ -36,6 +36,7 @@ export class DescribeClusterCommand extends $Command< DescribeClusterCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeClusterCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeFargateProfileCommand.ts b/clients/client-eks/commands/DescribeFargateProfileCommand.ts index f120ec551bef6..2a46dff932352 100644 --- a/clients/client-eks/commands/DescribeFargateProfileCommand.ts +++ b/clients/client-eks/commands/DescribeFargateProfileCommand.ts @@ -28,6 +28,7 @@ export class DescribeFargateProfileCommand extends $Command< DescribeFargateProfileCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFargateProfileCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeNodegroupCommand.ts b/clients/client-eks/commands/DescribeNodegroupCommand.ts index 428f57258b712..4c39712dd2982 100644 --- a/clients/client-eks/commands/DescribeNodegroupCommand.ts +++ b/clients/client-eks/commands/DescribeNodegroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeNodegroupCommand extends $Command< DescribeNodegroupCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNodegroupCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/DescribeUpdateCommand.ts b/clients/client-eks/commands/DescribeUpdateCommand.ts index 6021a35a70e3b..61a525191fc37 100644 --- a/clients/client-eks/commands/DescribeUpdateCommand.ts +++ b/clients/client-eks/commands/DescribeUpdateCommand.ts @@ -32,6 +32,7 @@ export class DescribeUpdateCommand extends $Command< DescribeUpdateCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeUpdateCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListAddonsCommand.ts b/clients/client-eks/commands/ListAddonsCommand.ts index 32c599b947837..1e5da4be88f20 100644 --- a/clients/client-eks/commands/ListAddonsCommand.ts +++ b/clients/client-eks/commands/ListAddonsCommand.ts @@ -28,6 +28,7 @@ export class ListAddonsCommand extends $Command< ListAddonsCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAddonsCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListClustersCommand.ts b/clients/client-eks/commands/ListClustersCommand.ts index 62c70618a9119..8622c6d032968 100644 --- a/clients/client-eks/commands/ListClustersCommand.ts +++ b/clients/client-eks/commands/ListClustersCommand.ts @@ -28,6 +28,7 @@ export class ListClustersCommand extends $Command< ListClustersCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListClustersCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListFargateProfilesCommand.ts b/clients/client-eks/commands/ListFargateProfilesCommand.ts index 9be8f5edbd9f2..f6cd1bbcca7a6 100644 --- a/clients/client-eks/commands/ListFargateProfilesCommand.ts +++ b/clients/client-eks/commands/ListFargateProfilesCommand.ts @@ -29,6 +29,7 @@ export class ListFargateProfilesCommand extends $Command< ListFargateProfilesCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFargateProfilesCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListNodegroupsCommand.ts b/clients/client-eks/commands/ListNodegroupsCommand.ts index 1a2852144a608..32cd69763e8a1 100644 --- a/clients/client-eks/commands/ListNodegroupsCommand.ts +++ b/clients/client-eks/commands/ListNodegroupsCommand.ts @@ -29,6 +29,7 @@ export class ListNodegroupsCommand extends $Command< ListNodegroupsCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListNodegroupsCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListTagsForResourceCommand.ts b/clients/client-eks/commands/ListTagsForResourceCommand.ts index a2c22183c1bd6..7739f1cf95c2b 100644 --- a/clients/client-eks/commands/ListTagsForResourceCommand.ts +++ b/clients/client-eks/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/ListUpdatesCommand.ts b/clients/client-eks/commands/ListUpdatesCommand.ts index 4414aae1973ff..41de493272979 100644 --- a/clients/client-eks/commands/ListUpdatesCommand.ts +++ b/clients/client-eks/commands/ListUpdatesCommand.ts @@ -29,6 +29,7 @@ export class ListUpdatesCommand extends $Command< ListUpdatesCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListUpdatesCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/TagResourceCommand.ts b/clients/client-eks/commands/TagResourceCommand.ts index 4d6f82862051a..0e515edf8fdae 100644 --- a/clients/client-eks/commands/TagResourceCommand.ts +++ b/clients/client-eks/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UntagResourceCommand.ts b/clients/client-eks/commands/UntagResourceCommand.ts index d627584896f1c..7c80e3cd64e3f 100644 --- a/clients/client-eks/commands/UntagResourceCommand.ts +++ b/clients/client-eks/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UpdateAddonCommand.ts b/clients/client-eks/commands/UpdateAddonCommand.ts index a5e0997c8bd2b..913f172813f4e 100644 --- a/clients/client-eks/commands/UpdateAddonCommand.ts +++ b/clients/client-eks/commands/UpdateAddonCommand.ts @@ -28,6 +28,7 @@ export class UpdateAddonCommand extends $Command< UpdateAddonCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAddonCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UpdateClusterConfigCommand.ts b/clients/client-eks/commands/UpdateClusterConfigCommand.ts index 49b9e48701992..2783322407892 100644 --- a/clients/client-eks/commands/UpdateClusterConfigCommand.ts +++ b/clients/client-eks/commands/UpdateClusterConfigCommand.ts @@ -55,6 +55,7 @@ export class UpdateClusterConfigCommand extends $Command< UpdateClusterConfigCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class UpdateClusterConfigCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UpdateClusterVersionCommand.ts b/clients/client-eks/commands/UpdateClusterVersionCommand.ts index 33e3ab9db551f..5205e637749c6 100644 --- a/clients/client-eks/commands/UpdateClusterVersionCommand.ts +++ b/clients/client-eks/commands/UpdateClusterVersionCommand.ts @@ -38,6 +38,7 @@ export class UpdateClusterVersionCommand extends $Command< UpdateClusterVersionCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateClusterVersionCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UpdateNodegroupConfigCommand.ts b/clients/client-eks/commands/UpdateNodegroupConfigCommand.ts index 321af7d1610f1..6c87d1bbf0dc3 100644 --- a/clients/client-eks/commands/UpdateNodegroupConfigCommand.ts +++ b/clients/client-eks/commands/UpdateNodegroupConfigCommand.ts @@ -32,6 +32,7 @@ export class UpdateNodegroupConfigCommand extends $Command< UpdateNodegroupConfigCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateNodegroupConfigCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eks/commands/UpdateNodegroupVersionCommand.ts b/clients/client-eks/commands/UpdateNodegroupVersionCommand.ts index eabd8358508e4..477f945684787 100644 --- a/clients/client-eks/commands/UpdateNodegroupVersionCommand.ts +++ b/clients/client-eks/commands/UpdateNodegroupVersionCommand.ts @@ -45,6 +45,7 @@ export class UpdateNodegroupVersionCommand extends $Command< UpdateNodegroupVersionCommandOutput, EKSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class UpdateNodegroupVersionCommand extends $Command< configuration: EKSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/AbortEnvironmentUpdateCommand.ts b/clients/client-elastic-beanstalk/commands/AbortEnvironmentUpdateCommand.ts index d4ab194b276a6..6825c605014a6 100644 --- a/clients/client-elastic-beanstalk/commands/AbortEnvironmentUpdateCommand.ts +++ b/clients/client-elastic-beanstalk/commands/AbortEnvironmentUpdateCommand.ts @@ -29,6 +29,7 @@ export class AbortEnvironmentUpdateCommand extends $Command< AbortEnvironmentUpdateCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AbortEnvironmentUpdateCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ApplyEnvironmentManagedActionCommand.ts b/clients/client-elastic-beanstalk/commands/ApplyEnvironmentManagedActionCommand.ts index 602fc2561d94d..6abbcd252ffb1 100644 --- a/clients/client-elastic-beanstalk/commands/ApplyEnvironmentManagedActionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ApplyEnvironmentManagedActionCommand.ts @@ -30,6 +30,7 @@ export class ApplyEnvironmentManagedActionCommand extends $Command< ApplyEnvironmentManagedActionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ApplyEnvironmentManagedActionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/AssociateEnvironmentOperationsRoleCommand.ts b/clients/client-elastic-beanstalk/commands/AssociateEnvironmentOperationsRoleCommand.ts index 9ec9e731353da..6553d703d97de 100644 --- a/clients/client-elastic-beanstalk/commands/AssociateEnvironmentOperationsRoleCommand.ts +++ b/clients/client-elastic-beanstalk/commands/AssociateEnvironmentOperationsRoleCommand.ts @@ -31,6 +31,7 @@ export class AssociateEnvironmentOperationsRoleCommand extends $Command< AssociateEnvironmentOperationsRoleCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AssociateEnvironmentOperationsRoleCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CheckDNSAvailabilityCommand.ts b/clients/client-elastic-beanstalk/commands/CheckDNSAvailabilityCommand.ts index 91f2fdbdc8dc1..b4e9e4c7aa9a8 100644 --- a/clients/client-elastic-beanstalk/commands/CheckDNSAvailabilityCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CheckDNSAvailabilityCommand.ts @@ -28,6 +28,7 @@ export class CheckDNSAvailabilityCommand extends $Command< CheckDNSAvailabilityCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckDNSAvailabilityCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ComposeEnvironmentsCommand.ts b/clients/client-elastic-beanstalk/commands/ComposeEnvironmentsCommand.ts index e40ba479bb08f..fac8d56120748 100644 --- a/clients/client-elastic-beanstalk/commands/ComposeEnvironmentsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ComposeEnvironmentsCommand.ts @@ -33,6 +33,7 @@ export class ComposeEnvironmentsCommand extends $Command< ComposeEnvironmentsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ComposeEnvironmentsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreateApplicationCommand.ts b/clients/client-elastic-beanstalk/commands/CreateApplicationCommand.ts index 7d9e9d9e063e5..e2e2bda079549 100644 --- a/clients/client-elastic-beanstalk/commands/CreateApplicationCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreateApplicationCommand.ts @@ -29,6 +29,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateApplicationCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreateApplicationVersionCommand.ts b/clients/client-elastic-beanstalk/commands/CreateApplicationVersionCommand.ts index e49e04f34166d..33b177adf9ab7 100644 --- a/clients/client-elastic-beanstalk/commands/CreateApplicationVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreateApplicationVersionCommand.ts @@ -44,6 +44,7 @@ export class CreateApplicationVersionCommand extends $Command< CreateApplicationVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateApplicationVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreateConfigurationTemplateCommand.ts b/clients/client-elastic-beanstalk/commands/CreateConfigurationTemplateCommand.ts index a2efc72a5d61f..b03e141116935 100644 --- a/clients/client-elastic-beanstalk/commands/CreateConfigurationTemplateCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreateConfigurationTemplateCommand.ts @@ -51,6 +51,7 @@ export class CreateConfigurationTemplateCommand extends $Command< CreateConfigurationTemplateCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreateConfigurationTemplateCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreateEnvironmentCommand.ts b/clients/client-elastic-beanstalk/commands/CreateEnvironmentCommand.ts index a0719a52597af..bf772f31165df 100644 --- a/clients/client-elastic-beanstalk/commands/CreateEnvironmentCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreateEnvironmentCommand.ts @@ -29,6 +29,7 @@ export class CreateEnvironmentCommand extends $Command< CreateEnvironmentCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateEnvironmentCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreatePlatformVersionCommand.ts b/clients/client-elastic-beanstalk/commands/CreatePlatformVersionCommand.ts index 04e08db235f62..8631829cb9eb4 100644 --- a/clients/client-elastic-beanstalk/commands/CreatePlatformVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreatePlatformVersionCommand.ts @@ -28,6 +28,7 @@ export class CreatePlatformVersionCommand extends $Command< CreatePlatformVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePlatformVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/CreateStorageLocationCommand.ts b/clients/client-elastic-beanstalk/commands/CreateStorageLocationCommand.ts index fde9026456b95..c4651e926e421 100644 --- a/clients/client-elastic-beanstalk/commands/CreateStorageLocationCommand.ts +++ b/clients/client-elastic-beanstalk/commands/CreateStorageLocationCommand.ts @@ -32,6 +32,7 @@ export class CreateStorageLocationCommand extends $Command< CreateStorageLocationCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateStorageLocationCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DeleteApplicationCommand.ts b/clients/client-elastic-beanstalk/commands/DeleteApplicationCommand.ts index fd84752652910..13cf174cb566e 100644 --- a/clients/client-elastic-beanstalk/commands/DeleteApplicationCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DeleteApplicationCommand.ts @@ -33,6 +33,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteApplicationCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DeleteApplicationVersionCommand.ts b/clients/client-elastic-beanstalk/commands/DeleteApplicationVersionCommand.ts index 8810871e82547..86bbea5c826a0 100644 --- a/clients/client-elastic-beanstalk/commands/DeleteApplicationVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DeleteApplicationVersionCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationVersionCommand extends $Command< DeleteApplicationVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DeleteConfigurationTemplateCommand.ts b/clients/client-elastic-beanstalk/commands/DeleteConfigurationTemplateCommand.ts index 88b52bd9e040d..1151ee24a8ae1 100644 --- a/clients/client-elastic-beanstalk/commands/DeleteConfigurationTemplateCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DeleteConfigurationTemplateCommand.ts @@ -33,6 +33,7 @@ export class DeleteConfigurationTemplateCommand extends $Command< DeleteConfigurationTemplateCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteConfigurationTemplateCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DeleteEnvironmentConfigurationCommand.ts b/clients/client-elastic-beanstalk/commands/DeleteEnvironmentConfigurationCommand.ts index 6015ecc260cd6..43ad405ca3dda 100644 --- a/clients/client-elastic-beanstalk/commands/DeleteEnvironmentConfigurationCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DeleteEnvironmentConfigurationCommand.ts @@ -33,6 +33,7 @@ export class DeleteEnvironmentConfigurationCommand extends $Command< DeleteEnvironmentConfigurationCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteEnvironmentConfigurationCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DeletePlatformVersionCommand.ts b/clients/client-elastic-beanstalk/commands/DeletePlatformVersionCommand.ts index 0b8be7c5e6dd2..0bd4c5c99f21f 100644 --- a/clients/client-elastic-beanstalk/commands/DeletePlatformVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DeletePlatformVersionCommand.ts @@ -28,6 +28,7 @@ export class DeletePlatformVersionCommand extends $Command< DeletePlatformVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePlatformVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeAccountAttributesCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeAccountAttributesCommand.ts index 137e87f947e41..a9d297a8ff690 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeAccountAttributesCommand.ts @@ -30,6 +30,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeApplicationVersionsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeApplicationVersionsCommand.ts index 04e2eac267ef0..d91cf513b5612 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeApplicationVersionsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeApplicationVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeApplicationVersionsCommand extends $Command< DescribeApplicationVersionsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeApplicationVersionsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeApplicationsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeApplicationsCommand.ts index 390e441779289..0cd423548662b 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeApplicationsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeApplicationsCommand.ts @@ -28,6 +28,7 @@ export class DescribeApplicationsCommand extends $Command< DescribeApplicationsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeApplicationsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeConfigurationOptionsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeConfigurationOptionsCommand.ts index 3ee993d36b747..06676e6d0230e 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeConfigurationOptionsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeConfigurationOptionsCommand.ts @@ -31,6 +31,7 @@ export class DescribeConfigurationOptionsCommand extends $Command< DescribeConfigurationOptionsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeConfigurationOptionsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeConfigurationSettingsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeConfigurationSettingsCommand.ts index 1ccc0c26c3b78..8a896a61a06f3 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeConfigurationSettingsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeConfigurationSettingsCommand.ts @@ -42,6 +42,7 @@ export class DescribeConfigurationSettingsCommand extends $Command< DescribeConfigurationSettingsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeConfigurationSettingsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentHealthCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentHealthCommand.ts index 1bb8391afd29c..7f57ecb7b908a 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentHealthCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentHealthCommand.ts @@ -30,6 +30,7 @@ export class DescribeEnvironmentHealthCommand extends $Command< DescribeEnvironmentHealthCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeEnvironmentHealthCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionHistoryCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionHistoryCommand.ts index 4bacace2c190c..206e95a1fb86a 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionHistoryCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionHistoryCommand.ts @@ -32,6 +32,7 @@ export class DescribeEnvironmentManagedActionHistoryCommand extends $Command< DescribeEnvironmentManagedActionHistoryCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeEnvironmentManagedActionHistoryCommand extends $Command< DescribeEnvironmentManagedActionHistoryCommandInput, DescribeEnvironmentManagedActionHistoryCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionsCommand.ts index dc1a91a057a16..90ddb9045398b 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentManagedActionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentManagedActionsCommand extends $Command< DescribeEnvironmentManagedActionsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentManagedActionsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentResourcesCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentResourcesCommand.ts index 1350b9da9ec09..033a8e62ace44 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentResourcesCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentResourcesCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentResourcesCommand extends $Command< DescribeEnvironmentResourcesCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentResourcesCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentsCommand.ts index e92b4dec8efad..43087fb731efd 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEnvironmentsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEnvironmentsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEnvironmentsCommand extends $Command< DescribeEnvironmentsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEnvironmentsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeEventsCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeEventsCommand.ts index 1dd10e0b8bbe1..f2a205bca3793 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeEventsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeEventsCommand.ts @@ -32,6 +32,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEventsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribeInstancesHealthCommand.ts b/clients/client-elastic-beanstalk/commands/DescribeInstancesHealthCommand.ts index 56651f22ef8ef..98d17f2c5abaa 100644 --- a/clients/client-elastic-beanstalk/commands/DescribeInstancesHealthCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribeInstancesHealthCommand.ts @@ -30,6 +30,7 @@ export class DescribeInstancesHealthCommand extends $Command< DescribeInstancesHealthCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeInstancesHealthCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DescribePlatformVersionCommand.ts b/clients/client-elastic-beanstalk/commands/DescribePlatformVersionCommand.ts index 78699ab0bf148..e664dc7cb1e35 100644 --- a/clients/client-elastic-beanstalk/commands/DescribePlatformVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DescribePlatformVersionCommand.ts @@ -31,6 +31,7 @@ export class DescribePlatformVersionCommand extends $Command< DescribePlatformVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribePlatformVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/DisassociateEnvironmentOperationsRoleCommand.ts b/clients/client-elastic-beanstalk/commands/DisassociateEnvironmentOperationsRoleCommand.ts index eec98c4c1e718..57b613f450d88 100644 --- a/clients/client-elastic-beanstalk/commands/DisassociateEnvironmentOperationsRoleCommand.ts +++ b/clients/client-elastic-beanstalk/commands/DisassociateEnvironmentOperationsRoleCommand.ts @@ -31,6 +31,7 @@ export class DisassociateEnvironmentOperationsRoleCommand extends $Command< DisassociateEnvironmentOperationsRoleCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DisassociateEnvironmentOperationsRoleCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ListAvailableSolutionStacksCommand.ts b/clients/client-elastic-beanstalk/commands/ListAvailableSolutionStacksCommand.ts index 983b1a9353045..1a6309b9f1627 100644 --- a/clients/client-elastic-beanstalk/commands/ListAvailableSolutionStacksCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ListAvailableSolutionStacksCommand.ts @@ -29,6 +29,7 @@ export class ListAvailableSolutionStacksCommand extends $Command< ListAvailableSolutionStacksCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAvailableSolutionStacksCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ListPlatformBranchesCommand.ts b/clients/client-elastic-beanstalk/commands/ListPlatformBranchesCommand.ts index 0a4e872cfe262..4b78459bea370 100644 --- a/clients/client-elastic-beanstalk/commands/ListPlatformBranchesCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ListPlatformBranchesCommand.ts @@ -31,6 +31,7 @@ export class ListPlatformBranchesCommand extends $Command< ListPlatformBranchesCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListPlatformBranchesCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ListPlatformVersionsCommand.ts b/clients/client-elastic-beanstalk/commands/ListPlatformVersionsCommand.ts index dd4cc43a62050..df6a88c287d41 100644 --- a/clients/client-elastic-beanstalk/commands/ListPlatformVersionsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ListPlatformVersionsCommand.ts @@ -32,6 +32,7 @@ export class ListPlatformVersionsCommand extends $Command< ListPlatformVersionsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPlatformVersionsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ListTagsForResourceCommand.ts b/clients/client-elastic-beanstalk/commands/ListTagsForResourceCommand.ts index 3bc88d1e11ad0..a941b8991c1d5 100644 --- a/clients/client-elastic-beanstalk/commands/ListTagsForResourceCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ListTagsForResourceCommand.ts @@ -31,6 +31,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/RebuildEnvironmentCommand.ts b/clients/client-elastic-beanstalk/commands/RebuildEnvironmentCommand.ts index cece9a930c626..e614025320e31 100644 --- a/clients/client-elastic-beanstalk/commands/RebuildEnvironmentCommand.ts +++ b/clients/client-elastic-beanstalk/commands/RebuildEnvironmentCommand.ts @@ -29,6 +29,7 @@ export class RebuildEnvironmentCommand extends $Command< RebuildEnvironmentCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RebuildEnvironmentCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/RequestEnvironmentInfoCommand.ts b/clients/client-elastic-beanstalk/commands/RequestEnvironmentInfoCommand.ts index 2450873725bb5..6a08546774ad3 100644 --- a/clients/client-elastic-beanstalk/commands/RequestEnvironmentInfoCommand.ts +++ b/clients/client-elastic-beanstalk/commands/RequestEnvironmentInfoCommand.ts @@ -43,6 +43,7 @@ export class RequestEnvironmentInfoCommand extends $Command< RequestEnvironmentInfoCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class RequestEnvironmentInfoCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/RestartAppServerCommand.ts b/clients/client-elastic-beanstalk/commands/RestartAppServerCommand.ts index 23886c8bca7d3..d8d934fb7b226 100644 --- a/clients/client-elastic-beanstalk/commands/RestartAppServerCommand.ts +++ b/clients/client-elastic-beanstalk/commands/RestartAppServerCommand.ts @@ -29,6 +29,7 @@ export class RestartAppServerCommand extends $Command< RestartAppServerCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RestartAppServerCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/RetrieveEnvironmentInfoCommand.ts b/clients/client-elastic-beanstalk/commands/RetrieveEnvironmentInfoCommand.ts index f62e6f70a0e3a..6b5b3fcee441d 100644 --- a/clients/client-elastic-beanstalk/commands/RetrieveEnvironmentInfoCommand.ts +++ b/clients/client-elastic-beanstalk/commands/RetrieveEnvironmentInfoCommand.ts @@ -37,6 +37,7 @@ export class RetrieveEnvironmentInfoCommand extends $Command< RetrieveEnvironmentInfoCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class RetrieveEnvironmentInfoCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/SwapEnvironmentCNAMEsCommand.ts b/clients/client-elastic-beanstalk/commands/SwapEnvironmentCNAMEsCommand.ts index 2f19a5888468c..23761c71cf441 100644 --- a/clients/client-elastic-beanstalk/commands/SwapEnvironmentCNAMEsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/SwapEnvironmentCNAMEsCommand.ts @@ -28,6 +28,7 @@ export class SwapEnvironmentCNAMEsCommand extends $Command< SwapEnvironmentCNAMEsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SwapEnvironmentCNAMEsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/TerminateEnvironmentCommand.ts b/clients/client-elastic-beanstalk/commands/TerminateEnvironmentCommand.ts index 7e49b60edc4e6..9db940b15d1a7 100644 --- a/clients/client-elastic-beanstalk/commands/TerminateEnvironmentCommand.ts +++ b/clients/client-elastic-beanstalk/commands/TerminateEnvironmentCommand.ts @@ -28,6 +28,7 @@ export class TerminateEnvironmentCommand extends $Command< TerminateEnvironmentCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TerminateEnvironmentCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateApplicationCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateApplicationCommand.ts index 2b0deaa8109e5..f445a825013ec 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateApplicationCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateApplicationCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateApplicationResourceLifecycleCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateApplicationResourceLifecycleCommand.ts index 122c14e3fd90b..1c01b8ff18845 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateApplicationResourceLifecycleCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateApplicationResourceLifecycleCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationResourceLifecycleCommand extends $Command< UpdateApplicationResourceLifecycleCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationResourceLifecycleCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateApplicationVersionCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateApplicationVersionCommand.ts index 570625eedc6ce..443688a0dd048 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateApplicationVersionCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateApplicationVersionCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationVersionCommand extends $Command< UpdateApplicationVersionCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationVersionCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateConfigurationTemplateCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateConfigurationTemplateCommand.ts index eefa02b411dff..98a9f7a880325 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateConfigurationTemplateCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateConfigurationTemplateCommand.ts @@ -41,6 +41,7 @@ export class UpdateConfigurationTemplateCommand extends $Command< UpdateConfigurationTemplateCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateConfigurationTemplateCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateEnvironmentCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateEnvironmentCommand.ts index c2c8370523e9b..2004f16894c06 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateEnvironmentCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateEnvironmentCommand.ts @@ -36,6 +36,7 @@ export class UpdateEnvironmentCommand extends $Command< UpdateEnvironmentCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateEnvironmentCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/UpdateTagsForResourceCommand.ts b/clients/client-elastic-beanstalk/commands/UpdateTagsForResourceCommand.ts index 302340023ce3d..b9cdd65966182 100644 --- a/clients/client-elastic-beanstalk/commands/UpdateTagsForResourceCommand.ts +++ b/clients/client-elastic-beanstalk/commands/UpdateTagsForResourceCommand.ts @@ -47,6 +47,7 @@ export class UpdateTagsForResourceCommand extends $Command< UpdateTagsForResourceCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class UpdateTagsForResourceCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-beanstalk/commands/ValidateConfigurationSettingsCommand.ts b/clients/client-elastic-beanstalk/commands/ValidateConfigurationSettingsCommand.ts index 8f79ce52a70ed..91e01cbcf60f7 100644 --- a/clients/client-elastic-beanstalk/commands/ValidateConfigurationSettingsCommand.ts +++ b/clients/client-elastic-beanstalk/commands/ValidateConfigurationSettingsCommand.ts @@ -31,6 +31,7 @@ export class ValidateConfigurationSettingsCommand extends $Command< ValidateConfigurationSettingsCommandOutput, ElasticBeanstalkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ValidateConfigurationSettingsCommand extends $Command< configuration: ElasticBeanstalkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/DescribeAcceleratorOfferingsCommand.ts b/clients/client-elastic-inference/commands/DescribeAcceleratorOfferingsCommand.ts index 2d303849fad98..66e090cb9c75a 100644 --- a/clients/client-elastic-inference/commands/DescribeAcceleratorOfferingsCommand.ts +++ b/clients/client-elastic-inference/commands/DescribeAcceleratorOfferingsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAcceleratorOfferingsCommand extends $Command< DescribeAcceleratorOfferingsCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAcceleratorOfferingsCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/DescribeAcceleratorTypesCommand.ts b/clients/client-elastic-inference/commands/DescribeAcceleratorTypesCommand.ts index 5613bc786b698..2f92a4a2ac5b2 100644 --- a/clients/client-elastic-inference/commands/DescribeAcceleratorTypesCommand.ts +++ b/clients/client-elastic-inference/commands/DescribeAcceleratorTypesCommand.ts @@ -30,6 +30,7 @@ export class DescribeAcceleratorTypesCommand extends $Command< DescribeAcceleratorTypesCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAcceleratorTypesCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/DescribeAcceleratorsCommand.ts b/clients/client-elastic-inference/commands/DescribeAcceleratorsCommand.ts index 5bf33f8f0ed6c..5c6a9360708c8 100644 --- a/clients/client-elastic-inference/commands/DescribeAcceleratorsCommand.ts +++ b/clients/client-elastic-inference/commands/DescribeAcceleratorsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAcceleratorsCommand extends $Command< DescribeAcceleratorsCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAcceleratorsCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/ListTagsForResourceCommand.ts b/clients/client-elastic-inference/commands/ListTagsForResourceCommand.ts index 26f948cbf6e67..dcd4396c336d0 100644 --- a/clients/client-elastic-inference/commands/ListTagsForResourceCommand.ts +++ b/clients/client-elastic-inference/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/TagResourceCommand.ts b/clients/client-elastic-inference/commands/TagResourceCommand.ts index 657bca5fa609b..3dbeed33c6519 100644 --- a/clients/client-elastic-inference/commands/TagResourceCommand.ts +++ b/clients/client-elastic-inference/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-inference/commands/UntagResourceCommand.ts b/clients/client-elastic-inference/commands/UntagResourceCommand.ts index f3a5ca8abaf04..67fd74eab8677 100644 --- a/clients/client-elastic-inference/commands/UntagResourceCommand.ts +++ b/clients/client-elastic-inference/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ElasticInferenceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: ElasticInferenceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/AddListenerCertificatesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/AddListenerCertificatesCommand.ts index 04202a7989156..3e649159e09f7 100644 --- a/clients/client-elastic-load-balancing-v2/commands/AddListenerCertificatesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/AddListenerCertificatesCommand.ts @@ -37,6 +37,7 @@ export class AddListenerCertificatesCommand extends $Command< AddListenerCertificatesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AddListenerCertificatesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/AddTagsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/AddTagsCommand.ts index 5a1b4a519bb10..7a236121da5e8 100644 --- a/clients/client-elastic-load-balancing-v2/commands/AddTagsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/AddTagsCommand.ts @@ -33,6 +33,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AddTagsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/CreateListenerCommand.ts b/clients/client-elastic-load-balancing-v2/commands/CreateListenerCommand.ts index 41bed008ea4eb..7d423a17ce544 100644 --- a/clients/client-elastic-load-balancing-v2/commands/CreateListenerCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/CreateListenerCommand.ts @@ -59,6 +59,7 @@ export class CreateListenerCommand extends $Command< CreateListenerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateListenerCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/CreateLoadBalancerCommand.ts b/clients/client-elastic-load-balancing-v2/commands/CreateLoadBalancerCommand.ts index 93f3facaca226..2905f20d2c6c1 100644 --- a/clients/client-elastic-load-balancing-v2/commands/CreateLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/CreateLoadBalancerCommand.ts @@ -57,6 +57,7 @@ export class CreateLoadBalancerCommand extends $Command< CreateLoadBalancerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/CreateRuleCommand.ts b/clients/client-elastic-load-balancing-v2/commands/CreateRuleCommand.ts index c1d530dc635da..167e8986ce9b0 100644 --- a/clients/client-elastic-load-balancing-v2/commands/CreateRuleCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/CreateRuleCommand.ts @@ -34,6 +34,7 @@ export class CreateRuleCommand extends $Command< CreateRuleCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateRuleCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/CreateTargetGroupCommand.ts b/clients/client-elastic-load-balancing-v2/commands/CreateTargetGroupCommand.ts index 6d1cdfb6ca53b..11300845754cf 100644 --- a/clients/client-elastic-load-balancing-v2/commands/CreateTargetGroupCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/CreateTargetGroupCommand.ts @@ -56,6 +56,7 @@ export class CreateTargetGroupCommand extends $Command< CreateTargetGroupCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class CreateTargetGroupCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DeleteListenerCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DeleteListenerCommand.ts index a7825a3695c82..bfee2c4120049 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DeleteListenerCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DeleteListenerCommand.ts @@ -34,6 +34,7 @@ export class DeleteListenerCommand extends $Command< DeleteListenerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteListenerCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DeleteLoadBalancerCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DeleteLoadBalancerCommand.ts index a79ddc0bb3484..9e829a82c7e13 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DeleteLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DeleteLoadBalancerCommand.ts @@ -38,6 +38,7 @@ export class DeleteLoadBalancerCommand extends $Command< DeleteLoadBalancerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DeleteRuleCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DeleteRuleCommand.ts index ccc4d3ae813ae..3d6ed8c741ea6 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DeleteRuleCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DeleteRuleCommand.ts @@ -30,6 +30,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteRuleCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DeleteTargetGroupCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DeleteTargetGroupCommand.ts index e13074fd78d06..cbd5847f5f75d 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DeleteTargetGroupCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DeleteTargetGroupCommand.ts @@ -36,6 +36,7 @@ export class DeleteTargetGroupCommand extends $Command< DeleteTargetGroupCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteTargetGroupCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DeregisterTargetsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DeregisterTargetsCommand.ts index 49a3ced229dc5..f271286241f3d 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DeregisterTargetsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DeregisterTargetsCommand.ts @@ -33,6 +33,7 @@ export class DeregisterTargetsCommand extends $Command< DeregisterTargetsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeregisterTargetsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeAccountLimitsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeAccountLimitsCommand.ts index 39724259dfb3e..94c068fc4133d 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeAccountLimitsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeAccountLimitsCommand.ts @@ -50,6 +50,7 @@ export class DescribeAccountLimitsCommand extends $Command< DescribeAccountLimitsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DescribeAccountLimitsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeListenerCertificatesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeListenerCertificatesCommand.ts index f68e7dd8d995f..9d6fe2bba2eb6 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeListenerCertificatesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeListenerCertificatesCommand.ts @@ -36,6 +36,7 @@ export class DescribeListenerCertificatesCommand extends $Command< DescribeListenerCertificatesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeListenerCertificatesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeListenersCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeListenersCommand.ts index 766cfdf6de0ee..5d0e659b80b36 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeListenersCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeListenersCommand.ts @@ -34,6 +34,7 @@ export class DescribeListenersCommand extends $Command< DescribeListenersCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeListenersCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancerAttributesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancerAttributesCommand.ts index 4ff74ea89d9cc..e6d38bcf97ca2 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancerAttributesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancerAttributesCommand.ts @@ -52,6 +52,7 @@ export class DescribeLoadBalancerAttributesCommand extends $Command< DescribeLoadBalancerAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DescribeLoadBalancerAttributesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancersCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancersCommand.ts index 030c7a4195fea..9e66a2847e0c1 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancersCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeLoadBalancersCommand.ts @@ -32,6 +32,7 @@ export class DescribeLoadBalancersCommand extends $Command< DescribeLoadBalancersCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeLoadBalancersCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeRulesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeRulesCommand.ts index 51e48bcccf65e..345054debc2b2 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeRulesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeRulesCommand.ts @@ -33,6 +33,7 @@ export class DescribeRulesCommand extends $Command< DescribeRulesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeRulesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeSSLPoliciesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeSSLPoliciesCommand.ts index 82ea0565c401f..01c2403b7bdb7 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeSSLPoliciesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeSSLPoliciesCommand.ts @@ -34,6 +34,7 @@ export class DescribeSSLPoliciesCommand extends $Command< DescribeSSLPoliciesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeSSLPoliciesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeTagsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeTagsCommand.ts index 304b6f36687cf..158d792277417 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeTagsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeTagsCommand.ts @@ -31,6 +31,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTagsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupAttributesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupAttributesCommand.ts index ac6ad597a251e..ea4bb89a621b4 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupAttributesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupAttributesCommand.ts @@ -50,6 +50,7 @@ export class DescribeTargetGroupAttributesCommand extends $Command< DescribeTargetGroupAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DescribeTargetGroupAttributesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupsCommand.ts index 6e5a5f5ca54d4..3d0aede99dd9c 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetGroupsCommand.ts @@ -35,6 +35,7 @@ export class DescribeTargetGroupsCommand extends $Command< DescribeTargetGroupsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeTargetGroupsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetHealthCommand.ts b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetHealthCommand.ts index 1321ab69cba6c..3fefa07be2e62 100644 --- a/clients/client-elastic-load-balancing-v2/commands/DescribeTargetHealthCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/DescribeTargetHealthCommand.ts @@ -32,6 +32,7 @@ export class DescribeTargetHealthCommand extends $Command< DescribeTargetHealthCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTargetHealthCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/ModifyListenerCommand.ts b/clients/client-elastic-load-balancing-v2/commands/ModifyListenerCommand.ts index c36652dc8d35e..b472a02ac698d 100644 --- a/clients/client-elastic-load-balancing-v2/commands/ModifyListenerCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/ModifyListenerCommand.ts @@ -39,6 +39,7 @@ export class ModifyListenerCommand extends $Command< ModifyListenerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ModifyListenerCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/ModifyLoadBalancerAttributesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/ModifyLoadBalancerAttributesCommand.ts index 8f24ff2f55dcf..bc9d9ab87daac 100644 --- a/clients/client-elastic-load-balancing-v2/commands/ModifyLoadBalancerAttributesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/ModifyLoadBalancerAttributesCommand.ts @@ -35,6 +35,7 @@ export class ModifyLoadBalancerAttributesCommand extends $Command< ModifyLoadBalancerAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ModifyLoadBalancerAttributesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/ModifyRuleCommand.ts b/clients/client-elastic-load-balancing-v2/commands/ModifyRuleCommand.ts index c42ce2c2bf402..efa38272ac3f8 100644 --- a/clients/client-elastic-load-balancing-v2/commands/ModifyRuleCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/ModifyRuleCommand.ts @@ -33,6 +33,7 @@ export class ModifyRuleCommand extends $Command< ModifyRuleCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyRuleCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupAttributesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupAttributesCommand.ts index 6ec134ff5bf42..6e88a6954dfa6 100644 --- a/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupAttributesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupAttributesCommand.ts @@ -32,6 +32,7 @@ export class ModifyTargetGroupAttributesCommand extends $Command< ModifyTargetGroupAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyTargetGroupAttributesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupCommand.ts b/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupCommand.ts index 1d547190b3a82..7a281400fa83b 100644 --- a/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/ModifyTargetGroupCommand.ts @@ -33,6 +33,7 @@ export class ModifyTargetGroupCommand extends $Command< ModifyTargetGroupCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyTargetGroupCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/RegisterTargetsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/RegisterTargetsCommand.ts index 4f18e58a8769d..b5dfc5fbb2a8d 100644 --- a/clients/client-elastic-load-balancing-v2/commands/RegisterTargetsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/RegisterTargetsCommand.ts @@ -43,6 +43,7 @@ export class RegisterTargetsCommand extends $Command< RegisterTargetsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class RegisterTargetsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/RemoveListenerCertificatesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/RemoveListenerCertificatesCommand.ts index 3a8a94b8bdbeb..f23bf7e96f1e9 100644 --- a/clients/client-elastic-load-balancing-v2/commands/RemoveListenerCertificatesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/RemoveListenerCertificatesCommand.ts @@ -32,6 +32,7 @@ export class RemoveListenerCertificatesCommand extends $Command< RemoveListenerCertificatesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveListenerCertificatesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/RemoveTagsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/RemoveTagsCommand.ts index d42549aa52d6b..7116d56e73d4a 100644 --- a/clients/client-elastic-load-balancing-v2/commands/RemoveTagsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/RemoveTagsCommand.ts @@ -31,6 +31,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RemoveTagsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/SetIpAddressTypeCommand.ts b/clients/client-elastic-load-balancing-v2/commands/SetIpAddressTypeCommand.ts index 761535f813ffc..55c8cc16c194f 100644 --- a/clients/client-elastic-load-balancing-v2/commands/SetIpAddressTypeCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/SetIpAddressTypeCommand.ts @@ -33,6 +33,7 @@ export class SetIpAddressTypeCommand extends $Command< SetIpAddressTypeCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetIpAddressTypeCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/SetRulePrioritiesCommand.ts b/clients/client-elastic-load-balancing-v2/commands/SetRulePrioritiesCommand.ts index 09ecf9abc936b..9315124ff21de 100644 --- a/clients/client-elastic-load-balancing-v2/commands/SetRulePrioritiesCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/SetRulePrioritiesCommand.ts @@ -34,6 +34,7 @@ export class SetRulePrioritiesCommand extends $Command< SetRulePrioritiesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SetRulePrioritiesCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/SetSecurityGroupsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/SetSecurityGroupsCommand.ts index a710fbfced64c..b187fb18479e4 100644 --- a/clients/client-elastic-load-balancing-v2/commands/SetSecurityGroupsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/SetSecurityGroupsCommand.ts @@ -35,6 +35,7 @@ export class SetSecurityGroupsCommand extends $Command< SetSecurityGroupsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SetSecurityGroupsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing-v2/commands/SetSubnetsCommand.ts b/clients/client-elastic-load-balancing-v2/commands/SetSubnetsCommand.ts index 4607164c0f5e3..d13c872d253c4 100644 --- a/clients/client-elastic-load-balancing-v2/commands/SetSubnetsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/commands/SetSubnetsCommand.ts @@ -34,6 +34,7 @@ export class SetSubnetsCommand extends $Command< SetSubnetsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SetSubnetsCommand extends $Command< configuration: ElasticLoadBalancingV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/AddTagsCommand.ts b/clients/client-elastic-load-balancing/commands/AddTagsCommand.ts index a8fbec2409789..da43257deb986 100644 --- a/clients/client-elastic-load-balancing/commands/AddTagsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/AddTagsCommand.ts @@ -35,6 +35,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AddTagsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/ApplySecurityGroupsToLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/ApplySecurityGroupsToLoadBalancerCommand.ts index 59ec7592d5def..7217c7ccb2405 100644 --- a/clients/client-elastic-load-balancing/commands/ApplySecurityGroupsToLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/ApplySecurityGroupsToLoadBalancerCommand.ts @@ -34,6 +34,7 @@ export class ApplySecurityGroupsToLoadBalancerCommand extends $Command< ApplySecurityGroupsToLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ApplySecurityGroupsToLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/AttachLoadBalancerToSubnetsCommand.ts b/clients/client-elastic-load-balancing/commands/AttachLoadBalancerToSubnetsCommand.ts index 4df2c3434d472..bc210f9fd6ac8 100644 --- a/clients/client-elastic-load-balancing/commands/AttachLoadBalancerToSubnetsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/AttachLoadBalancerToSubnetsCommand.ts @@ -35,6 +35,7 @@ export class AttachLoadBalancerToSubnetsCommand extends $Command< AttachLoadBalancerToSubnetsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AttachLoadBalancerToSubnetsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/ConfigureHealthCheckCommand.ts b/clients/client-elastic-load-balancing/commands/ConfigureHealthCheckCommand.ts index 662304fb33482..adb6ed50fb9b4 100644 --- a/clients/client-elastic-load-balancing/commands/ConfigureHealthCheckCommand.ts +++ b/clients/client-elastic-load-balancing/commands/ConfigureHealthCheckCommand.ts @@ -34,6 +34,7 @@ export class ConfigureHealthCheckCommand extends $Command< ConfigureHealthCheckCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ConfigureHealthCheckCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/CreateAppCookieStickinessPolicyCommand.ts b/clients/client-elastic-load-balancing/commands/CreateAppCookieStickinessPolicyCommand.ts index 4577e2669e7d9..c76e7eec2ff9e 100644 --- a/clients/client-elastic-load-balancing/commands/CreateAppCookieStickinessPolicyCommand.ts +++ b/clients/client-elastic-load-balancing/commands/CreateAppCookieStickinessPolicyCommand.ts @@ -40,6 +40,7 @@ export class CreateAppCookieStickinessPolicyCommand extends $Command< CreateAppCookieStickinessPolicyCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateAppCookieStickinessPolicyCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/CreateLBCookieStickinessPolicyCommand.ts b/clients/client-elastic-load-balancing/commands/CreateLBCookieStickinessPolicyCommand.ts index 07df0cb3d2392..c79fc6fd894d2 100644 --- a/clients/client-elastic-load-balancing/commands/CreateLBCookieStickinessPolicyCommand.ts +++ b/clients/client-elastic-load-balancing/commands/CreateLBCookieStickinessPolicyCommand.ts @@ -38,6 +38,7 @@ export class CreateLBCookieStickinessPolicyCommand extends $Command< CreateLBCookieStickinessPolicyCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateLBCookieStickinessPolicyCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerCommand.ts index 464ee37261433..d55488837486a 100644 --- a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerCommand.ts @@ -45,6 +45,7 @@ export class CreateLoadBalancerCommand extends $Command< CreateLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerListenersCommand.ts b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerListenersCommand.ts index d08e2fcee375e..3a14a722ca630 100644 --- a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerListenersCommand.ts +++ b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerListenersCommand.ts @@ -34,6 +34,7 @@ export class CreateLoadBalancerListenersCommand extends $Command< CreateLoadBalancerListenersCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateLoadBalancerListenersCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerPolicyCommand.ts b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerPolicyCommand.ts index 0ea1760a640fc..64a257fe6f7e6 100644 --- a/clients/client-elastic-load-balancing/commands/CreateLoadBalancerPolicyCommand.ts +++ b/clients/client-elastic-load-balancing/commands/CreateLoadBalancerPolicyCommand.ts @@ -33,6 +33,7 @@ export class CreateLoadBalancerPolicyCommand extends $Command< CreateLoadBalancerPolicyCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateLoadBalancerPolicyCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerCommand.ts index 51c3ac17552ed..bec0b5b33fdc0 100644 --- a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerCommand.ts @@ -35,6 +35,7 @@ export class DeleteLoadBalancerCommand extends $Command< DeleteLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerListenersCommand.ts b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerListenersCommand.ts index bd5e5d00f4a1e..48ade75145ffd 100644 --- a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerListenersCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerListenersCommand.ts @@ -32,6 +32,7 @@ export class DeleteLoadBalancerListenersCommand extends $Command< DeleteLoadBalancerListenersCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLoadBalancerListenersCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerPolicyCommand.ts b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerPolicyCommand.ts index fe3e6368ea254..88134ace3f366 100644 --- a/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerPolicyCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DeleteLoadBalancerPolicyCommand.ts @@ -32,6 +32,7 @@ export class DeleteLoadBalancerPolicyCommand extends $Command< DeleteLoadBalancerPolicyCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLoadBalancerPolicyCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DeregisterInstancesFromLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/DeregisterInstancesFromLoadBalancerCommand.ts index 0bccc06ce461e..1f31704049e7b 100644 --- a/clients/client-elastic-load-balancing/commands/DeregisterInstancesFromLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DeregisterInstancesFromLoadBalancerCommand.ts @@ -37,6 +37,7 @@ export class DeregisterInstancesFromLoadBalancerCommand extends $Command< DeregisterInstancesFromLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeregisterInstancesFromLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeAccountLimitsCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeAccountLimitsCommand.ts index a8834d518c4f1..35cbbdcd03cb5 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeAccountLimitsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeAccountLimitsCommand.ts @@ -34,6 +34,7 @@ export class DescribeAccountLimitsCommand extends $Command< DescribeAccountLimitsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeAccountLimitsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeInstanceHealthCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeInstanceHealthCommand.ts index 672617a76a949..08f0f59d28646 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeInstanceHealthCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeInstanceHealthCommand.ts @@ -32,6 +32,7 @@ export class DescribeInstanceHealthCommand extends $Command< DescribeInstanceHealthCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeInstanceHealthCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerAttributesCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerAttributesCommand.ts index e700bcb6d8643..34db355b0d1d9 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerAttributesCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerAttributesCommand.ts @@ -32,6 +32,7 @@ export class DescribeLoadBalancerAttributesCommand extends $Command< DescribeLoadBalancerAttributesCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeLoadBalancerAttributesCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPoliciesCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPoliciesCommand.ts index 20e9f615309a9..65c91b617578b 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPoliciesCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPoliciesCommand.ts @@ -36,6 +36,7 @@ export class DescribeLoadBalancerPoliciesCommand extends $Command< DescribeLoadBalancerPoliciesCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeLoadBalancerPoliciesCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPolicyTypesCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPolicyTypesCommand.ts index f2d0893232d06..525d0907c5af6 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPolicyTypesCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancerPolicyTypesCommand.ts @@ -39,6 +39,7 @@ export class DescribeLoadBalancerPolicyTypesCommand extends $Command< DescribeLoadBalancerPolicyTypesCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeLoadBalancerPolicyTypesCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancersCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancersCommand.ts index b1c497a034b31..9bc67f1ef9d74 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeLoadBalancersCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeLoadBalancersCommand.ts @@ -32,6 +32,7 @@ export class DescribeLoadBalancersCommand extends $Command< DescribeLoadBalancersCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeLoadBalancersCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DescribeTagsCommand.ts b/clients/client-elastic-load-balancing/commands/DescribeTagsCommand.ts index 027a813e967ad..c93cdafd16e64 100644 --- a/clients/client-elastic-load-balancing/commands/DescribeTagsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DescribeTagsCommand.ts @@ -29,6 +29,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTagsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DetachLoadBalancerFromSubnetsCommand.ts b/clients/client-elastic-load-balancing/commands/DetachLoadBalancerFromSubnetsCommand.ts index ebe6c3aa64112..29a6377df476d 100644 --- a/clients/client-elastic-load-balancing/commands/DetachLoadBalancerFromSubnetsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DetachLoadBalancerFromSubnetsCommand.ts @@ -35,6 +35,7 @@ export class DetachLoadBalancerFromSubnetsCommand extends $Command< DetachLoadBalancerFromSubnetsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DetachLoadBalancerFromSubnetsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts index b0d86036f4ff0..943ed17bebe1f 100644 --- a/clients/client-elastic-load-balancing/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts @@ -40,6 +40,7 @@ export class DisableAvailabilityZonesForLoadBalancerCommand extends $Command< DisableAvailabilityZonesForLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DisableAvailabilityZonesForLoadBalancerCommand extends $Command< DisableAvailabilityZonesForLoadBalancerCommandInput, DisableAvailabilityZonesForLoadBalancerCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts index 4d613a8e87b97..f37aa681008bb 100644 --- a/clients/client-elastic-load-balancing/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts @@ -37,6 +37,7 @@ export class EnableAvailabilityZonesForLoadBalancerCommand extends $Command< EnableAvailabilityZonesForLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class EnableAvailabilityZonesForLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/ModifyLoadBalancerAttributesCommand.ts b/clients/client-elastic-load-balancing/commands/ModifyLoadBalancerAttributesCommand.ts index 6a3a2df752722..491f3e2539d9a 100644 --- a/clients/client-elastic-load-balancing/commands/ModifyLoadBalancerAttributesCommand.ts +++ b/clients/client-elastic-load-balancing/commands/ModifyLoadBalancerAttributesCommand.ts @@ -58,6 +58,7 @@ export class ModifyLoadBalancerAttributesCommand extends $Command< ModifyLoadBalancerAttributesCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class ModifyLoadBalancerAttributesCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/RegisterInstancesWithLoadBalancerCommand.ts b/clients/client-elastic-load-balancing/commands/RegisterInstancesWithLoadBalancerCommand.ts index b7d85b28a47b9..ec2e80b29d044 100644 --- a/clients/client-elastic-load-balancing/commands/RegisterInstancesWithLoadBalancerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/RegisterInstancesWithLoadBalancerCommand.ts @@ -50,6 +50,7 @@ export class RegisterInstancesWithLoadBalancerCommand extends $Command< RegisterInstancesWithLoadBalancerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class RegisterInstancesWithLoadBalancerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/RemoveTagsCommand.ts b/clients/client-elastic-load-balancing/commands/RemoveTagsCommand.ts index 506fb87f61a50..bbcaf4b20b9a8 100644 --- a/clients/client-elastic-load-balancing/commands/RemoveTagsCommand.ts +++ b/clients/client-elastic-load-balancing/commands/RemoveTagsCommand.ts @@ -29,6 +29,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveTagsCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/SetLoadBalancerListenerSSLCertificateCommand.ts b/clients/client-elastic-load-balancing/commands/SetLoadBalancerListenerSSLCertificateCommand.ts index 15f55f86c690c..68ca79f0c8eaf 100644 --- a/clients/client-elastic-load-balancing/commands/SetLoadBalancerListenerSSLCertificateCommand.ts +++ b/clients/client-elastic-load-balancing/commands/SetLoadBalancerListenerSSLCertificateCommand.ts @@ -40,6 +40,7 @@ export class SetLoadBalancerListenerSSLCertificateCommand extends $Command< SetLoadBalancerListenerSSLCertificateCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class SetLoadBalancerListenerSSLCertificateCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts b/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts index c5cb29e61b79b..19e82dbead002 100644 --- a/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts @@ -46,6 +46,7 @@ export class SetLoadBalancerPoliciesForBackendServerCommand extends $Command< SetLoadBalancerPoliciesForBackendServerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class SetLoadBalancerPoliciesForBackendServerCommand extends $Command< SetLoadBalancerPoliciesForBackendServerCommandInput, SetLoadBalancerPoliciesForBackendServerCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesOfListenerCommand.ts b/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesOfListenerCommand.ts index 9edca9eb77a8c..992caf153524a 100644 --- a/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesOfListenerCommand.ts +++ b/clients/client-elastic-load-balancing/commands/SetLoadBalancerPoliciesOfListenerCommand.ts @@ -38,6 +38,7 @@ export class SetLoadBalancerPoliciesOfListenerCommand extends $Command< SetLoadBalancerPoliciesOfListenerCommandOutput, ElasticLoadBalancingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class SetLoadBalancerPoliciesOfListenerCommand extends $Command< configuration: ElasticLoadBalancingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/CancelJobCommand.ts b/clients/client-elastic-transcoder/commands/CancelJobCommand.ts index 9501f0c3429a6..6903994787434 100644 --- a/clients/client-elastic-transcoder/commands/CancelJobCommand.ts +++ b/clients/client-elastic-transcoder/commands/CancelJobCommand.ts @@ -37,6 +37,7 @@ export class CancelJobCommand extends $Command< CancelJobCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CancelJobCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/CreateJobCommand.ts b/clients/client-elastic-transcoder/commands/CreateJobCommand.ts index b8b429be198d8..60b9dc9c8c409 100644 --- a/clients/client-elastic-transcoder/commands/CreateJobCommand.ts +++ b/clients/client-elastic-transcoder/commands/CreateJobCommand.ts @@ -36,6 +36,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateJobCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/CreatePipelineCommand.ts b/clients/client-elastic-transcoder/commands/CreatePipelineCommand.ts index e43d722c5d812..c1e15c5715268 100644 --- a/clients/client-elastic-transcoder/commands/CreatePipelineCommand.ts +++ b/clients/client-elastic-transcoder/commands/CreatePipelineCommand.ts @@ -32,6 +32,7 @@ export class CreatePipelineCommand extends $Command< CreatePipelineCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePipelineCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/CreatePresetCommand.ts b/clients/client-elastic-transcoder/commands/CreatePresetCommand.ts index 61c48775bf140..9d6739088879f 100644 --- a/clients/client-elastic-transcoder/commands/CreatePresetCommand.ts +++ b/clients/client-elastic-transcoder/commands/CreatePresetCommand.ts @@ -45,6 +45,7 @@ export class CreatePresetCommand extends $Command< CreatePresetCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreatePresetCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/DeletePipelineCommand.ts b/clients/client-elastic-transcoder/commands/DeletePipelineCommand.ts index 914e5312d9db0..058283bbe6c37 100644 --- a/clients/client-elastic-transcoder/commands/DeletePipelineCommand.ts +++ b/clients/client-elastic-transcoder/commands/DeletePipelineCommand.ts @@ -35,6 +35,7 @@ export class DeletePipelineCommand extends $Command< DeletePipelineCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeletePipelineCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/DeletePresetCommand.ts b/clients/client-elastic-transcoder/commands/DeletePresetCommand.ts index 17e56b3ca7628..a811e19a294a7 100644 --- a/clients/client-elastic-transcoder/commands/DeletePresetCommand.ts +++ b/clients/client-elastic-transcoder/commands/DeletePresetCommand.ts @@ -35,6 +35,7 @@ export class DeletePresetCommand extends $Command< DeletePresetCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeletePresetCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ListJobsByPipelineCommand.ts b/clients/client-elastic-transcoder/commands/ListJobsByPipelineCommand.ts index 057d906572501..f9de7ed59bef5 100644 --- a/clients/client-elastic-transcoder/commands/ListJobsByPipelineCommand.ts +++ b/clients/client-elastic-transcoder/commands/ListJobsByPipelineCommand.ts @@ -34,6 +34,7 @@ export class ListJobsByPipelineCommand extends $Command< ListJobsByPipelineCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListJobsByPipelineCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ListJobsByStatusCommand.ts b/clients/client-elastic-transcoder/commands/ListJobsByStatusCommand.ts index 2114a0b7ef291..a0942743534c4 100644 --- a/clients/client-elastic-transcoder/commands/ListJobsByStatusCommand.ts +++ b/clients/client-elastic-transcoder/commands/ListJobsByStatusCommand.ts @@ -33,6 +33,7 @@ export class ListJobsByStatusCommand extends $Command< ListJobsByStatusCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListJobsByStatusCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ListPipelinesCommand.ts b/clients/client-elastic-transcoder/commands/ListPipelinesCommand.ts index 9b943d57704b9..6e91f8ec99513 100644 --- a/clients/client-elastic-transcoder/commands/ListPipelinesCommand.ts +++ b/clients/client-elastic-transcoder/commands/ListPipelinesCommand.ts @@ -32,6 +32,7 @@ export class ListPipelinesCommand extends $Command< ListPipelinesCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPipelinesCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ListPresetsCommand.ts b/clients/client-elastic-transcoder/commands/ListPresetsCommand.ts index fbb812bff70d1..13d7f14d7983e 100644 --- a/clients/client-elastic-transcoder/commands/ListPresetsCommand.ts +++ b/clients/client-elastic-transcoder/commands/ListPresetsCommand.ts @@ -33,6 +33,7 @@ export class ListPresetsCommand extends $Command< ListPresetsCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListPresetsCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ReadJobCommand.ts b/clients/client-elastic-transcoder/commands/ReadJobCommand.ts index a9d0766eb7173..cb5fa44b377d7 100644 --- a/clients/client-elastic-transcoder/commands/ReadJobCommand.ts +++ b/clients/client-elastic-transcoder/commands/ReadJobCommand.ts @@ -32,6 +32,7 @@ export class ReadJobCommand extends $Command< ReadJobCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReadJobCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ReadPipelineCommand.ts b/clients/client-elastic-transcoder/commands/ReadPipelineCommand.ts index dbf2444b2e150..e33d83acba274 100644 --- a/clients/client-elastic-transcoder/commands/ReadPipelineCommand.ts +++ b/clients/client-elastic-transcoder/commands/ReadPipelineCommand.ts @@ -32,6 +32,7 @@ export class ReadPipelineCommand extends $Command< ReadPipelineCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReadPipelineCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/ReadPresetCommand.ts b/clients/client-elastic-transcoder/commands/ReadPresetCommand.ts index 40ede8acd3c6b..7471cb35132a0 100644 --- a/clients/client-elastic-transcoder/commands/ReadPresetCommand.ts +++ b/clients/client-elastic-transcoder/commands/ReadPresetCommand.ts @@ -32,6 +32,7 @@ export class ReadPresetCommand extends $Command< ReadPresetCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ReadPresetCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/TestRoleCommand.ts b/clients/client-elastic-transcoder/commands/TestRoleCommand.ts index 9a6cc100093d3..8c48df22f7de1 100644 --- a/clients/client-elastic-transcoder/commands/TestRoleCommand.ts +++ b/clients/client-elastic-transcoder/commands/TestRoleCommand.ts @@ -37,6 +37,7 @@ export class TestRoleCommand extends $Command< TestRoleCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TestRoleCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/UpdatePipelineCommand.ts b/clients/client-elastic-transcoder/commands/UpdatePipelineCommand.ts index 52e8b1731e62d..4279c61d67936 100644 --- a/clients/client-elastic-transcoder/commands/UpdatePipelineCommand.ts +++ b/clients/client-elastic-transcoder/commands/UpdatePipelineCommand.ts @@ -37,6 +37,7 @@ export class UpdatePipelineCommand extends $Command< UpdatePipelineCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdatePipelineCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/UpdatePipelineNotificationsCommand.ts b/clients/client-elastic-transcoder/commands/UpdatePipelineNotificationsCommand.ts index 7a54dd9fc74b0..2a2b172856ff5 100644 --- a/clients/client-elastic-transcoder/commands/UpdatePipelineNotificationsCommand.ts +++ b/clients/client-elastic-transcoder/commands/UpdatePipelineNotificationsCommand.ts @@ -33,6 +33,7 @@ export class UpdatePipelineNotificationsCommand extends $Command< UpdatePipelineNotificationsCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdatePipelineNotificationsCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elastic-transcoder/commands/UpdatePipelineStatusCommand.ts b/clients/client-elastic-transcoder/commands/UpdatePipelineStatusCommand.ts index 6efccaeb7967f..b14ce9f42866f 100644 --- a/clients/client-elastic-transcoder/commands/UpdatePipelineStatusCommand.ts +++ b/clients/client-elastic-transcoder/commands/UpdatePipelineStatusCommand.ts @@ -37,6 +37,7 @@ export class UpdatePipelineStatusCommand extends $Command< UpdatePipelineStatusCommandOutput, ElasticTranscoderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdatePipelineStatusCommand extends $Command< configuration: ElasticTranscoderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/AddTagsToResourceCommand.ts b/clients/client-elasticache/commands/AddTagsToResourceCommand.ts index 666995767a11f..4e9995505cfa7 100644 --- a/clients/client-elasticache/commands/AddTagsToResourceCommand.ts +++ b/clients/client-elasticache/commands/AddTagsToResourceCommand.ts @@ -39,6 +39,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/AuthorizeCacheSecurityGroupIngressCommand.ts b/clients/client-elasticache/commands/AuthorizeCacheSecurityGroupIngressCommand.ts index 0c2b226a430f6..9b5889481556b 100644 --- a/clients/client-elasticache/commands/AuthorizeCacheSecurityGroupIngressCommand.ts +++ b/clients/client-elasticache/commands/AuthorizeCacheSecurityGroupIngressCommand.ts @@ -38,6 +38,7 @@ export class AuthorizeCacheSecurityGroupIngressCommand extends $Command< AuthorizeCacheSecurityGroupIngressCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AuthorizeCacheSecurityGroupIngressCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/BatchApplyUpdateActionCommand.ts b/clients/client-elasticache/commands/BatchApplyUpdateActionCommand.ts index ee63437c3701c..bb2748cff16a4 100644 --- a/clients/client-elasticache/commands/BatchApplyUpdateActionCommand.ts +++ b/clients/client-elasticache/commands/BatchApplyUpdateActionCommand.ts @@ -28,6 +28,7 @@ export class BatchApplyUpdateActionCommand extends $Command< BatchApplyUpdateActionCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchApplyUpdateActionCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/BatchStopUpdateActionCommand.ts b/clients/client-elasticache/commands/BatchStopUpdateActionCommand.ts index 3c8b5cad00f64..6be5d2c50962b 100644 --- a/clients/client-elasticache/commands/BatchStopUpdateActionCommand.ts +++ b/clients/client-elasticache/commands/BatchStopUpdateActionCommand.ts @@ -28,6 +28,7 @@ export class BatchStopUpdateActionCommand extends $Command< BatchStopUpdateActionCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchStopUpdateActionCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CompleteMigrationCommand.ts b/clients/client-elasticache/commands/CompleteMigrationCommand.ts index 84ef51feb9d60..9dc3f3f677218 100644 --- a/clients/client-elasticache/commands/CompleteMigrationCommand.ts +++ b/clients/client-elasticache/commands/CompleteMigrationCommand.ts @@ -28,6 +28,7 @@ export class CompleteMigrationCommand extends $Command< CompleteMigrationCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CompleteMigrationCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CopySnapshotCommand.ts b/clients/client-elasticache/commands/CopySnapshotCommand.ts index 1a7816e991060..9e8042e819b9a 100644 --- a/clients/client-elasticache/commands/CopySnapshotCommand.ts +++ b/clients/client-elasticache/commands/CopySnapshotCommand.ts @@ -118,6 +118,7 @@ export class CopySnapshotCommand extends $Command< CopySnapshotCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -135,7 +136,10 @@ export class CopySnapshotCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateCacheClusterCommand.ts b/clients/client-elasticache/commands/CreateCacheClusterCommand.ts index c4d29c3f9f0fe..1f1bb01c762a9 100644 --- a/clients/client-elasticache/commands/CreateCacheClusterCommand.ts +++ b/clients/client-elasticache/commands/CreateCacheClusterCommand.ts @@ -31,6 +31,7 @@ export class CreateCacheClusterCommand extends $Command< CreateCacheClusterCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateCacheClusterCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateCacheParameterGroupCommand.ts b/clients/client-elasticache/commands/CreateCacheParameterGroupCommand.ts index d9dfd5ae542bf..98fdbcc96bd3a 100644 --- a/clients/client-elasticache/commands/CreateCacheParameterGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateCacheParameterGroupCommand.ts @@ -43,6 +43,7 @@ export class CreateCacheParameterGroupCommand extends $Command< CreateCacheParameterGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateCacheParameterGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateCacheSecurityGroupCommand.ts b/clients/client-elasticache/commands/CreateCacheSecurityGroupCommand.ts index 25e5cfcd404ed..c14c6726f939e 100644 --- a/clients/client-elasticache/commands/CreateCacheSecurityGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateCacheSecurityGroupCommand.ts @@ -33,6 +33,7 @@ export class CreateCacheSecurityGroupCommand extends $Command< CreateCacheSecurityGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateCacheSecurityGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateCacheSubnetGroupCommand.ts b/clients/client-elasticache/commands/CreateCacheSubnetGroupCommand.ts index 62e970652b49f..44bb2412cce55 100644 --- a/clients/client-elasticache/commands/CreateCacheSubnetGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateCacheSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateCacheSubnetGroupCommand extends $Command< CreateCacheSubnetGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateCacheSubnetGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/CreateGlobalReplicationGroupCommand.ts index 547e89875547b..961f414bece19 100644 --- a/clients/client-elasticache/commands/CreateGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateGlobalReplicationGroupCommand.ts @@ -41,6 +41,7 @@ export class CreateGlobalReplicationGroupCommand extends $Command< CreateGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateReplicationGroupCommand.ts b/clients/client-elasticache/commands/CreateReplicationGroupCommand.ts index 1f344e17fe74d..d1d9263dc9801 100644 --- a/clients/client-elasticache/commands/CreateReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateReplicationGroupCommand.ts @@ -46,6 +46,7 @@ export class CreateReplicationGroupCommand extends $Command< CreateReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreateReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateSnapshotCommand.ts b/clients/client-elasticache/commands/CreateSnapshotCommand.ts index a20995e483770..cd0a1b403ccf6 100644 --- a/clients/client-elasticache/commands/CreateSnapshotCommand.ts +++ b/clients/client-elasticache/commands/CreateSnapshotCommand.ts @@ -33,6 +33,7 @@ export class CreateSnapshotCommand extends $Command< CreateSnapshotCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateSnapshotCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateUserCommand.ts b/clients/client-elasticache/commands/CreateUserCommand.ts index fc3afe80dbb66..5ba1711802c77 100644 --- a/clients/client-elasticache/commands/CreateUserCommand.ts +++ b/clients/client-elasticache/commands/CreateUserCommand.ts @@ -25,6 +25,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CreateUserCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/CreateUserGroupCommand.ts b/clients/client-elasticache/commands/CreateUserGroupCommand.ts index 4021fb0587339..c92896ad73111 100644 --- a/clients/client-elasticache/commands/CreateUserGroupCommand.ts +++ b/clients/client-elasticache/commands/CreateUserGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateUserGroupCommand extends $Command< CreateUserGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateUserGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.ts index c6a2914a64a44..569c5f0a25de2 100644 --- a/clients/client-elasticache/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.ts @@ -32,6 +32,7 @@ export class DecreaseNodeGroupsInGlobalReplicationGroupCommand extends $Command< DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DecreaseNodeGroupsInGlobalReplicationGroupCommand extends $Command< DecreaseNodeGroupsInGlobalReplicationGroupCommandInput, DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DecreaseReplicaCountCommand.ts b/clients/client-elasticache/commands/DecreaseReplicaCountCommand.ts index e6aafdd585fbd..920d2b2ea7822 100644 --- a/clients/client-elasticache/commands/DecreaseReplicaCountCommand.ts +++ b/clients/client-elasticache/commands/DecreaseReplicaCountCommand.ts @@ -30,6 +30,7 @@ export class DecreaseReplicaCountCommand extends $Command< DecreaseReplicaCountCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DecreaseReplicaCountCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteCacheClusterCommand.ts b/clients/client-elasticache/commands/DeleteCacheClusterCommand.ts index 260a176301525..d7d20a9f6c88a 100644 --- a/clients/client-elasticache/commands/DeleteCacheClusterCommand.ts +++ b/clients/client-elasticache/commands/DeleteCacheClusterCommand.ts @@ -50,6 +50,7 @@ export class DeleteCacheClusterCommand extends $Command< DeleteCacheClusterCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DeleteCacheClusterCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteCacheParameterGroupCommand.ts b/clients/client-elasticache/commands/DeleteCacheParameterGroupCommand.ts index 5d8a89e155c63..10ddebd323d22 100644 --- a/clients/client-elasticache/commands/DeleteCacheParameterGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteCacheParameterGroupCommand.ts @@ -30,6 +30,7 @@ export class DeleteCacheParameterGroupCommand extends $Command< DeleteCacheParameterGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteCacheParameterGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteCacheSecurityGroupCommand.ts b/clients/client-elasticache/commands/DeleteCacheSecurityGroupCommand.ts index eeeb005234d15..29940be90d6e3 100644 --- a/clients/client-elasticache/commands/DeleteCacheSecurityGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteCacheSecurityGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteCacheSecurityGroupCommand extends $Command< DeleteCacheSecurityGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteCacheSecurityGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteCacheSubnetGroupCommand.ts b/clients/client-elasticache/commands/DeleteCacheSubnetGroupCommand.ts index 6bc4ef3c797bc..7d689c7aaae42 100644 --- a/clients/client-elasticache/commands/DeleteCacheSubnetGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteCacheSubnetGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteCacheSubnetGroupCommand extends $Command< DeleteCacheSubnetGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteCacheSubnetGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/DeleteGlobalReplicationGroupCommand.ts index 978610b08f26e..b99068f596f2f 100644 --- a/clients/client-elasticache/commands/DeleteGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteGlobalReplicationGroupCommand.ts @@ -41,6 +41,7 @@ export class DeleteGlobalReplicationGroupCommand extends $Command< DeleteGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeleteGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteReplicationGroupCommand.ts b/clients/client-elasticache/commands/DeleteReplicationGroupCommand.ts index de224dc6104cf..0ea841a2b04e8 100644 --- a/clients/client-elasticache/commands/DeleteReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteReplicationGroupCommand.ts @@ -36,6 +36,7 @@ export class DeleteReplicationGroupCommand extends $Command< DeleteReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteSnapshotCommand.ts b/clients/client-elasticache/commands/DeleteSnapshotCommand.ts index a17ba8065f62f..684566b903bb0 100644 --- a/clients/client-elasticache/commands/DeleteSnapshotCommand.ts +++ b/clients/client-elasticache/commands/DeleteSnapshotCommand.ts @@ -34,6 +34,7 @@ export class DeleteSnapshotCommand extends $Command< DeleteSnapshotCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteSnapshotCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteUserCommand.ts b/clients/client-elasticache/commands/DeleteUserCommand.ts index 0d9f4149b8ecc..7daffd3bfab0a 100644 --- a/clients/client-elasticache/commands/DeleteUserCommand.ts +++ b/clients/client-elasticache/commands/DeleteUserCommand.ts @@ -25,6 +25,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteUserCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DeleteUserGroupCommand.ts b/clients/client-elasticache/commands/DeleteUserGroupCommand.ts index b9617069a58dc..994b3dda97025 100644 --- a/clients/client-elasticache/commands/DeleteUserGroupCommand.ts +++ b/clients/client-elasticache/commands/DeleteUserGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserGroupCommand extends $Command< DeleteUserGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheClustersCommand.ts b/clients/client-elasticache/commands/DescribeCacheClustersCommand.ts index 031cf310e6528..ea58b350e641a 100644 --- a/clients/client-elasticache/commands/DescribeCacheClustersCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheClustersCommand.ts @@ -43,6 +43,7 @@ export class DescribeCacheClustersCommand extends $Command< DescribeCacheClustersCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DescribeCacheClustersCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheEngineVersionsCommand.ts b/clients/client-elasticache/commands/DescribeCacheEngineVersionsCommand.ts index 6d13a09945b6f..2696fd845b336 100644 --- a/clients/client-elasticache/commands/DescribeCacheEngineVersionsCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheEngineVersionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeCacheEngineVersionsCommand extends $Command< DescribeCacheEngineVersionsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCacheEngineVersionsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheParameterGroupsCommand.ts b/clients/client-elasticache/commands/DescribeCacheParameterGroupsCommand.ts index a3feeffb549e3..6a302813f4d9b 100644 --- a/clients/client-elasticache/commands/DescribeCacheParameterGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheParameterGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeCacheParameterGroupsCommand extends $Command< DescribeCacheParameterGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeCacheParameterGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheParametersCommand.ts b/clients/client-elasticache/commands/DescribeCacheParametersCommand.ts index da54c1e3a5f1d..3963af8070db6 100644 --- a/clients/client-elasticache/commands/DescribeCacheParametersCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheParametersCommand.ts @@ -29,6 +29,7 @@ export class DescribeCacheParametersCommand extends $Command< DescribeCacheParametersCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCacheParametersCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheSecurityGroupsCommand.ts b/clients/client-elasticache/commands/DescribeCacheSecurityGroupsCommand.ts index edfac5176dd06..6b5c7ab338e76 100644 --- a/clients/client-elasticache/commands/DescribeCacheSecurityGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheSecurityGroupsCommand.ts @@ -31,6 +31,7 @@ export class DescribeCacheSecurityGroupsCommand extends $Command< DescribeCacheSecurityGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeCacheSecurityGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeCacheSubnetGroupsCommand.ts b/clients/client-elasticache/commands/DescribeCacheSubnetGroupsCommand.ts index 0890d6e82fa5e..8137b1ca35482 100644 --- a/clients/client-elasticache/commands/DescribeCacheSubnetGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeCacheSubnetGroupsCommand.ts @@ -31,6 +31,7 @@ export class DescribeCacheSubnetGroupsCommand extends $Command< DescribeCacheSubnetGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeCacheSubnetGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeEngineDefaultParametersCommand.ts b/clients/client-elasticache/commands/DescribeEngineDefaultParametersCommand.ts index 2ac1b951d8b23..3cd365c0ace4d 100644 --- a/clients/client-elasticache/commands/DescribeEngineDefaultParametersCommand.ts +++ b/clients/client-elasticache/commands/DescribeEngineDefaultParametersCommand.ts @@ -29,6 +29,7 @@ export class DescribeEngineDefaultParametersCommand extends $Command< DescribeEngineDefaultParametersCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEngineDefaultParametersCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeEventsCommand.ts b/clients/client-elasticache/commands/DescribeEventsCommand.ts index 8f4f06af57e71..6f2335e42afd3 100644 --- a/clients/client-elasticache/commands/DescribeEventsCommand.ts +++ b/clients/client-elasticache/commands/DescribeEventsCommand.ts @@ -33,6 +33,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEventsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeGlobalReplicationGroupsCommand.ts b/clients/client-elasticache/commands/DescribeGlobalReplicationGroupsCommand.ts index 6f42ad3fa0d68..66d2038d63a9d 100644 --- a/clients/client-elasticache/commands/DescribeGlobalReplicationGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeGlobalReplicationGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeGlobalReplicationGroupsCommand extends $Command< DescribeGlobalReplicationGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGlobalReplicationGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeReplicationGroupsCommand.ts b/clients/client-elasticache/commands/DescribeReplicationGroupsCommand.ts index 0acabbc456aba..b29767af8ca82 100644 --- a/clients/client-elasticache/commands/DescribeReplicationGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeReplicationGroupsCommand.ts @@ -33,6 +33,7 @@ export class DescribeReplicationGroupsCommand extends $Command< DescribeReplicationGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReplicationGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeReservedCacheNodesCommand.ts b/clients/client-elasticache/commands/DescribeReservedCacheNodesCommand.ts index 6a85c9f740141..cb1cc6a16ea04 100644 --- a/clients/client-elasticache/commands/DescribeReservedCacheNodesCommand.ts +++ b/clients/client-elasticache/commands/DescribeReservedCacheNodesCommand.ts @@ -29,6 +29,7 @@ export class DescribeReservedCacheNodesCommand extends $Command< DescribeReservedCacheNodesCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeReservedCacheNodesCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeReservedCacheNodesOfferingsCommand.ts b/clients/client-elasticache/commands/DescribeReservedCacheNodesOfferingsCommand.ts index 26b879a925274..2bc645197849a 100644 --- a/clients/client-elasticache/commands/DescribeReservedCacheNodesOfferingsCommand.ts +++ b/clients/client-elasticache/commands/DescribeReservedCacheNodesOfferingsCommand.ts @@ -29,6 +29,7 @@ export class DescribeReservedCacheNodesOfferingsCommand extends $Command< DescribeReservedCacheNodesOfferingsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeReservedCacheNodesOfferingsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeServiceUpdatesCommand.ts b/clients/client-elasticache/commands/DescribeServiceUpdatesCommand.ts index 58d0e7d572135..516aaf8529f80 100644 --- a/clients/client-elasticache/commands/DescribeServiceUpdatesCommand.ts +++ b/clients/client-elasticache/commands/DescribeServiceUpdatesCommand.ts @@ -28,6 +28,7 @@ export class DescribeServiceUpdatesCommand extends $Command< DescribeServiceUpdatesCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeServiceUpdatesCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeSnapshotsCommand.ts b/clients/client-elasticache/commands/DescribeSnapshotsCommand.ts index 705db42da0682..9201ba4bc1f10 100644 --- a/clients/client-elasticache/commands/DescribeSnapshotsCommand.ts +++ b/clients/client-elasticache/commands/DescribeSnapshotsCommand.ts @@ -35,6 +35,7 @@ export class DescribeSnapshotsCommand extends $Command< DescribeSnapshotsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeSnapshotsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeUpdateActionsCommand.ts b/clients/client-elasticache/commands/DescribeUpdateActionsCommand.ts index 677d5f1fed0c9..37eae1e297648 100644 --- a/clients/client-elasticache/commands/DescribeUpdateActionsCommand.ts +++ b/clients/client-elasticache/commands/DescribeUpdateActionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeUpdateActionsCommand extends $Command< DescribeUpdateActionsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUpdateActionsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeUserGroupsCommand.ts b/clients/client-elasticache/commands/DescribeUserGroupsCommand.ts index 88fd7cba34dc5..565c9132bbdab 100644 --- a/clients/client-elasticache/commands/DescribeUserGroupsCommand.ts +++ b/clients/client-elasticache/commands/DescribeUserGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserGroupsCommand extends $Command< DescribeUserGroupsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserGroupsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DescribeUsersCommand.ts b/clients/client-elasticache/commands/DescribeUsersCommand.ts index 38f56024ff0b4..4ceb227e8cc3f 100644 --- a/clients/client-elasticache/commands/DescribeUsersCommand.ts +++ b/clients/client-elasticache/commands/DescribeUsersCommand.ts @@ -28,6 +28,7 @@ export class DescribeUsersCommand extends $Command< DescribeUsersCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUsersCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/DisassociateGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/DisassociateGlobalReplicationGroupCommand.ts index 14abd8d7f4c0a..4a37524ef9c33 100644 --- a/clients/client-elasticache/commands/DisassociateGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/DisassociateGlobalReplicationGroupCommand.ts @@ -32,6 +32,7 @@ export class DisassociateGlobalReplicationGroupCommand extends $Command< DisassociateGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/FailoverGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/FailoverGlobalReplicationGroupCommand.ts index 6d71ad64132a9..d17c3d7cd49b1 100644 --- a/clients/client-elasticache/commands/FailoverGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/FailoverGlobalReplicationGroupCommand.ts @@ -28,6 +28,7 @@ export class FailoverGlobalReplicationGroupCommand extends $Command< FailoverGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FailoverGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.ts index 38b59fce1f96b..8f1c9f2ba2155 100644 --- a/clients/client-elasticache/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.ts @@ -32,6 +32,7 @@ export class IncreaseNodeGroupsInGlobalReplicationGroupCommand extends $Command< IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class IncreaseNodeGroupsInGlobalReplicationGroupCommand extends $Command< IncreaseNodeGroupsInGlobalReplicationGroupCommandInput, IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/IncreaseReplicaCountCommand.ts b/clients/client-elasticache/commands/IncreaseReplicaCountCommand.ts index b401b94ab3a46..7ff2d80e70958 100644 --- a/clients/client-elasticache/commands/IncreaseReplicaCountCommand.ts +++ b/clients/client-elasticache/commands/IncreaseReplicaCountCommand.ts @@ -30,6 +30,7 @@ export class IncreaseReplicaCountCommand extends $Command< IncreaseReplicaCountCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class IncreaseReplicaCountCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ListAllowedNodeTypeModificationsCommand.ts b/clients/client-elasticache/commands/ListAllowedNodeTypeModificationsCommand.ts index 9e05e406b7d8d..adc4642782e9a 100644 --- a/clients/client-elasticache/commands/ListAllowedNodeTypeModificationsCommand.ts +++ b/clients/client-elasticache/commands/ListAllowedNodeTypeModificationsCommand.ts @@ -33,6 +33,7 @@ export class ListAllowedNodeTypeModificationsCommand extends $Command< ListAllowedNodeTypeModificationsCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListAllowedNodeTypeModificationsCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ListTagsForResourceCommand.ts b/clients/client-elasticache/commands/ListTagsForResourceCommand.ts index 652e125d2e1fb..cc60d0ca84c18 100644 --- a/clients/client-elasticache/commands/ListTagsForResourceCommand.ts +++ b/clients/client-elasticache/commands/ListTagsForResourceCommand.ts @@ -35,6 +35,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyCacheClusterCommand.ts b/clients/client-elasticache/commands/ModifyCacheClusterCommand.ts index 03841342e4c52..e51bb21a4af79 100644 --- a/clients/client-elasticache/commands/ModifyCacheClusterCommand.ts +++ b/clients/client-elasticache/commands/ModifyCacheClusterCommand.ts @@ -30,6 +30,7 @@ export class ModifyCacheClusterCommand extends $Command< ModifyCacheClusterCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyCacheClusterCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyCacheParameterGroupCommand.ts b/clients/client-elasticache/commands/ModifyCacheParameterGroupCommand.ts index 551dc0649405a..7b840dd8ba96b 100644 --- a/clients/client-elasticache/commands/ModifyCacheParameterGroupCommand.ts +++ b/clients/client-elasticache/commands/ModifyCacheParameterGroupCommand.ts @@ -30,6 +30,7 @@ export class ModifyCacheParameterGroupCommand extends $Command< ModifyCacheParameterGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyCacheParameterGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyCacheSubnetGroupCommand.ts b/clients/client-elasticache/commands/ModifyCacheSubnetGroupCommand.ts index 76d9017950a73..e4580f25bd707 100644 --- a/clients/client-elasticache/commands/ModifyCacheSubnetGroupCommand.ts +++ b/clients/client-elasticache/commands/ModifyCacheSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyCacheSubnetGroupCommand extends $Command< ModifyCacheSubnetGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyCacheSubnetGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/ModifyGlobalReplicationGroupCommand.ts index 803951b89a96a..59cdc0be6270f 100644 --- a/clients/client-elasticache/commands/ModifyGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/ModifyGlobalReplicationGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyGlobalReplicationGroupCommand extends $Command< ModifyGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyReplicationGroupCommand.ts b/clients/client-elasticache/commands/ModifyReplicationGroupCommand.ts index 3eab93a388339..9488d2a42cb6e 100644 --- a/clients/client-elasticache/commands/ModifyReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/ModifyReplicationGroupCommand.ts @@ -44,6 +44,7 @@ export class ModifyReplicationGroupCommand extends $Command< ModifyReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class ModifyReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyReplicationGroupShardConfigurationCommand.ts b/clients/client-elasticache/commands/ModifyReplicationGroupShardConfigurationCommand.ts index 5bdfc4ef2ba77..67450d6281222 100644 --- a/clients/client-elasticache/commands/ModifyReplicationGroupShardConfigurationCommand.ts +++ b/clients/client-elasticache/commands/ModifyReplicationGroupShardConfigurationCommand.ts @@ -33,6 +33,7 @@ export class ModifyReplicationGroupShardConfigurationCommand extends $Command< ModifyReplicationGroupShardConfigurationCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyReplicationGroupShardConfigurationCommand extends $Command< ModifyReplicationGroupShardConfigurationCommandInput, ModifyReplicationGroupShardConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyUserCommand.ts b/clients/client-elasticache/commands/ModifyUserCommand.ts index 0ffafd92c5a54..495a469c89fea 100644 --- a/clients/client-elasticache/commands/ModifyUserCommand.ts +++ b/clients/client-elasticache/commands/ModifyUserCommand.ts @@ -25,6 +25,7 @@ export class ModifyUserCommand extends $Command< ModifyUserCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ModifyUserCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ModifyUserGroupCommand.ts b/clients/client-elasticache/commands/ModifyUserGroupCommand.ts index 329ad38bf8c31..6b487cdd3bb82 100644 --- a/clients/client-elasticache/commands/ModifyUserGroupCommand.ts +++ b/clients/client-elasticache/commands/ModifyUserGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyUserGroupCommand extends $Command< ModifyUserGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyUserGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/PurchaseReservedCacheNodesOfferingCommand.ts b/clients/client-elasticache/commands/PurchaseReservedCacheNodesOfferingCommand.ts index 665f6e83c520a..dca4ade247741 100644 --- a/clients/client-elasticache/commands/PurchaseReservedCacheNodesOfferingCommand.ts +++ b/clients/client-elasticache/commands/PurchaseReservedCacheNodesOfferingCommand.ts @@ -33,6 +33,7 @@ export class PurchaseReservedCacheNodesOfferingCommand extends $Command< PurchaseReservedCacheNodesOfferingCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PurchaseReservedCacheNodesOfferingCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/RebalanceSlotsInGlobalReplicationGroupCommand.ts b/clients/client-elasticache/commands/RebalanceSlotsInGlobalReplicationGroupCommand.ts index 15f3cd635d595..d82c4198d4afa 100644 --- a/clients/client-elasticache/commands/RebalanceSlotsInGlobalReplicationGroupCommand.ts +++ b/clients/client-elasticache/commands/RebalanceSlotsInGlobalReplicationGroupCommand.ts @@ -32,6 +32,7 @@ export class RebalanceSlotsInGlobalReplicationGroupCommand extends $Command< RebalanceSlotsInGlobalReplicationGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RebalanceSlotsInGlobalReplicationGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/RebootCacheClusterCommand.ts b/clients/client-elasticache/commands/RebootCacheClusterCommand.ts index 4439b43c5d7ca..c42f2db5b416a 100644 --- a/clients/client-elasticache/commands/RebootCacheClusterCommand.ts +++ b/clients/client-elasticache/commands/RebootCacheClusterCommand.ts @@ -40,6 +40,7 @@ export class RebootCacheClusterCommand extends $Command< RebootCacheClusterCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RebootCacheClusterCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/RemoveTagsFromResourceCommand.ts b/clients/client-elasticache/commands/RemoveTagsFromResourceCommand.ts index 9981751a9b8ff..909046297aa1d 100644 --- a/clients/client-elasticache/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-elasticache/commands/RemoveTagsFromResourceCommand.ts @@ -29,6 +29,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/ResetCacheParameterGroupCommand.ts b/clients/client-elasticache/commands/ResetCacheParameterGroupCommand.ts index 80a951b7d63d4..e844b1b28b13b 100644 --- a/clients/client-elasticache/commands/ResetCacheParameterGroupCommand.ts +++ b/clients/client-elasticache/commands/ResetCacheParameterGroupCommand.ts @@ -31,6 +31,7 @@ export class ResetCacheParameterGroupCommand extends $Command< ResetCacheParameterGroupCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResetCacheParameterGroupCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/RevokeCacheSecurityGroupIngressCommand.ts b/clients/client-elasticache/commands/RevokeCacheSecurityGroupIngressCommand.ts index 6fb2e2eae639d..bde201ca05f10 100644 --- a/clients/client-elasticache/commands/RevokeCacheSecurityGroupIngressCommand.ts +++ b/clients/client-elasticache/commands/RevokeCacheSecurityGroupIngressCommand.ts @@ -30,6 +30,7 @@ export class RevokeCacheSecurityGroupIngressCommand extends $Command< RevokeCacheSecurityGroupIngressCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RevokeCacheSecurityGroupIngressCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/StartMigrationCommand.ts b/clients/client-elasticache/commands/StartMigrationCommand.ts index 935d0677cf529..3a3ce10a2f581 100644 --- a/clients/client-elasticache/commands/StartMigrationCommand.ts +++ b/clients/client-elasticache/commands/StartMigrationCommand.ts @@ -28,6 +28,7 @@ export class StartMigrationCommand extends $Command< StartMigrationCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartMigrationCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticache/commands/TestFailoverCommand.ts b/clients/client-elasticache/commands/TestFailoverCommand.ts index 3ab7e0edb4f77..1bffefb68bb35 100644 --- a/clients/client-elasticache/commands/TestFailoverCommand.ts +++ b/clients/client-elasticache/commands/TestFailoverCommand.ts @@ -87,6 +87,7 @@ export class TestFailoverCommand extends $Command< TestFailoverCommandOutput, ElastiCacheClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class TestFailoverCommand extends $Command< configuration: ElastiCacheClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/AcceptInboundCrossClusterSearchConnectionCommand.ts b/clients/client-elasticsearch-service/commands/AcceptInboundCrossClusterSearchConnectionCommand.ts index 00d8a9bdb1e8b..8ae9071294b78 100644 --- a/clients/client-elasticsearch-service/commands/AcceptInboundCrossClusterSearchConnectionCommand.ts +++ b/clients/client-elasticsearch-service/commands/AcceptInboundCrossClusterSearchConnectionCommand.ts @@ -36,6 +36,7 @@ export class AcceptInboundCrossClusterSearchConnectionCommand extends $Command< AcceptInboundCrossClusterSearchConnectionCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AcceptInboundCrossClusterSearchConnectionCommand extends $Command< AcceptInboundCrossClusterSearchConnectionCommandInput, AcceptInboundCrossClusterSearchConnectionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/AddTagsCommand.ts b/clients/client-elasticsearch-service/commands/AddTagsCommand.ts index 3d40cbd9a1468..a0778d53fcab5 100644 --- a/clients/client-elasticsearch-service/commands/AddTagsCommand.ts +++ b/clients/client-elasticsearch-service/commands/AddTagsCommand.ts @@ -33,6 +33,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AddTagsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/AssociatePackageCommand.ts b/clients/client-elasticsearch-service/commands/AssociatePackageCommand.ts index 336685aed71c1..f446430a409d1 100644 --- a/clients/client-elasticsearch-service/commands/AssociatePackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/AssociatePackageCommand.ts @@ -32,6 +32,7 @@ export class AssociatePackageCommand extends $Command< AssociatePackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociatePackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/CancelElasticsearchServiceSoftwareUpdateCommand.ts b/clients/client-elasticsearch-service/commands/CancelElasticsearchServiceSoftwareUpdateCommand.ts index b7cc2adbee8e4..27ef26b722d2c 100644 --- a/clients/client-elasticsearch-service/commands/CancelElasticsearchServiceSoftwareUpdateCommand.ts +++ b/clients/client-elasticsearch-service/commands/CancelElasticsearchServiceSoftwareUpdateCommand.ts @@ -36,6 +36,7 @@ export class CancelElasticsearchServiceSoftwareUpdateCommand extends $Command< CancelElasticsearchServiceSoftwareUpdateCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CancelElasticsearchServiceSoftwareUpdateCommand extends $Command< CancelElasticsearchServiceSoftwareUpdateCommandInput, CancelElasticsearchServiceSoftwareUpdateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/CreateElasticsearchDomainCommand.ts b/clients/client-elasticsearch-service/commands/CreateElasticsearchDomainCommand.ts index 47f8a93ff6626..68ccda979070c 100644 --- a/clients/client-elasticsearch-service/commands/CreateElasticsearchDomainCommand.ts +++ b/clients/client-elasticsearch-service/commands/CreateElasticsearchDomainCommand.ts @@ -33,6 +33,7 @@ export class CreateElasticsearchDomainCommand extends $Command< CreateElasticsearchDomainCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateElasticsearchDomainCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/CreateOutboundCrossClusterSearchConnectionCommand.ts b/clients/client-elasticsearch-service/commands/CreateOutboundCrossClusterSearchConnectionCommand.ts index 71f7d703f3204..085b7bc161a98 100644 --- a/clients/client-elasticsearch-service/commands/CreateOutboundCrossClusterSearchConnectionCommand.ts +++ b/clients/client-elasticsearch-service/commands/CreateOutboundCrossClusterSearchConnectionCommand.ts @@ -36,6 +36,7 @@ export class CreateOutboundCrossClusterSearchConnectionCommand extends $Command< CreateOutboundCrossClusterSearchConnectionCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateOutboundCrossClusterSearchConnectionCommand extends $Command< CreateOutboundCrossClusterSearchConnectionCommandInput, CreateOutboundCrossClusterSearchConnectionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/CreatePackageCommand.ts b/clients/client-elasticsearch-service/commands/CreatePackageCommand.ts index 50c49ff62a178..244fe49fdf74f 100644 --- a/clients/client-elasticsearch-service/commands/CreatePackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/CreatePackageCommand.ts @@ -32,6 +32,7 @@ export class CreatePackageCommand extends $Command< CreatePackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DeleteElasticsearchDomainCommand.ts b/clients/client-elasticsearch-service/commands/DeleteElasticsearchDomainCommand.ts index c841fe0b9f1df..30b906b32c4d7 100644 --- a/clients/client-elasticsearch-service/commands/DeleteElasticsearchDomainCommand.ts +++ b/clients/client-elasticsearch-service/commands/DeleteElasticsearchDomainCommand.ts @@ -32,6 +32,7 @@ export class DeleteElasticsearchDomainCommand extends $Command< DeleteElasticsearchDomainCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteElasticsearchDomainCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DeleteElasticsearchServiceRoleCommand.ts b/clients/client-elasticsearch-service/commands/DeleteElasticsearchServiceRoleCommand.ts index 5ff84bef021fe..f0de05c17f28d 100644 --- a/clients/client-elasticsearch-service/commands/DeleteElasticsearchServiceRoleCommand.ts +++ b/clients/client-elasticsearch-service/commands/DeleteElasticsearchServiceRoleCommand.ts @@ -31,6 +31,7 @@ export class DeleteElasticsearchServiceRoleCommand extends $Command< DeleteElasticsearchServiceRoleCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteElasticsearchServiceRoleCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DeleteInboundCrossClusterSearchConnectionCommand.ts b/clients/client-elasticsearch-service/commands/DeleteInboundCrossClusterSearchConnectionCommand.ts index a7c8ac3342b1d..a8cf6ea190859 100644 --- a/clients/client-elasticsearch-service/commands/DeleteInboundCrossClusterSearchConnectionCommand.ts +++ b/clients/client-elasticsearch-service/commands/DeleteInboundCrossClusterSearchConnectionCommand.ts @@ -36,6 +36,7 @@ export class DeleteInboundCrossClusterSearchConnectionCommand extends $Command< DeleteInboundCrossClusterSearchConnectionCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteInboundCrossClusterSearchConnectionCommand extends $Command< DeleteInboundCrossClusterSearchConnectionCommandInput, DeleteInboundCrossClusterSearchConnectionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DeleteOutboundCrossClusterSearchConnectionCommand.ts b/clients/client-elasticsearch-service/commands/DeleteOutboundCrossClusterSearchConnectionCommand.ts index ec5ed24e57b23..c85de47a40a77 100644 --- a/clients/client-elasticsearch-service/commands/DeleteOutboundCrossClusterSearchConnectionCommand.ts +++ b/clients/client-elasticsearch-service/commands/DeleteOutboundCrossClusterSearchConnectionCommand.ts @@ -36,6 +36,7 @@ export class DeleteOutboundCrossClusterSearchConnectionCommand extends $Command< DeleteOutboundCrossClusterSearchConnectionCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteOutboundCrossClusterSearchConnectionCommand extends $Command< DeleteOutboundCrossClusterSearchConnectionCommandInput, DeleteOutboundCrossClusterSearchConnectionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DeletePackageCommand.ts b/clients/client-elasticsearch-service/commands/DeletePackageCommand.ts index 9c8e37704d74e..7c3ea381c0173 100644 --- a/clients/client-elasticsearch-service/commands/DeletePackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/DeletePackageCommand.ts @@ -32,6 +32,7 @@ export class DeletePackageCommand extends $Command< DeletePackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeletePackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainCommand.ts b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainCommand.ts index e31c174f785c3..9453454b70314 100644 --- a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainCommand.ts @@ -32,6 +32,7 @@ export class DescribeElasticsearchDomainCommand extends $Command< DescribeElasticsearchDomainCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeElasticsearchDomainCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainConfigCommand.ts b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainConfigCommand.ts index 27d856225b56a..248b3c38e5437 100644 --- a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainConfigCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainConfigCommand.ts @@ -36,6 +36,7 @@ export class DescribeElasticsearchDomainConfigCommand extends $Command< DescribeElasticsearchDomainConfigCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeElasticsearchDomainConfigCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainsCommand.ts b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainsCommand.ts index 928bbf9f6c031..e4bd4e4de6028 100644 --- a/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainsCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeElasticsearchDomainsCommand.ts @@ -32,6 +32,7 @@ export class DescribeElasticsearchDomainsCommand extends $Command< DescribeElasticsearchDomainsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeElasticsearchDomainsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeElasticsearchInstanceTypeLimitsCommand.ts b/clients/client-elasticsearch-service/commands/DescribeElasticsearchInstanceTypeLimitsCommand.ts index 287df7af03350..e0142a0c9c49a 100644 --- a/clients/client-elasticsearch-service/commands/DescribeElasticsearchInstanceTypeLimitsCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeElasticsearchInstanceTypeLimitsCommand.ts @@ -43,6 +43,7 @@ export class DescribeElasticsearchInstanceTypeLimitsCommand extends $Command< DescribeElasticsearchInstanceTypeLimitsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DescribeElasticsearchInstanceTypeLimitsCommand extends $Command< DescribeElasticsearchInstanceTypeLimitsCommandInput, DescribeElasticsearchInstanceTypeLimitsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeInboundCrossClusterSearchConnectionsCommand.ts b/clients/client-elasticsearch-service/commands/DescribeInboundCrossClusterSearchConnectionsCommand.ts index c5b5a5a439e0b..8e7471479415c 100644 --- a/clients/client-elasticsearch-service/commands/DescribeInboundCrossClusterSearchConnectionsCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeInboundCrossClusterSearchConnectionsCommand.ts @@ -36,6 +36,7 @@ export class DescribeInboundCrossClusterSearchConnectionsCommand extends $Comman DescribeInboundCrossClusterSearchConnectionsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeInboundCrossClusterSearchConnectionsCommand extends $Comman DescribeInboundCrossClusterSearchConnectionsCommandInput, DescribeInboundCrossClusterSearchConnectionsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.ts b/clients/client-elasticsearch-service/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.ts index c574b5db9148a..5fa89d76ccec8 100644 --- a/clients/client-elasticsearch-service/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.ts @@ -36,6 +36,7 @@ export class DescribeOutboundCrossClusterSearchConnectionsCommand extends $Comma DescribeOutboundCrossClusterSearchConnectionsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeOutboundCrossClusterSearchConnectionsCommand extends $Comma DescribeOutboundCrossClusterSearchConnectionsCommandInput, DescribeOutboundCrossClusterSearchConnectionsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribePackagesCommand.ts b/clients/client-elasticsearch-service/commands/DescribePackagesCommand.ts index ab04a9054cea1..1944a7a11529b 100644 --- a/clients/client-elasticsearch-service/commands/DescribePackagesCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribePackagesCommand.ts @@ -32,6 +32,7 @@ export class DescribePackagesCommand extends $Command< DescribePackagesCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribePackagesCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.ts b/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.ts index 9518f7f920ede..68d5dcf1f9ffd 100644 --- a/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.ts @@ -36,6 +36,7 @@ export class DescribeReservedElasticsearchInstanceOfferingsCommand extends $Comm DescribeReservedElasticsearchInstanceOfferingsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeReservedElasticsearchInstanceOfferingsCommand extends $Comm DescribeReservedElasticsearchInstanceOfferingsCommandInput, DescribeReservedElasticsearchInstanceOfferingsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstancesCommand.ts b/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstancesCommand.ts index 808a4e0372ce1..db84bbb8b0c0f 100644 --- a/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstancesCommand.ts +++ b/clients/client-elasticsearch-service/commands/DescribeReservedElasticsearchInstancesCommand.ts @@ -36,6 +36,7 @@ export class DescribeReservedElasticsearchInstancesCommand extends $Command< DescribeReservedElasticsearchInstancesCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeReservedElasticsearchInstancesCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/DissociatePackageCommand.ts b/clients/client-elasticsearch-service/commands/DissociatePackageCommand.ts index 921dcccf2d409..3b3ff19c131fd 100644 --- a/clients/client-elasticsearch-service/commands/DissociatePackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/DissociatePackageCommand.ts @@ -32,6 +32,7 @@ export class DissociatePackageCommand extends $Command< DissociatePackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DissociatePackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/GetCompatibleElasticsearchVersionsCommand.ts b/clients/client-elasticsearch-service/commands/GetCompatibleElasticsearchVersionsCommand.ts index 7bd1a171b19f8..99cd4d5d5df17 100644 --- a/clients/client-elasticsearch-service/commands/GetCompatibleElasticsearchVersionsCommand.ts +++ b/clients/client-elasticsearch-service/commands/GetCompatibleElasticsearchVersionsCommand.ts @@ -43,6 +43,7 @@ export class GetCompatibleElasticsearchVersionsCommand extends $Command< GetCompatibleElasticsearchVersionsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class GetCompatibleElasticsearchVersionsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/GetPackageVersionHistoryCommand.ts b/clients/client-elasticsearch-service/commands/GetPackageVersionHistoryCommand.ts index 7c9cef37c7b8b..256730ef44510 100644 --- a/clients/client-elasticsearch-service/commands/GetPackageVersionHistoryCommand.ts +++ b/clients/client-elasticsearch-service/commands/GetPackageVersionHistoryCommand.ts @@ -32,6 +32,7 @@ export class GetPackageVersionHistoryCommand extends $Command< GetPackageVersionHistoryCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetPackageVersionHistoryCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/GetUpgradeHistoryCommand.ts b/clients/client-elasticsearch-service/commands/GetUpgradeHistoryCommand.ts index 6d6797f8f6c87..41ead172b6f9f 100644 --- a/clients/client-elasticsearch-service/commands/GetUpgradeHistoryCommand.ts +++ b/clients/client-elasticsearch-service/commands/GetUpgradeHistoryCommand.ts @@ -32,6 +32,7 @@ export class GetUpgradeHistoryCommand extends $Command< GetUpgradeHistoryCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetUpgradeHistoryCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/GetUpgradeStatusCommand.ts b/clients/client-elasticsearch-service/commands/GetUpgradeStatusCommand.ts index be8b726905275..ea80d1600e5bb 100644 --- a/clients/client-elasticsearch-service/commands/GetUpgradeStatusCommand.ts +++ b/clients/client-elasticsearch-service/commands/GetUpgradeStatusCommand.ts @@ -32,6 +32,7 @@ export class GetUpgradeStatusCommand extends $Command< GetUpgradeStatusCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetUpgradeStatusCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListDomainNamesCommand.ts b/clients/client-elasticsearch-service/commands/ListDomainNamesCommand.ts index 16fcbcdc57b21..8495f1268ca10 100644 --- a/clients/client-elasticsearch-service/commands/ListDomainNamesCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListDomainNamesCommand.ts @@ -32,6 +32,7 @@ export class ListDomainNamesCommand extends $Command< ListDomainNamesCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDomainNamesCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListDomainsForPackageCommand.ts b/clients/client-elasticsearch-service/commands/ListDomainsForPackageCommand.ts index b168a2db4bd69..fc2f1a58bda8a 100644 --- a/clients/client-elasticsearch-service/commands/ListDomainsForPackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListDomainsForPackageCommand.ts @@ -32,6 +32,7 @@ export class ListDomainsForPackageCommand extends $Command< ListDomainsForPackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDomainsForPackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListElasticsearchInstanceTypesCommand.ts b/clients/client-elasticsearch-service/commands/ListElasticsearchInstanceTypesCommand.ts index 2c0cc298de13e..da90a7e11ca2a 100644 --- a/clients/client-elasticsearch-service/commands/ListElasticsearchInstanceTypesCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListElasticsearchInstanceTypesCommand.ts @@ -32,6 +32,7 @@ export class ListElasticsearchInstanceTypesCommand extends $Command< ListElasticsearchInstanceTypesCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListElasticsearchInstanceTypesCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListElasticsearchVersionsCommand.ts b/clients/client-elasticsearch-service/commands/ListElasticsearchVersionsCommand.ts index 1cd489f611d5f..aa0c618918caf 100644 --- a/clients/client-elasticsearch-service/commands/ListElasticsearchVersionsCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListElasticsearchVersionsCommand.ts @@ -32,6 +32,7 @@ export class ListElasticsearchVersionsCommand extends $Command< ListElasticsearchVersionsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListElasticsearchVersionsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListPackagesForDomainCommand.ts b/clients/client-elasticsearch-service/commands/ListPackagesForDomainCommand.ts index 6f7b51337c774..3ddd436a72000 100644 --- a/clients/client-elasticsearch-service/commands/ListPackagesForDomainCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListPackagesForDomainCommand.ts @@ -32,6 +32,7 @@ export class ListPackagesForDomainCommand extends $Command< ListPackagesForDomainCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPackagesForDomainCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/ListTagsCommand.ts b/clients/client-elasticsearch-service/commands/ListTagsCommand.ts index 3d24674a08096..c53e7eed989c8 100644 --- a/clients/client-elasticsearch-service/commands/ListTagsCommand.ts +++ b/clients/client-elasticsearch-service/commands/ListTagsCommand.ts @@ -32,6 +32,7 @@ export class ListTagsCommand extends $Command< ListTagsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.ts b/clients/client-elasticsearch-service/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.ts index e0ac30015be66..a5a78f0a71ae0 100644 --- a/clients/client-elasticsearch-service/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.ts +++ b/clients/client-elasticsearch-service/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.ts @@ -36,6 +36,7 @@ export class PurchaseReservedElasticsearchInstanceOfferingCommand extends $Comma PurchaseReservedElasticsearchInstanceOfferingCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class PurchaseReservedElasticsearchInstanceOfferingCommand extends $Comma PurchaseReservedElasticsearchInstanceOfferingCommandInput, PurchaseReservedElasticsearchInstanceOfferingCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/RejectInboundCrossClusterSearchConnectionCommand.ts b/clients/client-elasticsearch-service/commands/RejectInboundCrossClusterSearchConnectionCommand.ts index f572fde3d14f4..3acee3ac316cd 100644 --- a/clients/client-elasticsearch-service/commands/RejectInboundCrossClusterSearchConnectionCommand.ts +++ b/clients/client-elasticsearch-service/commands/RejectInboundCrossClusterSearchConnectionCommand.ts @@ -36,6 +36,7 @@ export class RejectInboundCrossClusterSearchConnectionCommand extends $Command< RejectInboundCrossClusterSearchConnectionCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class RejectInboundCrossClusterSearchConnectionCommand extends $Command< RejectInboundCrossClusterSearchConnectionCommandInput, RejectInboundCrossClusterSearchConnectionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/RemoveTagsCommand.ts b/clients/client-elasticsearch-service/commands/RemoveTagsCommand.ts index 78f94099b5e68..fc6cbf1542afa 100644 --- a/clients/client-elasticsearch-service/commands/RemoveTagsCommand.ts +++ b/clients/client-elasticsearch-service/commands/RemoveTagsCommand.ts @@ -32,6 +32,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveTagsCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/StartElasticsearchServiceSoftwareUpdateCommand.ts b/clients/client-elasticsearch-service/commands/StartElasticsearchServiceSoftwareUpdateCommand.ts index 13ba0382e4cda..98cc5a1d85a5c 100644 --- a/clients/client-elasticsearch-service/commands/StartElasticsearchServiceSoftwareUpdateCommand.ts +++ b/clients/client-elasticsearch-service/commands/StartElasticsearchServiceSoftwareUpdateCommand.ts @@ -36,6 +36,7 @@ export class StartElasticsearchServiceSoftwareUpdateCommand extends $Command< StartElasticsearchServiceSoftwareUpdateCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class StartElasticsearchServiceSoftwareUpdateCommand extends $Command< StartElasticsearchServiceSoftwareUpdateCommandInput, StartElasticsearchServiceSoftwareUpdateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/UpdateElasticsearchDomainConfigCommand.ts b/clients/client-elasticsearch-service/commands/UpdateElasticsearchDomainConfigCommand.ts index cc4611b5013fb..6aea22fcd9ff6 100644 --- a/clients/client-elasticsearch-service/commands/UpdateElasticsearchDomainConfigCommand.ts +++ b/clients/client-elasticsearch-service/commands/UpdateElasticsearchDomainConfigCommand.ts @@ -32,6 +32,7 @@ export class UpdateElasticsearchDomainConfigCommand extends $Command< UpdateElasticsearchDomainConfigCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateElasticsearchDomainConfigCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/UpdatePackageCommand.ts b/clients/client-elasticsearch-service/commands/UpdatePackageCommand.ts index 1bbfec8dce51e..e704cfbb14e5d 100644 --- a/clients/client-elasticsearch-service/commands/UpdatePackageCommand.ts +++ b/clients/client-elasticsearch-service/commands/UpdatePackageCommand.ts @@ -32,6 +32,7 @@ export class UpdatePackageCommand extends $Command< UpdatePackageCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdatePackageCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-elasticsearch-service/commands/UpgradeElasticsearchDomainCommand.ts b/clients/client-elasticsearch-service/commands/UpgradeElasticsearchDomainCommand.ts index c2d5071977b10..fc2a9ed70d463 100644 --- a/clients/client-elasticsearch-service/commands/UpgradeElasticsearchDomainCommand.ts +++ b/clients/client-elasticsearch-service/commands/UpgradeElasticsearchDomainCommand.ts @@ -32,6 +32,7 @@ export class UpgradeElasticsearchDomainCommand extends $Command< UpgradeElasticsearchDomainCommandOutput, ElasticsearchServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpgradeElasticsearchDomainCommand extends $Command< configuration: ElasticsearchServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/CancelJobRunCommand.ts b/clients/client-emr-containers/commands/CancelJobRunCommand.ts index 1f21bb5ce53f4..84fc62ce0f8f8 100644 --- a/clients/client-emr-containers/commands/CancelJobRunCommand.ts +++ b/clients/client-emr-containers/commands/CancelJobRunCommand.ts @@ -28,6 +28,7 @@ export class CancelJobRunCommand extends $Command< CancelJobRunCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelJobRunCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/CreateManagedEndpointCommand.ts b/clients/client-emr-containers/commands/CreateManagedEndpointCommand.ts index b5161eeb23b90..f0f9b31203099 100644 --- a/clients/client-emr-containers/commands/CreateManagedEndpointCommand.ts +++ b/clients/client-emr-containers/commands/CreateManagedEndpointCommand.ts @@ -28,6 +28,7 @@ export class CreateManagedEndpointCommand extends $Command< CreateManagedEndpointCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateManagedEndpointCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/CreateVirtualClusterCommand.ts b/clients/client-emr-containers/commands/CreateVirtualClusterCommand.ts index 884dbae8c0a1f..f1bcf4f578bc4 100644 --- a/clients/client-emr-containers/commands/CreateVirtualClusterCommand.ts +++ b/clients/client-emr-containers/commands/CreateVirtualClusterCommand.ts @@ -28,6 +28,7 @@ export class CreateVirtualClusterCommand extends $Command< CreateVirtualClusterCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateVirtualClusterCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/DeleteManagedEndpointCommand.ts b/clients/client-emr-containers/commands/DeleteManagedEndpointCommand.ts index 0bd1da1988ff8..c83bcef0b071f 100644 --- a/clients/client-emr-containers/commands/DeleteManagedEndpointCommand.ts +++ b/clients/client-emr-containers/commands/DeleteManagedEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteManagedEndpointCommand extends $Command< DeleteManagedEndpointCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteManagedEndpointCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/DeleteVirtualClusterCommand.ts b/clients/client-emr-containers/commands/DeleteVirtualClusterCommand.ts index 66b29186130bb..3e9f7b843eddc 100644 --- a/clients/client-emr-containers/commands/DeleteVirtualClusterCommand.ts +++ b/clients/client-emr-containers/commands/DeleteVirtualClusterCommand.ts @@ -28,6 +28,7 @@ export class DeleteVirtualClusterCommand extends $Command< DeleteVirtualClusterCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVirtualClusterCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/DescribeJobRunCommand.ts b/clients/client-emr-containers/commands/DescribeJobRunCommand.ts index 56e4b71e6a486..340ed440c638d 100644 --- a/clients/client-emr-containers/commands/DescribeJobRunCommand.ts +++ b/clients/client-emr-containers/commands/DescribeJobRunCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobRunCommand extends $Command< DescribeJobRunCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobRunCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/DescribeManagedEndpointCommand.ts b/clients/client-emr-containers/commands/DescribeManagedEndpointCommand.ts index aa9d2e38473fe..e7f8a591b4ae1 100644 --- a/clients/client-emr-containers/commands/DescribeManagedEndpointCommand.ts +++ b/clients/client-emr-containers/commands/DescribeManagedEndpointCommand.ts @@ -28,6 +28,7 @@ export class DescribeManagedEndpointCommand extends $Command< DescribeManagedEndpointCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeManagedEndpointCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/DescribeVirtualClusterCommand.ts b/clients/client-emr-containers/commands/DescribeVirtualClusterCommand.ts index b8e67adee235e..693f32c2ab624 100644 --- a/clients/client-emr-containers/commands/DescribeVirtualClusterCommand.ts +++ b/clients/client-emr-containers/commands/DescribeVirtualClusterCommand.ts @@ -28,6 +28,7 @@ export class DescribeVirtualClusterCommand extends $Command< DescribeVirtualClusterCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeVirtualClusterCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/ListJobRunsCommand.ts b/clients/client-emr-containers/commands/ListJobRunsCommand.ts index 793309183b839..d709b98cf6ec3 100644 --- a/clients/client-emr-containers/commands/ListJobRunsCommand.ts +++ b/clients/client-emr-containers/commands/ListJobRunsCommand.ts @@ -28,6 +28,7 @@ export class ListJobRunsCommand extends $Command< ListJobRunsCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobRunsCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/ListManagedEndpointsCommand.ts b/clients/client-emr-containers/commands/ListManagedEndpointsCommand.ts index a590fd45f8aad..10c563164c7c2 100644 --- a/clients/client-emr-containers/commands/ListManagedEndpointsCommand.ts +++ b/clients/client-emr-containers/commands/ListManagedEndpointsCommand.ts @@ -28,6 +28,7 @@ export class ListManagedEndpointsCommand extends $Command< ListManagedEndpointsCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListManagedEndpointsCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/ListTagsForResourceCommand.ts b/clients/client-emr-containers/commands/ListTagsForResourceCommand.ts index 4865beb7c6db7..ccc1ba6a699e7 100644 --- a/clients/client-emr-containers/commands/ListTagsForResourceCommand.ts +++ b/clients/client-emr-containers/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/ListVirtualClustersCommand.ts b/clients/client-emr-containers/commands/ListVirtualClustersCommand.ts index 46edb61df46a5..314ca55b4e418 100644 --- a/clients/client-emr-containers/commands/ListVirtualClustersCommand.ts +++ b/clients/client-emr-containers/commands/ListVirtualClustersCommand.ts @@ -28,6 +28,7 @@ export class ListVirtualClustersCommand extends $Command< ListVirtualClustersCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVirtualClustersCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/StartJobRunCommand.ts b/clients/client-emr-containers/commands/StartJobRunCommand.ts index 469b4eb0b4841..ce2544fc6e57d 100644 --- a/clients/client-emr-containers/commands/StartJobRunCommand.ts +++ b/clients/client-emr-containers/commands/StartJobRunCommand.ts @@ -28,6 +28,7 @@ export class StartJobRunCommand extends $Command< StartJobRunCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartJobRunCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/TagResourceCommand.ts b/clients/client-emr-containers/commands/TagResourceCommand.ts index c3c71e8d370e7..576e1063f5f7f 100644 --- a/clients/client-emr-containers/commands/TagResourceCommand.ts +++ b/clients/client-emr-containers/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr-containers/commands/UntagResourceCommand.ts b/clients/client-emr-containers/commands/UntagResourceCommand.ts index 4066caee151eb..a8d39d3576235 100644 --- a/clients/client-emr-containers/commands/UntagResourceCommand.ts +++ b/clients/client-emr-containers/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, EMRContainersClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/AddInstanceFleetCommand.ts b/clients/client-emr/commands/AddInstanceFleetCommand.ts index 9ae52575d145c..7d01a4c9ba7fd 100644 --- a/clients/client-emr/commands/AddInstanceFleetCommand.ts +++ b/clients/client-emr/commands/AddInstanceFleetCommand.ts @@ -32,6 +32,7 @@ export class AddInstanceFleetCommand extends $Command< AddInstanceFleetCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AddInstanceFleetCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/AddInstanceGroupsCommand.ts b/clients/client-emr/commands/AddInstanceGroupsCommand.ts index 8652ed37d7dd0..5176b24b0261f 100644 --- a/clients/client-emr/commands/AddInstanceGroupsCommand.ts +++ b/clients/client-emr/commands/AddInstanceGroupsCommand.ts @@ -28,6 +28,7 @@ export class AddInstanceGroupsCommand extends $Command< AddInstanceGroupsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddInstanceGroupsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/AddJobFlowStepsCommand.ts b/clients/client-emr/commands/AddJobFlowStepsCommand.ts index c99fc14e4a060..f653d05d8619c 100644 --- a/clients/client-emr/commands/AddJobFlowStepsCommand.ts +++ b/clients/client-emr/commands/AddJobFlowStepsCommand.ts @@ -44,6 +44,7 @@ export class AddJobFlowStepsCommand extends $Command< AddJobFlowStepsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class AddJobFlowStepsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/AddTagsCommand.ts b/clients/client-emr/commands/AddTagsCommand.ts index c450a68d4597d..f7d9ce6254c6a 100644 --- a/clients/client-emr/commands/AddTagsCommand.ts +++ b/clients/client-emr/commands/AddTagsCommand.ts @@ -23,6 +23,7 @@ export type AddTagsCommandOutput = AddTagsOutput & __MetadataBearer; * For more information, see Tag Clusters.

*/ export class AddTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class AddTagsCommand 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-emr/commands/CancelStepsCommand.ts b/clients/client-emr/commands/CancelStepsCommand.ts index 1f11ee22a67d9..73e781b4243f6 100644 --- a/clients/client-emr/commands/CancelStepsCommand.ts +++ b/clients/client-emr/commands/CancelStepsCommand.ts @@ -32,6 +32,7 @@ export class CancelStepsCommand extends $Command< CancelStepsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelStepsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/CreateSecurityConfigurationCommand.ts b/clients/client-emr/commands/CreateSecurityConfigurationCommand.ts index a32aaf2f3d0dc..04e40c67583b8 100644 --- a/clients/client-emr/commands/CreateSecurityConfigurationCommand.ts +++ b/clients/client-emr/commands/CreateSecurityConfigurationCommand.ts @@ -29,6 +29,7 @@ export class CreateSecurityConfigurationCommand extends $Command< CreateSecurityConfigurationCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateSecurityConfigurationCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/CreateStudioCommand.ts b/clients/client-emr/commands/CreateStudioCommand.ts index b9d7e20dbd7fc..46bd02588e3ef 100644 --- a/clients/client-emr/commands/CreateStudioCommand.ts +++ b/clients/client-emr/commands/CreateStudioCommand.ts @@ -32,6 +32,7 @@ export class CreateStudioCommand extends $Command< CreateStudioCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateStudioCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/CreateStudioSessionMappingCommand.ts b/clients/client-emr/commands/CreateStudioSessionMappingCommand.ts index c5e87f78ac53a..e5e39c5360eff 100644 --- a/clients/client-emr/commands/CreateStudioSessionMappingCommand.ts +++ b/clients/client-emr/commands/CreateStudioSessionMappingCommand.ts @@ -33,6 +33,7 @@ export class CreateStudioSessionMappingCommand extends $Command< CreateStudioSessionMappingCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateStudioSessionMappingCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DeleteSecurityConfigurationCommand.ts b/clients/client-emr/commands/DeleteSecurityConfigurationCommand.ts index 60b1e54786a70..4a15f54931a80 100644 --- a/clients/client-emr/commands/DeleteSecurityConfigurationCommand.ts +++ b/clients/client-emr/commands/DeleteSecurityConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteSecurityConfigurationCommand extends $Command< DeleteSecurityConfigurationCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSecurityConfigurationCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DeleteStudioCommand.ts b/clients/client-emr/commands/DeleteStudioCommand.ts index 51770e54ba242..cbbf285c2672e 100644 --- a/clients/client-emr/commands/DeleteStudioCommand.ts +++ b/clients/client-emr/commands/DeleteStudioCommand.ts @@ -32,6 +32,7 @@ export class DeleteStudioCommand extends $Command< DeleteStudioCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteStudioCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DeleteStudioSessionMappingCommand.ts b/clients/client-emr/commands/DeleteStudioSessionMappingCommand.ts index d2f1e9ad0724a..fde386e62e2ba 100644 --- a/clients/client-emr/commands/DeleteStudioSessionMappingCommand.ts +++ b/clients/client-emr/commands/DeleteStudioSessionMappingCommand.ts @@ -32,6 +32,7 @@ export class DeleteStudioSessionMappingCommand extends $Command< DeleteStudioSessionMappingCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteStudioSessionMappingCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeClusterCommand.ts b/clients/client-emr/commands/DescribeClusterCommand.ts index 61e95ff2a247a..1d0a18bdd3a2f 100644 --- a/clients/client-emr/commands/DescribeClusterCommand.ts +++ b/clients/client-emr/commands/DescribeClusterCommand.ts @@ -29,6 +29,7 @@ export class DescribeClusterCommand extends $Command< DescribeClusterCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeClusterCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeJobFlowsCommand.ts b/clients/client-emr/commands/DescribeJobFlowsCommand.ts index b27dccc078bee..96c151c0d2aeb 100644 --- a/clients/client-emr/commands/DescribeJobFlowsCommand.ts +++ b/clients/client-emr/commands/DescribeJobFlowsCommand.ts @@ -48,6 +48,7 @@ export class DescribeJobFlowsCommand extends $Command< DescribeJobFlowsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DescribeJobFlowsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeNotebookExecutionCommand.ts b/clients/client-emr/commands/DescribeNotebookExecutionCommand.ts index dcf577cc64de9..76f890624b53d 100644 --- a/clients/client-emr/commands/DescribeNotebookExecutionCommand.ts +++ b/clients/client-emr/commands/DescribeNotebookExecutionCommand.ts @@ -28,6 +28,7 @@ export class DescribeNotebookExecutionCommand extends $Command< DescribeNotebookExecutionCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNotebookExecutionCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeSecurityConfigurationCommand.ts b/clients/client-emr/commands/DescribeSecurityConfigurationCommand.ts index 2698f8eb86bf0..9b4a57b657c6e 100644 --- a/clients/client-emr/commands/DescribeSecurityConfigurationCommand.ts +++ b/clients/client-emr/commands/DescribeSecurityConfigurationCommand.ts @@ -29,6 +29,7 @@ export class DescribeSecurityConfigurationCommand extends $Command< DescribeSecurityConfigurationCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSecurityConfigurationCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeStepCommand.ts b/clients/client-emr/commands/DescribeStepCommand.ts index 4e5c98e74bb28..591c8139e3125 100644 --- a/clients/client-emr/commands/DescribeStepCommand.ts +++ b/clients/client-emr/commands/DescribeStepCommand.ts @@ -28,6 +28,7 @@ export class DescribeStepCommand extends $Command< DescribeStepCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStepCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/DescribeStudioCommand.ts b/clients/client-emr/commands/DescribeStudioCommand.ts index b1c5ab676413b..93ee670945d04 100644 --- a/clients/client-emr/commands/DescribeStudioCommand.ts +++ b/clients/client-emr/commands/DescribeStudioCommand.ts @@ -33,6 +33,7 @@ export class DescribeStudioCommand extends $Command< DescribeStudioCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeStudioCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/GetBlockPublicAccessConfigurationCommand.ts b/clients/client-emr/commands/GetBlockPublicAccessConfigurationCommand.ts index a39df094e1144..33faf27646069 100644 --- a/clients/client-emr/commands/GetBlockPublicAccessConfigurationCommand.ts +++ b/clients/client-emr/commands/GetBlockPublicAccessConfigurationCommand.ts @@ -31,6 +31,7 @@ export class GetBlockPublicAccessConfigurationCommand extends $Command< GetBlockPublicAccessConfigurationCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetBlockPublicAccessConfigurationCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/GetManagedScalingPolicyCommand.ts b/clients/client-emr/commands/GetManagedScalingPolicyCommand.ts index f6dbfb872fe16..7cc0b68a3a20a 100644 --- a/clients/client-emr/commands/GetManagedScalingPolicyCommand.ts +++ b/clients/client-emr/commands/GetManagedScalingPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetManagedScalingPolicyCommand extends $Command< GetManagedScalingPolicyCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetManagedScalingPolicyCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/GetStudioSessionMappingCommand.ts b/clients/client-emr/commands/GetStudioSessionMappingCommand.ts index cca9c38f3b686..f4a9319224b65 100644 --- a/clients/client-emr/commands/GetStudioSessionMappingCommand.ts +++ b/clients/client-emr/commands/GetStudioSessionMappingCommand.ts @@ -33,6 +33,7 @@ export class GetStudioSessionMappingCommand extends $Command< GetStudioSessionMappingCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetStudioSessionMappingCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListBootstrapActionsCommand.ts b/clients/client-emr/commands/ListBootstrapActionsCommand.ts index 217d59a0d47f8..5904496de4aa4 100644 --- a/clients/client-emr/commands/ListBootstrapActionsCommand.ts +++ b/clients/client-emr/commands/ListBootstrapActionsCommand.ts @@ -28,6 +28,7 @@ export class ListBootstrapActionsCommand extends $Command< ListBootstrapActionsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBootstrapActionsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListClustersCommand.ts b/clients/client-emr/commands/ListClustersCommand.ts index e722e5eb0fce1..293f30ed1bd5e 100644 --- a/clients/client-emr/commands/ListClustersCommand.ts +++ b/clients/client-emr/commands/ListClustersCommand.ts @@ -32,6 +32,7 @@ export class ListClustersCommand extends $Command< ListClustersCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListClustersCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListInstanceFleetsCommand.ts b/clients/client-emr/commands/ListInstanceFleetsCommand.ts index 5dc16c13bf86f..6bfca039c4f80 100644 --- a/clients/client-emr/commands/ListInstanceFleetsCommand.ts +++ b/clients/client-emr/commands/ListInstanceFleetsCommand.ts @@ -32,6 +32,7 @@ export class ListInstanceFleetsCommand extends $Command< ListInstanceFleetsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListInstanceFleetsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListInstanceGroupsCommand.ts b/clients/client-emr/commands/ListInstanceGroupsCommand.ts index c5512d184d3b4..5f49c649c4af6 100644 --- a/clients/client-emr/commands/ListInstanceGroupsCommand.ts +++ b/clients/client-emr/commands/ListInstanceGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListInstanceGroupsCommand extends $Command< ListInstanceGroupsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInstanceGroupsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListInstancesCommand.ts b/clients/client-emr/commands/ListInstancesCommand.ts index 27093a1664820..9bb025c4a2bc1 100644 --- a/clients/client-emr/commands/ListInstancesCommand.ts +++ b/clients/client-emr/commands/ListInstancesCommand.ts @@ -30,6 +30,7 @@ export class ListInstancesCommand extends $Command< ListInstancesCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListInstancesCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListNotebookExecutionsCommand.ts b/clients/client-emr/commands/ListNotebookExecutionsCommand.ts index 9497f1a57b69c..dccdb909e5663 100644 --- a/clients/client-emr/commands/ListNotebookExecutionsCommand.ts +++ b/clients/client-emr/commands/ListNotebookExecutionsCommand.ts @@ -31,6 +31,7 @@ export class ListNotebookExecutionsCommand extends $Command< ListNotebookExecutionsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListNotebookExecutionsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListSecurityConfigurationsCommand.ts b/clients/client-emr/commands/ListSecurityConfigurationsCommand.ts index 9603faadf5008..da365fb2b930a 100644 --- a/clients/client-emr/commands/ListSecurityConfigurationsCommand.ts +++ b/clients/client-emr/commands/ListSecurityConfigurationsCommand.ts @@ -31,6 +31,7 @@ export class ListSecurityConfigurationsCommand extends $Command< ListSecurityConfigurationsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListSecurityConfigurationsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListStepsCommand.ts b/clients/client-emr/commands/ListStepsCommand.ts index 159dfff10e239..bea5e0a9c7585 100644 --- a/clients/client-emr/commands/ListStepsCommand.ts +++ b/clients/client-emr/commands/ListStepsCommand.ts @@ -23,6 +23,7 @@ export type ListStepsCommandOutput = ListStepsOutput & __MetadataBearer; * specify a maximum of ten stepIDs.

*/ export class ListStepsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class ListStepsCommand 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-emr/commands/ListStudioSessionMappingsCommand.ts b/clients/client-emr/commands/ListStudioSessionMappingsCommand.ts index ea61821cbfeb5..90a5bffb2d40c 100644 --- a/clients/client-emr/commands/ListStudioSessionMappingsCommand.ts +++ b/clients/client-emr/commands/ListStudioSessionMappingsCommand.ts @@ -33,6 +33,7 @@ export class ListStudioSessionMappingsCommand extends $Command< ListStudioSessionMappingsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListStudioSessionMappingsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ListStudiosCommand.ts b/clients/client-emr/commands/ListStudiosCommand.ts index a5b3ce9f7de9f..c7b655e849d9c 100644 --- a/clients/client-emr/commands/ListStudiosCommand.ts +++ b/clients/client-emr/commands/ListStudiosCommand.ts @@ -33,6 +33,7 @@ export class ListStudiosCommand extends $Command< ListStudiosCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListStudiosCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ModifyClusterCommand.ts b/clients/client-emr/commands/ModifyClusterCommand.ts index 212cfa216efc5..ca449f601502d 100644 --- a/clients/client-emr/commands/ModifyClusterCommand.ts +++ b/clients/client-emr/commands/ModifyClusterCommand.ts @@ -29,6 +29,7 @@ export class ModifyClusterCommand extends $Command< ModifyClusterCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyClusterCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ModifyInstanceFleetCommand.ts b/clients/client-emr/commands/ModifyInstanceFleetCommand.ts index 5258c0cbaa36a..e7f04a85214c8 100644 --- a/clients/client-emr/commands/ModifyInstanceFleetCommand.ts +++ b/clients/client-emr/commands/ModifyInstanceFleetCommand.ts @@ -34,6 +34,7 @@ export class ModifyInstanceFleetCommand extends $Command< ModifyInstanceFleetCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ModifyInstanceFleetCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/ModifyInstanceGroupsCommand.ts b/clients/client-emr/commands/ModifyInstanceGroupsCommand.ts index b8a39c1cb5032..1fc39a6775890 100644 --- a/clients/client-emr/commands/ModifyInstanceGroupsCommand.ts +++ b/clients/client-emr/commands/ModifyInstanceGroupsCommand.ts @@ -30,6 +30,7 @@ export class ModifyInstanceGroupsCommand extends $Command< ModifyInstanceGroupsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyInstanceGroupsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/PutAutoScalingPolicyCommand.ts b/clients/client-emr/commands/PutAutoScalingPolicyCommand.ts index 73e4bebb50a32..90442e78f1a44 100644 --- a/clients/client-emr/commands/PutAutoScalingPolicyCommand.ts +++ b/clients/client-emr/commands/PutAutoScalingPolicyCommand.ts @@ -31,6 +31,7 @@ export class PutAutoScalingPolicyCommand extends $Command< PutAutoScalingPolicyCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutAutoScalingPolicyCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/PutBlockPublicAccessConfigurationCommand.ts b/clients/client-emr/commands/PutBlockPublicAccessConfigurationCommand.ts index c29a3605acf21..fd9ce8bf21b5d 100644 --- a/clients/client-emr/commands/PutBlockPublicAccessConfigurationCommand.ts +++ b/clients/client-emr/commands/PutBlockPublicAccessConfigurationCommand.ts @@ -31,6 +31,7 @@ export class PutBlockPublicAccessConfigurationCommand extends $Command< PutBlockPublicAccessConfigurationCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutBlockPublicAccessConfigurationCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/PutManagedScalingPolicyCommand.ts b/clients/client-emr/commands/PutManagedScalingPolicyCommand.ts index ba5e22fd1ba57..ed5969142071c 100644 --- a/clients/client-emr/commands/PutManagedScalingPolicyCommand.ts +++ b/clients/client-emr/commands/PutManagedScalingPolicyCommand.ts @@ -31,6 +31,7 @@ export class PutManagedScalingPolicyCommand extends $Command< PutManagedScalingPolicyCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PutManagedScalingPolicyCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/RemoveAutoScalingPolicyCommand.ts b/clients/client-emr/commands/RemoveAutoScalingPolicyCommand.ts index 384b6f83df067..f95edaf063124 100644 --- a/clients/client-emr/commands/RemoveAutoScalingPolicyCommand.ts +++ b/clients/client-emr/commands/RemoveAutoScalingPolicyCommand.ts @@ -29,6 +29,7 @@ export class RemoveAutoScalingPolicyCommand extends $Command< RemoveAutoScalingPolicyCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveAutoScalingPolicyCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/RemoveManagedScalingPolicyCommand.ts b/clients/client-emr/commands/RemoveManagedScalingPolicyCommand.ts index 172bbaf538a78..03566a8f7e105 100644 --- a/clients/client-emr/commands/RemoveManagedScalingPolicyCommand.ts +++ b/clients/client-emr/commands/RemoveManagedScalingPolicyCommand.ts @@ -28,6 +28,7 @@ export class RemoveManagedScalingPolicyCommand extends $Command< RemoveManagedScalingPolicyCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveManagedScalingPolicyCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/RemoveTagsCommand.ts b/clients/client-emr/commands/RemoveTagsCommand.ts index 02cff0b5c1939..c8bb36c7fc1d9 100644 --- a/clients/client-emr/commands/RemoveTagsCommand.ts +++ b/clients/client-emr/commands/RemoveTagsCommand.ts @@ -31,6 +31,7 @@ export class RemoveTagsCommand extends $Command< RemoveTagsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RemoveTagsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/RunJobFlowCommand.ts b/clients/client-emr/commands/RunJobFlowCommand.ts index 5a03fab12d246..e76252f6c4ac4 100644 --- a/clients/client-emr/commands/RunJobFlowCommand.ts +++ b/clients/client-emr/commands/RunJobFlowCommand.ts @@ -50,6 +50,7 @@ export class RunJobFlowCommand extends $Command< RunJobFlowCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class RunJobFlowCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/SetTerminationProtectionCommand.ts b/clients/client-emr/commands/SetTerminationProtectionCommand.ts index b42f70ffe5850..98a133afca5b8 100644 --- a/clients/client-emr/commands/SetTerminationProtectionCommand.ts +++ b/clients/client-emr/commands/SetTerminationProtectionCommand.ts @@ -42,6 +42,7 @@ export class SetTerminationProtectionCommand extends $Command< SetTerminationProtectionCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class SetTerminationProtectionCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/SetVisibleToAllUsersCommand.ts b/clients/client-emr/commands/SetVisibleToAllUsersCommand.ts index 7907aa73fcfbd..32a8c94967a98 100644 --- a/clients/client-emr/commands/SetVisibleToAllUsersCommand.ts +++ b/clients/client-emr/commands/SetVisibleToAllUsersCommand.ts @@ -36,6 +36,7 @@ export class SetVisibleToAllUsersCommand extends $Command< SetVisibleToAllUsersCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class SetVisibleToAllUsersCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/StartNotebookExecutionCommand.ts b/clients/client-emr/commands/StartNotebookExecutionCommand.ts index 87d497ff526d2..ce5d487cc3846 100644 --- a/clients/client-emr/commands/StartNotebookExecutionCommand.ts +++ b/clients/client-emr/commands/StartNotebookExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartNotebookExecutionCommand extends $Command< StartNotebookExecutionCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartNotebookExecutionCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/StopNotebookExecutionCommand.ts b/clients/client-emr/commands/StopNotebookExecutionCommand.ts index 093a6f9881c34..927149ab7683e 100644 --- a/clients/client-emr/commands/StopNotebookExecutionCommand.ts +++ b/clients/client-emr/commands/StopNotebookExecutionCommand.ts @@ -28,6 +28,7 @@ export class StopNotebookExecutionCommand extends $Command< StopNotebookExecutionCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopNotebookExecutionCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/TerminateJobFlowsCommand.ts b/clients/client-emr/commands/TerminateJobFlowsCommand.ts index 7cebde9158a2d..090d3fb108c3d 100644 --- a/clients/client-emr/commands/TerminateJobFlowsCommand.ts +++ b/clients/client-emr/commands/TerminateJobFlowsCommand.ts @@ -35,6 +35,7 @@ export class TerminateJobFlowsCommand extends $Command< TerminateJobFlowsCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class TerminateJobFlowsCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-emr/commands/UpdateStudioSessionMappingCommand.ts b/clients/client-emr/commands/UpdateStudioSessionMappingCommand.ts index 72b71c02a689b..731d7754b0125 100644 --- a/clients/client-emr/commands/UpdateStudioSessionMappingCommand.ts +++ b/clients/client-emr/commands/UpdateStudioSessionMappingCommand.ts @@ -33,6 +33,7 @@ export class UpdateStudioSessionMappingCommand extends $Command< UpdateStudioSessionMappingCommandOutput, EMRClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateStudioSessionMappingCommand extends $Command< configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ActivateEventSourceCommand.ts b/clients/client-eventbridge/commands/ActivateEventSourceCommand.ts index d4e6a0a571dc1..5be4e34cc7efd 100644 --- a/clients/client-eventbridge/commands/ActivateEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/ActivateEventSourceCommand.ts @@ -29,6 +29,7 @@ export class ActivateEventSourceCommand extends $Command< ActivateEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ActivateEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/CancelReplayCommand.ts b/clients/client-eventbridge/commands/CancelReplayCommand.ts index 567861ae8d9bd..f2e3c7e5f20b6 100644 --- a/clients/client-eventbridge/commands/CancelReplayCommand.ts +++ b/clients/client-eventbridge/commands/CancelReplayCommand.ts @@ -28,6 +28,7 @@ export class CancelReplayCommand extends $Command< CancelReplayCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelReplayCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/CreateArchiveCommand.ts b/clients/client-eventbridge/commands/CreateArchiveCommand.ts index 1705f29ee14cd..ad37cc7881761 100644 --- a/clients/client-eventbridge/commands/CreateArchiveCommand.ts +++ b/clients/client-eventbridge/commands/CreateArchiveCommand.ts @@ -30,6 +30,7 @@ export class CreateArchiveCommand extends $Command< CreateArchiveCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateArchiveCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/CreateEventBusCommand.ts b/clients/client-eventbridge/commands/CreateEventBusCommand.ts index 73e32690c4589..68a5916cf600b 100644 --- a/clients/client-eventbridge/commands/CreateEventBusCommand.ts +++ b/clients/client-eventbridge/commands/CreateEventBusCommand.ts @@ -30,6 +30,7 @@ export class CreateEventBusCommand extends $Command< CreateEventBusCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateEventBusCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/CreatePartnerEventSourceCommand.ts b/clients/client-eventbridge/commands/CreatePartnerEventSourceCommand.ts index ee7f8db145028..cfcd9bffb15da 100644 --- a/clients/client-eventbridge/commands/CreatePartnerEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/CreatePartnerEventSourceCommand.ts @@ -51,6 +51,7 @@ export class CreatePartnerEventSourceCommand extends $Command< CreatePartnerEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreatePartnerEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DeactivateEventSourceCommand.ts b/clients/client-eventbridge/commands/DeactivateEventSourceCommand.ts index bbd48db03e105..6994d578dadaf 100644 --- a/clients/client-eventbridge/commands/DeactivateEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/DeactivateEventSourceCommand.ts @@ -32,6 +32,7 @@ export class DeactivateEventSourceCommand extends $Command< DeactivateEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeactivateEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DeleteArchiveCommand.ts b/clients/client-eventbridge/commands/DeleteArchiveCommand.ts index b9ac2f5978ff9..0a4a072b18690 100644 --- a/clients/client-eventbridge/commands/DeleteArchiveCommand.ts +++ b/clients/client-eventbridge/commands/DeleteArchiveCommand.ts @@ -28,6 +28,7 @@ export class DeleteArchiveCommand extends $Command< DeleteArchiveCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteArchiveCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DeleteEventBusCommand.ts b/clients/client-eventbridge/commands/DeleteEventBusCommand.ts index e74baed381fae..bebe7f007f223 100644 --- a/clients/client-eventbridge/commands/DeleteEventBusCommand.ts +++ b/clients/client-eventbridge/commands/DeleteEventBusCommand.ts @@ -30,6 +30,7 @@ export class DeleteEventBusCommand extends $Command< DeleteEventBusCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEventBusCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DeletePartnerEventSourceCommand.ts b/clients/client-eventbridge/commands/DeletePartnerEventSourceCommand.ts index cb8bd602fa1b1..48b6fd53bcba3 100644 --- a/clients/client-eventbridge/commands/DeletePartnerEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/DeletePartnerEventSourceCommand.ts @@ -32,6 +32,7 @@ export class DeletePartnerEventSourceCommand extends $Command< DeletePartnerEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeletePartnerEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DeleteRuleCommand.ts b/clients/client-eventbridge/commands/DeleteRuleCommand.ts index be689a73b1ec3..3cce08754082d 100644 --- a/clients/client-eventbridge/commands/DeleteRuleCommand.ts +++ b/clients/client-eventbridge/commands/DeleteRuleCommand.ts @@ -37,6 +37,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribeArchiveCommand.ts b/clients/client-eventbridge/commands/DescribeArchiveCommand.ts index 5f54fa6d45ce7..5727351371dee 100644 --- a/clients/client-eventbridge/commands/DescribeArchiveCommand.ts +++ b/clients/client-eventbridge/commands/DescribeArchiveCommand.ts @@ -28,6 +28,7 @@ export class DescribeArchiveCommand extends $Command< DescribeArchiveCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeArchiveCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribeEventBusCommand.ts b/clients/client-eventbridge/commands/DescribeEventBusCommand.ts index e6b5da74d77a6..0dc612602e979 100644 --- a/clients/client-eventbridge/commands/DescribeEventBusCommand.ts +++ b/clients/client-eventbridge/commands/DescribeEventBusCommand.ts @@ -34,6 +34,7 @@ export class DescribeEventBusCommand extends $Command< DescribeEventBusCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeEventBusCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribeEventSourceCommand.ts b/clients/client-eventbridge/commands/DescribeEventSourceCommand.ts index ea0b7177158e8..a6ecb38ea44fb 100644 --- a/clients/client-eventbridge/commands/DescribeEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/DescribeEventSourceCommand.ts @@ -29,6 +29,7 @@ export class DescribeEventSourceCommand extends $Command< DescribeEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribePartnerEventSourceCommand.ts b/clients/client-eventbridge/commands/DescribePartnerEventSourceCommand.ts index 6d150dcd9b5fb..83f6f0f878158 100644 --- a/clients/client-eventbridge/commands/DescribePartnerEventSourceCommand.ts +++ b/clients/client-eventbridge/commands/DescribePartnerEventSourceCommand.ts @@ -31,6 +31,7 @@ export class DescribePartnerEventSourceCommand extends $Command< DescribePartnerEventSourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribePartnerEventSourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribeReplayCommand.ts b/clients/client-eventbridge/commands/DescribeReplayCommand.ts index 4eb76f462e21f..d353d2d52322c 100644 --- a/clients/client-eventbridge/commands/DescribeReplayCommand.ts +++ b/clients/client-eventbridge/commands/DescribeReplayCommand.ts @@ -36,6 +36,7 @@ export class DescribeReplayCommand extends $Command< DescribeReplayCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeReplayCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DescribeRuleCommand.ts b/clients/client-eventbridge/commands/DescribeRuleCommand.ts index 3f7554c8299af..3c124962a927f 100644 --- a/clients/client-eventbridge/commands/DescribeRuleCommand.ts +++ b/clients/client-eventbridge/commands/DescribeRuleCommand.ts @@ -30,6 +30,7 @@ export class DescribeRuleCommand extends $Command< DescribeRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/DisableRuleCommand.ts b/clients/client-eventbridge/commands/DisableRuleCommand.ts index 4c604396d4dad..66994fd7d2f52 100644 --- a/clients/client-eventbridge/commands/DisableRuleCommand.ts +++ b/clients/client-eventbridge/commands/DisableRuleCommand.ts @@ -32,6 +32,7 @@ export class DisableRuleCommand extends $Command< DisableRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisableRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/EnableRuleCommand.ts b/clients/client-eventbridge/commands/EnableRuleCommand.ts index 79e507e7d12a0..dc14d1be9d255 100644 --- a/clients/client-eventbridge/commands/EnableRuleCommand.ts +++ b/clients/client-eventbridge/commands/EnableRuleCommand.ts @@ -32,6 +32,7 @@ export class EnableRuleCommand extends $Command< EnableRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class EnableRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListArchivesCommand.ts b/clients/client-eventbridge/commands/ListArchivesCommand.ts index 2ddc3075c61ac..afe351f378434 100644 --- a/clients/client-eventbridge/commands/ListArchivesCommand.ts +++ b/clients/client-eventbridge/commands/ListArchivesCommand.ts @@ -29,6 +29,7 @@ export class ListArchivesCommand extends $Command< ListArchivesCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListArchivesCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListEventBusesCommand.ts b/clients/client-eventbridge/commands/ListEventBusesCommand.ts index 0a20b11a42d20..0d088c099dbb7 100644 --- a/clients/client-eventbridge/commands/ListEventBusesCommand.ts +++ b/clients/client-eventbridge/commands/ListEventBusesCommand.ts @@ -29,6 +29,7 @@ export class ListEventBusesCommand extends $Command< ListEventBusesCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventBusesCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListEventSourcesCommand.ts b/clients/client-eventbridge/commands/ListEventSourcesCommand.ts index ee4c71e2ac19e..d64900596d5ba 100644 --- a/clients/client-eventbridge/commands/ListEventSourcesCommand.ts +++ b/clients/client-eventbridge/commands/ListEventSourcesCommand.ts @@ -29,6 +29,7 @@ export class ListEventSourcesCommand extends $Command< ListEventSourcesCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventSourcesCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListPartnerEventSourceAccountsCommand.ts b/clients/client-eventbridge/commands/ListPartnerEventSourceAccountsCommand.ts index 2c8dee33ba266..80d4381d09f53 100644 --- a/clients/client-eventbridge/commands/ListPartnerEventSourceAccountsCommand.ts +++ b/clients/client-eventbridge/commands/ListPartnerEventSourceAccountsCommand.ts @@ -30,6 +30,7 @@ export class ListPartnerEventSourceAccountsCommand extends $Command< ListPartnerEventSourceAccountsCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPartnerEventSourceAccountsCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListPartnerEventSourcesCommand.ts b/clients/client-eventbridge/commands/ListPartnerEventSourcesCommand.ts index 8a5f5e20ebd51..662d314a23b70 100644 --- a/clients/client-eventbridge/commands/ListPartnerEventSourcesCommand.ts +++ b/clients/client-eventbridge/commands/ListPartnerEventSourcesCommand.ts @@ -29,6 +29,7 @@ export class ListPartnerEventSourcesCommand extends $Command< ListPartnerEventSourcesCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPartnerEventSourcesCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListReplaysCommand.ts b/clients/client-eventbridge/commands/ListReplaysCommand.ts index 54f6e1a34b7b5..26f225137dba2 100644 --- a/clients/client-eventbridge/commands/ListReplaysCommand.ts +++ b/clients/client-eventbridge/commands/ListReplaysCommand.ts @@ -29,6 +29,7 @@ export class ListReplaysCommand extends $Command< ListReplaysCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListReplaysCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListRuleNamesByTargetCommand.ts b/clients/client-eventbridge/commands/ListRuleNamesByTargetCommand.ts index 046a48f91d6ec..71bd1556265ca 100644 --- a/clients/client-eventbridge/commands/ListRuleNamesByTargetCommand.ts +++ b/clients/client-eventbridge/commands/ListRuleNamesByTargetCommand.ts @@ -29,6 +29,7 @@ export class ListRuleNamesByTargetCommand extends $Command< ListRuleNamesByTargetCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRuleNamesByTargetCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListRulesCommand.ts b/clients/client-eventbridge/commands/ListRulesCommand.ts index b8baeca2f9908..d06ebe7069f58 100644 --- a/clients/client-eventbridge/commands/ListRulesCommand.ts +++ b/clients/client-eventbridge/commands/ListRulesCommand.ts @@ -29,6 +29,7 @@ export class ListRulesCommand extends $Command< ListRulesCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRulesCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListTagsForResourceCommand.ts b/clients/client-eventbridge/commands/ListTagsForResourceCommand.ts index 28bd8f4e169ea..6f0a6c45ca067 100644 --- a/clients/client-eventbridge/commands/ListTagsForResourceCommand.ts +++ b/clients/client-eventbridge/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/ListTargetsByRuleCommand.ts b/clients/client-eventbridge/commands/ListTargetsByRuleCommand.ts index d632666793f94..8f05cad1e1c47 100644 --- a/clients/client-eventbridge/commands/ListTargetsByRuleCommand.ts +++ b/clients/client-eventbridge/commands/ListTargetsByRuleCommand.ts @@ -28,6 +28,7 @@ export class ListTargetsByRuleCommand extends $Command< ListTargetsByRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTargetsByRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/PutEventsCommand.ts b/clients/client-eventbridge/commands/PutEventsCommand.ts index a89ebe3d32133..0da6683f3d3f1 100644 --- a/clients/client-eventbridge/commands/PutEventsCommand.ts +++ b/clients/client-eventbridge/commands/PutEventsCommand.ts @@ -26,6 +26,7 @@ export class PutEventsCommand extends $Command< PutEventsCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class PutEventsCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/PutPartnerEventsCommand.ts b/clients/client-eventbridge/commands/PutPartnerEventsCommand.ts index 0fabffb75c536..020857eb89170 100644 --- a/clients/client-eventbridge/commands/PutPartnerEventsCommand.ts +++ b/clients/client-eventbridge/commands/PutPartnerEventsCommand.ts @@ -29,6 +29,7 @@ export class PutPartnerEventsCommand extends $Command< PutPartnerEventsCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutPartnerEventsCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/PutPermissionCommand.ts b/clients/client-eventbridge/commands/PutPermissionCommand.ts index f6f9965632107..3c25a81ea4abb 100644 --- a/clients/client-eventbridge/commands/PutPermissionCommand.ts +++ b/clients/client-eventbridge/commands/PutPermissionCommand.ts @@ -49,6 +49,7 @@ export class PutPermissionCommand extends $Command< PutPermissionCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutPermissionCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/PutRuleCommand.ts b/clients/client-eventbridge/commands/PutRuleCommand.ts index 65b0731d0f46a..906b9b5336c7e 100644 --- a/clients/client-eventbridge/commands/PutRuleCommand.ts +++ b/clients/client-eventbridge/commands/PutRuleCommand.ts @@ -74,6 +74,7 @@ export class PutRuleCommand extends $Command< PutRuleCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class PutRuleCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/PutTargetsCommand.ts b/clients/client-eventbridge/commands/PutTargetsCommand.ts index 9a2dc21d0ea71..f77077f92a0b0 100644 --- a/clients/client-eventbridge/commands/PutTargetsCommand.ts +++ b/clients/client-eventbridge/commands/PutTargetsCommand.ts @@ -173,6 +173,7 @@ export class PutTargetsCommand extends $Command< PutTargetsCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -190,7 +191,10 @@ export class PutTargetsCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/RemovePermissionCommand.ts b/clients/client-eventbridge/commands/RemovePermissionCommand.ts index 92c01444ee7eb..9bd4ee259d9ef 100644 --- a/clients/client-eventbridge/commands/RemovePermissionCommand.ts +++ b/clients/client-eventbridge/commands/RemovePermissionCommand.ts @@ -31,6 +31,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RemovePermissionCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/RemoveTargetsCommand.ts b/clients/client-eventbridge/commands/RemoveTargetsCommand.ts index 4ee37b4f04181..fdae724c0bcce 100644 --- a/clients/client-eventbridge/commands/RemoveTargetsCommand.ts +++ b/clients/client-eventbridge/commands/RemoveTargetsCommand.ts @@ -38,6 +38,7 @@ export class RemoveTargetsCommand extends $Command< RemoveTargetsCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class RemoveTargetsCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/StartReplayCommand.ts b/clients/client-eventbridge/commands/StartReplayCommand.ts index a4214e4284160..b30886201b5b1 100644 --- a/clients/client-eventbridge/commands/StartReplayCommand.ts +++ b/clients/client-eventbridge/commands/StartReplayCommand.ts @@ -36,6 +36,7 @@ export class StartReplayCommand extends $Command< StartReplayCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartReplayCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/TagResourceCommand.ts b/clients/client-eventbridge/commands/TagResourceCommand.ts index 2d474c8c1f4f7..a79e1fb281746 100644 --- a/clients/client-eventbridge/commands/TagResourceCommand.ts +++ b/clients/client-eventbridge/commands/TagResourceCommand.ts @@ -38,6 +38,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class TagResourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/TestEventPatternCommand.ts b/clients/client-eventbridge/commands/TestEventPatternCommand.ts index 6943ac944477e..ae72248fd6126 100644 --- a/clients/client-eventbridge/commands/TestEventPatternCommand.ts +++ b/clients/client-eventbridge/commands/TestEventPatternCommand.ts @@ -32,6 +32,7 @@ export class TestEventPatternCommand extends $Command< TestEventPatternCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestEventPatternCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/UntagResourceCommand.ts b/clients/client-eventbridge/commands/UntagResourceCommand.ts index 737f37b4e16f2..aca74e1a21f67 100644 --- a/clients/client-eventbridge/commands/UntagResourceCommand.ts +++ b/clients/client-eventbridge/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-eventbridge/commands/UpdateArchiveCommand.ts b/clients/client-eventbridge/commands/UpdateArchiveCommand.ts index 7470406b6ac20..d120328827265 100644 --- a/clients/client-eventbridge/commands/UpdateArchiveCommand.ts +++ b/clients/client-eventbridge/commands/UpdateArchiveCommand.ts @@ -28,6 +28,7 @@ export class UpdateArchiveCommand extends $Command< UpdateArchiveCommandOutput, EventBridgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateArchiveCommand extends $Command< configuration: EventBridgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/CreateDeliveryStreamCommand.ts b/clients/client-firehose/commands/CreateDeliveryStreamCommand.ts index ceed34e9ddeb7..0bd84922ac754 100644 --- a/clients/client-firehose/commands/CreateDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/CreateDeliveryStreamCommand.ts @@ -96,6 +96,7 @@ export class CreateDeliveryStreamCommand extends $Command< CreateDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -113,7 +114,10 @@ export class CreateDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/DeleteDeliveryStreamCommand.ts b/clients/client-firehose/commands/DeleteDeliveryStreamCommand.ts index 074d5d3a26059..42be5a4d49faf 100644 --- a/clients/client-firehose/commands/DeleteDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/DeleteDeliveryStreamCommand.ts @@ -37,6 +37,7 @@ export class DeleteDeliveryStreamCommand extends $Command< DeleteDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/DescribeDeliveryStreamCommand.ts b/clients/client-firehose/commands/DescribeDeliveryStreamCommand.ts index 1cab14f0725b4..20fb63fbd5943 100644 --- a/clients/client-firehose/commands/DescribeDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/DescribeDeliveryStreamCommand.ts @@ -34,6 +34,7 @@ export class DescribeDeliveryStreamCommand extends $Command< DescribeDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/ListDeliveryStreamsCommand.ts b/clients/client-firehose/commands/ListDeliveryStreamsCommand.ts index 3475d4f721f8e..56c1bbaac40ca 100644 --- a/clients/client-firehose/commands/ListDeliveryStreamsCommand.ts +++ b/clients/client-firehose/commands/ListDeliveryStreamsCommand.ts @@ -35,6 +35,7 @@ export class ListDeliveryStreamsCommand extends $Command< ListDeliveryStreamsCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListDeliveryStreamsCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/ListTagsForDeliveryStreamCommand.ts b/clients/client-firehose/commands/ListTagsForDeliveryStreamCommand.ts index 49555da859017..a40374111bedf 100644 --- a/clients/client-firehose/commands/ListTagsForDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/ListTagsForDeliveryStreamCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForDeliveryStreamCommand extends $Command< ListTagsForDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/PutRecordBatchCommand.ts b/clients/client-firehose/commands/PutRecordBatchCommand.ts index 224219260cf00..4a71ba78f3484 100644 --- a/clients/client-firehose/commands/PutRecordBatchCommand.ts +++ b/clients/client-firehose/commands/PutRecordBatchCommand.ts @@ -78,6 +78,7 @@ export class PutRecordBatchCommand extends $Command< PutRecordBatchCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class PutRecordBatchCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/PutRecordCommand.ts b/clients/client-firehose/commands/PutRecordCommand.ts index 49f08c67309dc..1cdb3233ff539 100644 --- a/clients/client-firehose/commands/PutRecordCommand.ts +++ b/clients/client-firehose/commands/PutRecordCommand.ts @@ -56,6 +56,7 @@ export class PutRecordCommand extends $Command< PutRecordCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class PutRecordCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/StartDeliveryStreamEncryptionCommand.ts b/clients/client-firehose/commands/StartDeliveryStreamEncryptionCommand.ts index d8c79e6e59130..e67302ec42199 100644 --- a/clients/client-firehose/commands/StartDeliveryStreamEncryptionCommand.ts +++ b/clients/client-firehose/commands/StartDeliveryStreamEncryptionCommand.ts @@ -63,6 +63,7 @@ export class StartDeliveryStreamEncryptionCommand extends $Command< StartDeliveryStreamEncryptionCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class StartDeliveryStreamEncryptionCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/StopDeliveryStreamEncryptionCommand.ts b/clients/client-firehose/commands/StopDeliveryStreamEncryptionCommand.ts index 0fce9bf4d4ca6..4e1bc261c0659 100644 --- a/clients/client-firehose/commands/StopDeliveryStreamEncryptionCommand.ts +++ b/clients/client-firehose/commands/StopDeliveryStreamEncryptionCommand.ts @@ -47,6 +47,7 @@ export class StopDeliveryStreamEncryptionCommand extends $Command< StopDeliveryStreamEncryptionCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class StopDeliveryStreamEncryptionCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/TagDeliveryStreamCommand.ts b/clients/client-firehose/commands/TagDeliveryStreamCommand.ts index 8719cb4a1011b..19d1700a173b8 100644 --- a/clients/client-firehose/commands/TagDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/TagDeliveryStreamCommand.ts @@ -36,6 +36,7 @@ export class TagDeliveryStreamCommand extends $Command< TagDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class TagDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/UntagDeliveryStreamCommand.ts b/clients/client-firehose/commands/UntagDeliveryStreamCommand.ts index c3a28915b0576..52388543ef9e3 100644 --- a/clients/client-firehose/commands/UntagDeliveryStreamCommand.ts +++ b/clients/client-firehose/commands/UntagDeliveryStreamCommand.ts @@ -31,6 +31,7 @@ export class UntagDeliveryStreamCommand extends $Command< UntagDeliveryStreamCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UntagDeliveryStreamCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-firehose/commands/UpdateDestinationCommand.ts b/clients/client-firehose/commands/UpdateDestinationCommand.ts index 0ca899c306589..c8aa10e61ecce 100644 --- a/clients/client-firehose/commands/UpdateDestinationCommand.ts +++ b/clients/client-firehose/commands/UpdateDestinationCommand.ts @@ -51,6 +51,7 @@ export class UpdateDestinationCommand extends $Command< UpdateDestinationCommandOutput, FirehoseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class UpdateDestinationCommand extends $Command< configuration: FirehoseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/AssociateAdminAccountCommand.ts b/clients/client-fms/commands/AssociateAdminAccountCommand.ts index 5af9419f4f6f0..3c72c67e94989 100644 --- a/clients/client-fms/commands/AssociateAdminAccountCommand.ts +++ b/clients/client-fms/commands/AssociateAdminAccountCommand.ts @@ -34,6 +34,7 @@ export class AssociateAdminAccountCommand extends $Command< AssociateAdminAccountCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssociateAdminAccountCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/DeleteAppsListCommand.ts b/clients/client-fms/commands/DeleteAppsListCommand.ts index 2b3933df06764..b0d46dc189735 100644 --- a/clients/client-fms/commands/DeleteAppsListCommand.ts +++ b/clients/client-fms/commands/DeleteAppsListCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppsListCommand extends $Command< DeleteAppsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/DeleteNotificationChannelCommand.ts b/clients/client-fms/commands/DeleteNotificationChannelCommand.ts index 0b63935735e99..80f2b76682cd5 100644 --- a/clients/client-fms/commands/DeleteNotificationChannelCommand.ts +++ b/clients/client-fms/commands/DeleteNotificationChannelCommand.ts @@ -29,6 +29,7 @@ export class DeleteNotificationChannelCommand extends $Command< DeleteNotificationChannelCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteNotificationChannelCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/DeletePolicyCommand.ts b/clients/client-fms/commands/DeletePolicyCommand.ts index fdbfef37e8f99..55a3297728f54 100644 --- a/clients/client-fms/commands/DeletePolicyCommand.ts +++ b/clients/client-fms/commands/DeletePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeletePolicyCommand extends $Command< DeletePolicyCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePolicyCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/DeleteProtocolsListCommand.ts b/clients/client-fms/commands/DeleteProtocolsListCommand.ts index 715f457f89204..61eb94700e7c9 100644 --- a/clients/client-fms/commands/DeleteProtocolsListCommand.ts +++ b/clients/client-fms/commands/DeleteProtocolsListCommand.ts @@ -28,6 +28,7 @@ export class DeleteProtocolsListCommand extends $Command< DeleteProtocolsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProtocolsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/DisassociateAdminAccountCommand.ts b/clients/client-fms/commands/DisassociateAdminAccountCommand.ts index 8819fee5dcff9..a9fa15863bc2f 100644 --- a/clients/client-fms/commands/DisassociateAdminAccountCommand.ts +++ b/clients/client-fms/commands/DisassociateAdminAccountCommand.ts @@ -30,6 +30,7 @@ export class DisassociateAdminAccountCommand extends $Command< DisassociateAdminAccountCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociateAdminAccountCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetAdminAccountCommand.ts b/clients/client-fms/commands/GetAdminAccountCommand.ts index 57d7ffd7806d2..7d773f8925019 100644 --- a/clients/client-fms/commands/GetAdminAccountCommand.ts +++ b/clients/client-fms/commands/GetAdminAccountCommand.ts @@ -29,6 +29,7 @@ export class GetAdminAccountCommand extends $Command< GetAdminAccountCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAdminAccountCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetAppsListCommand.ts b/clients/client-fms/commands/GetAppsListCommand.ts index 222b2b0aa6623..176e7da2b4a7d 100644 --- a/clients/client-fms/commands/GetAppsListCommand.ts +++ b/clients/client-fms/commands/GetAppsListCommand.ts @@ -28,6 +28,7 @@ export class GetAppsListCommand extends $Command< GetAppsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetComplianceDetailCommand.ts b/clients/client-fms/commands/GetComplianceDetailCommand.ts index 5b2f02c781d78..75e5535045ba5 100644 --- a/clients/client-fms/commands/GetComplianceDetailCommand.ts +++ b/clients/client-fms/commands/GetComplianceDetailCommand.ts @@ -36,6 +36,7 @@ export class GetComplianceDetailCommand extends $Command< GetComplianceDetailCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetComplianceDetailCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetNotificationChannelCommand.ts b/clients/client-fms/commands/GetNotificationChannelCommand.ts index 0f56ae22feb6e..2fa37f0d828c5 100644 --- a/clients/client-fms/commands/GetNotificationChannelCommand.ts +++ b/clients/client-fms/commands/GetNotificationChannelCommand.ts @@ -30,6 +30,7 @@ export class GetNotificationChannelCommand extends $Command< GetNotificationChannelCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetNotificationChannelCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetPolicyCommand.ts b/clients/client-fms/commands/GetPolicyCommand.ts index 31b092fc48497..b51ca6e638356 100644 --- a/clients/client-fms/commands/GetPolicyCommand.ts +++ b/clients/client-fms/commands/GetPolicyCommand.ts @@ -21,6 +21,7 @@ export type GetPolicyCommandOutput = GetPolicyResponse & __MetadataBearer; *

Returns information about the specified AWS Firewall Manager policy.

*/ export class GetPolicyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetPolicyCommand 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-fms/commands/GetProtectionStatusCommand.ts b/clients/client-fms/commands/GetProtectionStatusCommand.ts index 1ecba3ec4045a..e93b7c598ef3c 100644 --- a/clients/client-fms/commands/GetProtectionStatusCommand.ts +++ b/clients/client-fms/commands/GetProtectionStatusCommand.ts @@ -29,6 +29,7 @@ export class GetProtectionStatusCommand extends $Command< GetProtectionStatusCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetProtectionStatusCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetProtocolsListCommand.ts b/clients/client-fms/commands/GetProtocolsListCommand.ts index 03964db93f0db..d3f2d2e1ff1f4 100644 --- a/clients/client-fms/commands/GetProtocolsListCommand.ts +++ b/clients/client-fms/commands/GetProtocolsListCommand.ts @@ -28,6 +28,7 @@ export class GetProtocolsListCommand extends $Command< GetProtocolsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProtocolsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/GetViolationDetailsCommand.ts b/clients/client-fms/commands/GetViolationDetailsCommand.ts index 46c664bf89fec..bfdfac619ed55 100644 --- a/clients/client-fms/commands/GetViolationDetailsCommand.ts +++ b/clients/client-fms/commands/GetViolationDetailsCommand.ts @@ -28,6 +28,7 @@ export class GetViolationDetailsCommand extends $Command< GetViolationDetailsCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetViolationDetailsCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListAppsListsCommand.ts b/clients/client-fms/commands/ListAppsListsCommand.ts index d783cfd20c1d3..9c8d847886ce4 100644 --- a/clients/client-fms/commands/ListAppsListsCommand.ts +++ b/clients/client-fms/commands/ListAppsListsCommand.ts @@ -28,6 +28,7 @@ export class ListAppsListsCommand extends $Command< ListAppsListsCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAppsListsCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListComplianceStatusCommand.ts b/clients/client-fms/commands/ListComplianceStatusCommand.ts index 0f72401331451..b3886f57ed704 100644 --- a/clients/client-fms/commands/ListComplianceStatusCommand.ts +++ b/clients/client-fms/commands/ListComplianceStatusCommand.ts @@ -30,6 +30,7 @@ export class ListComplianceStatusCommand extends $Command< ListComplianceStatusCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListComplianceStatusCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListMemberAccountsCommand.ts b/clients/client-fms/commands/ListMemberAccountsCommand.ts index e7f562139d81b..47fb9f111c9a6 100644 --- a/clients/client-fms/commands/ListMemberAccountsCommand.ts +++ b/clients/client-fms/commands/ListMemberAccountsCommand.ts @@ -31,6 +31,7 @@ export class ListMemberAccountsCommand extends $Command< ListMemberAccountsCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListMemberAccountsCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListPoliciesCommand.ts b/clients/client-fms/commands/ListPoliciesCommand.ts index 7464a7a6adf7e..89ff640099df7 100644 --- a/clients/client-fms/commands/ListPoliciesCommand.ts +++ b/clients/client-fms/commands/ListPoliciesCommand.ts @@ -28,6 +28,7 @@ export class ListPoliciesCommand extends $Command< ListPoliciesCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPoliciesCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListProtocolsListsCommand.ts b/clients/client-fms/commands/ListProtocolsListsCommand.ts index af0d2223bdaaf..f25939c08803e 100644 --- a/clients/client-fms/commands/ListProtocolsListsCommand.ts +++ b/clients/client-fms/commands/ListProtocolsListsCommand.ts @@ -28,6 +28,7 @@ export class ListProtocolsListsCommand extends $Command< ListProtocolsListsCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProtocolsListsCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/ListTagsForResourceCommand.ts b/clients/client-fms/commands/ListTagsForResourceCommand.ts index 63e32afb41bdc..e9a2c9cb42b6f 100644 --- a/clients/client-fms/commands/ListTagsForResourceCommand.ts +++ b/clients/client-fms/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/PutAppsListCommand.ts b/clients/client-fms/commands/PutAppsListCommand.ts index a23e0b2a6363a..d59b89436f3aa 100644 --- a/clients/client-fms/commands/PutAppsListCommand.ts +++ b/clients/client-fms/commands/PutAppsListCommand.ts @@ -28,6 +28,7 @@ export class PutAppsListCommand extends $Command< PutAppsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAppsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/PutNotificationChannelCommand.ts b/clients/client-fms/commands/PutNotificationChannelCommand.ts index cfb9120a10229..ae7bae790a042 100644 --- a/clients/client-fms/commands/PutNotificationChannelCommand.ts +++ b/clients/client-fms/commands/PutNotificationChannelCommand.ts @@ -32,6 +32,7 @@ export class PutNotificationChannelCommand extends $Command< PutNotificationChannelCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutNotificationChannelCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/PutPolicyCommand.ts b/clients/client-fms/commands/PutPolicyCommand.ts index 2f8425603972a..f7c7017f39e36 100644 --- a/clients/client-fms/commands/PutPolicyCommand.ts +++ b/clients/client-fms/commands/PutPolicyCommand.ts @@ -49,6 +49,7 @@ export type PutPolicyCommandOutput = PutPolicyResponse & __MetadataBearer; * CreateSubscription.

*/ export class PutPolicyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutPolicyCommand 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-fms/commands/PutProtocolsListCommand.ts b/clients/client-fms/commands/PutProtocolsListCommand.ts index c6f7d570ceb73..e64c8a7177561 100644 --- a/clients/client-fms/commands/PutProtocolsListCommand.ts +++ b/clients/client-fms/commands/PutProtocolsListCommand.ts @@ -28,6 +28,7 @@ export class PutProtocolsListCommand extends $Command< PutProtocolsListCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutProtocolsListCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/TagResourceCommand.ts b/clients/client-fms/commands/TagResourceCommand.ts index de3219a981e3a..74c70338334c4 100644 --- a/clients/client-fms/commands/TagResourceCommand.ts +++ b/clients/client-fms/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fms/commands/UntagResourceCommand.ts b/clients/client-fms/commands/UntagResourceCommand.ts index 0e5cfdea41017..bdd9696299ac0 100644 --- a/clients/client-fms/commands/UntagResourceCommand.ts +++ b/clients/client-fms/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, FMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreateDatasetCommand.ts b/clients/client-forecast/commands/CreateDatasetCommand.ts index 1c4e4b2e3d525..b8d318773bc51 100644 --- a/clients/client-forecast/commands/CreateDatasetCommand.ts +++ b/clients/client-forecast/commands/CreateDatasetCommand.ts @@ -69,6 +69,7 @@ export class CreateDatasetCommand extends $Command< CreateDatasetCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class CreateDatasetCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreateDatasetGroupCommand.ts b/clients/client-forecast/commands/CreateDatasetGroupCommand.ts index 748f8783a2aa7..25e05859b7246 100644 --- a/clients/client-forecast/commands/CreateDatasetGroupCommand.ts +++ b/clients/client-forecast/commands/CreateDatasetGroupCommand.ts @@ -37,6 +37,7 @@ export class CreateDatasetGroupCommand extends $Command< CreateDatasetGroupCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateDatasetGroupCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreateDatasetImportJobCommand.ts b/clients/client-forecast/commands/CreateDatasetImportJobCommand.ts index 2c44dc41cb17f..5f217fd77fc01 100644 --- a/clients/client-forecast/commands/CreateDatasetImportJobCommand.ts +++ b/clients/client-forecast/commands/CreateDatasetImportJobCommand.ts @@ -47,6 +47,7 @@ export class CreateDatasetImportJobCommand extends $Command< CreateDatasetImportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateDatasetImportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreateForecastCommand.ts b/clients/client-forecast/commands/CreateForecastCommand.ts index fc36386645ec2..cec5d1bea2e80 100644 --- a/clients/client-forecast/commands/CreateForecastCommand.ts +++ b/clients/client-forecast/commands/CreateForecastCommand.ts @@ -46,6 +46,7 @@ export class CreateForecastCommand extends $Command< CreateForecastCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreateForecastCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreateForecastExportJobCommand.ts b/clients/client-forecast/commands/CreateForecastExportJobCommand.ts index 9b2f970ebfb52..b0a1b26c6bc4e 100644 --- a/clients/client-forecast/commands/CreateForecastExportJobCommand.ts +++ b/clients/client-forecast/commands/CreateForecastExportJobCommand.ts @@ -41,6 +41,7 @@ export class CreateForecastExportJobCommand extends $Command< CreateForecastExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateForecastExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreatePredictorBacktestExportJobCommand.ts b/clients/client-forecast/commands/CreatePredictorBacktestExportJobCommand.ts index 8b8865f27c2b6..0b702b2a438bd 100644 --- a/clients/client-forecast/commands/CreatePredictorBacktestExportJobCommand.ts +++ b/clients/client-forecast/commands/CreatePredictorBacktestExportJobCommand.ts @@ -32,6 +32,7 @@ export class CreatePredictorBacktestExportJobCommand extends $Command< CreatePredictorBacktestExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePredictorBacktestExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/CreatePredictorCommand.ts b/clients/client-forecast/commands/CreatePredictorCommand.ts index 7d60f55e67c13..6c3529120f804 100644 --- a/clients/client-forecast/commands/CreatePredictorCommand.ts +++ b/clients/client-forecast/commands/CreatePredictorCommand.ts @@ -89,6 +89,7 @@ export class CreatePredictorCommand extends $Command< CreatePredictorCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class CreatePredictorCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeleteDatasetCommand.ts b/clients/client-forecast/commands/DeleteDatasetCommand.ts index 65bd35f2cc835..00d99435cb292 100644 --- a/clients/client-forecast/commands/DeleteDatasetCommand.ts +++ b/clients/client-forecast/commands/DeleteDatasetCommand.ts @@ -36,6 +36,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteDatasetCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeleteDatasetGroupCommand.ts b/clients/client-forecast/commands/DeleteDatasetGroupCommand.ts index d50b41075beaf..a0930a319310c 100644 --- a/clients/client-forecast/commands/DeleteDatasetGroupCommand.ts +++ b/clients/client-forecast/commands/DeleteDatasetGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteDatasetGroupCommand extends $Command< DeleteDatasetGroupCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDatasetGroupCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeleteDatasetImportJobCommand.ts b/clients/client-forecast/commands/DeleteDatasetImportJobCommand.ts index 8b847b37b2400..7bb6a5ac7994e 100644 --- a/clients/client-forecast/commands/DeleteDatasetImportJobCommand.ts +++ b/clients/client-forecast/commands/DeleteDatasetImportJobCommand.ts @@ -30,6 +30,7 @@ export class DeleteDatasetImportJobCommand extends $Command< DeleteDatasetImportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDatasetImportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeleteForecastCommand.ts b/clients/client-forecast/commands/DeleteForecastCommand.ts index 54ce5b4240e2b..98adf1f8bd044 100644 --- a/clients/client-forecast/commands/DeleteForecastCommand.ts +++ b/clients/client-forecast/commands/DeleteForecastCommand.ts @@ -32,6 +32,7 @@ export class DeleteForecastCommand extends $Command< DeleteForecastCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteForecastCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeleteForecastExportJobCommand.ts b/clients/client-forecast/commands/DeleteForecastExportJobCommand.ts index 2b6b01a4a4458..e816e4d8ef71c 100644 --- a/clients/client-forecast/commands/DeleteForecastExportJobCommand.ts +++ b/clients/client-forecast/commands/DeleteForecastExportJobCommand.ts @@ -30,6 +30,7 @@ export class DeleteForecastExportJobCommand extends $Command< DeleteForecastExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteForecastExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeletePredictorBacktestExportJobCommand.ts b/clients/client-forecast/commands/DeletePredictorBacktestExportJobCommand.ts index 64d83cec072b4..ac5355f05e732 100644 --- a/clients/client-forecast/commands/DeletePredictorBacktestExportJobCommand.ts +++ b/clients/client-forecast/commands/DeletePredictorBacktestExportJobCommand.ts @@ -28,6 +28,7 @@ export class DeletePredictorBacktestExportJobCommand extends $Command< DeletePredictorBacktestExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePredictorBacktestExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DeletePredictorCommand.ts b/clients/client-forecast/commands/DeletePredictorCommand.ts index e9df7385efbac..8b7fcd3108b46 100644 --- a/clients/client-forecast/commands/DeletePredictorCommand.ts +++ b/clients/client-forecast/commands/DeletePredictorCommand.ts @@ -30,6 +30,7 @@ export class DeletePredictorCommand extends $Command< DeletePredictorCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeletePredictorCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribeDatasetCommand.ts b/clients/client-forecast/commands/DescribeDatasetCommand.ts index 3b38da11c9cf2..8d4591ca8d4bc 100644 --- a/clients/client-forecast/commands/DescribeDatasetCommand.ts +++ b/clients/client-forecast/commands/DescribeDatasetCommand.ts @@ -48,6 +48,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DescribeDatasetCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribeDatasetGroupCommand.ts b/clients/client-forecast/commands/DescribeDatasetGroupCommand.ts index e09976a9251cb..21ed905aea65f 100644 --- a/clients/client-forecast/commands/DescribeDatasetGroupCommand.ts +++ b/clients/client-forecast/commands/DescribeDatasetGroupCommand.ts @@ -52,6 +52,7 @@ export class DescribeDatasetGroupCommand extends $Command< DescribeDatasetGroupCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DescribeDatasetGroupCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribeDatasetImportJobCommand.ts b/clients/client-forecast/commands/DescribeDatasetImportJobCommand.ts index d2c2936d94154..c4bbc4a3e91f4 100644 --- a/clients/client-forecast/commands/DescribeDatasetImportJobCommand.ts +++ b/clients/client-forecast/commands/DescribeDatasetImportJobCommand.ts @@ -62,6 +62,7 @@ export class DescribeDatasetImportJobCommand extends $Command< DescribeDatasetImportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribeDatasetImportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribeForecastCommand.ts b/clients/client-forecast/commands/DescribeForecastCommand.ts index c3db02e941373..864bf0cbca7a8 100644 --- a/clients/client-forecast/commands/DescribeForecastCommand.ts +++ b/clients/client-forecast/commands/DescribeForecastCommand.ts @@ -56,6 +56,7 @@ export class DescribeForecastCommand extends $Command< DescribeForecastCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class DescribeForecastCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribeForecastExportJobCommand.ts b/clients/client-forecast/commands/DescribeForecastExportJobCommand.ts index 102ff476681ec..d6295b8998d83 100644 --- a/clients/client-forecast/commands/DescribeForecastExportJobCommand.ts +++ b/clients/client-forecast/commands/DescribeForecastExportJobCommand.ts @@ -52,6 +52,7 @@ export class DescribeForecastExportJobCommand extends $Command< DescribeForecastExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DescribeForecastExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribePredictorBacktestExportJobCommand.ts b/clients/client-forecast/commands/DescribePredictorBacktestExportJobCommand.ts index 834666a31c62e..de30b40b2def2 100644 --- a/clients/client-forecast/commands/DescribePredictorBacktestExportJobCommand.ts +++ b/clients/client-forecast/commands/DescribePredictorBacktestExportJobCommand.ts @@ -56,6 +56,7 @@ export class DescribePredictorBacktestExportJobCommand extends $Command< DescribePredictorBacktestExportJobCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class DescribePredictorBacktestExportJobCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/DescribePredictorCommand.ts b/clients/client-forecast/commands/DescribePredictorCommand.ts index 95e2e29a6d984..fcfaa0290684d 100644 --- a/clients/client-forecast/commands/DescribePredictorCommand.ts +++ b/clients/client-forecast/commands/DescribePredictorCommand.ts @@ -62,6 +62,7 @@ export class DescribePredictorCommand extends $Command< DescribePredictorCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribePredictorCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/GetAccuracyMetricsCommand.ts b/clients/client-forecast/commands/GetAccuracyMetricsCommand.ts index c14be8c935471..78e93b6c1af8e 100644 --- a/clients/client-forecast/commands/GetAccuracyMetricsCommand.ts +++ b/clients/client-forecast/commands/GetAccuracyMetricsCommand.ts @@ -47,6 +47,7 @@ export class GetAccuracyMetricsCommand extends $Command< GetAccuracyMetricsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class GetAccuracyMetricsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListDatasetGroupsCommand.ts b/clients/client-forecast/commands/ListDatasetGroupsCommand.ts index 3b5452b253fc3..eb7333308c16a 100644 --- a/clients/client-forecast/commands/ListDatasetGroupsCommand.ts +++ b/clients/client-forecast/commands/ListDatasetGroupsCommand.ts @@ -31,6 +31,7 @@ export class ListDatasetGroupsCommand extends $Command< ListDatasetGroupsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListDatasetGroupsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListDatasetImportJobsCommand.ts b/clients/client-forecast/commands/ListDatasetImportJobsCommand.ts index d0f7f0619d7ca..abdea8d450151 100644 --- a/clients/client-forecast/commands/ListDatasetImportJobsCommand.ts +++ b/clients/client-forecast/commands/ListDatasetImportJobsCommand.ts @@ -31,6 +31,7 @@ export class ListDatasetImportJobsCommand extends $Command< ListDatasetImportJobsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListDatasetImportJobsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListDatasetsCommand.ts b/clients/client-forecast/commands/ListDatasetsCommand.ts index 2cb282b74fe4c..9ec10960c0f51 100644 --- a/clients/client-forecast/commands/ListDatasetsCommand.ts +++ b/clients/client-forecast/commands/ListDatasetsCommand.ts @@ -30,6 +30,7 @@ export class ListDatasetsCommand extends $Command< ListDatasetsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDatasetsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListForecastExportJobsCommand.ts b/clients/client-forecast/commands/ListForecastExportJobsCommand.ts index b59eadd72d127..bd9ceff3e415d 100644 --- a/clients/client-forecast/commands/ListForecastExportJobsCommand.ts +++ b/clients/client-forecast/commands/ListForecastExportJobsCommand.ts @@ -31,6 +31,7 @@ export class ListForecastExportJobsCommand extends $Command< ListForecastExportJobsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListForecastExportJobsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListForecastsCommand.ts b/clients/client-forecast/commands/ListForecastsCommand.ts index b6ee75250b387..37a6f47fe1012 100644 --- a/clients/client-forecast/commands/ListForecastsCommand.ts +++ b/clients/client-forecast/commands/ListForecastsCommand.ts @@ -32,6 +32,7 @@ export class ListForecastsCommand extends $Command< ListForecastsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListForecastsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListPredictorBacktestExportJobsCommand.ts b/clients/client-forecast/commands/ListPredictorBacktestExportJobsCommand.ts index 2d38876c74e83..36f58da7c6270 100644 --- a/clients/client-forecast/commands/ListPredictorBacktestExportJobsCommand.ts +++ b/clients/client-forecast/commands/ListPredictorBacktestExportJobsCommand.ts @@ -31,6 +31,7 @@ export class ListPredictorBacktestExportJobsCommand extends $Command< ListPredictorBacktestExportJobsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListPredictorBacktestExportJobsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListPredictorsCommand.ts b/clients/client-forecast/commands/ListPredictorsCommand.ts index 672dbeddb847c..2cdf04f8a75c8 100644 --- a/clients/client-forecast/commands/ListPredictorsCommand.ts +++ b/clients/client-forecast/commands/ListPredictorsCommand.ts @@ -32,6 +32,7 @@ export class ListPredictorsCommand extends $Command< ListPredictorsCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPredictorsCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/ListTagsForResourceCommand.ts b/clients/client-forecast/commands/ListTagsForResourceCommand.ts index 58c1f0033dc45..014c03bce89a8 100644 --- a/clients/client-forecast/commands/ListTagsForResourceCommand.ts +++ b/clients/client-forecast/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/TagResourceCommand.ts b/clients/client-forecast/commands/TagResourceCommand.ts index e273ed0abe735..096774ae15f69 100644 --- a/clients/client-forecast/commands/TagResourceCommand.ts +++ b/clients/client-forecast/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/UntagResourceCommand.ts b/clients/client-forecast/commands/UntagResourceCommand.ts index 86f7ea1cdf7ec..6749c96448c1e 100644 --- a/clients/client-forecast/commands/UntagResourceCommand.ts +++ b/clients/client-forecast/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecast/commands/UpdateDatasetGroupCommand.ts b/clients/client-forecast/commands/UpdateDatasetGroupCommand.ts index 1de6edd6181dd..2b65951afcc19 100644 --- a/clients/client-forecast/commands/UpdateDatasetGroupCommand.ts +++ b/clients/client-forecast/commands/UpdateDatasetGroupCommand.ts @@ -33,6 +33,7 @@ export class UpdateDatasetGroupCommand extends $Command< UpdateDatasetGroupCommandOutput, ForecastClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateDatasetGroupCommand extends $Command< configuration: ForecastClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-forecastquery/commands/QueryForecastCommand.ts b/clients/client-forecastquery/commands/QueryForecastCommand.ts index fe61609013cbf..025f0ee33d6f5 100644 --- a/clients/client-forecastquery/commands/QueryForecastCommand.ts +++ b/clients/client-forecastquery/commands/QueryForecastCommand.ts @@ -39,6 +39,7 @@ export class QueryForecastCommand extends $Command< QueryForecastCommandOutput, ForecastqueryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class QueryForecastCommand extends $Command< configuration: ForecastqueryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/BatchCreateVariableCommand.ts b/clients/client-frauddetector/commands/BatchCreateVariableCommand.ts index 92f2e6609b6c1..036655e742ae5 100644 --- a/clients/client-frauddetector/commands/BatchCreateVariableCommand.ts +++ b/clients/client-frauddetector/commands/BatchCreateVariableCommand.ts @@ -28,6 +28,7 @@ export class BatchCreateVariableCommand extends $Command< BatchCreateVariableCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchCreateVariableCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/BatchGetVariableCommand.ts b/clients/client-frauddetector/commands/BatchGetVariableCommand.ts index 802a85e0cca31..d21df58303138 100644 --- a/clients/client-frauddetector/commands/BatchGetVariableCommand.ts +++ b/clients/client-frauddetector/commands/BatchGetVariableCommand.ts @@ -28,6 +28,7 @@ export class BatchGetVariableCommand extends $Command< BatchGetVariableCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetVariableCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/CreateDetectorVersionCommand.ts b/clients/client-frauddetector/commands/CreateDetectorVersionCommand.ts index 221639c868bec..e39a8a7b4c447 100644 --- a/clients/client-frauddetector/commands/CreateDetectorVersionCommand.ts +++ b/clients/client-frauddetector/commands/CreateDetectorVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateDetectorVersionCommand extends $Command< CreateDetectorVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDetectorVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/CreateModelCommand.ts b/clients/client-frauddetector/commands/CreateModelCommand.ts index ecd57109149fa..fa09ee9b8923f 100644 --- a/clients/client-frauddetector/commands/CreateModelCommand.ts +++ b/clients/client-frauddetector/commands/CreateModelCommand.ts @@ -28,6 +28,7 @@ export class CreateModelCommand extends $Command< CreateModelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateModelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/CreateModelVersionCommand.ts b/clients/client-frauddetector/commands/CreateModelVersionCommand.ts index 1ebfceadbba27..067f128bd8a42 100644 --- a/clients/client-frauddetector/commands/CreateModelVersionCommand.ts +++ b/clients/client-frauddetector/commands/CreateModelVersionCommand.ts @@ -29,6 +29,7 @@ export class CreateModelVersionCommand extends $Command< CreateModelVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateModelVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/CreateRuleCommand.ts b/clients/client-frauddetector/commands/CreateRuleCommand.ts index 98ffd6cc404e7..1d86109086a94 100644 --- a/clients/client-frauddetector/commands/CreateRuleCommand.ts +++ b/clients/client-frauddetector/commands/CreateRuleCommand.ts @@ -28,6 +28,7 @@ export class CreateRuleCommand extends $Command< CreateRuleCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRuleCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/CreateVariableCommand.ts b/clients/client-frauddetector/commands/CreateVariableCommand.ts index 7926a5ffb16a3..9da677eda3059 100644 --- a/clients/client-frauddetector/commands/CreateVariableCommand.ts +++ b/clients/client-frauddetector/commands/CreateVariableCommand.ts @@ -28,6 +28,7 @@ export class CreateVariableCommand extends $Command< CreateVariableCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateVariableCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteDetectorCommand.ts b/clients/client-frauddetector/commands/DeleteDetectorCommand.ts index da75fdf50937b..8b32ec889bb66 100644 --- a/clients/client-frauddetector/commands/DeleteDetectorCommand.ts +++ b/clients/client-frauddetector/commands/DeleteDetectorCommand.ts @@ -29,6 +29,7 @@ export class DeleteDetectorCommand extends $Command< DeleteDetectorCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDetectorCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteDetectorVersionCommand.ts b/clients/client-frauddetector/commands/DeleteDetectorVersionCommand.ts index d70b97150d994..f74fbde5ebfb1 100644 --- a/clients/client-frauddetector/commands/DeleteDetectorVersionCommand.ts +++ b/clients/client-frauddetector/commands/DeleteDetectorVersionCommand.ts @@ -29,6 +29,7 @@ export class DeleteDetectorVersionCommand extends $Command< DeleteDetectorVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDetectorVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteEntityTypeCommand.ts b/clients/client-frauddetector/commands/DeleteEntityTypeCommand.ts index ea74da4e9fd36..85e1764f391df 100644 --- a/clients/client-frauddetector/commands/DeleteEntityTypeCommand.ts +++ b/clients/client-frauddetector/commands/DeleteEntityTypeCommand.ts @@ -30,6 +30,7 @@ export class DeleteEntityTypeCommand extends $Command< DeleteEntityTypeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEntityTypeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteEventCommand.ts b/clients/client-frauddetector/commands/DeleteEventCommand.ts index 8f3946cf2c8ed..c02e285b8f3c7 100644 --- a/clients/client-frauddetector/commands/DeleteEventCommand.ts +++ b/clients/client-frauddetector/commands/DeleteEventCommand.ts @@ -29,6 +29,7 @@ export class DeleteEventCommand extends $Command< DeleteEventCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteEventCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteEventTypeCommand.ts b/clients/client-frauddetector/commands/DeleteEventTypeCommand.ts index 67f3804640b3f..8cbeaee3558fa 100644 --- a/clients/client-frauddetector/commands/DeleteEventTypeCommand.ts +++ b/clients/client-frauddetector/commands/DeleteEventTypeCommand.ts @@ -30,6 +30,7 @@ export class DeleteEventTypeCommand extends $Command< DeleteEventTypeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEventTypeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteExternalModelCommand.ts b/clients/client-frauddetector/commands/DeleteExternalModelCommand.ts index 4b1bc886af13e..e2d64d3a94791 100644 --- a/clients/client-frauddetector/commands/DeleteExternalModelCommand.ts +++ b/clients/client-frauddetector/commands/DeleteExternalModelCommand.ts @@ -29,6 +29,7 @@ export class DeleteExternalModelCommand extends $Command< DeleteExternalModelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteExternalModelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteLabelCommand.ts b/clients/client-frauddetector/commands/DeleteLabelCommand.ts index 01fd3592a3b86..daac2c665fa07 100644 --- a/clients/client-frauddetector/commands/DeleteLabelCommand.ts +++ b/clients/client-frauddetector/commands/DeleteLabelCommand.ts @@ -32,6 +32,7 @@ export class DeleteLabelCommand extends $Command< DeleteLabelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLabelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteModelCommand.ts b/clients/client-frauddetector/commands/DeleteModelCommand.ts index e9ab6a51fb0d6..d4bedc5cee596 100644 --- a/clients/client-frauddetector/commands/DeleteModelCommand.ts +++ b/clients/client-frauddetector/commands/DeleteModelCommand.ts @@ -30,6 +30,7 @@ export class DeleteModelCommand extends $Command< DeleteModelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteModelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteModelVersionCommand.ts b/clients/client-frauddetector/commands/DeleteModelVersionCommand.ts index 64d5bc5c65902..73f21a8751ba2 100644 --- a/clients/client-frauddetector/commands/DeleteModelVersionCommand.ts +++ b/clients/client-frauddetector/commands/DeleteModelVersionCommand.ts @@ -30,6 +30,7 @@ export class DeleteModelVersionCommand extends $Command< DeleteModelVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteModelVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteOutcomeCommand.ts b/clients/client-frauddetector/commands/DeleteOutcomeCommand.ts index 5fef2e0ac98e0..2a1dcc3ab3808 100644 --- a/clients/client-frauddetector/commands/DeleteOutcomeCommand.ts +++ b/clients/client-frauddetector/commands/DeleteOutcomeCommand.ts @@ -30,6 +30,7 @@ export class DeleteOutcomeCommand extends $Command< DeleteOutcomeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteOutcomeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteRuleCommand.ts b/clients/client-frauddetector/commands/DeleteRuleCommand.ts index f6c73a62b04d1..0b3b7312b023d 100644 --- a/clients/client-frauddetector/commands/DeleteRuleCommand.ts +++ b/clients/client-frauddetector/commands/DeleteRuleCommand.ts @@ -29,6 +29,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteRuleCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DeleteVariableCommand.ts b/clients/client-frauddetector/commands/DeleteVariableCommand.ts index 6bb655beb5626..246dadc4ba0f2 100644 --- a/clients/client-frauddetector/commands/DeleteVariableCommand.ts +++ b/clients/client-frauddetector/commands/DeleteVariableCommand.ts @@ -31,6 +31,7 @@ export class DeleteVariableCommand extends $Command< DeleteVariableCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteVariableCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DescribeDetectorCommand.ts b/clients/client-frauddetector/commands/DescribeDetectorCommand.ts index 6fa562ce653ca..2d02fdddc7f7a 100644 --- a/clients/client-frauddetector/commands/DescribeDetectorCommand.ts +++ b/clients/client-frauddetector/commands/DescribeDetectorCommand.ts @@ -28,6 +28,7 @@ export class DescribeDetectorCommand extends $Command< DescribeDetectorCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDetectorCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/DescribeModelVersionsCommand.ts b/clients/client-frauddetector/commands/DescribeModelVersionsCommand.ts index a9c612ee429b8..da7c5c792e51f 100644 --- a/clients/client-frauddetector/commands/DescribeModelVersionsCommand.ts +++ b/clients/client-frauddetector/commands/DescribeModelVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeModelVersionsCommand extends $Command< DescribeModelVersionsCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeModelVersionsCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetDetectorVersionCommand.ts b/clients/client-frauddetector/commands/GetDetectorVersionCommand.ts index f75a77d6fa1e1..c596f32cc622b 100644 --- a/clients/client-frauddetector/commands/GetDetectorVersionCommand.ts +++ b/clients/client-frauddetector/commands/GetDetectorVersionCommand.ts @@ -28,6 +28,7 @@ export class GetDetectorVersionCommand extends $Command< GetDetectorVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDetectorVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetDetectorsCommand.ts b/clients/client-frauddetector/commands/GetDetectorsCommand.ts index 7c7190506d7c9..ee308bac10b2d 100644 --- a/clients/client-frauddetector/commands/GetDetectorsCommand.ts +++ b/clients/client-frauddetector/commands/GetDetectorsCommand.ts @@ -33,6 +33,7 @@ export class GetDetectorsCommand extends $Command< GetDetectorsCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetDetectorsCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetEntityTypesCommand.ts b/clients/client-frauddetector/commands/GetEntityTypesCommand.ts index 30ab554816fc3..879c0d0992e88 100644 --- a/clients/client-frauddetector/commands/GetEntityTypesCommand.ts +++ b/clients/client-frauddetector/commands/GetEntityTypesCommand.ts @@ -33,6 +33,7 @@ export class GetEntityTypesCommand extends $Command< GetEntityTypesCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetEntityTypesCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetEventPredictionCommand.ts b/clients/client-frauddetector/commands/GetEventPredictionCommand.ts index 9e572c166adb1..f95af8e14bdeb 100644 --- a/clients/client-frauddetector/commands/GetEventPredictionCommand.ts +++ b/clients/client-frauddetector/commands/GetEventPredictionCommand.ts @@ -28,6 +28,7 @@ export class GetEventPredictionCommand extends $Command< GetEventPredictionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEventPredictionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetEventTypesCommand.ts b/clients/client-frauddetector/commands/GetEventTypesCommand.ts index 15e811fa4dbd5..1fe292817c47f 100644 --- a/clients/client-frauddetector/commands/GetEventTypesCommand.ts +++ b/clients/client-frauddetector/commands/GetEventTypesCommand.ts @@ -33,6 +33,7 @@ export class GetEventTypesCommand extends $Command< GetEventTypesCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetEventTypesCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetExternalModelsCommand.ts b/clients/client-frauddetector/commands/GetExternalModelsCommand.ts index c8620799e3811..2774cafe1c3b4 100644 --- a/clients/client-frauddetector/commands/GetExternalModelsCommand.ts +++ b/clients/client-frauddetector/commands/GetExternalModelsCommand.ts @@ -33,6 +33,7 @@ export class GetExternalModelsCommand extends $Command< GetExternalModelsCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetExternalModelsCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetKMSEncryptionKeyCommand.ts b/clients/client-frauddetector/commands/GetKMSEncryptionKeyCommand.ts index fa87ed2507e4c..c54dd60f6f3c8 100644 --- a/clients/client-frauddetector/commands/GetKMSEncryptionKeyCommand.ts +++ b/clients/client-frauddetector/commands/GetKMSEncryptionKeyCommand.ts @@ -28,6 +28,7 @@ export class GetKMSEncryptionKeyCommand extends $Command< GetKMSEncryptionKeyCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetKMSEncryptionKeyCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetLabelsCommand.ts b/clients/client-frauddetector/commands/GetLabelsCommand.ts index 8077e2fca3699..9c79fdb73fdf6 100644 --- a/clients/client-frauddetector/commands/GetLabelsCommand.ts +++ b/clients/client-frauddetector/commands/GetLabelsCommand.ts @@ -30,6 +30,7 @@ export class GetLabelsCommand extends $Command< GetLabelsCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLabelsCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetModelVersionCommand.ts b/clients/client-frauddetector/commands/GetModelVersionCommand.ts index 7e177b1a7d573..ab05c9fc10ac1 100644 --- a/clients/client-frauddetector/commands/GetModelVersionCommand.ts +++ b/clients/client-frauddetector/commands/GetModelVersionCommand.ts @@ -28,6 +28,7 @@ export class GetModelVersionCommand extends $Command< GetModelVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetModelVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetModelsCommand.ts b/clients/client-frauddetector/commands/GetModelsCommand.ts index 6956e8f0e5908..7a22736b624be 100644 --- a/clients/client-frauddetector/commands/GetModelsCommand.ts +++ b/clients/client-frauddetector/commands/GetModelsCommand.ts @@ -31,6 +31,7 @@ export class GetModelsCommand extends $Command< GetModelsCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetModelsCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetOutcomesCommand.ts b/clients/client-frauddetector/commands/GetOutcomesCommand.ts index c842e9e2c6c7f..b74e902b6d18d 100644 --- a/clients/client-frauddetector/commands/GetOutcomesCommand.ts +++ b/clients/client-frauddetector/commands/GetOutcomesCommand.ts @@ -33,6 +33,7 @@ export class GetOutcomesCommand extends $Command< GetOutcomesCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetOutcomesCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetRulesCommand.ts b/clients/client-frauddetector/commands/GetRulesCommand.ts index 08c09b61fe602..ad289f7f06a2a 100644 --- a/clients/client-frauddetector/commands/GetRulesCommand.ts +++ b/clients/client-frauddetector/commands/GetRulesCommand.ts @@ -26,6 +26,7 @@ export class GetRulesCommand extends $Command< GetRulesCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class GetRulesCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/GetVariablesCommand.ts b/clients/client-frauddetector/commands/GetVariablesCommand.ts index b5560ffc47cdb..722b797e4036a 100644 --- a/clients/client-frauddetector/commands/GetVariablesCommand.ts +++ b/clients/client-frauddetector/commands/GetVariablesCommand.ts @@ -33,6 +33,7 @@ export class GetVariablesCommand extends $Command< GetVariablesCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetVariablesCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/ListTagsForResourceCommand.ts b/clients/client-frauddetector/commands/ListTagsForResourceCommand.ts index cddae270577f3..a818db33e49d9 100644 --- a/clients/client-frauddetector/commands/ListTagsForResourceCommand.ts +++ b/clients/client-frauddetector/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutDetectorCommand.ts b/clients/client-frauddetector/commands/PutDetectorCommand.ts index d36e35460e3aa..4ae70cde71cf4 100644 --- a/clients/client-frauddetector/commands/PutDetectorCommand.ts +++ b/clients/client-frauddetector/commands/PutDetectorCommand.ts @@ -28,6 +28,7 @@ export class PutDetectorCommand extends $Command< PutDetectorCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutDetectorCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutEntityTypeCommand.ts b/clients/client-frauddetector/commands/PutEntityTypeCommand.ts index b558093d0b345..eea51fd111363 100644 --- a/clients/client-frauddetector/commands/PutEntityTypeCommand.ts +++ b/clients/client-frauddetector/commands/PutEntityTypeCommand.ts @@ -28,6 +28,7 @@ export class PutEntityTypeCommand extends $Command< PutEntityTypeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEntityTypeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutEventTypeCommand.ts b/clients/client-frauddetector/commands/PutEventTypeCommand.ts index 8f1e050d970ac..761a838c0c0bb 100644 --- a/clients/client-frauddetector/commands/PutEventTypeCommand.ts +++ b/clients/client-frauddetector/commands/PutEventTypeCommand.ts @@ -28,6 +28,7 @@ export class PutEventTypeCommand extends $Command< PutEventTypeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEventTypeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutExternalModelCommand.ts b/clients/client-frauddetector/commands/PutExternalModelCommand.ts index e6302dbd56c7a..3927f8d7374ff 100644 --- a/clients/client-frauddetector/commands/PutExternalModelCommand.ts +++ b/clients/client-frauddetector/commands/PutExternalModelCommand.ts @@ -28,6 +28,7 @@ export class PutExternalModelCommand extends $Command< PutExternalModelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutExternalModelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutKMSEncryptionKeyCommand.ts b/clients/client-frauddetector/commands/PutKMSEncryptionKeyCommand.ts index d411fabd28a30..4afcb3a99ef0a 100644 --- a/clients/client-frauddetector/commands/PutKMSEncryptionKeyCommand.ts +++ b/clients/client-frauddetector/commands/PutKMSEncryptionKeyCommand.ts @@ -28,6 +28,7 @@ export class PutKMSEncryptionKeyCommand extends $Command< PutKMSEncryptionKeyCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutKMSEncryptionKeyCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutLabelCommand.ts b/clients/client-frauddetector/commands/PutLabelCommand.ts index a5776a139764b..3a0a4599e3dd9 100644 --- a/clients/client-frauddetector/commands/PutLabelCommand.ts +++ b/clients/client-frauddetector/commands/PutLabelCommand.ts @@ -25,6 +25,7 @@ export class PutLabelCommand extends $Command< PutLabelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class PutLabelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/PutOutcomeCommand.ts b/clients/client-frauddetector/commands/PutOutcomeCommand.ts index 00bed0e405628..6cc19e76ea16b 100644 --- a/clients/client-frauddetector/commands/PutOutcomeCommand.ts +++ b/clients/client-frauddetector/commands/PutOutcomeCommand.ts @@ -28,6 +28,7 @@ export class PutOutcomeCommand extends $Command< PutOutcomeCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutOutcomeCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/TagResourceCommand.ts b/clients/client-frauddetector/commands/TagResourceCommand.ts index ff2b476b06292..3ee8cda765616 100644 --- a/clients/client-frauddetector/commands/TagResourceCommand.ts +++ b/clients/client-frauddetector/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UntagResourceCommand.ts b/clients/client-frauddetector/commands/UntagResourceCommand.ts index c4585365691d6..d44c68075ab39 100644 --- a/clients/client-frauddetector/commands/UntagResourceCommand.ts +++ b/clients/client-frauddetector/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateDetectorVersionCommand.ts b/clients/client-frauddetector/commands/UpdateDetectorVersionCommand.ts index 927ca822e5a46..fd2f472c424e8 100644 --- a/clients/client-frauddetector/commands/UpdateDetectorVersionCommand.ts +++ b/clients/client-frauddetector/commands/UpdateDetectorVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateDetectorVersionCommand extends $Command< UpdateDetectorVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDetectorVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateDetectorVersionMetadataCommand.ts b/clients/client-frauddetector/commands/UpdateDetectorVersionMetadataCommand.ts index 2791471f98fca..f3ad36870f338 100644 --- a/clients/client-frauddetector/commands/UpdateDetectorVersionMetadataCommand.ts +++ b/clients/client-frauddetector/commands/UpdateDetectorVersionMetadataCommand.ts @@ -29,6 +29,7 @@ export class UpdateDetectorVersionMetadataCommand extends $Command< UpdateDetectorVersionMetadataCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDetectorVersionMetadataCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateDetectorVersionStatusCommand.ts b/clients/client-frauddetector/commands/UpdateDetectorVersionStatusCommand.ts index b64e6f519ff6e..2a21d6808ae0f 100644 --- a/clients/client-frauddetector/commands/UpdateDetectorVersionStatusCommand.ts +++ b/clients/client-frauddetector/commands/UpdateDetectorVersionStatusCommand.ts @@ -29,6 +29,7 @@ export class UpdateDetectorVersionStatusCommand extends $Command< UpdateDetectorVersionStatusCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDetectorVersionStatusCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateModelCommand.ts b/clients/client-frauddetector/commands/UpdateModelCommand.ts index f908ea9b56d0b..25482611a9fc0 100644 --- a/clients/client-frauddetector/commands/UpdateModelCommand.ts +++ b/clients/client-frauddetector/commands/UpdateModelCommand.ts @@ -28,6 +28,7 @@ export class UpdateModelCommand extends $Command< UpdateModelCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateModelCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateModelVersionCommand.ts b/clients/client-frauddetector/commands/UpdateModelVersionCommand.ts index fd3943f9db279..f72f20d1f7560 100644 --- a/clients/client-frauddetector/commands/UpdateModelVersionCommand.ts +++ b/clients/client-frauddetector/commands/UpdateModelVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateModelVersionCommand extends $Command< UpdateModelVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateModelVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateModelVersionStatusCommand.ts b/clients/client-frauddetector/commands/UpdateModelVersionStatusCommand.ts index 2dcfffafeba4c..308facd7eb69d 100644 --- a/clients/client-frauddetector/commands/UpdateModelVersionStatusCommand.ts +++ b/clients/client-frauddetector/commands/UpdateModelVersionStatusCommand.ts @@ -37,6 +37,7 @@ export class UpdateModelVersionStatusCommand extends $Command< UpdateModelVersionStatusCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateModelVersionStatusCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateRuleMetadataCommand.ts b/clients/client-frauddetector/commands/UpdateRuleMetadataCommand.ts index fdf5b1ab15214..fbe80aff000ec 100644 --- a/clients/client-frauddetector/commands/UpdateRuleMetadataCommand.ts +++ b/clients/client-frauddetector/commands/UpdateRuleMetadataCommand.ts @@ -28,6 +28,7 @@ export class UpdateRuleMetadataCommand extends $Command< UpdateRuleMetadataCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRuleMetadataCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateRuleVersionCommand.ts b/clients/client-frauddetector/commands/UpdateRuleVersionCommand.ts index a813eaa79fa84..840565351c29b 100644 --- a/clients/client-frauddetector/commands/UpdateRuleVersionCommand.ts +++ b/clients/client-frauddetector/commands/UpdateRuleVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateRuleVersionCommand extends $Command< UpdateRuleVersionCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRuleVersionCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-frauddetector/commands/UpdateVariableCommand.ts b/clients/client-frauddetector/commands/UpdateVariableCommand.ts index 43a252f5c36d7..b112f5955e4b1 100644 --- a/clients/client-frauddetector/commands/UpdateVariableCommand.ts +++ b/clients/client-frauddetector/commands/UpdateVariableCommand.ts @@ -28,6 +28,7 @@ export class UpdateVariableCommand extends $Command< UpdateVariableCommandOutput, FraudDetectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVariableCommand extends $Command< configuration: FraudDetectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/AssociateFileSystemAliasesCommand.ts b/clients/client-fsx/commands/AssociateFileSystemAliasesCommand.ts index 64913036133f6..c2a06b980131f 100644 --- a/clients/client-fsx/commands/AssociateFileSystemAliasesCommand.ts +++ b/clients/client-fsx/commands/AssociateFileSystemAliasesCommand.ts @@ -38,6 +38,7 @@ export class AssociateFileSystemAliasesCommand extends $Command< AssociateFileSystemAliasesCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AssociateFileSystemAliasesCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/CancelDataRepositoryTaskCommand.ts b/clients/client-fsx/commands/CancelDataRepositoryTaskCommand.ts index 46832c65c3a29..a9bfd79d732b0 100644 --- a/clients/client-fsx/commands/CancelDataRepositoryTaskCommand.ts +++ b/clients/client-fsx/commands/CancelDataRepositoryTaskCommand.ts @@ -40,6 +40,7 @@ export class CancelDataRepositoryTaskCommand extends $Command< CancelDataRepositoryTaskCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CancelDataRepositoryTaskCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/CreateBackupCommand.ts b/clients/client-fsx/commands/CreateBackupCommand.ts index 8fa82ddb238d8..9e1c30b32c88d 100644 --- a/clients/client-fsx/commands/CreateBackupCommand.ts +++ b/clients/client-fsx/commands/CreateBackupCommand.ts @@ -71,6 +71,7 @@ export class CreateBackupCommand extends $Command< CreateBackupCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class CreateBackupCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/CreateDataRepositoryTaskCommand.ts b/clients/client-fsx/commands/CreateDataRepositoryTaskCommand.ts index 108fe4e19dbc0..467e420e9e2d6 100644 --- a/clients/client-fsx/commands/CreateDataRepositoryTaskCommand.ts +++ b/clients/client-fsx/commands/CreateDataRepositoryTaskCommand.ts @@ -36,6 +36,7 @@ export class CreateDataRepositoryTaskCommand extends $Command< CreateDataRepositoryTaskCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateDataRepositoryTaskCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/CreateFileSystemCommand.ts b/clients/client-fsx/commands/CreateFileSystemCommand.ts index da762fa810139..24ab345da6f33 100644 --- a/clients/client-fsx/commands/CreateFileSystemCommand.ts +++ b/clients/client-fsx/commands/CreateFileSystemCommand.ts @@ -60,6 +60,7 @@ export class CreateFileSystemCommand extends $Command< CreateFileSystemCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class CreateFileSystemCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/CreateFileSystemFromBackupCommand.ts b/clients/client-fsx/commands/CreateFileSystemFromBackupCommand.ts index b268937314866..f1d7e5fdf559a 100644 --- a/clients/client-fsx/commands/CreateFileSystemFromBackupCommand.ts +++ b/clients/client-fsx/commands/CreateFileSystemFromBackupCommand.ts @@ -63,6 +63,7 @@ export class CreateFileSystemFromBackupCommand extends $Command< CreateFileSystemFromBackupCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class CreateFileSystemFromBackupCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DeleteBackupCommand.ts b/clients/client-fsx/commands/DeleteBackupCommand.ts index 4e8c51225edb9..95ebaecf5272e 100644 --- a/clients/client-fsx/commands/DeleteBackupCommand.ts +++ b/clients/client-fsx/commands/DeleteBackupCommand.ts @@ -36,6 +36,7 @@ export class DeleteBackupCommand extends $Command< DeleteBackupCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteBackupCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DeleteFileSystemCommand.ts b/clients/client-fsx/commands/DeleteFileSystemCommand.ts index 80c66468e60e5..cdb3875814389 100644 --- a/clients/client-fsx/commands/DeleteFileSystemCommand.ts +++ b/clients/client-fsx/commands/DeleteFileSystemCommand.ts @@ -50,6 +50,7 @@ export class DeleteFileSystemCommand extends $Command< DeleteFileSystemCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DeleteFileSystemCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DescribeBackupsCommand.ts b/clients/client-fsx/commands/DescribeBackupsCommand.ts index b734f83f8ba4b..a404b4545fd6e 100644 --- a/clients/client-fsx/commands/DescribeBackupsCommand.ts +++ b/clients/client-fsx/commands/DescribeBackupsCommand.ts @@ -58,6 +58,7 @@ export class DescribeBackupsCommand extends $Command< DescribeBackupsCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class DescribeBackupsCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DescribeDataRepositoryTasksCommand.ts b/clients/client-fsx/commands/DescribeDataRepositoryTasksCommand.ts index f88dbb931898f..f65765abbfc95 100644 --- a/clients/client-fsx/commands/DescribeDataRepositoryTasksCommand.ts +++ b/clients/client-fsx/commands/DescribeDataRepositoryTasksCommand.ts @@ -38,6 +38,7 @@ export class DescribeDataRepositoryTasksCommand extends $Command< DescribeDataRepositoryTasksCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeDataRepositoryTasksCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DescribeFileSystemAliasesCommand.ts b/clients/client-fsx/commands/DescribeFileSystemAliasesCommand.ts index 688785da5ff45..588cc54c88383 100644 --- a/clients/client-fsx/commands/DescribeFileSystemAliasesCommand.ts +++ b/clients/client-fsx/commands/DescribeFileSystemAliasesCommand.ts @@ -30,6 +30,7 @@ export class DescribeFileSystemAliasesCommand extends $Command< DescribeFileSystemAliasesCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFileSystemAliasesCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DescribeFileSystemsCommand.ts b/clients/client-fsx/commands/DescribeFileSystemsCommand.ts index 9b9a45141bbf0..04524a15b3012 100644 --- a/clients/client-fsx/commands/DescribeFileSystemsCommand.ts +++ b/clients/client-fsx/commands/DescribeFileSystemsCommand.ts @@ -59,6 +59,7 @@ export class DescribeFileSystemsCommand extends $Command< DescribeFileSystemsCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class DescribeFileSystemsCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/DisassociateFileSystemAliasesCommand.ts b/clients/client-fsx/commands/DisassociateFileSystemAliasesCommand.ts index a8f313ca1b5db..f4197c0a6a01c 100644 --- a/clients/client-fsx/commands/DisassociateFileSystemAliasesCommand.ts +++ b/clients/client-fsx/commands/DisassociateFileSystemAliasesCommand.ts @@ -36,6 +36,7 @@ export class DisassociateFileSystemAliasesCommand extends $Command< DisassociateFileSystemAliasesCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisassociateFileSystemAliasesCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/ListTagsForResourceCommand.ts b/clients/client-fsx/commands/ListTagsForResourceCommand.ts index 798b07f5d7c54..f9d4debd0ae61 100644 --- a/clients/client-fsx/commands/ListTagsForResourceCommand.ts +++ b/clients/client-fsx/commands/ListTagsForResourceCommand.ts @@ -56,6 +56,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/TagResourceCommand.ts b/clients/client-fsx/commands/TagResourceCommand.ts index fcae6f1b3029b..4c4ef50e37f2a 100644 --- a/clients/client-fsx/commands/TagResourceCommand.ts +++ b/clients/client-fsx/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/UntagResourceCommand.ts b/clients/client-fsx/commands/UntagResourceCommand.ts index 4740f9dacfd3b..3f7d7cd4386f3 100644 --- a/clients/client-fsx/commands/UntagResourceCommand.ts +++ b/clients/client-fsx/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-fsx/commands/UpdateFileSystemCommand.ts b/clients/client-fsx/commands/UpdateFileSystemCommand.ts index b6d7591398f03..61c6cf7aaa66b 100644 --- a/clients/client-fsx/commands/UpdateFileSystemCommand.ts +++ b/clients/client-fsx/commands/UpdateFileSystemCommand.ts @@ -70,6 +70,7 @@ export class UpdateFileSystemCommand extends $Command< UpdateFileSystemCommandOutput, FSxClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class UpdateFileSystemCommand extends $Command< configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/AcceptMatchCommand.ts b/clients/client-gamelift/commands/AcceptMatchCommand.ts index 28ed6d2107fd4..6f8b971e92f46 100644 --- a/clients/client-gamelift/commands/AcceptMatchCommand.ts +++ b/clients/client-gamelift/commands/AcceptMatchCommand.ts @@ -86,6 +86,7 @@ export class AcceptMatchCommand extends $Command< AcceptMatchCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class AcceptMatchCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ClaimGameServerCommand.ts b/clients/client-gamelift/commands/ClaimGameServerCommand.ts index 244aca99e049a..88379fd0c1fc9 100644 --- a/clients/client-gamelift/commands/ClaimGameServerCommand.ts +++ b/clients/client-gamelift/commands/ClaimGameServerCommand.ts @@ -103,6 +103,7 @@ export class ClaimGameServerCommand extends $Command< ClaimGameServerCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -120,7 +121,10 @@ export class ClaimGameServerCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateAliasCommand.ts b/clients/client-gamelift/commands/CreateAliasCommand.ts index e4515ffb2832c..ec728ad8da522 100644 --- a/clients/client-gamelift/commands/CreateAliasCommand.ts +++ b/clients/client-gamelift/commands/CreateAliasCommand.ts @@ -73,6 +73,7 @@ export class CreateAliasCommand extends $Command< CreateAliasCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,7 +91,10 @@ export class CreateAliasCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateBuildCommand.ts b/clients/client-gamelift/commands/CreateBuildCommand.ts index 18e768a6e22d9..579680c290549 100644 --- a/clients/client-gamelift/commands/CreateBuildCommand.ts +++ b/clients/client-gamelift/commands/CreateBuildCommand.ts @@ -100,6 +100,7 @@ export class CreateBuildCommand extends $Command< CreateBuildCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -117,7 +118,10 @@ export class CreateBuildCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateFleetCommand.ts b/clients/client-gamelift/commands/CreateFleetCommand.ts index 9e78beb9df444..56f756f35ab47 100644 --- a/clients/client-gamelift/commands/CreateFleetCommand.ts +++ b/clients/client-gamelift/commands/CreateFleetCommand.ts @@ -111,6 +111,7 @@ export class CreateFleetCommand extends $Command< CreateFleetCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -128,7 +129,10 @@ export class CreateFleetCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateGameServerGroupCommand.ts b/clients/client-gamelift/commands/CreateGameServerGroupCommand.ts index 3bec63c93c42a..db55fb8549331 100644 --- a/clients/client-gamelift/commands/CreateGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/CreateGameServerGroupCommand.ts @@ -112,6 +112,7 @@ export class CreateGameServerGroupCommand extends $Command< CreateGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -129,7 +130,10 @@ export class CreateGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateGameSessionCommand.ts b/clients/client-gamelift/commands/CreateGameSessionCommand.ts index 4461bdbbe3168..d148a9830fcde 100644 --- a/clients/client-gamelift/commands/CreateGameSessionCommand.ts +++ b/clients/client-gamelift/commands/CreateGameSessionCommand.ts @@ -108,6 +108,7 @@ export class CreateGameSessionCommand extends $Command< CreateGameSessionCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -125,7 +126,10 @@ export class CreateGameSessionCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateGameSessionQueueCommand.ts b/clients/client-gamelift/commands/CreateGameSessionQueueCommand.ts index 7ebcad418d75f..41b8d89508168 100644 --- a/clients/client-gamelift/commands/CreateGameSessionQueueCommand.ts +++ b/clients/client-gamelift/commands/CreateGameSessionQueueCommand.ts @@ -91,6 +91,7 @@ export class CreateGameSessionQueueCommand extends $Command< CreateGameSessionQueueCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class CreateGameSessionQueueCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateMatchmakingConfigurationCommand.ts b/clients/client-gamelift/commands/CreateMatchmakingConfigurationCommand.ts index 519e3f383f53a..613c505de04e2 100644 --- a/clients/client-gamelift/commands/CreateMatchmakingConfigurationCommand.ts +++ b/clients/client-gamelift/commands/CreateMatchmakingConfigurationCommand.ts @@ -104,6 +104,7 @@ export class CreateMatchmakingConfigurationCommand extends $Command< CreateMatchmakingConfigurationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -121,7 +122,10 @@ export class CreateMatchmakingConfigurationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateMatchmakingRuleSetCommand.ts b/clients/client-gamelift/commands/CreateMatchmakingRuleSetCommand.ts index a22a4f492501d..cec6e264f7415 100644 --- a/clients/client-gamelift/commands/CreateMatchmakingRuleSetCommand.ts +++ b/clients/client-gamelift/commands/CreateMatchmakingRuleSetCommand.ts @@ -105,6 +105,7 @@ export class CreateMatchmakingRuleSetCommand extends $Command< CreateMatchmakingRuleSetCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -122,7 +123,10 @@ export class CreateMatchmakingRuleSetCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreatePlayerSessionCommand.ts b/clients/client-gamelift/commands/CreatePlayerSessionCommand.ts index 387cdbf11614e..56eb9de39f0b7 100644 --- a/clients/client-gamelift/commands/CreatePlayerSessionCommand.ts +++ b/clients/client-gamelift/commands/CreatePlayerSessionCommand.ts @@ -77,6 +77,7 @@ export class CreatePlayerSessionCommand extends $Command< CreatePlayerSessionCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class CreatePlayerSessionCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreatePlayerSessionsCommand.ts b/clients/client-gamelift/commands/CreatePlayerSessionsCommand.ts index c3a7302ed3711..ed225bff2c41b 100644 --- a/clients/client-gamelift/commands/CreatePlayerSessionsCommand.ts +++ b/clients/client-gamelift/commands/CreatePlayerSessionsCommand.ts @@ -77,6 +77,7 @@ export class CreatePlayerSessionsCommand extends $Command< CreatePlayerSessionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class CreatePlayerSessionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateScriptCommand.ts b/clients/client-gamelift/commands/CreateScriptCommand.ts index 6760845cd8939..75b4c82442056 100644 --- a/clients/client-gamelift/commands/CreateScriptCommand.ts +++ b/clients/client-gamelift/commands/CreateScriptCommand.ts @@ -90,6 +90,7 @@ export class CreateScriptCommand extends $Command< CreateScriptCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -107,7 +108,10 @@ export class CreateScriptCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateVpcPeeringAuthorizationCommand.ts b/clients/client-gamelift/commands/CreateVpcPeeringAuthorizationCommand.ts index 562d3359002e1..6b85d81aab614 100644 --- a/clients/client-gamelift/commands/CreateVpcPeeringAuthorizationCommand.ts +++ b/clients/client-gamelift/commands/CreateVpcPeeringAuthorizationCommand.ts @@ -81,6 +81,7 @@ export class CreateVpcPeeringAuthorizationCommand extends $Command< CreateVpcPeeringAuthorizationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -98,7 +99,10 @@ export class CreateVpcPeeringAuthorizationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/CreateVpcPeeringConnectionCommand.ts b/clients/client-gamelift/commands/CreateVpcPeeringConnectionCommand.ts index cdfe1f245ae22..d80a88ef3f8c2 100644 --- a/clients/client-gamelift/commands/CreateVpcPeeringConnectionCommand.ts +++ b/clients/client-gamelift/commands/CreateVpcPeeringConnectionCommand.ts @@ -78,6 +78,7 @@ export class CreateVpcPeeringConnectionCommand extends $Command< CreateVpcPeeringConnectionCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class CreateVpcPeeringConnectionCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteAliasCommand.ts b/clients/client-gamelift/commands/DeleteAliasCommand.ts index ddf0ff5769bd4..b4faf5a9679fd 100644 --- a/clients/client-gamelift/commands/DeleteAliasCommand.ts +++ b/clients/client-gamelift/commands/DeleteAliasCommand.ts @@ -62,6 +62,7 @@ export class DeleteAliasCommand extends $Command< DeleteAliasCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DeleteAliasCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteBuildCommand.ts b/clients/client-gamelift/commands/DeleteBuildCommand.ts index 1de7c4056ace2..a3230183fbfa2 100644 --- a/clients/client-gamelift/commands/DeleteBuildCommand.ts +++ b/clients/client-gamelift/commands/DeleteBuildCommand.ts @@ -68,6 +68,7 @@ export class DeleteBuildCommand extends $Command< DeleteBuildCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class DeleteBuildCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteFleetCommand.ts b/clients/client-gamelift/commands/DeleteFleetCommand.ts index 9593ca343e57f..a6344eb400b7a 100644 --- a/clients/client-gamelift/commands/DeleteFleetCommand.ts +++ b/clients/client-gamelift/commands/DeleteFleetCommand.ts @@ -76,6 +76,7 @@ export class DeleteFleetCommand extends $Command< DeleteFleetCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -93,7 +94,10 @@ export class DeleteFleetCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteGameServerGroupCommand.ts b/clients/client-gamelift/commands/DeleteGameServerGroupCommand.ts index bc6fed57d0c30..df2fa4146efad 100644 --- a/clients/client-gamelift/commands/DeleteGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/DeleteGameServerGroupCommand.ts @@ -106,6 +106,7 @@ export class DeleteGameServerGroupCommand extends $Command< DeleteGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -123,7 +124,10 @@ export class DeleteGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteGameSessionQueueCommand.ts b/clients/client-gamelift/commands/DeleteGameSessionQueueCommand.ts index 12d4d541ad817..3fa2f307e6811 100644 --- a/clients/client-gamelift/commands/DeleteGameSessionQueueCommand.ts +++ b/clients/client-gamelift/commands/DeleteGameSessionQueueCommand.ts @@ -61,6 +61,7 @@ export class DeleteGameSessionQueueCommand extends $Command< DeleteGameSessionQueueCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class DeleteGameSessionQueueCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteMatchmakingConfigurationCommand.ts b/clients/client-gamelift/commands/DeleteMatchmakingConfigurationCommand.ts index f0d882e0c8775..e757a8c2c81f6 100644 --- a/clients/client-gamelift/commands/DeleteMatchmakingConfigurationCommand.ts +++ b/clients/client-gamelift/commands/DeleteMatchmakingConfigurationCommand.ts @@ -75,6 +75,7 @@ export class DeleteMatchmakingConfigurationCommand extends $Command< DeleteMatchmakingConfigurationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class DeleteMatchmakingConfigurationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteMatchmakingRuleSetCommand.ts b/clients/client-gamelift/commands/DeleteMatchmakingRuleSetCommand.ts index 65835e822d5f0..111016581829b 100644 --- a/clients/client-gamelift/commands/DeleteMatchmakingRuleSetCommand.ts +++ b/clients/client-gamelift/commands/DeleteMatchmakingRuleSetCommand.ts @@ -86,6 +86,7 @@ export class DeleteMatchmakingRuleSetCommand extends $Command< DeleteMatchmakingRuleSetCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class DeleteMatchmakingRuleSetCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteScalingPolicyCommand.ts b/clients/client-gamelift/commands/DeleteScalingPolicyCommand.ts index e2b869d90fd5f..5ba4c71381eaa 100644 --- a/clients/client-gamelift/commands/DeleteScalingPolicyCommand.ts +++ b/clients/client-gamelift/commands/DeleteScalingPolicyCommand.ts @@ -81,6 +81,7 @@ export class DeleteScalingPolicyCommand extends $Command< DeleteScalingPolicyCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -98,7 +99,10 @@ export class DeleteScalingPolicyCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteScriptCommand.ts b/clients/client-gamelift/commands/DeleteScriptCommand.ts index 081d26180d6de..4d8375e06ba5e 100644 --- a/clients/client-gamelift/commands/DeleteScriptCommand.ts +++ b/clients/client-gamelift/commands/DeleteScriptCommand.ts @@ -70,6 +70,7 @@ export class DeleteScriptCommand extends $Command< DeleteScriptCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class DeleteScriptCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteVpcPeeringAuthorizationCommand.ts b/clients/client-gamelift/commands/DeleteVpcPeeringAuthorizationCommand.ts index b0e74d86c224d..7db16abfc77b5 100644 --- a/clients/client-gamelift/commands/DeleteVpcPeeringAuthorizationCommand.ts +++ b/clients/client-gamelift/commands/DeleteVpcPeeringAuthorizationCommand.ts @@ -61,6 +61,7 @@ export class DeleteVpcPeeringAuthorizationCommand extends $Command< DeleteVpcPeeringAuthorizationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class DeleteVpcPeeringAuthorizationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeleteVpcPeeringConnectionCommand.ts b/clients/client-gamelift/commands/DeleteVpcPeeringConnectionCommand.ts index e777922ff2c30..e95453f102a65 100644 --- a/clients/client-gamelift/commands/DeleteVpcPeeringConnectionCommand.ts +++ b/clients/client-gamelift/commands/DeleteVpcPeeringConnectionCommand.ts @@ -66,6 +66,7 @@ export class DeleteVpcPeeringConnectionCommand extends $Command< DeleteVpcPeeringConnectionCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DeleteVpcPeeringConnectionCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DeregisterGameServerCommand.ts b/clients/client-gamelift/commands/DeregisterGameServerCommand.ts index bb5ebb37b6256..a6aff465b6ad4 100644 --- a/clients/client-gamelift/commands/DeregisterGameServerCommand.ts +++ b/clients/client-gamelift/commands/DeregisterGameServerCommand.ts @@ -77,6 +77,7 @@ export class DeregisterGameServerCommand extends $Command< DeregisterGameServerCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class DeregisterGameServerCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeAliasCommand.ts b/clients/client-gamelift/commands/DescribeAliasCommand.ts index 3143da3976cc2..ae4dbb425d8af 100644 --- a/clients/client-gamelift/commands/DescribeAliasCommand.ts +++ b/clients/client-gamelift/commands/DescribeAliasCommand.ts @@ -63,6 +63,7 @@ export class DescribeAliasCommand extends $Command< DescribeAliasCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class DescribeAliasCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeBuildCommand.ts b/clients/client-gamelift/commands/DescribeBuildCommand.ts index ef37dfe731ea2..c12069850ed2f 100644 --- a/clients/client-gamelift/commands/DescribeBuildCommand.ts +++ b/clients/client-gamelift/commands/DescribeBuildCommand.ts @@ -66,6 +66,7 @@ export class DescribeBuildCommand extends $Command< DescribeBuildCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DescribeBuildCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeEC2InstanceLimitsCommand.ts b/clients/client-gamelift/commands/DescribeEC2InstanceLimitsCommand.ts index 760f853f0e46b..cc1e6416f15ac 100644 --- a/clients/client-gamelift/commands/DescribeEC2InstanceLimitsCommand.ts +++ b/clients/client-gamelift/commands/DescribeEC2InstanceLimitsCommand.ts @@ -80,6 +80,7 @@ export class DescribeEC2InstanceLimitsCommand extends $Command< DescribeEC2InstanceLimitsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class DescribeEC2InstanceLimitsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeFleetAttributesCommand.ts b/clients/client-gamelift/commands/DescribeFleetAttributesCommand.ts index f83e566ea0879..d2cc883b85076 100644 --- a/clients/client-gamelift/commands/DescribeFleetAttributesCommand.ts +++ b/clients/client-gamelift/commands/DescribeFleetAttributesCommand.ts @@ -114,6 +114,7 @@ export class DescribeFleetAttributesCommand extends $Command< DescribeFleetAttributesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -131,7 +132,10 @@ export class DescribeFleetAttributesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeFleetCapacityCommand.ts b/clients/client-gamelift/commands/DescribeFleetCapacityCommand.ts index 6578d59eaae33..02eb66acaeed8 100644 --- a/clients/client-gamelift/commands/DescribeFleetCapacityCommand.ts +++ b/clients/client-gamelift/commands/DescribeFleetCapacityCommand.ts @@ -119,6 +119,7 @@ export class DescribeFleetCapacityCommand extends $Command< DescribeFleetCapacityCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -136,7 +137,10 @@ export class DescribeFleetCapacityCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeFleetEventsCommand.ts b/clients/client-gamelift/commands/DescribeFleetEventsCommand.ts index b733f34b10561..bb1783beac95d 100644 --- a/clients/client-gamelift/commands/DescribeFleetEventsCommand.ts +++ b/clients/client-gamelift/commands/DescribeFleetEventsCommand.ts @@ -107,6 +107,7 @@ export class DescribeFleetEventsCommand extends $Command< DescribeFleetEventsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -124,7 +125,10 @@ export class DescribeFleetEventsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeFleetPortSettingsCommand.ts b/clients/client-gamelift/commands/DescribeFleetPortSettingsCommand.ts index 6bb38f7cc91f9..f98d942814d82 100644 --- a/clients/client-gamelift/commands/DescribeFleetPortSettingsCommand.ts +++ b/clients/client-gamelift/commands/DescribeFleetPortSettingsCommand.ts @@ -111,6 +111,7 @@ export class DescribeFleetPortSettingsCommand extends $Command< DescribeFleetPortSettingsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -128,7 +129,10 @@ export class DescribeFleetPortSettingsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeFleetUtilizationCommand.ts b/clients/client-gamelift/commands/DescribeFleetUtilizationCommand.ts index bc03fd8ad9b6f..ffff216d16686 100644 --- a/clients/client-gamelift/commands/DescribeFleetUtilizationCommand.ts +++ b/clients/client-gamelift/commands/DescribeFleetUtilizationCommand.ts @@ -118,6 +118,7 @@ export class DescribeFleetUtilizationCommand extends $Command< DescribeFleetUtilizationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -135,7 +136,10 @@ export class DescribeFleetUtilizationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameServerCommand.ts b/clients/client-gamelift/commands/DescribeGameServerCommand.ts index d3653cba8f13d..59d26e526bd48 100644 --- a/clients/client-gamelift/commands/DescribeGameServerCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameServerCommand.ts @@ -75,6 +75,7 @@ export class DescribeGameServerCommand extends $Command< DescribeGameServerCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class DescribeGameServerCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameServerGroupCommand.ts b/clients/client-gamelift/commands/DescribeGameServerGroupCommand.ts index ab9c7a97e2bc9..c7559b65572f3 100644 --- a/clients/client-gamelift/commands/DescribeGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameServerGroupCommand.ts @@ -87,6 +87,7 @@ export class DescribeGameServerGroupCommand extends $Command< DescribeGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class DescribeGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameServerInstancesCommand.ts b/clients/client-gamelift/commands/DescribeGameServerInstancesCommand.ts index 4b1ee2332a0c8..097347b7ff361 100644 --- a/clients/client-gamelift/commands/DescribeGameServerInstancesCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameServerInstancesCommand.ts @@ -97,6 +97,7 @@ export class DescribeGameServerInstancesCommand extends $Command< DescribeGameServerInstancesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -114,7 +115,10 @@ export class DescribeGameServerInstancesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameSessionDetailsCommand.ts b/clients/client-gamelift/commands/DescribeGameSessionDetailsCommand.ts index b43e8a5ec833d..62d1838eb1dc2 100644 --- a/clients/client-gamelift/commands/DescribeGameSessionDetailsCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameSessionDetailsCommand.ts @@ -89,6 +89,7 @@ export class DescribeGameSessionDetailsCommand extends $Command< DescribeGameSessionDetailsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class DescribeGameSessionDetailsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameSessionPlacementCommand.ts b/clients/client-gamelift/commands/DescribeGameSessionPlacementCommand.ts index f769727040183..f96ca0acf6257 100644 --- a/clients/client-gamelift/commands/DescribeGameSessionPlacementCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameSessionPlacementCommand.ts @@ -81,6 +81,7 @@ export class DescribeGameSessionPlacementCommand extends $Command< DescribeGameSessionPlacementCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -98,7 +99,10 @@ export class DescribeGameSessionPlacementCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameSessionQueuesCommand.ts b/clients/client-gamelift/commands/DescribeGameSessionQueuesCommand.ts index 5209a21a42958..4e6683fc34071 100644 --- a/clients/client-gamelift/commands/DescribeGameSessionQueuesCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameSessionQueuesCommand.ts @@ -64,6 +64,7 @@ export class DescribeGameSessionQueuesCommand extends $Command< DescribeGameSessionQueuesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class DescribeGameSessionQueuesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeGameSessionsCommand.ts b/clients/client-gamelift/commands/DescribeGameSessionsCommand.ts index 4735bcbd066e9..c958cbbbf2596 100644 --- a/clients/client-gamelift/commands/DescribeGameSessionsCommand.ts +++ b/clients/client-gamelift/commands/DescribeGameSessionsCommand.ts @@ -90,6 +90,7 @@ export class DescribeGameSessionsCommand extends $Command< DescribeGameSessionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -107,7 +108,10 @@ export class DescribeGameSessionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeInstancesCommand.ts b/clients/client-gamelift/commands/DescribeInstancesCommand.ts index 778e204d5bf3d..41785781f38ab 100644 --- a/clients/client-gamelift/commands/DescribeInstancesCommand.ts +++ b/clients/client-gamelift/commands/DescribeInstancesCommand.ts @@ -58,6 +58,7 @@ export class DescribeInstancesCommand extends $Command< DescribeInstancesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class DescribeInstancesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeMatchmakingCommand.ts b/clients/client-gamelift/commands/DescribeMatchmakingCommand.ts index a523936c4c781..1b2d7f9df185d 100644 --- a/clients/client-gamelift/commands/DescribeMatchmakingCommand.ts +++ b/clients/client-gamelift/commands/DescribeMatchmakingCommand.ts @@ -82,6 +82,7 @@ export class DescribeMatchmakingCommand extends $Command< DescribeMatchmakingCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class DescribeMatchmakingCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeMatchmakingConfigurationsCommand.ts b/clients/client-gamelift/commands/DescribeMatchmakingConfigurationsCommand.ts index ca546d0907f88..dbadfe6004c23 100644 --- a/clients/client-gamelift/commands/DescribeMatchmakingConfigurationsCommand.ts +++ b/clients/client-gamelift/commands/DescribeMatchmakingConfigurationsCommand.ts @@ -86,6 +86,7 @@ export class DescribeMatchmakingConfigurationsCommand extends $Command< DescribeMatchmakingConfigurationsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class DescribeMatchmakingConfigurationsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeMatchmakingRuleSetsCommand.ts b/clients/client-gamelift/commands/DescribeMatchmakingRuleSetsCommand.ts index ca731913703bc..ac30e41f6872b 100644 --- a/clients/client-gamelift/commands/DescribeMatchmakingRuleSetsCommand.ts +++ b/clients/client-gamelift/commands/DescribeMatchmakingRuleSetsCommand.ts @@ -87,6 +87,7 @@ export class DescribeMatchmakingRuleSetsCommand extends $Command< DescribeMatchmakingRuleSetsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class DescribeMatchmakingRuleSetsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribePlayerSessionsCommand.ts b/clients/client-gamelift/commands/DescribePlayerSessionsCommand.ts index f4949b4b5fa75..156aae67ac271 100644 --- a/clients/client-gamelift/commands/DescribePlayerSessionsCommand.ts +++ b/clients/client-gamelift/commands/DescribePlayerSessionsCommand.ts @@ -78,6 +78,7 @@ export class DescribePlayerSessionsCommand extends $Command< DescribePlayerSessionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class DescribePlayerSessionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeRuntimeConfigurationCommand.ts b/clients/client-gamelift/commands/DescribeRuntimeConfigurationCommand.ts index 650ca8f8a4a32..45cac52fff141 100644 --- a/clients/client-gamelift/commands/DescribeRuntimeConfigurationCommand.ts +++ b/clients/client-gamelift/commands/DescribeRuntimeConfigurationCommand.ts @@ -111,6 +111,7 @@ export class DescribeRuntimeConfigurationCommand extends $Command< DescribeRuntimeConfigurationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -128,7 +129,10 @@ export class DescribeRuntimeConfigurationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeScalingPoliciesCommand.ts b/clients/client-gamelift/commands/DescribeScalingPoliciesCommand.ts index ac85869fbcd00..6d1dd33581e5c 100644 --- a/clients/client-gamelift/commands/DescribeScalingPoliciesCommand.ts +++ b/clients/client-gamelift/commands/DescribeScalingPoliciesCommand.ts @@ -85,6 +85,7 @@ export class DescribeScalingPoliciesCommand extends $Command< DescribeScalingPoliciesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -102,7 +103,10 @@ export class DescribeScalingPoliciesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeScriptCommand.ts b/clients/client-gamelift/commands/DescribeScriptCommand.ts index fbe1190d02234..155102c764e3b 100644 --- a/clients/client-gamelift/commands/DescribeScriptCommand.ts +++ b/clients/client-gamelift/commands/DescribeScriptCommand.ts @@ -66,6 +66,7 @@ export class DescribeScriptCommand extends $Command< DescribeScriptCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DescribeScriptCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeVpcPeeringAuthorizationsCommand.ts b/clients/client-gamelift/commands/DescribeVpcPeeringAuthorizationsCommand.ts index 8da241758427f..1e8bb4440635a 100644 --- a/clients/client-gamelift/commands/DescribeVpcPeeringAuthorizationsCommand.ts +++ b/clients/client-gamelift/commands/DescribeVpcPeeringAuthorizationsCommand.ts @@ -62,6 +62,7 @@ export class DescribeVpcPeeringAuthorizationsCommand extends $Command< DescribeVpcPeeringAuthorizationsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribeVpcPeeringAuthorizationsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/DescribeVpcPeeringConnectionsCommand.ts b/clients/client-gamelift/commands/DescribeVpcPeeringConnectionsCommand.ts index d7c9cdc2ff308..ec27687fec635 100644 --- a/clients/client-gamelift/commands/DescribeVpcPeeringConnectionsCommand.ts +++ b/clients/client-gamelift/commands/DescribeVpcPeeringConnectionsCommand.ts @@ -66,6 +66,7 @@ export class DescribeVpcPeeringConnectionsCommand extends $Command< DescribeVpcPeeringConnectionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DescribeVpcPeeringConnectionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/GetGameSessionLogUrlCommand.ts b/clients/client-gamelift/commands/GetGameSessionLogUrlCommand.ts index d9602e39b0b73..c2114072601d3 100644 --- a/clients/client-gamelift/commands/GetGameSessionLogUrlCommand.ts +++ b/clients/client-gamelift/commands/GetGameSessionLogUrlCommand.ts @@ -87,6 +87,7 @@ export class GetGameSessionLogUrlCommand extends $Command< GetGameSessionLogUrlCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class GetGameSessionLogUrlCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/GetInstanceAccessCommand.ts b/clients/client-gamelift/commands/GetInstanceAccessCommand.ts index 58fbf436b6e84..05fcde1b2da16 100644 --- a/clients/client-gamelift/commands/GetInstanceAccessCommand.ts +++ b/clients/client-gamelift/commands/GetInstanceAccessCommand.ts @@ -67,6 +67,7 @@ export class GetInstanceAccessCommand extends $Command< GetInstanceAccessCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class GetInstanceAccessCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListAliasesCommand.ts b/clients/client-gamelift/commands/ListAliasesCommand.ts index 6a236934d518a..3d9873a3a8121 100644 --- a/clients/client-gamelift/commands/ListAliasesCommand.ts +++ b/clients/client-gamelift/commands/ListAliasesCommand.ts @@ -65,6 +65,7 @@ export class ListAliasesCommand extends $Command< ListAliasesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class ListAliasesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListBuildsCommand.ts b/clients/client-gamelift/commands/ListBuildsCommand.ts index 47f828eb5323d..4f112cc840cb1 100644 --- a/clients/client-gamelift/commands/ListBuildsCommand.ts +++ b/clients/client-gamelift/commands/ListBuildsCommand.ts @@ -71,6 +71,7 @@ export class ListBuildsCommand extends $Command< ListBuildsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class ListBuildsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListFleetsCommand.ts b/clients/client-gamelift/commands/ListFleetsCommand.ts index d081e686bbcea..86b0842a407d1 100644 --- a/clients/client-gamelift/commands/ListFleetsCommand.ts +++ b/clients/client-gamelift/commands/ListFleetsCommand.ts @@ -74,6 +74,7 @@ export class ListFleetsCommand extends $Command< ListFleetsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class ListFleetsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListGameServerGroupsCommand.ts b/clients/client-gamelift/commands/ListGameServerGroupsCommand.ts index ce4e82ab6f16f..27a32ba1653e4 100644 --- a/clients/client-gamelift/commands/ListGameServerGroupsCommand.ts +++ b/clients/client-gamelift/commands/ListGameServerGroupsCommand.ts @@ -84,6 +84,7 @@ export class ListGameServerGroupsCommand extends $Command< ListGameServerGroupsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -101,7 +102,10 @@ export class ListGameServerGroupsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListGameServersCommand.ts b/clients/client-gamelift/commands/ListGameServersCommand.ts index 2b47a7cabf022..ff45fc2fa729b 100644 --- a/clients/client-gamelift/commands/ListGameServersCommand.ts +++ b/clients/client-gamelift/commands/ListGameServersCommand.ts @@ -74,6 +74,7 @@ export class ListGameServersCommand extends $Command< ListGameServersCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class ListGameServersCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListScriptsCommand.ts b/clients/client-gamelift/commands/ListScriptsCommand.ts index a861a3e2e2a33..f8d05a816d133 100644 --- a/clients/client-gamelift/commands/ListScriptsCommand.ts +++ b/clients/client-gamelift/commands/ListScriptsCommand.ts @@ -64,6 +64,7 @@ export class ListScriptsCommand extends $Command< ListScriptsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class ListScriptsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ListTagsForResourceCommand.ts b/clients/client-gamelift/commands/ListTagsForResourceCommand.ts index ecfee921841a6..d9e1f99236d2a 100644 --- a/clients/client-gamelift/commands/ListTagsForResourceCommand.ts +++ b/clients/client-gamelift/commands/ListTagsForResourceCommand.ts @@ -87,6 +87,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/PutScalingPolicyCommand.ts b/clients/client-gamelift/commands/PutScalingPolicyCommand.ts index 6dfe29314db03..9139a59db961f 100644 --- a/clients/client-gamelift/commands/PutScalingPolicyCommand.ts +++ b/clients/client-gamelift/commands/PutScalingPolicyCommand.ts @@ -139,6 +139,7 @@ export class PutScalingPolicyCommand extends $Command< PutScalingPolicyCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -156,7 +157,10 @@ export class PutScalingPolicyCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/RegisterGameServerCommand.ts b/clients/client-gamelift/commands/RegisterGameServerCommand.ts index 32ef2013d573c..8807324bb9c5d 100644 --- a/clients/client-gamelift/commands/RegisterGameServerCommand.ts +++ b/clients/client-gamelift/commands/RegisterGameServerCommand.ts @@ -85,6 +85,7 @@ export class RegisterGameServerCommand extends $Command< RegisterGameServerCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -102,7 +103,10 @@ export class RegisterGameServerCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/RequestUploadCredentialsCommand.ts b/clients/client-gamelift/commands/RequestUploadCredentialsCommand.ts index 96cdfcd496527..234443258c33a 100644 --- a/clients/client-gamelift/commands/RequestUploadCredentialsCommand.ts +++ b/clients/client-gamelift/commands/RequestUploadCredentialsCommand.ts @@ -70,6 +70,7 @@ export class RequestUploadCredentialsCommand extends $Command< RequestUploadCredentialsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class RequestUploadCredentialsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ResolveAliasCommand.ts b/clients/client-gamelift/commands/ResolveAliasCommand.ts index 0c62c24c8f9e3..71bdc8453e479 100644 --- a/clients/client-gamelift/commands/ResolveAliasCommand.ts +++ b/clients/client-gamelift/commands/ResolveAliasCommand.ts @@ -60,6 +60,7 @@ export class ResolveAliasCommand extends $Command< ResolveAliasCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class ResolveAliasCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ResumeGameServerGroupCommand.ts b/clients/client-gamelift/commands/ResumeGameServerGroupCommand.ts index 222deb6b587b3..b1b9ab43a66ee 100644 --- a/clients/client-gamelift/commands/ResumeGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/ResumeGameServerGroupCommand.ts @@ -90,6 +90,7 @@ export class ResumeGameServerGroupCommand extends $Command< ResumeGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -107,7 +108,10 @@ export class ResumeGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/SearchGameSessionsCommand.ts b/clients/client-gamelift/commands/SearchGameSessionsCommand.ts index 0e637fbdcdf60..a93050b707094 100644 --- a/clients/client-gamelift/commands/SearchGameSessionsCommand.ts +++ b/clients/client-gamelift/commands/SearchGameSessionsCommand.ts @@ -147,6 +147,7 @@ export class SearchGameSessionsCommand extends $Command< SearchGameSessionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -164,7 +165,10 @@ export class SearchGameSessionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StartFleetActionsCommand.ts b/clients/client-gamelift/commands/StartFleetActionsCommand.ts index df09f343f33dd..6dc3da9bfd308 100644 --- a/clients/client-gamelift/commands/StartFleetActionsCommand.ts +++ b/clients/client-gamelift/commands/StartFleetActionsCommand.ts @@ -75,6 +75,7 @@ export class StartFleetActionsCommand extends $Command< StartFleetActionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class StartFleetActionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StartGameSessionPlacementCommand.ts b/clients/client-gamelift/commands/StartGameSessionPlacementCommand.ts index e023ac44429d5..2dae1c54e07f7 100644 --- a/clients/client-gamelift/commands/StartGameSessionPlacementCommand.ts +++ b/clients/client-gamelift/commands/StartGameSessionPlacementCommand.ts @@ -119,6 +119,7 @@ export class StartGameSessionPlacementCommand extends $Command< StartGameSessionPlacementCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -136,7 +137,10 @@ export class StartGameSessionPlacementCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StartMatchBackfillCommand.ts b/clients/client-gamelift/commands/StartMatchBackfillCommand.ts index acfa14c8b0f99..55e15d6f85812 100644 --- a/clients/client-gamelift/commands/StartMatchBackfillCommand.ts +++ b/clients/client-gamelift/commands/StartMatchBackfillCommand.ts @@ -87,6 +87,7 @@ export class StartMatchBackfillCommand extends $Command< StartMatchBackfillCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -104,7 +105,10 @@ export class StartMatchBackfillCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StartMatchmakingCommand.ts b/clients/client-gamelift/commands/StartMatchmakingCommand.ts index a365e485734d9..830ebab0b26ae 100644 --- a/clients/client-gamelift/commands/StartMatchmakingCommand.ts +++ b/clients/client-gamelift/commands/StartMatchmakingCommand.ts @@ -91,6 +91,7 @@ export class StartMatchmakingCommand extends $Command< StartMatchmakingCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class StartMatchmakingCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StopFleetActionsCommand.ts b/clients/client-gamelift/commands/StopFleetActionsCommand.ts index 942b82554c025..a68a09ee865c1 100644 --- a/clients/client-gamelift/commands/StopFleetActionsCommand.ts +++ b/clients/client-gamelift/commands/StopFleetActionsCommand.ts @@ -74,6 +74,7 @@ export class StopFleetActionsCommand extends $Command< StopFleetActionsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class StopFleetActionsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StopGameSessionPlacementCommand.ts b/clients/client-gamelift/commands/StopGameSessionPlacementCommand.ts index 4169fd87c792d..65d7e755c855b 100644 --- a/clients/client-gamelift/commands/StopGameSessionPlacementCommand.ts +++ b/clients/client-gamelift/commands/StopGameSessionPlacementCommand.ts @@ -82,6 +82,7 @@ export class StopGameSessionPlacementCommand extends $Command< StopGameSessionPlacementCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class StopGameSessionPlacementCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/StopMatchmakingCommand.ts b/clients/client-gamelift/commands/StopMatchmakingCommand.ts index 456184bfa74f1..011c8bcab858d 100644 --- a/clients/client-gamelift/commands/StopMatchmakingCommand.ts +++ b/clients/client-gamelift/commands/StopMatchmakingCommand.ts @@ -76,6 +76,7 @@ export class StopMatchmakingCommand extends $Command< StopMatchmakingCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -93,7 +94,10 @@ export class StopMatchmakingCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/SuspendGameServerGroupCommand.ts b/clients/client-gamelift/commands/SuspendGameServerGroupCommand.ts index b7d5a980fa1e3..28100540cbe70 100644 --- a/clients/client-gamelift/commands/SuspendGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/SuspendGameServerGroupCommand.ts @@ -100,6 +100,7 @@ export class SuspendGameServerGroupCommand extends $Command< SuspendGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -117,7 +118,10 @@ export class SuspendGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/TagResourceCommand.ts b/clients/client-gamelift/commands/TagResourceCommand.ts index b5ace786d3967..8b8bb2a329b70 100644 --- a/clients/client-gamelift/commands/TagResourceCommand.ts +++ b/clients/client-gamelift/commands/TagResourceCommand.ts @@ -89,6 +89,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class TagResourceCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UntagResourceCommand.ts b/clients/client-gamelift/commands/UntagResourceCommand.ts index 2101546637bc2..49a405ff3a263 100644 --- a/clients/client-gamelift/commands/UntagResourceCommand.ts +++ b/clients/client-gamelift/commands/UntagResourceCommand.ts @@ -89,6 +89,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class UntagResourceCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateAliasCommand.ts b/clients/client-gamelift/commands/UpdateAliasCommand.ts index 6021666039157..f56b99d325773 100644 --- a/clients/client-gamelift/commands/UpdateAliasCommand.ts +++ b/clients/client-gamelift/commands/UpdateAliasCommand.ts @@ -63,6 +63,7 @@ export class UpdateAliasCommand extends $Command< UpdateAliasCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class UpdateAliasCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateBuildCommand.ts b/clients/client-gamelift/commands/UpdateBuildCommand.ts index 5dfb51c190f54..2ddc608c71c1f 100644 --- a/clients/client-gamelift/commands/UpdateBuildCommand.ts +++ b/clients/client-gamelift/commands/UpdateBuildCommand.ts @@ -67,6 +67,7 @@ export class UpdateBuildCommand extends $Command< UpdateBuildCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class UpdateBuildCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateFleetAttributesCommand.ts b/clients/client-gamelift/commands/UpdateFleetAttributesCommand.ts index 032d2a6a16615..461440ae20b63 100644 --- a/clients/client-gamelift/commands/UpdateFleetAttributesCommand.ts +++ b/clients/client-gamelift/commands/UpdateFleetAttributesCommand.ts @@ -91,6 +91,7 @@ export class UpdateFleetAttributesCommand extends $Command< UpdateFleetAttributesCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class UpdateFleetAttributesCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateFleetCapacityCommand.ts b/clients/client-gamelift/commands/UpdateFleetCapacityCommand.ts index 9c2fd5abd8fc9..90a6808d095ca 100644 --- a/clients/client-gamelift/commands/UpdateFleetCapacityCommand.ts +++ b/clients/client-gamelift/commands/UpdateFleetCapacityCommand.ts @@ -102,6 +102,7 @@ export class UpdateFleetCapacityCommand extends $Command< UpdateFleetCapacityCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -119,7 +120,10 @@ export class UpdateFleetCapacityCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateFleetPortSettingsCommand.ts b/clients/client-gamelift/commands/UpdateFleetPortSettingsCommand.ts index 1ec117386becb..ee9da8adf6c99 100644 --- a/clients/client-gamelift/commands/UpdateFleetPortSettingsCommand.ts +++ b/clients/client-gamelift/commands/UpdateFleetPortSettingsCommand.ts @@ -94,6 +94,7 @@ export class UpdateFleetPortSettingsCommand extends $Command< UpdateFleetPortSettingsCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -111,7 +112,10 @@ export class UpdateFleetPortSettingsCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateGameServerCommand.ts b/clients/client-gamelift/commands/UpdateGameServerCommand.ts index 3cd2806327844..d941357feae54 100644 --- a/clients/client-gamelift/commands/UpdateGameServerCommand.ts +++ b/clients/client-gamelift/commands/UpdateGameServerCommand.ts @@ -96,6 +96,7 @@ export class UpdateGameServerCommand extends $Command< UpdateGameServerCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -113,7 +114,10 @@ export class UpdateGameServerCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateGameServerGroupCommand.ts b/clients/client-gamelift/commands/UpdateGameServerGroupCommand.ts index e7488ca6d4f17..02ebfc651651d 100644 --- a/clients/client-gamelift/commands/UpdateGameServerGroupCommand.ts +++ b/clients/client-gamelift/commands/UpdateGameServerGroupCommand.ts @@ -88,6 +88,7 @@ export class UpdateGameServerGroupCommand extends $Command< UpdateGameServerGroupCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -105,7 +106,10 @@ export class UpdateGameServerGroupCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateGameSessionCommand.ts b/clients/client-gamelift/commands/UpdateGameSessionCommand.ts index bac4e8534d25d..9cf48f05c25ad 100644 --- a/clients/client-gamelift/commands/UpdateGameSessionCommand.ts +++ b/clients/client-gamelift/commands/UpdateGameSessionCommand.ts @@ -85,6 +85,7 @@ export class UpdateGameSessionCommand extends $Command< UpdateGameSessionCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -102,7 +103,10 @@ export class UpdateGameSessionCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateGameSessionQueueCommand.ts b/clients/client-gamelift/commands/UpdateGameSessionQueueCommand.ts index fe383609cdc94..b21244ec3b16e 100644 --- a/clients/client-gamelift/commands/UpdateGameSessionQueueCommand.ts +++ b/clients/client-gamelift/commands/UpdateGameSessionQueueCommand.ts @@ -63,6 +63,7 @@ export class UpdateGameSessionQueueCommand extends $Command< UpdateGameSessionQueueCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class UpdateGameSessionQueueCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateMatchmakingConfigurationCommand.ts b/clients/client-gamelift/commands/UpdateMatchmakingConfigurationCommand.ts index 788ac487f2031..7378a7925bf11 100644 --- a/clients/client-gamelift/commands/UpdateMatchmakingConfigurationCommand.ts +++ b/clients/client-gamelift/commands/UpdateMatchmakingConfigurationCommand.ts @@ -82,6 +82,7 @@ export class UpdateMatchmakingConfigurationCommand extends $Command< UpdateMatchmakingConfigurationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class UpdateMatchmakingConfigurationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateRuntimeConfigurationCommand.ts b/clients/client-gamelift/commands/UpdateRuntimeConfigurationCommand.ts index 5b020a4cc61f4..6c5d9877fb919 100644 --- a/clients/client-gamelift/commands/UpdateRuntimeConfigurationCommand.ts +++ b/clients/client-gamelift/commands/UpdateRuntimeConfigurationCommand.ts @@ -100,6 +100,7 @@ export class UpdateRuntimeConfigurationCommand extends $Command< UpdateRuntimeConfigurationCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -117,7 +118,10 @@ export class UpdateRuntimeConfigurationCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/UpdateScriptCommand.ts b/clients/client-gamelift/commands/UpdateScriptCommand.ts index 2273c8e643ca8..986d52e7d113b 100644 --- a/clients/client-gamelift/commands/UpdateScriptCommand.ts +++ b/clients/client-gamelift/commands/UpdateScriptCommand.ts @@ -73,6 +73,7 @@ export class UpdateScriptCommand extends $Command< UpdateScriptCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,7 +91,10 @@ export class UpdateScriptCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-gamelift/commands/ValidateMatchmakingRuleSetCommand.ts b/clients/client-gamelift/commands/ValidateMatchmakingRuleSetCommand.ts index 26b3eef620a63..4e30e16d4ab4e 100644 --- a/clients/client-gamelift/commands/ValidateMatchmakingRuleSetCommand.ts +++ b/clients/client-gamelift/commands/ValidateMatchmakingRuleSetCommand.ts @@ -86,6 +86,7 @@ export class ValidateMatchmakingRuleSetCommand extends $Command< ValidateMatchmakingRuleSetCommandOutput, GameLiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class ValidateMatchmakingRuleSetCommand extends $Command< configuration: GameLiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/AbortMultipartUploadCommand.ts b/clients/client-glacier/commands/AbortMultipartUploadCommand.ts index 67423b077a05a..9c14687be73a1 100644 --- a/clients/client-glacier/commands/AbortMultipartUploadCommand.ts +++ b/clients/client-glacier/commands/AbortMultipartUploadCommand.ts @@ -45,6 +45,7 @@ export class AbortMultipartUploadCommand extends $Command< AbortMultipartUploadCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AbortMultipartUploadCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/AbortVaultLockCommand.ts b/clients/client-glacier/commands/AbortVaultLockCommand.ts index 02e16def89610..e3910bb48963c 100644 --- a/clients/client-glacier/commands/AbortVaultLockCommand.ts +++ b/clients/client-glacier/commands/AbortVaultLockCommand.ts @@ -41,6 +41,7 @@ export class AbortVaultLockCommand extends $Command< AbortVaultLockCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AbortVaultLockCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/AddTagsToVaultCommand.ts b/clients/client-glacier/commands/AddTagsToVaultCommand.ts index 8a6b2cc6ec789..3dd41e787ad01 100644 --- a/clients/client-glacier/commands/AddTagsToVaultCommand.ts +++ b/clients/client-glacier/commands/AddTagsToVaultCommand.ts @@ -33,6 +33,7 @@ export class AddTagsToVaultCommand extends $Command< AddTagsToVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AddTagsToVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/CompleteMultipartUploadCommand.ts b/clients/client-glacier/commands/CompleteMultipartUploadCommand.ts index 71ac387fe212b..b0c20ca07fecc 100644 --- a/clients/client-glacier/commands/CompleteMultipartUploadCommand.ts +++ b/clients/client-glacier/commands/CompleteMultipartUploadCommand.ts @@ -65,6 +65,7 @@ export class CompleteMultipartUploadCommand extends $Command< CompleteMultipartUploadCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class CompleteMultipartUploadCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/CompleteVaultLockCommand.ts b/clients/client-glacier/commands/CompleteVaultLockCommand.ts index f34514dd6ff13..9822c45508e60 100644 --- a/clients/client-glacier/commands/CompleteVaultLockCommand.ts +++ b/clients/client-glacier/commands/CompleteVaultLockCommand.ts @@ -41,6 +41,7 @@ export class CompleteVaultLockCommand extends $Command< CompleteVaultLockCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CompleteVaultLockCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/CreateVaultCommand.ts b/clients/client-glacier/commands/CreateVaultCommand.ts index 0587d8a68dc5a..7ce68a66f30c4 100644 --- a/clients/client-glacier/commands/CreateVaultCommand.ts +++ b/clients/client-glacier/commands/CreateVaultCommand.ts @@ -51,6 +51,7 @@ export class CreateVaultCommand extends $Command< CreateVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class CreateVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DeleteArchiveCommand.ts b/clients/client-glacier/commands/DeleteArchiveCommand.ts index bc169dd3f873e..293a0b7d10004 100644 --- a/clients/client-glacier/commands/DeleteArchiveCommand.ts +++ b/clients/client-glacier/commands/DeleteArchiveCommand.ts @@ -54,6 +54,7 @@ export class DeleteArchiveCommand extends $Command< DeleteArchiveCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class DeleteArchiveCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DeleteVaultAccessPolicyCommand.ts b/clients/client-glacier/commands/DeleteVaultAccessPolicyCommand.ts index c159569f6d000..cd674a1b205ff 100644 --- a/clients/client-glacier/commands/DeleteVaultAccessPolicyCommand.ts +++ b/clients/client-glacier/commands/DeleteVaultAccessPolicyCommand.ts @@ -34,6 +34,7 @@ export class DeleteVaultAccessPolicyCommand extends $Command< DeleteVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteVaultAccessPolicyCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DeleteVaultCommand.ts b/clients/client-glacier/commands/DeleteVaultCommand.ts index 436e77d0e30c7..dad359282bae9 100644 --- a/clients/client-glacier/commands/DeleteVaultCommand.ts +++ b/clients/client-glacier/commands/DeleteVaultCommand.ts @@ -47,6 +47,7 @@ export class DeleteVaultCommand extends $Command< DeleteVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DeleteVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DeleteVaultNotificationsCommand.ts b/clients/client-glacier/commands/DeleteVaultNotificationsCommand.ts index f4b69a1ad138b..c1757a27d2612 100644 --- a/clients/client-glacier/commands/DeleteVaultNotificationsCommand.ts +++ b/clients/client-glacier/commands/DeleteVaultNotificationsCommand.ts @@ -40,6 +40,7 @@ export class DeleteVaultNotificationsCommand extends $Command< DeleteVaultNotificationsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteVaultNotificationsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DescribeJobCommand.ts b/clients/client-glacier/commands/DescribeJobCommand.ts index 153f1cb074caa..e5726735f229d 100644 --- a/clients/client-glacier/commands/DescribeJobCommand.ts +++ b/clients/client-glacier/commands/DescribeJobCommand.ts @@ -51,6 +51,7 @@ export class DescribeJobCommand extends $Command< DescribeJobCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DescribeJobCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/DescribeVaultCommand.ts b/clients/client-glacier/commands/DescribeVaultCommand.ts index ed980bf9d78bc..f5ae3429c9bfd 100644 --- a/clients/client-glacier/commands/DescribeVaultCommand.ts +++ b/clients/client-glacier/commands/DescribeVaultCommand.ts @@ -45,6 +45,7 @@ export class DescribeVaultCommand extends $Command< DescribeVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DescribeVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/GetDataRetrievalPolicyCommand.ts b/clients/client-glacier/commands/GetDataRetrievalPolicyCommand.ts index 6e626e8e551be..40ee6b726e475 100644 --- a/clients/client-glacier/commands/GetDataRetrievalPolicyCommand.ts +++ b/clients/client-glacier/commands/GetDataRetrievalPolicyCommand.ts @@ -30,6 +30,7 @@ export class GetDataRetrievalPolicyCommand extends $Command< GetDataRetrievalPolicyCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDataRetrievalPolicyCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/GetJobOutputCommand.ts b/clients/client-glacier/commands/GetJobOutputCommand.ts index 726ea5d523033..47ad58919eb20 100644 --- a/clients/client-glacier/commands/GetJobOutputCommand.ts +++ b/clients/client-glacier/commands/GetJobOutputCommand.ts @@ -64,6 +64,7 @@ export class GetJobOutputCommand extends $Command< GetJobOutputCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class GetJobOutputCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/GetVaultAccessPolicyCommand.ts b/clients/client-glacier/commands/GetVaultAccessPolicyCommand.ts index bb17b4e4fab9a..8e51253ce0a0b 100644 --- a/clients/client-glacier/commands/GetVaultAccessPolicyCommand.ts +++ b/clients/client-glacier/commands/GetVaultAccessPolicyCommand.ts @@ -33,6 +33,7 @@ export class GetVaultAccessPolicyCommand extends $Command< GetVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetVaultAccessPolicyCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/GetVaultLockCommand.ts b/clients/client-glacier/commands/GetVaultLockCommand.ts index 9a03ee050855e..345345ebd4f43 100644 --- a/clients/client-glacier/commands/GetVaultLockCommand.ts +++ b/clients/client-glacier/commands/GetVaultLockCommand.ts @@ -55,6 +55,7 @@ export class GetVaultLockCommand extends $Command< GetVaultLockCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class GetVaultLockCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/GetVaultNotificationsCommand.ts b/clients/client-glacier/commands/GetVaultNotificationsCommand.ts index 11b6288dc62d6..3ac76efc4d364 100644 --- a/clients/client-glacier/commands/GetVaultNotificationsCommand.ts +++ b/clients/client-glacier/commands/GetVaultNotificationsCommand.ts @@ -43,6 +43,7 @@ export class GetVaultNotificationsCommand extends $Command< GetVaultNotificationsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class GetVaultNotificationsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/InitiateJobCommand.ts b/clients/client-glacier/commands/InitiateJobCommand.ts index 1d312a023ea0b..01032fb66cd92 100644 --- a/clients/client-glacier/commands/InitiateJobCommand.ts +++ b/clients/client-glacier/commands/InitiateJobCommand.ts @@ -32,6 +32,7 @@ export class InitiateJobCommand extends $Command< InitiateJobCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class InitiateJobCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/InitiateMultipartUploadCommand.ts b/clients/client-glacier/commands/InitiateMultipartUploadCommand.ts index 06d1e9d003214..afdd9da39f761 100644 --- a/clients/client-glacier/commands/InitiateMultipartUploadCommand.ts +++ b/clients/client-glacier/commands/InitiateMultipartUploadCommand.ts @@ -61,6 +61,7 @@ export class InitiateMultipartUploadCommand extends $Command< InitiateMultipartUploadCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class InitiateMultipartUploadCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/InitiateVaultLockCommand.ts b/clients/client-glacier/commands/InitiateVaultLockCommand.ts index 35ecf0ac90a12..13aaef1fb428a 100644 --- a/clients/client-glacier/commands/InitiateVaultLockCommand.ts +++ b/clients/client-glacier/commands/InitiateVaultLockCommand.ts @@ -62,6 +62,7 @@ export class InitiateVaultLockCommand extends $Command< InitiateVaultLockCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class InitiateVaultLockCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListJobsCommand.ts b/clients/client-glacier/commands/ListJobsCommand.ts index 3ec142e16fc0e..f41f2121f893c 100644 --- a/clients/client-glacier/commands/ListJobsCommand.ts +++ b/clients/client-glacier/commands/ListJobsCommand.ts @@ -63,6 +63,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class ListJobsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListMultipartUploadsCommand.ts b/clients/client-glacier/commands/ListMultipartUploadsCommand.ts index f4c54b0c82d54..49c103f7582df 100644 --- a/clients/client-glacier/commands/ListMultipartUploadsCommand.ts +++ b/clients/client-glacier/commands/ListMultipartUploadsCommand.ts @@ -53,6 +53,7 @@ export class ListMultipartUploadsCommand extends $Command< ListMultipartUploadsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class ListMultipartUploadsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListPartsCommand.ts b/clients/client-glacier/commands/ListPartsCommand.ts index f5aef115a65a7..1f7293f235b97 100644 --- a/clients/client-glacier/commands/ListPartsCommand.ts +++ b/clients/client-glacier/commands/ListPartsCommand.ts @@ -49,6 +49,7 @@ export class ListPartsCommand extends $Command< ListPartsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class ListPartsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListProvisionedCapacityCommand.ts b/clients/client-glacier/commands/ListProvisionedCapacityCommand.ts index 902a794610301..407103bbbf188 100644 --- a/clients/client-glacier/commands/ListProvisionedCapacityCommand.ts +++ b/clients/client-glacier/commands/ListProvisionedCapacityCommand.ts @@ -29,6 +29,7 @@ export class ListProvisionedCapacityCommand extends $Command< ListProvisionedCapacityCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListProvisionedCapacityCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListTagsForVaultCommand.ts b/clients/client-glacier/commands/ListTagsForVaultCommand.ts index 73a367d806623..0d674275a9b68 100644 --- a/clients/client-glacier/commands/ListTagsForVaultCommand.ts +++ b/clients/client-glacier/commands/ListTagsForVaultCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForVaultCommand extends $Command< ListTagsForVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/ListVaultsCommand.ts b/clients/client-glacier/commands/ListVaultsCommand.ts index 02c2fe963234e..dd05c8502c269 100644 --- a/clients/client-glacier/commands/ListVaultsCommand.ts +++ b/clients/client-glacier/commands/ListVaultsCommand.ts @@ -46,6 +46,7 @@ export class ListVaultsCommand extends $Command< ListVaultsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ListVaultsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/PurchaseProvisionedCapacityCommand.ts b/clients/client-glacier/commands/PurchaseProvisionedCapacityCommand.ts index 90292d2f58180..2590cb8febab7 100644 --- a/clients/client-glacier/commands/PurchaseProvisionedCapacityCommand.ts +++ b/clients/client-glacier/commands/PurchaseProvisionedCapacityCommand.ts @@ -28,6 +28,7 @@ export class PurchaseProvisionedCapacityCommand extends $Command< PurchaseProvisionedCapacityCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PurchaseProvisionedCapacityCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/RemoveTagsFromVaultCommand.ts b/clients/client-glacier/commands/RemoveTagsFromVaultCommand.ts index 8c373d9869ebf..1cd7ed6855718 100644 --- a/clients/client-glacier/commands/RemoveTagsFromVaultCommand.ts +++ b/clients/client-glacier/commands/RemoveTagsFromVaultCommand.ts @@ -31,6 +31,7 @@ export class RemoveTagsFromVaultCommand extends $Command< RemoveTagsFromVaultCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RemoveTagsFromVaultCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/SetDataRetrievalPolicyCommand.ts b/clients/client-glacier/commands/SetDataRetrievalPolicyCommand.ts index 84948056c9719..4fe878014eb77 100644 --- a/clients/client-glacier/commands/SetDataRetrievalPolicyCommand.ts +++ b/clients/client-glacier/commands/SetDataRetrievalPolicyCommand.ts @@ -33,6 +33,7 @@ export class SetDataRetrievalPolicyCommand extends $Command< SetDataRetrievalPolicyCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetDataRetrievalPolicyCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/SetVaultAccessPolicyCommand.ts b/clients/client-glacier/commands/SetVaultAccessPolicyCommand.ts index ca0d318121f9c..6dc4334b385a3 100644 --- a/clients/client-glacier/commands/SetVaultAccessPolicyCommand.ts +++ b/clients/client-glacier/commands/SetVaultAccessPolicyCommand.ts @@ -33,6 +33,7 @@ export class SetVaultAccessPolicyCommand extends $Command< SetVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetVaultAccessPolicyCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/SetVaultNotificationsCommand.ts b/clients/client-glacier/commands/SetVaultNotificationsCommand.ts index 04f979a833039..6c9b8e8f87da4 100644 --- a/clients/client-glacier/commands/SetVaultNotificationsCommand.ts +++ b/clients/client-glacier/commands/SetVaultNotificationsCommand.ts @@ -65,6 +65,7 @@ export class SetVaultNotificationsCommand extends $Command< SetVaultNotificationsCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class SetVaultNotificationsCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/UploadArchiveCommand.ts b/clients/client-glacier/commands/UploadArchiveCommand.ts index e705a345892c5..57d55923fe454 100644 --- a/clients/client-glacier/commands/UploadArchiveCommand.ts +++ b/clients/client-glacier/commands/UploadArchiveCommand.ts @@ -61,6 +61,7 @@ export class UploadArchiveCommand extends $Command< UploadArchiveCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class UploadArchiveCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glacier/commands/UploadMultipartPartCommand.ts b/clients/client-glacier/commands/UploadMultipartPartCommand.ts index 74a8d834ef78f..c07914ad12147 100644 --- a/clients/client-glacier/commands/UploadMultipartPartCommand.ts +++ b/clients/client-glacier/commands/UploadMultipartPartCommand.ts @@ -80,6 +80,7 @@ export class UploadMultipartPartCommand extends $Command< UploadMultipartPartCommandOutput, GlacierClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class UploadMultipartPartCommand extends $Command< configuration: GlacierClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/AddCustomRoutingEndpointsCommand.ts b/clients/client-global-accelerator/commands/AddCustomRoutingEndpointsCommand.ts index fde3f4041a7cb..420e34e887c66 100644 --- a/clients/client-global-accelerator/commands/AddCustomRoutingEndpointsCommand.ts +++ b/clients/client-global-accelerator/commands/AddCustomRoutingEndpointsCommand.ts @@ -42,6 +42,7 @@ export class AddCustomRoutingEndpointsCommand extends $Command< AddCustomRoutingEndpointsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class AddCustomRoutingEndpointsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/AdvertiseByoipCidrCommand.ts b/clients/client-global-accelerator/commands/AdvertiseByoipCidrCommand.ts index d2696ce233f20..6c461c4a82af7 100644 --- a/clients/client-global-accelerator/commands/AdvertiseByoipCidrCommand.ts +++ b/clients/client-global-accelerator/commands/AdvertiseByoipCidrCommand.ts @@ -38,6 +38,7 @@ export class AdvertiseByoipCidrCommand extends $Command< AdvertiseByoipCidrCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AdvertiseByoipCidrCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/AllowCustomRoutingTrafficCommand.ts b/clients/client-global-accelerator/commands/AllowCustomRoutingTrafficCommand.ts index 9bbac44cd5f98..2b2a1b31fbfbd 100644 --- a/clients/client-global-accelerator/commands/AllowCustomRoutingTrafficCommand.ts +++ b/clients/client-global-accelerator/commands/AllowCustomRoutingTrafficCommand.ts @@ -37,6 +37,7 @@ export class AllowCustomRoutingTrafficCommand extends $Command< AllowCustomRoutingTrafficCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AllowCustomRoutingTrafficCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateAcceleratorCommand.ts b/clients/client-global-accelerator/commands/CreateAcceleratorCommand.ts index 2f5a4586281a8..e02235e52be29 100644 --- a/clients/client-global-accelerator/commands/CreateAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/CreateAcceleratorCommand.ts @@ -37,6 +37,7 @@ export class CreateAcceleratorCommand extends $Command< CreateAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateCustomRoutingAcceleratorCommand.ts b/clients/client-global-accelerator/commands/CreateCustomRoutingAcceleratorCommand.ts index 4456b543ddc7d..0841abd0c9a3a 100644 --- a/clients/client-global-accelerator/commands/CreateCustomRoutingAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/CreateCustomRoutingAcceleratorCommand.ts @@ -37,6 +37,7 @@ export class CreateCustomRoutingAcceleratorCommand extends $Command< CreateCustomRoutingAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateCustomRoutingAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateCustomRoutingEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/CreateCustomRoutingEndpointGroupCommand.ts index 7918a82db0a20..fdf080dad0c9d 100644 --- a/clients/client-global-accelerator/commands/CreateCustomRoutingEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/CreateCustomRoutingEndpointGroupCommand.ts @@ -34,6 +34,7 @@ export class CreateCustomRoutingEndpointGroupCommand extends $Command< CreateCustomRoutingEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateCustomRoutingEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateCustomRoutingListenerCommand.ts b/clients/client-global-accelerator/commands/CreateCustomRoutingListenerCommand.ts index aabc9652f88cb..0a9891c1f9b8f 100644 --- a/clients/client-global-accelerator/commands/CreateCustomRoutingListenerCommand.ts +++ b/clients/client-global-accelerator/commands/CreateCustomRoutingListenerCommand.ts @@ -33,6 +33,7 @@ export class CreateCustomRoutingListenerCommand extends $Command< CreateCustomRoutingListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateCustomRoutingListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/CreateEndpointGroupCommand.ts index d4f5933986a5a..063b40388fe5a 100644 --- a/clients/client-global-accelerator/commands/CreateEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/CreateEndpointGroupCommand.ts @@ -33,6 +33,7 @@ export class CreateEndpointGroupCommand extends $Command< CreateEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/CreateListenerCommand.ts b/clients/client-global-accelerator/commands/CreateListenerCommand.ts index 159cbac08d33f..9c2cff8adc0f6 100644 --- a/clients/client-global-accelerator/commands/CreateListenerCommand.ts +++ b/clients/client-global-accelerator/commands/CreateListenerCommand.ts @@ -33,6 +33,7 @@ export class CreateListenerCommand extends $Command< CreateListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteAcceleratorCommand.ts b/clients/client-global-accelerator/commands/DeleteAcceleratorCommand.ts index 3d1e65e2516b9..7db29942ced39 100644 --- a/clients/client-global-accelerator/commands/DeleteAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteAcceleratorCommand.ts @@ -45,6 +45,7 @@ export class DeleteAcceleratorCommand extends $Command< DeleteAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DeleteAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteCustomRoutingAcceleratorCommand.ts b/clients/client-global-accelerator/commands/DeleteCustomRoutingAcceleratorCommand.ts index 0bd1ad6e6eb41..ad910790b21b9 100644 --- a/clients/client-global-accelerator/commands/DeleteCustomRoutingAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteCustomRoutingAcceleratorCommand.ts @@ -45,6 +45,7 @@ export class DeleteCustomRoutingAcceleratorCommand extends $Command< DeleteCustomRoutingAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DeleteCustomRoutingAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteCustomRoutingEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/DeleteCustomRoutingEndpointGroupCommand.ts index b0b209b4affd7..8e03b14c16bd7 100644 --- a/clients/client-global-accelerator/commands/DeleteCustomRoutingEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteCustomRoutingEndpointGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteCustomRoutingEndpointGroupCommand extends $Command< DeleteCustomRoutingEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCustomRoutingEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteCustomRoutingListenerCommand.ts b/clients/client-global-accelerator/commands/DeleteCustomRoutingListenerCommand.ts index cf202d3294516..b9e4c3f3e0652 100644 --- a/clients/client-global-accelerator/commands/DeleteCustomRoutingListenerCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteCustomRoutingListenerCommand.ts @@ -32,6 +32,7 @@ export class DeleteCustomRoutingListenerCommand extends $Command< DeleteCustomRoutingListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCustomRoutingListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/DeleteEndpointGroupCommand.ts index e158ea73de86d..532de22d285c9 100644 --- a/clients/client-global-accelerator/commands/DeleteEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteEndpointGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteEndpointGroupCommand extends $Command< DeleteEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeleteListenerCommand.ts b/clients/client-global-accelerator/commands/DeleteListenerCommand.ts index f2e44a2bc4afe..2ff2c18e27a71 100644 --- a/clients/client-global-accelerator/commands/DeleteListenerCommand.ts +++ b/clients/client-global-accelerator/commands/DeleteListenerCommand.ts @@ -32,6 +32,7 @@ export class DeleteListenerCommand extends $Command< DeleteListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DenyCustomRoutingTrafficCommand.ts b/clients/client-global-accelerator/commands/DenyCustomRoutingTrafficCommand.ts index 981dd7ab849ec..f12051c4fd673 100644 --- a/clients/client-global-accelerator/commands/DenyCustomRoutingTrafficCommand.ts +++ b/clients/client-global-accelerator/commands/DenyCustomRoutingTrafficCommand.ts @@ -37,6 +37,7 @@ export class DenyCustomRoutingTrafficCommand extends $Command< DenyCustomRoutingTrafficCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DenyCustomRoutingTrafficCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DeprovisionByoipCidrCommand.ts b/clients/client-global-accelerator/commands/DeprovisionByoipCidrCommand.ts index a8e28fac9813f..5ee2cff12b7bd 100644 --- a/clients/client-global-accelerator/commands/DeprovisionByoipCidrCommand.ts +++ b/clients/client-global-accelerator/commands/DeprovisionByoipCidrCommand.ts @@ -38,6 +38,7 @@ export class DeprovisionByoipCidrCommand extends $Command< DeprovisionByoipCidrCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeprovisionByoipCidrCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeAcceleratorAttributesCommand.ts b/clients/client-global-accelerator/commands/DescribeAcceleratorAttributesCommand.ts index a592cc44bb71f..54674097046a4 100644 --- a/clients/client-global-accelerator/commands/DescribeAcceleratorAttributesCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeAcceleratorAttributesCommand.ts @@ -33,6 +33,7 @@ export class DescribeAcceleratorAttributesCommand extends $Command< DescribeAcceleratorAttributesCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeAcceleratorAttributesCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeAcceleratorCommand.ts b/clients/client-global-accelerator/commands/DescribeAcceleratorCommand.ts index 370ee6ddf1d0e..bfa13c24eacde 100644 --- a/clients/client-global-accelerator/commands/DescribeAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeAcceleratorCommand.ts @@ -32,6 +32,7 @@ export class DescribeAcceleratorCommand extends $Command< DescribeAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorAttributesCommand.ts b/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorAttributesCommand.ts index f8f7bf55cdd0f..07bedf0243123 100644 --- a/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorAttributesCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorAttributesCommand.ts @@ -36,6 +36,7 @@ export class DescribeCustomRoutingAcceleratorAttributesCommand extends $Command< DescribeCustomRoutingAcceleratorAttributesCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeCustomRoutingAcceleratorAttributesCommand extends $Command< DescribeCustomRoutingAcceleratorAttributesCommandInput, DescribeCustomRoutingAcceleratorAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorCommand.ts b/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorCommand.ts index 9aedc4a5dd411..d610274ad78ce 100644 --- a/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeCustomRoutingAcceleratorCommand.ts @@ -32,6 +32,7 @@ export class DescribeCustomRoutingAcceleratorCommand extends $Command< DescribeCustomRoutingAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeCustomRoutingAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeCustomRoutingEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/DescribeCustomRoutingEndpointGroupCommand.ts index 131f55989b3ac..10973cbb6fa0c 100644 --- a/clients/client-global-accelerator/commands/DescribeCustomRoutingEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeCustomRoutingEndpointGroupCommand.ts @@ -36,6 +36,7 @@ export class DescribeCustomRoutingEndpointGroupCommand extends $Command< DescribeCustomRoutingEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeCustomRoutingEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeCustomRoutingListenerCommand.ts b/clients/client-global-accelerator/commands/DescribeCustomRoutingListenerCommand.ts index 0183edce8092f..8c8660c1ec8a7 100644 --- a/clients/client-global-accelerator/commands/DescribeCustomRoutingListenerCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeCustomRoutingListenerCommand.ts @@ -32,6 +32,7 @@ export class DescribeCustomRoutingListenerCommand extends $Command< DescribeCustomRoutingListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeCustomRoutingListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/DescribeEndpointGroupCommand.ts index 1b83c0beac43d..2c9aca505f37e 100644 --- a/clients/client-global-accelerator/commands/DescribeEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeEndpointGroupCommand.ts @@ -32,6 +32,7 @@ export class DescribeEndpointGroupCommand extends $Command< DescribeEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/DescribeListenerCommand.ts b/clients/client-global-accelerator/commands/DescribeListenerCommand.ts index ec08dd26b0a51..4dcd0cb480b50 100644 --- a/clients/client-global-accelerator/commands/DescribeListenerCommand.ts +++ b/clients/client-global-accelerator/commands/DescribeListenerCommand.ts @@ -32,6 +32,7 @@ export class DescribeListenerCommand extends $Command< DescribeListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListAcceleratorsCommand.ts b/clients/client-global-accelerator/commands/ListAcceleratorsCommand.ts index 947f83538dab5..8fcf5790dfb8f 100644 --- a/clients/client-global-accelerator/commands/ListAcceleratorsCommand.ts +++ b/clients/client-global-accelerator/commands/ListAcceleratorsCommand.ts @@ -32,6 +32,7 @@ export class ListAcceleratorsCommand extends $Command< ListAcceleratorsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListAcceleratorsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListByoipCidrsCommand.ts b/clients/client-global-accelerator/commands/ListByoipCidrsCommand.ts index ecbc539914695..c5283f09a083f 100644 --- a/clients/client-global-accelerator/commands/ListByoipCidrsCommand.ts +++ b/clients/client-global-accelerator/commands/ListByoipCidrsCommand.ts @@ -33,6 +33,7 @@ export class ListByoipCidrsCommand extends $Command< ListByoipCidrsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListByoipCidrsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListCustomRoutingAcceleratorsCommand.ts b/clients/client-global-accelerator/commands/ListCustomRoutingAcceleratorsCommand.ts index 5e87b2c3f6d2d..31cba5bc8e4d6 100644 --- a/clients/client-global-accelerator/commands/ListCustomRoutingAcceleratorsCommand.ts +++ b/clients/client-global-accelerator/commands/ListCustomRoutingAcceleratorsCommand.ts @@ -32,6 +32,7 @@ export class ListCustomRoutingAcceleratorsCommand extends $Command< ListCustomRoutingAcceleratorsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListCustomRoutingAcceleratorsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListCustomRoutingEndpointGroupsCommand.ts b/clients/client-global-accelerator/commands/ListCustomRoutingEndpointGroupsCommand.ts index 31e3c1b6f4c75..6d28783599b03 100644 --- a/clients/client-global-accelerator/commands/ListCustomRoutingEndpointGroupsCommand.ts +++ b/clients/client-global-accelerator/commands/ListCustomRoutingEndpointGroupsCommand.ts @@ -32,6 +32,7 @@ export class ListCustomRoutingEndpointGroupsCommand extends $Command< ListCustomRoutingEndpointGroupsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListCustomRoutingEndpointGroupsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListCustomRoutingListenersCommand.ts b/clients/client-global-accelerator/commands/ListCustomRoutingListenersCommand.ts index e2131d8923b97..3a5d6c52af8d9 100644 --- a/clients/client-global-accelerator/commands/ListCustomRoutingListenersCommand.ts +++ b/clients/client-global-accelerator/commands/ListCustomRoutingListenersCommand.ts @@ -32,6 +32,7 @@ export class ListCustomRoutingListenersCommand extends $Command< ListCustomRoutingListenersCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListCustomRoutingListenersCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsByDestinationCommand.ts b/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsByDestinationCommand.ts index 98e22864d8109..760f2a5db5701 100644 --- a/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsByDestinationCommand.ts +++ b/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsByDestinationCommand.ts @@ -39,6 +39,7 @@ export class ListCustomRoutingPortMappingsByDestinationCommand extends $Command< ListCustomRoutingPortMappingsByDestinationCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListCustomRoutingPortMappingsByDestinationCommand extends $Command< ListCustomRoutingPortMappingsByDestinationCommandInput, ListCustomRoutingPortMappingsByDestinationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsCommand.ts b/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsCommand.ts index 91961589775da..9231ca7a62655 100644 --- a/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsCommand.ts +++ b/clients/client-global-accelerator/commands/ListCustomRoutingPortMappingsCommand.ts @@ -40,6 +40,7 @@ export class ListCustomRoutingPortMappingsCommand extends $Command< ListCustomRoutingPortMappingsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListCustomRoutingPortMappingsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListEndpointGroupsCommand.ts b/clients/client-global-accelerator/commands/ListEndpointGroupsCommand.ts index 1693d8c6b89f9..1ad1bb9125e75 100644 --- a/clients/client-global-accelerator/commands/ListEndpointGroupsCommand.ts +++ b/clients/client-global-accelerator/commands/ListEndpointGroupsCommand.ts @@ -32,6 +32,7 @@ export class ListEndpointGroupsCommand extends $Command< ListEndpointGroupsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListEndpointGroupsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListListenersCommand.ts b/clients/client-global-accelerator/commands/ListListenersCommand.ts index 39f9515084428..329c62ae45343 100644 --- a/clients/client-global-accelerator/commands/ListListenersCommand.ts +++ b/clients/client-global-accelerator/commands/ListListenersCommand.ts @@ -32,6 +32,7 @@ export class ListListenersCommand extends $Command< ListListenersCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListListenersCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ListTagsForResourceCommand.ts b/clients/client-global-accelerator/commands/ListTagsForResourceCommand.ts index e814ee539f469..6ebf0004408fa 100644 --- a/clients/client-global-accelerator/commands/ListTagsForResourceCommand.ts +++ b/clients/client-global-accelerator/commands/ListTagsForResourceCommand.ts @@ -34,6 +34,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/ProvisionByoipCidrCommand.ts b/clients/client-global-accelerator/commands/ProvisionByoipCidrCommand.ts index 77aa896ec375e..6fffa6814c8a3 100644 --- a/clients/client-global-accelerator/commands/ProvisionByoipCidrCommand.ts +++ b/clients/client-global-accelerator/commands/ProvisionByoipCidrCommand.ts @@ -37,6 +37,7 @@ export class ProvisionByoipCidrCommand extends $Command< ProvisionByoipCidrCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ProvisionByoipCidrCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/RemoveCustomRoutingEndpointsCommand.ts b/clients/client-global-accelerator/commands/RemoveCustomRoutingEndpointsCommand.ts index e36eb4fd39b5d..ab298b9e56a46 100644 --- a/clients/client-global-accelerator/commands/RemoveCustomRoutingEndpointsCommand.ts +++ b/clients/client-global-accelerator/commands/RemoveCustomRoutingEndpointsCommand.ts @@ -32,6 +32,7 @@ export class RemoveCustomRoutingEndpointsCommand extends $Command< RemoveCustomRoutingEndpointsCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveCustomRoutingEndpointsCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/TagResourceCommand.ts b/clients/client-global-accelerator/commands/TagResourceCommand.ts index 6ce36cbf7b118..4a3cde7f6ce06 100644 --- a/clients/client-global-accelerator/commands/TagResourceCommand.ts +++ b/clients/client-global-accelerator/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UntagResourceCommand.ts b/clients/client-global-accelerator/commands/UntagResourceCommand.ts index ece3fcc0d6dee..d135b99067dbe 100644 --- a/clients/client-global-accelerator/commands/UntagResourceCommand.ts +++ b/clients/client-global-accelerator/commands/UntagResourceCommand.ts @@ -35,6 +35,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UntagResourceCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateAcceleratorAttributesCommand.ts b/clients/client-global-accelerator/commands/UpdateAcceleratorAttributesCommand.ts index af6ce41d2d5cb..80e7ea090db78 100644 --- a/clients/client-global-accelerator/commands/UpdateAcceleratorAttributesCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateAcceleratorAttributesCommand.ts @@ -32,6 +32,7 @@ export class UpdateAcceleratorAttributesCommand extends $Command< UpdateAcceleratorAttributesCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateAcceleratorAttributesCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateAcceleratorCommand.ts b/clients/client-global-accelerator/commands/UpdateAcceleratorCommand.ts index c9ca197c6ff2a..e8184087834b1 100644 --- a/clients/client-global-accelerator/commands/UpdateAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateAcceleratorCommand.ts @@ -37,6 +37,7 @@ export class UpdateAcceleratorCommand extends $Command< UpdateAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorAttributesCommand.ts b/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorAttributesCommand.ts index 7b245209facf6..57b3399b19418 100644 --- a/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorAttributesCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorAttributesCommand.ts @@ -36,6 +36,7 @@ export class UpdateCustomRoutingAcceleratorAttributesCommand extends $Command< UpdateCustomRoutingAcceleratorAttributesCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class UpdateCustomRoutingAcceleratorAttributesCommand extends $Command< UpdateCustomRoutingAcceleratorAttributesCommandInput, UpdateCustomRoutingAcceleratorAttributesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorCommand.ts b/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorCommand.ts index 45cbb412890b1..6a95aa3af22c3 100644 --- a/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateCustomRoutingAcceleratorCommand.ts @@ -32,6 +32,7 @@ export class UpdateCustomRoutingAcceleratorCommand extends $Command< UpdateCustomRoutingAcceleratorCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateCustomRoutingAcceleratorCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateCustomRoutingListenerCommand.ts b/clients/client-global-accelerator/commands/UpdateCustomRoutingListenerCommand.ts index 2c29e6d355699..ca8bf72ed72a8 100644 --- a/clients/client-global-accelerator/commands/UpdateCustomRoutingListenerCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateCustomRoutingListenerCommand.ts @@ -32,6 +32,7 @@ export class UpdateCustomRoutingListenerCommand extends $Command< UpdateCustomRoutingListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateCustomRoutingListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateEndpointGroupCommand.ts b/clients/client-global-accelerator/commands/UpdateEndpointGroupCommand.ts index 27e0a8e4b08af..aa5f22d89ec3d 100644 --- a/clients/client-global-accelerator/commands/UpdateEndpointGroupCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateEndpointGroupCommand.ts @@ -32,6 +32,7 @@ export class UpdateEndpointGroupCommand extends $Command< UpdateEndpointGroupCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateEndpointGroupCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/UpdateListenerCommand.ts b/clients/client-global-accelerator/commands/UpdateListenerCommand.ts index d6988a6aeabfb..341640a0dc565 100644 --- a/clients/client-global-accelerator/commands/UpdateListenerCommand.ts +++ b/clients/client-global-accelerator/commands/UpdateListenerCommand.ts @@ -32,6 +32,7 @@ export class UpdateListenerCommand extends $Command< UpdateListenerCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateListenerCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-global-accelerator/commands/WithdrawByoipCidrCommand.ts b/clients/client-global-accelerator/commands/WithdrawByoipCidrCommand.ts index 3f06a8f54aa9f..70a00bc936cde 100644 --- a/clients/client-global-accelerator/commands/WithdrawByoipCidrCommand.ts +++ b/clients/client-global-accelerator/commands/WithdrawByoipCidrCommand.ts @@ -38,6 +38,7 @@ export class WithdrawByoipCidrCommand extends $Command< WithdrawByoipCidrCommandOutput, GlobalAcceleratorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class WithdrawByoipCidrCommand extends $Command< configuration: GlobalAcceleratorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchCreatePartitionCommand.ts b/clients/client-glue/commands/BatchCreatePartitionCommand.ts index 63d965cd66fcb..b44202285846b 100644 --- a/clients/client-glue/commands/BatchCreatePartitionCommand.ts +++ b/clients/client-glue/commands/BatchCreatePartitionCommand.ts @@ -28,6 +28,7 @@ export class BatchCreatePartitionCommand extends $Command< BatchCreatePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchCreatePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchDeleteConnectionCommand.ts b/clients/client-glue/commands/BatchDeleteConnectionCommand.ts index 62c2d802e9d89..016383a8da08e 100644 --- a/clients/client-glue/commands/BatchDeleteConnectionCommand.ts +++ b/clients/client-glue/commands/BatchDeleteConnectionCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteConnectionCommand extends $Command< BatchDeleteConnectionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteConnectionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchDeletePartitionCommand.ts b/clients/client-glue/commands/BatchDeletePartitionCommand.ts index 400b72b04317f..716bf76b4c486 100644 --- a/clients/client-glue/commands/BatchDeletePartitionCommand.ts +++ b/clients/client-glue/commands/BatchDeletePartitionCommand.ts @@ -28,6 +28,7 @@ export class BatchDeletePartitionCommand extends $Command< BatchDeletePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeletePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchDeleteTableCommand.ts b/clients/client-glue/commands/BatchDeleteTableCommand.ts index 863fe43cfcee9..612042b7fd1c1 100644 --- a/clients/client-glue/commands/BatchDeleteTableCommand.ts +++ b/clients/client-glue/commands/BatchDeleteTableCommand.ts @@ -38,6 +38,7 @@ export class BatchDeleteTableCommand extends $Command< BatchDeleteTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class BatchDeleteTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchDeleteTableVersionCommand.ts b/clients/client-glue/commands/BatchDeleteTableVersionCommand.ts index ddb39ce772892..7767ac2b3e10b 100644 --- a/clients/client-glue/commands/BatchDeleteTableVersionCommand.ts +++ b/clients/client-glue/commands/BatchDeleteTableVersionCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteTableVersionCommand extends $Command< BatchDeleteTableVersionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteTableVersionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetCrawlersCommand.ts b/clients/client-glue/commands/BatchGetCrawlersCommand.ts index dc1aabd6c58c5..1a242947a33d8 100644 --- a/clients/client-glue/commands/BatchGetCrawlersCommand.ts +++ b/clients/client-glue/commands/BatchGetCrawlersCommand.ts @@ -28,6 +28,7 @@ export class BatchGetCrawlersCommand extends $Command< BatchGetCrawlersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetCrawlersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetDevEndpointsCommand.ts b/clients/client-glue/commands/BatchGetDevEndpointsCommand.ts index bf5fe955fed2e..1fa1d95095480 100644 --- a/clients/client-glue/commands/BatchGetDevEndpointsCommand.ts +++ b/clients/client-glue/commands/BatchGetDevEndpointsCommand.ts @@ -31,6 +31,7 @@ export class BatchGetDevEndpointsCommand extends $Command< BatchGetDevEndpointsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class BatchGetDevEndpointsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetJobsCommand.ts b/clients/client-glue/commands/BatchGetJobsCommand.ts index f3fd18b7983a6..fd86fc835818e 100644 --- a/clients/client-glue/commands/BatchGetJobsCommand.ts +++ b/clients/client-glue/commands/BatchGetJobsCommand.ts @@ -29,6 +29,7 @@ export class BatchGetJobsCommand extends $Command< BatchGetJobsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BatchGetJobsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetPartitionCommand.ts b/clients/client-glue/commands/BatchGetPartitionCommand.ts index 6f8f1569bfd8a..a199c87d0fcc9 100644 --- a/clients/client-glue/commands/BatchGetPartitionCommand.ts +++ b/clients/client-glue/commands/BatchGetPartitionCommand.ts @@ -28,6 +28,7 @@ export class BatchGetPartitionCommand extends $Command< BatchGetPartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetPartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetTriggersCommand.ts b/clients/client-glue/commands/BatchGetTriggersCommand.ts index a3fa4ea4c3092..6ce93b6d9eee0 100644 --- a/clients/client-glue/commands/BatchGetTriggersCommand.ts +++ b/clients/client-glue/commands/BatchGetTriggersCommand.ts @@ -28,6 +28,7 @@ export class BatchGetTriggersCommand extends $Command< BatchGetTriggersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetTriggersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchGetWorkflowsCommand.ts b/clients/client-glue/commands/BatchGetWorkflowsCommand.ts index 3c8ed7f627da1..ce69c0e51872d 100644 --- a/clients/client-glue/commands/BatchGetWorkflowsCommand.ts +++ b/clients/client-glue/commands/BatchGetWorkflowsCommand.ts @@ -28,6 +28,7 @@ export class BatchGetWorkflowsCommand extends $Command< BatchGetWorkflowsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetWorkflowsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchStopJobRunCommand.ts b/clients/client-glue/commands/BatchStopJobRunCommand.ts index 4eb23af4385a6..a94ce73f812ab 100644 --- a/clients/client-glue/commands/BatchStopJobRunCommand.ts +++ b/clients/client-glue/commands/BatchStopJobRunCommand.ts @@ -28,6 +28,7 @@ export class BatchStopJobRunCommand extends $Command< BatchStopJobRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchStopJobRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/BatchUpdatePartitionCommand.ts b/clients/client-glue/commands/BatchUpdatePartitionCommand.ts index a7dbeb8b924e7..e64deb20987a5 100644 --- a/clients/client-glue/commands/BatchUpdatePartitionCommand.ts +++ b/clients/client-glue/commands/BatchUpdatePartitionCommand.ts @@ -28,6 +28,7 @@ export class BatchUpdatePartitionCommand extends $Command< BatchUpdatePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchUpdatePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CancelMLTaskRunCommand.ts b/clients/client-glue/commands/CancelMLTaskRunCommand.ts index 071c1bc116c32..01d606a47fd58 100644 --- a/clients/client-glue/commands/CancelMLTaskRunCommand.ts +++ b/clients/client-glue/commands/CancelMLTaskRunCommand.ts @@ -31,6 +31,7 @@ export class CancelMLTaskRunCommand extends $Command< CancelMLTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelMLTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CheckSchemaVersionValidityCommand.ts b/clients/client-glue/commands/CheckSchemaVersionValidityCommand.ts index 4f853e0c0b710..463c70ed8e532 100644 --- a/clients/client-glue/commands/CheckSchemaVersionValidityCommand.ts +++ b/clients/client-glue/commands/CheckSchemaVersionValidityCommand.ts @@ -28,6 +28,7 @@ export class CheckSchemaVersionValidityCommand extends $Command< CheckSchemaVersionValidityCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckSchemaVersionValidityCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateClassifierCommand.ts b/clients/client-glue/commands/CreateClassifierCommand.ts index d1dcd5799f7c8..2297c75de2fe8 100644 --- a/clients/client-glue/commands/CreateClassifierCommand.ts +++ b/clients/client-glue/commands/CreateClassifierCommand.ts @@ -30,6 +30,7 @@ export class CreateClassifierCommand extends $Command< CreateClassifierCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateClassifierCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateConnectionCommand.ts b/clients/client-glue/commands/CreateConnectionCommand.ts index 8e6f145068dbb..b80cf966b8b36 100644 --- a/clients/client-glue/commands/CreateConnectionCommand.ts +++ b/clients/client-glue/commands/CreateConnectionCommand.ts @@ -28,6 +28,7 @@ export class CreateConnectionCommand extends $Command< CreateConnectionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConnectionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateCrawlerCommand.ts b/clients/client-glue/commands/CreateCrawlerCommand.ts index 8364f5c9d8056..f74fc64147de1 100644 --- a/clients/client-glue/commands/CreateCrawlerCommand.ts +++ b/clients/client-glue/commands/CreateCrawlerCommand.ts @@ -30,6 +30,7 @@ export class CreateCrawlerCommand extends $Command< CreateCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateDatabaseCommand.ts b/clients/client-glue/commands/CreateDatabaseCommand.ts index 89105cc5cf5c0..9b3e4f8d2f4c6 100644 --- a/clients/client-glue/commands/CreateDatabaseCommand.ts +++ b/clients/client-glue/commands/CreateDatabaseCommand.ts @@ -28,6 +28,7 @@ export class CreateDatabaseCommand extends $Command< CreateDatabaseCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDatabaseCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateDevEndpointCommand.ts b/clients/client-glue/commands/CreateDevEndpointCommand.ts index ac3340924432f..9fb153d01a48a 100644 --- a/clients/client-glue/commands/CreateDevEndpointCommand.ts +++ b/clients/client-glue/commands/CreateDevEndpointCommand.ts @@ -28,6 +28,7 @@ export class CreateDevEndpointCommand extends $Command< CreateDevEndpointCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDevEndpointCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateJobCommand.ts b/clients/client-glue/commands/CreateJobCommand.ts index 91fbd4166d85f..c3050f975f5d7 100644 --- a/clients/client-glue/commands/CreateJobCommand.ts +++ b/clients/client-glue/commands/CreateJobCommand.ts @@ -25,6 +25,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CreateJobCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateMLTransformCommand.ts b/clients/client-glue/commands/CreateMLTransformCommand.ts index f55a1eb4badd3..68c3670fb72b8 100644 --- a/clients/client-glue/commands/CreateMLTransformCommand.ts +++ b/clients/client-glue/commands/CreateMLTransformCommand.ts @@ -40,6 +40,7 @@ export class CreateMLTransformCommand extends $Command< CreateMLTransformCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateMLTransformCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreatePartitionCommand.ts b/clients/client-glue/commands/CreatePartitionCommand.ts index 187018ec578d4..dab52764152e7 100644 --- a/clients/client-glue/commands/CreatePartitionCommand.ts +++ b/clients/client-glue/commands/CreatePartitionCommand.ts @@ -28,6 +28,7 @@ export class CreatePartitionCommand extends $Command< CreatePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreatePartitionIndexCommand.ts b/clients/client-glue/commands/CreatePartitionIndexCommand.ts index 23a855cb5d977..0d7209c43e5ad 100644 --- a/clients/client-glue/commands/CreatePartitionIndexCommand.ts +++ b/clients/client-glue/commands/CreatePartitionIndexCommand.ts @@ -28,6 +28,7 @@ export class CreatePartitionIndexCommand extends $Command< CreatePartitionIndexCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePartitionIndexCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateRegistryCommand.ts b/clients/client-glue/commands/CreateRegistryCommand.ts index 768b3f4cfb63e..181bb929cb9d5 100644 --- a/clients/client-glue/commands/CreateRegistryCommand.ts +++ b/clients/client-glue/commands/CreateRegistryCommand.ts @@ -28,6 +28,7 @@ export class CreateRegistryCommand extends $Command< CreateRegistryCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRegistryCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateSchemaCommand.ts b/clients/client-glue/commands/CreateSchemaCommand.ts index 836f3e3e576a6..1365a1bd6a6b0 100644 --- a/clients/client-glue/commands/CreateSchemaCommand.ts +++ b/clients/client-glue/commands/CreateSchemaCommand.ts @@ -30,6 +30,7 @@ export class CreateSchemaCommand extends $Command< CreateSchemaCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateSchemaCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateScriptCommand.ts b/clients/client-glue/commands/CreateScriptCommand.ts index 56a76c6439e52..6df020a006d60 100644 --- a/clients/client-glue/commands/CreateScriptCommand.ts +++ b/clients/client-glue/commands/CreateScriptCommand.ts @@ -28,6 +28,7 @@ export class CreateScriptCommand extends $Command< CreateScriptCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateScriptCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateSecurityConfigurationCommand.ts b/clients/client-glue/commands/CreateSecurityConfigurationCommand.ts index f56b1cf47bacc..f543afab74920 100644 --- a/clients/client-glue/commands/CreateSecurityConfigurationCommand.ts +++ b/clients/client-glue/commands/CreateSecurityConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreateSecurityConfigurationCommand extends $Command< CreateSecurityConfigurationCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSecurityConfigurationCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateTableCommand.ts b/clients/client-glue/commands/CreateTableCommand.ts index df5cdb8d2fd25..de4ca81fdc9b3 100644 --- a/clients/client-glue/commands/CreateTableCommand.ts +++ b/clients/client-glue/commands/CreateTableCommand.ts @@ -28,6 +28,7 @@ export class CreateTableCommand extends $Command< CreateTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateTriggerCommand.ts b/clients/client-glue/commands/CreateTriggerCommand.ts index 6284e601cf25a..5027df8043ab1 100644 --- a/clients/client-glue/commands/CreateTriggerCommand.ts +++ b/clients/client-glue/commands/CreateTriggerCommand.ts @@ -28,6 +28,7 @@ export class CreateTriggerCommand extends $Command< CreateTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateUserDefinedFunctionCommand.ts b/clients/client-glue/commands/CreateUserDefinedFunctionCommand.ts index cf81c6ddc2d70..2c577f172cd99 100644 --- a/clients/client-glue/commands/CreateUserDefinedFunctionCommand.ts +++ b/clients/client-glue/commands/CreateUserDefinedFunctionCommand.ts @@ -28,6 +28,7 @@ export class CreateUserDefinedFunctionCommand extends $Command< CreateUserDefinedFunctionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUserDefinedFunctionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/CreateWorkflowCommand.ts b/clients/client-glue/commands/CreateWorkflowCommand.ts index 58394efd3b247..782110423d91d 100644 --- a/clients/client-glue/commands/CreateWorkflowCommand.ts +++ b/clients/client-glue/commands/CreateWorkflowCommand.ts @@ -28,6 +28,7 @@ export class CreateWorkflowCommand extends $Command< CreateWorkflowCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorkflowCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteClassifierCommand.ts b/clients/client-glue/commands/DeleteClassifierCommand.ts index 3224210c2075b..b83dea46e2287 100644 --- a/clients/client-glue/commands/DeleteClassifierCommand.ts +++ b/clients/client-glue/commands/DeleteClassifierCommand.ts @@ -28,6 +28,7 @@ export class DeleteClassifierCommand extends $Command< DeleteClassifierCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteClassifierCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteColumnStatisticsForPartitionCommand.ts b/clients/client-glue/commands/DeleteColumnStatisticsForPartitionCommand.ts index dbb530d59cf10..f0dacd909e2d6 100644 --- a/clients/client-glue/commands/DeleteColumnStatisticsForPartitionCommand.ts +++ b/clients/client-glue/commands/DeleteColumnStatisticsForPartitionCommand.ts @@ -34,6 +34,7 @@ export class DeleteColumnStatisticsForPartitionCommand extends $Command< DeleteColumnStatisticsForPartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteColumnStatisticsForPartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteColumnStatisticsForTableCommand.ts b/clients/client-glue/commands/DeleteColumnStatisticsForTableCommand.ts index d0dd5c39a560b..65341bc88a44d 100644 --- a/clients/client-glue/commands/DeleteColumnStatisticsForTableCommand.ts +++ b/clients/client-glue/commands/DeleteColumnStatisticsForTableCommand.ts @@ -30,6 +30,7 @@ export class DeleteColumnStatisticsForTableCommand extends $Command< DeleteColumnStatisticsForTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteColumnStatisticsForTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteConnectionCommand.ts b/clients/client-glue/commands/DeleteConnectionCommand.ts index e1294c82350ce..303b0147b3adc 100644 --- a/clients/client-glue/commands/DeleteConnectionCommand.ts +++ b/clients/client-glue/commands/DeleteConnectionCommand.ts @@ -28,6 +28,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConnectionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteCrawlerCommand.ts b/clients/client-glue/commands/DeleteCrawlerCommand.ts index 2e86634a39fa7..c0317e1f176a1 100644 --- a/clients/client-glue/commands/DeleteCrawlerCommand.ts +++ b/clients/client-glue/commands/DeleteCrawlerCommand.ts @@ -29,6 +29,7 @@ export class DeleteCrawlerCommand extends $Command< DeleteCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteDatabaseCommand.ts b/clients/client-glue/commands/DeleteDatabaseCommand.ts index a1caaeca9f014..69bec5bf48468 100644 --- a/clients/client-glue/commands/DeleteDatabaseCommand.ts +++ b/clients/client-glue/commands/DeleteDatabaseCommand.ts @@ -40,6 +40,7 @@ export class DeleteDatabaseCommand extends $Command< DeleteDatabaseCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteDatabaseCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteDevEndpointCommand.ts b/clients/client-glue/commands/DeleteDevEndpointCommand.ts index bb66f6eda0633..c98a8268e3d94 100644 --- a/clients/client-glue/commands/DeleteDevEndpointCommand.ts +++ b/clients/client-glue/commands/DeleteDevEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteDevEndpointCommand extends $Command< DeleteDevEndpointCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDevEndpointCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteJobCommand.ts b/clients/client-glue/commands/DeleteJobCommand.ts index 3402595f87f7c..1cc700531f2f9 100644 --- a/clients/client-glue/commands/DeleteJobCommand.ts +++ b/clients/client-glue/commands/DeleteJobCommand.ts @@ -26,6 +26,7 @@ export class DeleteJobCommand extends $Command< DeleteJobCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteJobCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteMLTransformCommand.ts b/clients/client-glue/commands/DeleteMLTransformCommand.ts index e95c2b4ad227c..a273a9f67c35d 100644 --- a/clients/client-glue/commands/DeleteMLTransformCommand.ts +++ b/clients/client-glue/commands/DeleteMLTransformCommand.ts @@ -33,6 +33,7 @@ export class DeleteMLTransformCommand extends $Command< DeleteMLTransformCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteMLTransformCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeletePartitionCommand.ts b/clients/client-glue/commands/DeletePartitionCommand.ts index c1dc6eef02e43..5afc6260445cc 100644 --- a/clients/client-glue/commands/DeletePartitionCommand.ts +++ b/clients/client-glue/commands/DeletePartitionCommand.ts @@ -28,6 +28,7 @@ export class DeletePartitionCommand extends $Command< DeletePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeletePartitionIndexCommand.ts b/clients/client-glue/commands/DeletePartitionIndexCommand.ts index 7a6839b562562..147449e894324 100644 --- a/clients/client-glue/commands/DeletePartitionIndexCommand.ts +++ b/clients/client-glue/commands/DeletePartitionIndexCommand.ts @@ -28,6 +28,7 @@ export class DeletePartitionIndexCommand extends $Command< DeletePartitionIndexCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePartitionIndexCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteRegistryCommand.ts b/clients/client-glue/commands/DeleteRegistryCommand.ts index 968ef437e7a90..cf2d3b75ed9a1 100644 --- a/clients/client-glue/commands/DeleteRegistryCommand.ts +++ b/clients/client-glue/commands/DeleteRegistryCommand.ts @@ -28,6 +28,7 @@ export class DeleteRegistryCommand extends $Command< DeleteRegistryCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRegistryCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteResourcePolicyCommand.ts b/clients/client-glue/commands/DeleteResourcePolicyCommand.ts index ddc06e93fd5ec..b36c3d44b136c 100644 --- a/clients/client-glue/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-glue/commands/DeleteResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteSchemaCommand.ts b/clients/client-glue/commands/DeleteSchemaCommand.ts index 60a31383baa67..9df801af40d4e 100644 --- a/clients/client-glue/commands/DeleteSchemaCommand.ts +++ b/clients/client-glue/commands/DeleteSchemaCommand.ts @@ -28,6 +28,7 @@ export class DeleteSchemaCommand extends $Command< DeleteSchemaCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSchemaCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteSchemaVersionsCommand.ts b/clients/client-glue/commands/DeleteSchemaVersionsCommand.ts index f36137d298ec2..56a43f1931956 100644 --- a/clients/client-glue/commands/DeleteSchemaVersionsCommand.ts +++ b/clients/client-glue/commands/DeleteSchemaVersionsCommand.ts @@ -31,6 +31,7 @@ export class DeleteSchemaVersionsCommand extends $Command< DeleteSchemaVersionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteSchemaVersionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteSecurityConfigurationCommand.ts b/clients/client-glue/commands/DeleteSecurityConfigurationCommand.ts index e16c84414e5a7..f801d7ff08ffa 100644 --- a/clients/client-glue/commands/DeleteSecurityConfigurationCommand.ts +++ b/clients/client-glue/commands/DeleteSecurityConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteSecurityConfigurationCommand extends $Command< DeleteSecurityConfigurationCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSecurityConfigurationCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteTableCommand.ts b/clients/client-glue/commands/DeleteTableCommand.ts index 643807bb5e2fc..2be44c4fab09c 100644 --- a/clients/client-glue/commands/DeleteTableCommand.ts +++ b/clients/client-glue/commands/DeleteTableCommand.ts @@ -38,6 +38,7 @@ export class DeleteTableCommand extends $Command< DeleteTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteTableVersionCommand.ts b/clients/client-glue/commands/DeleteTableVersionCommand.ts index 1e7d3283dc48c..5b16648e979d1 100644 --- a/clients/client-glue/commands/DeleteTableVersionCommand.ts +++ b/clients/client-glue/commands/DeleteTableVersionCommand.ts @@ -28,6 +28,7 @@ export class DeleteTableVersionCommand extends $Command< DeleteTableVersionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTableVersionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteTriggerCommand.ts b/clients/client-glue/commands/DeleteTriggerCommand.ts index a30119a22a13c..503cfaa3adb5c 100644 --- a/clients/client-glue/commands/DeleteTriggerCommand.ts +++ b/clients/client-glue/commands/DeleteTriggerCommand.ts @@ -29,6 +29,7 @@ export class DeleteTriggerCommand extends $Command< DeleteTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteUserDefinedFunctionCommand.ts b/clients/client-glue/commands/DeleteUserDefinedFunctionCommand.ts index 4167f7737febc..d75127e60acdd 100644 --- a/clients/client-glue/commands/DeleteUserDefinedFunctionCommand.ts +++ b/clients/client-glue/commands/DeleteUserDefinedFunctionCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserDefinedFunctionCommand extends $Command< DeleteUserDefinedFunctionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserDefinedFunctionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/DeleteWorkflowCommand.ts b/clients/client-glue/commands/DeleteWorkflowCommand.ts index 6fab936a3f222..54eb906d45f3f 100644 --- a/clients/client-glue/commands/DeleteWorkflowCommand.ts +++ b/clients/client-glue/commands/DeleteWorkflowCommand.ts @@ -28,6 +28,7 @@ export class DeleteWorkflowCommand extends $Command< DeleteWorkflowCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteWorkflowCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetCatalogImportStatusCommand.ts b/clients/client-glue/commands/GetCatalogImportStatusCommand.ts index 6a3e4d1b43e97..ace2cbe41b630 100644 --- a/clients/client-glue/commands/GetCatalogImportStatusCommand.ts +++ b/clients/client-glue/commands/GetCatalogImportStatusCommand.ts @@ -28,6 +28,7 @@ export class GetCatalogImportStatusCommand extends $Command< GetCatalogImportStatusCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCatalogImportStatusCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetClassifierCommand.ts b/clients/client-glue/commands/GetClassifierCommand.ts index b8d373bcf36fb..30c538ca3538b 100644 --- a/clients/client-glue/commands/GetClassifierCommand.ts +++ b/clients/client-glue/commands/GetClassifierCommand.ts @@ -28,6 +28,7 @@ export class GetClassifierCommand extends $Command< GetClassifierCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetClassifierCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetClassifiersCommand.ts b/clients/client-glue/commands/GetClassifiersCommand.ts index 8d83e634249bb..a14bc2f65974e 100644 --- a/clients/client-glue/commands/GetClassifiersCommand.ts +++ b/clients/client-glue/commands/GetClassifiersCommand.ts @@ -28,6 +28,7 @@ export class GetClassifiersCommand extends $Command< GetClassifiersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetClassifiersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetColumnStatisticsForPartitionCommand.ts b/clients/client-glue/commands/GetColumnStatisticsForPartitionCommand.ts index 7b83a44daad11..021e1be7c157d 100644 --- a/clients/client-glue/commands/GetColumnStatisticsForPartitionCommand.ts +++ b/clients/client-glue/commands/GetColumnStatisticsForPartitionCommand.ts @@ -30,6 +30,7 @@ export class GetColumnStatisticsForPartitionCommand extends $Command< GetColumnStatisticsForPartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetColumnStatisticsForPartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetColumnStatisticsForTableCommand.ts b/clients/client-glue/commands/GetColumnStatisticsForTableCommand.ts index e32d8914be2a7..bfaf556ec75fc 100644 --- a/clients/client-glue/commands/GetColumnStatisticsForTableCommand.ts +++ b/clients/client-glue/commands/GetColumnStatisticsForTableCommand.ts @@ -30,6 +30,7 @@ export class GetColumnStatisticsForTableCommand extends $Command< GetColumnStatisticsForTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetColumnStatisticsForTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetConnectionCommand.ts b/clients/client-glue/commands/GetConnectionCommand.ts index e3c9a38719338..68f0dc85a5ce3 100644 --- a/clients/client-glue/commands/GetConnectionCommand.ts +++ b/clients/client-glue/commands/GetConnectionCommand.ts @@ -28,6 +28,7 @@ export class GetConnectionCommand extends $Command< GetConnectionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetConnectionsCommand.ts b/clients/client-glue/commands/GetConnectionsCommand.ts index 268f319d37876..d3ccf35585b0f 100644 --- a/clients/client-glue/commands/GetConnectionsCommand.ts +++ b/clients/client-glue/commands/GetConnectionsCommand.ts @@ -28,6 +28,7 @@ export class GetConnectionsCommand extends $Command< GetConnectionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetCrawlerCommand.ts b/clients/client-glue/commands/GetCrawlerCommand.ts index 3c924db15c002..ea548fdad9d3c 100644 --- a/clients/client-glue/commands/GetCrawlerCommand.ts +++ b/clients/client-glue/commands/GetCrawlerCommand.ts @@ -28,6 +28,7 @@ export class GetCrawlerCommand extends $Command< GetCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetCrawlerMetricsCommand.ts b/clients/client-glue/commands/GetCrawlerMetricsCommand.ts index 0ea9f3dc6b1ab..0b736fbbc240a 100644 --- a/clients/client-glue/commands/GetCrawlerMetricsCommand.ts +++ b/clients/client-glue/commands/GetCrawlerMetricsCommand.ts @@ -28,6 +28,7 @@ export class GetCrawlerMetricsCommand extends $Command< GetCrawlerMetricsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCrawlerMetricsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetCrawlersCommand.ts b/clients/client-glue/commands/GetCrawlersCommand.ts index 92615802a9bcf..086fb4499a353 100644 --- a/clients/client-glue/commands/GetCrawlersCommand.ts +++ b/clients/client-glue/commands/GetCrawlersCommand.ts @@ -29,6 +29,7 @@ export class GetCrawlersCommand extends $Command< GetCrawlersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetCrawlersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDataCatalogEncryptionSettingsCommand.ts b/clients/client-glue/commands/GetDataCatalogEncryptionSettingsCommand.ts index 7b317fb244e47..91612dab127e0 100644 --- a/clients/client-glue/commands/GetDataCatalogEncryptionSettingsCommand.ts +++ b/clients/client-glue/commands/GetDataCatalogEncryptionSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetDataCatalogEncryptionSettingsCommand extends $Command< GetDataCatalogEncryptionSettingsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataCatalogEncryptionSettingsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDatabaseCommand.ts b/clients/client-glue/commands/GetDatabaseCommand.ts index 8b82fb95b03ea..d5a6b4ad3e06f 100644 --- a/clients/client-glue/commands/GetDatabaseCommand.ts +++ b/clients/client-glue/commands/GetDatabaseCommand.ts @@ -28,6 +28,7 @@ export class GetDatabaseCommand extends $Command< GetDatabaseCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDatabaseCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDatabasesCommand.ts b/clients/client-glue/commands/GetDatabasesCommand.ts index 723f74cbaafb6..e06c7e89524b4 100644 --- a/clients/client-glue/commands/GetDatabasesCommand.ts +++ b/clients/client-glue/commands/GetDatabasesCommand.ts @@ -28,6 +28,7 @@ export class GetDatabasesCommand extends $Command< GetDatabasesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDatabasesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDataflowGraphCommand.ts b/clients/client-glue/commands/GetDataflowGraphCommand.ts index 57ca282a94503..ac0e868642a8f 100644 --- a/clients/client-glue/commands/GetDataflowGraphCommand.ts +++ b/clients/client-glue/commands/GetDataflowGraphCommand.ts @@ -28,6 +28,7 @@ export class GetDataflowGraphCommand extends $Command< GetDataflowGraphCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataflowGraphCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDevEndpointCommand.ts b/clients/client-glue/commands/GetDevEndpointCommand.ts index f0aaf06389220..0a05f61fa8dea 100644 --- a/clients/client-glue/commands/GetDevEndpointCommand.ts +++ b/clients/client-glue/commands/GetDevEndpointCommand.ts @@ -33,6 +33,7 @@ export class GetDevEndpointCommand extends $Command< GetDevEndpointCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetDevEndpointCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetDevEndpointsCommand.ts b/clients/client-glue/commands/GetDevEndpointsCommand.ts index 6ad5bb5eeedcd..7afedaa548b81 100644 --- a/clients/client-glue/commands/GetDevEndpointsCommand.ts +++ b/clients/client-glue/commands/GetDevEndpointsCommand.ts @@ -33,6 +33,7 @@ export class GetDevEndpointsCommand extends $Command< GetDevEndpointsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetDevEndpointsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetJobBookmarkCommand.ts b/clients/client-glue/commands/GetJobBookmarkCommand.ts index 4824dd8c7618f..cfe0a85c1c079 100644 --- a/clients/client-glue/commands/GetJobBookmarkCommand.ts +++ b/clients/client-glue/commands/GetJobBookmarkCommand.ts @@ -29,6 +29,7 @@ export class GetJobBookmarkCommand extends $Command< GetJobBookmarkCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetJobBookmarkCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetJobCommand.ts b/clients/client-glue/commands/GetJobCommand.ts index 70c2bf0a621cf..dea0649ca3fb9 100644 --- a/clients/client-glue/commands/GetJobCommand.ts +++ b/clients/client-glue/commands/GetJobCommand.ts @@ -21,6 +21,7 @@ export type GetJobCommandOutput = GetJobResponse & __MetadataBearer; *

Retrieves an existing job definition.

*/ 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-glue/commands/GetJobRunCommand.ts b/clients/client-glue/commands/GetJobRunCommand.ts index c3dd8d41a5aca..732b43b652cf6 100644 --- a/clients/client-glue/commands/GetJobRunCommand.ts +++ b/clients/client-glue/commands/GetJobRunCommand.ts @@ -25,6 +25,7 @@ export class GetJobRunCommand extends $Command< GetJobRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetJobRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetJobRunsCommand.ts b/clients/client-glue/commands/GetJobRunsCommand.ts index 2e0b2cf4988e7..8816ed26f4b93 100644 --- a/clients/client-glue/commands/GetJobRunsCommand.ts +++ b/clients/client-glue/commands/GetJobRunsCommand.ts @@ -28,6 +28,7 @@ export class GetJobRunsCommand extends $Command< GetJobRunsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJobRunsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetJobsCommand.ts b/clients/client-glue/commands/GetJobsCommand.ts index 46a060a84d79a..afd5294a3042c 100644 --- a/clients/client-glue/commands/GetJobsCommand.ts +++ b/clients/client-glue/commands/GetJobsCommand.ts @@ -21,6 +21,7 @@ export type GetJobsCommandOutput = GetJobsResponse & __MetadataBearer; *

Retrieves all current job definitions.

*/ export class GetJobsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetJobsCommand 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-glue/commands/GetMLTaskRunCommand.ts b/clients/client-glue/commands/GetMLTaskRunCommand.ts index fbf128e141202..8f62b8a11c115 100644 --- a/clients/client-glue/commands/GetMLTaskRunCommand.ts +++ b/clients/client-glue/commands/GetMLTaskRunCommand.ts @@ -32,6 +32,7 @@ export class GetMLTaskRunCommand extends $Command< GetMLTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetMLTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetMLTaskRunsCommand.ts b/clients/client-glue/commands/GetMLTaskRunsCommand.ts index 476febb19a285..d664638340fb9 100644 --- a/clients/client-glue/commands/GetMLTaskRunsCommand.ts +++ b/clients/client-glue/commands/GetMLTaskRunsCommand.ts @@ -34,6 +34,7 @@ export class GetMLTaskRunsCommand extends $Command< GetMLTaskRunsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetMLTaskRunsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetMLTransformCommand.ts b/clients/client-glue/commands/GetMLTransformCommand.ts index dfaec585c28b0..beac40932451d 100644 --- a/clients/client-glue/commands/GetMLTransformCommand.ts +++ b/clients/client-glue/commands/GetMLTransformCommand.ts @@ -32,6 +32,7 @@ export class GetMLTransformCommand extends $Command< GetMLTransformCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetMLTransformCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetMLTransformsCommand.ts b/clients/client-glue/commands/GetMLTransformsCommand.ts index a8aca057525d0..c5f10591fe947 100644 --- a/clients/client-glue/commands/GetMLTransformsCommand.ts +++ b/clients/client-glue/commands/GetMLTransformsCommand.ts @@ -32,6 +32,7 @@ export class GetMLTransformsCommand extends $Command< GetMLTransformsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetMLTransformsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetMappingCommand.ts b/clients/client-glue/commands/GetMappingCommand.ts index ff533820670d7..69771be665e5c 100644 --- a/clients/client-glue/commands/GetMappingCommand.ts +++ b/clients/client-glue/commands/GetMappingCommand.ts @@ -28,6 +28,7 @@ export class GetMappingCommand extends $Command< GetMappingCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMappingCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetPartitionCommand.ts b/clients/client-glue/commands/GetPartitionCommand.ts index ad997204284fc..ce976aaf9016c 100644 --- a/clients/client-glue/commands/GetPartitionCommand.ts +++ b/clients/client-glue/commands/GetPartitionCommand.ts @@ -28,6 +28,7 @@ export class GetPartitionCommand extends $Command< GetPartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetPartitionIndexesCommand.ts b/clients/client-glue/commands/GetPartitionIndexesCommand.ts index d3c3586a8f7b9..5a4fb44106038 100644 --- a/clients/client-glue/commands/GetPartitionIndexesCommand.ts +++ b/clients/client-glue/commands/GetPartitionIndexesCommand.ts @@ -28,6 +28,7 @@ export class GetPartitionIndexesCommand extends $Command< GetPartitionIndexesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPartitionIndexesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetPartitionsCommand.ts b/clients/client-glue/commands/GetPartitionsCommand.ts index df959688b1b03..7193efe1193af 100644 --- a/clients/client-glue/commands/GetPartitionsCommand.ts +++ b/clients/client-glue/commands/GetPartitionsCommand.ts @@ -28,6 +28,7 @@ export class GetPartitionsCommand extends $Command< GetPartitionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPartitionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetPlanCommand.ts b/clients/client-glue/commands/GetPlanCommand.ts index 402f7e99f0f30..e186a80818c2f 100644 --- a/clients/client-glue/commands/GetPlanCommand.ts +++ b/clients/client-glue/commands/GetPlanCommand.ts @@ -21,6 +21,7 @@ export type GetPlanCommandOutput = GetPlanResponse & __MetadataBearer; *

Gets code to perform a specified mapping.

*/ export class GetPlanCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetPlanCommand 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-glue/commands/GetRegistryCommand.ts b/clients/client-glue/commands/GetRegistryCommand.ts index 6a755069ed32d..1cdb1fdab191c 100644 --- a/clients/client-glue/commands/GetRegistryCommand.ts +++ b/clients/client-glue/commands/GetRegistryCommand.ts @@ -28,6 +28,7 @@ export class GetRegistryCommand extends $Command< GetRegistryCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRegistryCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetResourcePoliciesCommand.ts b/clients/client-glue/commands/GetResourcePoliciesCommand.ts index 4812bb4b6e6bf..d67b3c488f978 100644 --- a/clients/client-glue/commands/GetResourcePoliciesCommand.ts +++ b/clients/client-glue/commands/GetResourcePoliciesCommand.ts @@ -30,6 +30,7 @@ export class GetResourcePoliciesCommand extends $Command< GetResourcePoliciesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetResourcePoliciesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetResourcePolicyCommand.ts b/clients/client-glue/commands/GetResourcePolicyCommand.ts index 38dee10f9a0fe..af077154a1062 100644 --- a/clients/client-glue/commands/GetResourcePolicyCommand.ts +++ b/clients/client-glue/commands/GetResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetResourcePolicyCommand extends $Command< GetResourcePolicyCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourcePolicyCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSchemaByDefinitionCommand.ts b/clients/client-glue/commands/GetSchemaByDefinitionCommand.ts index a9b0c958a03da..4fe9113f2e523 100644 --- a/clients/client-glue/commands/GetSchemaByDefinitionCommand.ts +++ b/clients/client-glue/commands/GetSchemaByDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetSchemaByDefinitionCommand extends $Command< GetSchemaByDefinitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSchemaByDefinitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSchemaCommand.ts b/clients/client-glue/commands/GetSchemaCommand.ts index 255f5f296c103..77971b2cb14b5 100644 --- a/clients/client-glue/commands/GetSchemaCommand.ts +++ b/clients/client-glue/commands/GetSchemaCommand.ts @@ -25,6 +25,7 @@ export class GetSchemaCommand extends $Command< GetSchemaCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetSchemaCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSchemaVersionCommand.ts b/clients/client-glue/commands/GetSchemaVersionCommand.ts index fbc42a9f514f6..fb3adc6125be6 100644 --- a/clients/client-glue/commands/GetSchemaVersionCommand.ts +++ b/clients/client-glue/commands/GetSchemaVersionCommand.ts @@ -28,6 +28,7 @@ export class GetSchemaVersionCommand extends $Command< GetSchemaVersionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSchemaVersionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSchemaVersionsDiffCommand.ts b/clients/client-glue/commands/GetSchemaVersionsDiffCommand.ts index afdd175a75b07..5b78558c0ce46 100644 --- a/clients/client-glue/commands/GetSchemaVersionsDiffCommand.ts +++ b/clients/client-glue/commands/GetSchemaVersionsDiffCommand.ts @@ -29,6 +29,7 @@ export class GetSchemaVersionsDiffCommand extends $Command< GetSchemaVersionsDiffCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSchemaVersionsDiffCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSecurityConfigurationCommand.ts b/clients/client-glue/commands/GetSecurityConfigurationCommand.ts index 12f60ae5ef83f..128a775a12cd5 100644 --- a/clients/client-glue/commands/GetSecurityConfigurationCommand.ts +++ b/clients/client-glue/commands/GetSecurityConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetSecurityConfigurationCommand extends $Command< GetSecurityConfigurationCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSecurityConfigurationCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetSecurityConfigurationsCommand.ts b/clients/client-glue/commands/GetSecurityConfigurationsCommand.ts index f40fc7707e2ca..96c09a57cf3a5 100644 --- a/clients/client-glue/commands/GetSecurityConfigurationsCommand.ts +++ b/clients/client-glue/commands/GetSecurityConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class GetSecurityConfigurationsCommand extends $Command< GetSecurityConfigurationsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSecurityConfigurationsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetTableCommand.ts b/clients/client-glue/commands/GetTableCommand.ts index 823fec990da2c..12dde711cc04d 100644 --- a/clients/client-glue/commands/GetTableCommand.ts +++ b/clients/client-glue/commands/GetTableCommand.ts @@ -22,6 +22,7 @@ export type GetTableCommandOutput = GetTableResponse & __MetadataBearer; * a specified table.

*/ export class GetTableCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class GetTableCommand 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-glue/commands/GetTableVersionCommand.ts b/clients/client-glue/commands/GetTableVersionCommand.ts index 8c62f49013772..0b5b78db43c68 100644 --- a/clients/client-glue/commands/GetTableVersionCommand.ts +++ b/clients/client-glue/commands/GetTableVersionCommand.ts @@ -28,6 +28,7 @@ export class GetTableVersionCommand extends $Command< GetTableVersionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTableVersionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetTableVersionsCommand.ts b/clients/client-glue/commands/GetTableVersionsCommand.ts index b5f2a0b6375bd..2ac1280162e9d 100644 --- a/clients/client-glue/commands/GetTableVersionsCommand.ts +++ b/clients/client-glue/commands/GetTableVersionsCommand.ts @@ -29,6 +29,7 @@ export class GetTableVersionsCommand extends $Command< GetTableVersionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTableVersionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetTablesCommand.ts b/clients/client-glue/commands/GetTablesCommand.ts index 913970ad1a489..b7d70d261e2b0 100644 --- a/clients/client-glue/commands/GetTablesCommand.ts +++ b/clients/client-glue/commands/GetTablesCommand.ts @@ -26,6 +26,7 @@ export class GetTablesCommand extends $Command< GetTablesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class GetTablesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetTagsCommand.ts b/clients/client-glue/commands/GetTagsCommand.ts index c4609b31e8fcb..8ba3ade0f9918 100644 --- a/clients/client-glue/commands/GetTagsCommand.ts +++ b/clients/client-glue/commands/GetTagsCommand.ts @@ -21,6 +21,7 @@ export type GetTagsCommandOutput = GetTagsResponse & __MetadataBearer; *

Retrieves a list of tags associated with a resource.

*/ export class GetTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetTagsCommand 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-glue/commands/GetTriggerCommand.ts b/clients/client-glue/commands/GetTriggerCommand.ts index d9c7e86817392..aa0785d2512a2 100644 --- a/clients/client-glue/commands/GetTriggerCommand.ts +++ b/clients/client-glue/commands/GetTriggerCommand.ts @@ -28,6 +28,7 @@ export class GetTriggerCommand extends $Command< GetTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetTriggersCommand.ts b/clients/client-glue/commands/GetTriggersCommand.ts index e35da9f7f08bd..8a69695e90901 100644 --- a/clients/client-glue/commands/GetTriggersCommand.ts +++ b/clients/client-glue/commands/GetTriggersCommand.ts @@ -28,6 +28,7 @@ export class GetTriggersCommand extends $Command< GetTriggersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTriggersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetUserDefinedFunctionCommand.ts b/clients/client-glue/commands/GetUserDefinedFunctionCommand.ts index 0e8dd578bf342..c2698a322b749 100644 --- a/clients/client-glue/commands/GetUserDefinedFunctionCommand.ts +++ b/clients/client-glue/commands/GetUserDefinedFunctionCommand.ts @@ -28,6 +28,7 @@ export class GetUserDefinedFunctionCommand extends $Command< GetUserDefinedFunctionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUserDefinedFunctionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetUserDefinedFunctionsCommand.ts b/clients/client-glue/commands/GetUserDefinedFunctionsCommand.ts index ab048c4664fa7..6f72d4225ea80 100644 --- a/clients/client-glue/commands/GetUserDefinedFunctionsCommand.ts +++ b/clients/client-glue/commands/GetUserDefinedFunctionsCommand.ts @@ -28,6 +28,7 @@ export class GetUserDefinedFunctionsCommand extends $Command< GetUserDefinedFunctionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUserDefinedFunctionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetWorkflowCommand.ts b/clients/client-glue/commands/GetWorkflowCommand.ts index a775108769bdc..93b8d9e890a6a 100644 --- a/clients/client-glue/commands/GetWorkflowCommand.ts +++ b/clients/client-glue/commands/GetWorkflowCommand.ts @@ -28,6 +28,7 @@ export class GetWorkflowCommand extends $Command< GetWorkflowCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorkflowCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetWorkflowRunCommand.ts b/clients/client-glue/commands/GetWorkflowRunCommand.ts index b60e676af0c5d..c55e3a657965a 100644 --- a/clients/client-glue/commands/GetWorkflowRunCommand.ts +++ b/clients/client-glue/commands/GetWorkflowRunCommand.ts @@ -28,6 +28,7 @@ export class GetWorkflowRunCommand extends $Command< GetWorkflowRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorkflowRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetWorkflowRunPropertiesCommand.ts b/clients/client-glue/commands/GetWorkflowRunPropertiesCommand.ts index d0c647b0353a8..7ed57ce18eb88 100644 --- a/clients/client-glue/commands/GetWorkflowRunPropertiesCommand.ts +++ b/clients/client-glue/commands/GetWorkflowRunPropertiesCommand.ts @@ -28,6 +28,7 @@ export class GetWorkflowRunPropertiesCommand extends $Command< GetWorkflowRunPropertiesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorkflowRunPropertiesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/GetWorkflowRunsCommand.ts b/clients/client-glue/commands/GetWorkflowRunsCommand.ts index ebfd0e1bb4c0a..b390ac5539d27 100644 --- a/clients/client-glue/commands/GetWorkflowRunsCommand.ts +++ b/clients/client-glue/commands/GetWorkflowRunsCommand.ts @@ -28,6 +28,7 @@ export class GetWorkflowRunsCommand extends $Command< GetWorkflowRunsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorkflowRunsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ImportCatalogToGlueCommand.ts b/clients/client-glue/commands/ImportCatalogToGlueCommand.ts index 9281c7517c3a9..89c729b590aed 100644 --- a/clients/client-glue/commands/ImportCatalogToGlueCommand.ts +++ b/clients/client-glue/commands/ImportCatalogToGlueCommand.ts @@ -28,6 +28,7 @@ export class ImportCatalogToGlueCommand extends $Command< ImportCatalogToGlueCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportCatalogToGlueCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListCrawlersCommand.ts b/clients/client-glue/commands/ListCrawlersCommand.ts index 8973ad51e60e3..196940e02813a 100644 --- a/clients/client-glue/commands/ListCrawlersCommand.ts +++ b/clients/client-glue/commands/ListCrawlersCommand.ts @@ -34,6 +34,7 @@ export class ListCrawlersCommand extends $Command< ListCrawlersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListCrawlersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListDevEndpointsCommand.ts b/clients/client-glue/commands/ListDevEndpointsCommand.ts index ef7880673e074..88bf54fe54c8f 100644 --- a/clients/client-glue/commands/ListDevEndpointsCommand.ts +++ b/clients/client-glue/commands/ListDevEndpointsCommand.ts @@ -34,6 +34,7 @@ export class ListDevEndpointsCommand extends $Command< ListDevEndpointsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListDevEndpointsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListJobsCommand.ts b/clients/client-glue/commands/ListJobsCommand.ts index a2642dd345c46..cb85a6735e5ae 100644 --- a/clients/client-glue/commands/ListJobsCommand.ts +++ b/clients/client-glue/commands/ListJobsCommand.ts @@ -25,6 +25,7 @@ export type ListJobsCommandOutput = ListJobsResponse & __MetadataBearer; * filtering, only resources with the tag are retrieved.

*/ export class ListJobsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListJobsCommand 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-glue/commands/ListMLTransformsCommand.ts b/clients/client-glue/commands/ListMLTransformsCommand.ts index 8d916549e3e57..fcfd6b40dbc54 100644 --- a/clients/client-glue/commands/ListMLTransformsCommand.ts +++ b/clients/client-glue/commands/ListMLTransformsCommand.ts @@ -32,6 +32,7 @@ export class ListMLTransformsCommand extends $Command< ListMLTransformsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListMLTransformsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListRegistriesCommand.ts b/clients/client-glue/commands/ListRegistriesCommand.ts index cff4426e982ce..01721d38e1be2 100644 --- a/clients/client-glue/commands/ListRegistriesCommand.ts +++ b/clients/client-glue/commands/ListRegistriesCommand.ts @@ -28,6 +28,7 @@ export class ListRegistriesCommand extends $Command< ListRegistriesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRegistriesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListSchemaVersionsCommand.ts b/clients/client-glue/commands/ListSchemaVersionsCommand.ts index 2a96e7b6f2f74..9d2925921c612 100644 --- a/clients/client-glue/commands/ListSchemaVersionsCommand.ts +++ b/clients/client-glue/commands/ListSchemaVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListSchemaVersionsCommand extends $Command< ListSchemaVersionsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSchemaVersionsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListSchemasCommand.ts b/clients/client-glue/commands/ListSchemasCommand.ts index f241879abc8cc..7b6b128d7b440 100644 --- a/clients/client-glue/commands/ListSchemasCommand.ts +++ b/clients/client-glue/commands/ListSchemasCommand.ts @@ -29,6 +29,7 @@ export class ListSchemasCommand extends $Command< ListSchemasCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSchemasCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListTriggersCommand.ts b/clients/client-glue/commands/ListTriggersCommand.ts index 947f9051a3247..934d887bdce17 100644 --- a/clients/client-glue/commands/ListTriggersCommand.ts +++ b/clients/client-glue/commands/ListTriggersCommand.ts @@ -32,6 +32,7 @@ export class ListTriggersCommand extends $Command< ListTriggersCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTriggersCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ListWorkflowsCommand.ts b/clients/client-glue/commands/ListWorkflowsCommand.ts index 1b07af7ce3cc6..8758f61cf2e0f 100644 --- a/clients/client-glue/commands/ListWorkflowsCommand.ts +++ b/clients/client-glue/commands/ListWorkflowsCommand.ts @@ -28,6 +28,7 @@ export class ListWorkflowsCommand extends $Command< ListWorkflowsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorkflowsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/PutDataCatalogEncryptionSettingsCommand.ts b/clients/client-glue/commands/PutDataCatalogEncryptionSettingsCommand.ts index 2a7f37f037c00..c9d124a51bfb6 100644 --- a/clients/client-glue/commands/PutDataCatalogEncryptionSettingsCommand.ts +++ b/clients/client-glue/commands/PutDataCatalogEncryptionSettingsCommand.ts @@ -29,6 +29,7 @@ export class PutDataCatalogEncryptionSettingsCommand extends $Command< PutDataCatalogEncryptionSettingsCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutDataCatalogEncryptionSettingsCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/PutResourcePolicyCommand.ts b/clients/client-glue/commands/PutResourcePolicyCommand.ts index 9c6407e235511..ca578b76e0160 100644 --- a/clients/client-glue/commands/PutResourcePolicyCommand.ts +++ b/clients/client-glue/commands/PutResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/PutSchemaVersionMetadataCommand.ts b/clients/client-glue/commands/PutSchemaVersionMetadataCommand.ts index b25396a973309..7fbaa2defbe83 100644 --- a/clients/client-glue/commands/PutSchemaVersionMetadataCommand.ts +++ b/clients/client-glue/commands/PutSchemaVersionMetadataCommand.ts @@ -28,6 +28,7 @@ export class PutSchemaVersionMetadataCommand extends $Command< PutSchemaVersionMetadataCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutSchemaVersionMetadataCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/PutWorkflowRunPropertiesCommand.ts b/clients/client-glue/commands/PutWorkflowRunPropertiesCommand.ts index 2b8af54c8d98c..e013ae38426c7 100644 --- a/clients/client-glue/commands/PutWorkflowRunPropertiesCommand.ts +++ b/clients/client-glue/commands/PutWorkflowRunPropertiesCommand.ts @@ -28,6 +28,7 @@ export class PutWorkflowRunPropertiesCommand extends $Command< PutWorkflowRunPropertiesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutWorkflowRunPropertiesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/QuerySchemaVersionMetadataCommand.ts b/clients/client-glue/commands/QuerySchemaVersionMetadataCommand.ts index 9bda8340bbbf8..f88d3cef14e1a 100644 --- a/clients/client-glue/commands/QuerySchemaVersionMetadataCommand.ts +++ b/clients/client-glue/commands/QuerySchemaVersionMetadataCommand.ts @@ -28,6 +28,7 @@ export class QuerySchemaVersionMetadataCommand extends $Command< QuerySchemaVersionMetadataCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QuerySchemaVersionMetadataCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/RegisterSchemaVersionCommand.ts b/clients/client-glue/commands/RegisterSchemaVersionCommand.ts index 0f1eeeea54cb2..7a40ad19cda04 100644 --- a/clients/client-glue/commands/RegisterSchemaVersionCommand.ts +++ b/clients/client-glue/commands/RegisterSchemaVersionCommand.ts @@ -30,6 +30,7 @@ export class RegisterSchemaVersionCommand extends $Command< RegisterSchemaVersionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RegisterSchemaVersionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/RemoveSchemaVersionMetadataCommand.ts b/clients/client-glue/commands/RemoveSchemaVersionMetadataCommand.ts index ed7b7155a1f03..d72222a7aa86e 100644 --- a/clients/client-glue/commands/RemoveSchemaVersionMetadataCommand.ts +++ b/clients/client-glue/commands/RemoveSchemaVersionMetadataCommand.ts @@ -28,6 +28,7 @@ export class RemoveSchemaVersionMetadataCommand extends $Command< RemoveSchemaVersionMetadataCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveSchemaVersionMetadataCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ResetJobBookmarkCommand.ts b/clients/client-glue/commands/ResetJobBookmarkCommand.ts index b3920e9c1cfc9..ccc6574cc865c 100644 --- a/clients/client-glue/commands/ResetJobBookmarkCommand.ts +++ b/clients/client-glue/commands/ResetJobBookmarkCommand.ts @@ -28,6 +28,7 @@ export class ResetJobBookmarkCommand extends $Command< ResetJobBookmarkCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResetJobBookmarkCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/ResumeWorkflowRunCommand.ts b/clients/client-glue/commands/ResumeWorkflowRunCommand.ts index 453c9c35710be..ac897851c8ee7 100644 --- a/clients/client-glue/commands/ResumeWorkflowRunCommand.ts +++ b/clients/client-glue/commands/ResumeWorkflowRunCommand.ts @@ -28,6 +28,7 @@ export class ResumeWorkflowRunCommand extends $Command< ResumeWorkflowRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResumeWorkflowRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/SearchTablesCommand.ts b/clients/client-glue/commands/SearchTablesCommand.ts index 63eab8cf5cb1d..0bf34ba43629c 100644 --- a/clients/client-glue/commands/SearchTablesCommand.ts +++ b/clients/client-glue/commands/SearchTablesCommand.ts @@ -29,6 +29,7 @@ export class SearchTablesCommand extends $Command< SearchTablesCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SearchTablesCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartCrawlerCommand.ts b/clients/client-glue/commands/StartCrawlerCommand.ts index 91557aa59157f..306be19001953 100644 --- a/clients/client-glue/commands/StartCrawlerCommand.ts +++ b/clients/client-glue/commands/StartCrawlerCommand.ts @@ -30,6 +30,7 @@ export class StartCrawlerCommand extends $Command< StartCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartCrawlerScheduleCommand.ts b/clients/client-glue/commands/StartCrawlerScheduleCommand.ts index 42a453d9edba7..61115dea18a2d 100644 --- a/clients/client-glue/commands/StartCrawlerScheduleCommand.ts +++ b/clients/client-glue/commands/StartCrawlerScheduleCommand.ts @@ -30,6 +30,7 @@ export class StartCrawlerScheduleCommand extends $Command< StartCrawlerScheduleCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartCrawlerScheduleCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartExportLabelsTaskRunCommand.ts b/clients/client-glue/commands/StartExportLabelsTaskRunCommand.ts index 9dcc6132a2a12..4aaab31e9a35a 100644 --- a/clients/client-glue/commands/StartExportLabelsTaskRunCommand.ts +++ b/clients/client-glue/commands/StartExportLabelsTaskRunCommand.ts @@ -36,6 +36,7 @@ export class StartExportLabelsTaskRunCommand extends $Command< StartExportLabelsTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartExportLabelsTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartImportLabelsTaskRunCommand.ts b/clients/client-glue/commands/StartImportLabelsTaskRunCommand.ts index 1c2d1242c8056..9e3781b1b711c 100644 --- a/clients/client-glue/commands/StartImportLabelsTaskRunCommand.ts +++ b/clients/client-glue/commands/StartImportLabelsTaskRunCommand.ts @@ -52,6 +52,7 @@ export class StartImportLabelsTaskRunCommand extends $Command< StartImportLabelsTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class StartImportLabelsTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartJobRunCommand.ts b/clients/client-glue/commands/StartJobRunCommand.ts index 1c4904414e543..faad12107b60e 100644 --- a/clients/client-glue/commands/StartJobRunCommand.ts +++ b/clients/client-glue/commands/StartJobRunCommand.ts @@ -28,6 +28,7 @@ export class StartJobRunCommand extends $Command< StartJobRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartJobRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartMLEvaluationTaskRunCommand.ts b/clients/client-glue/commands/StartMLEvaluationTaskRunCommand.ts index 285924de4c706..c67360b1df77d 100644 --- a/clients/client-glue/commands/StartMLEvaluationTaskRunCommand.ts +++ b/clients/client-glue/commands/StartMLEvaluationTaskRunCommand.ts @@ -35,6 +35,7 @@ export class StartMLEvaluationTaskRunCommand extends $Command< StartMLEvaluationTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartMLEvaluationTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartMLLabelingSetGenerationTaskRunCommand.ts b/clients/client-glue/commands/StartMLLabelingSetGenerationTaskRunCommand.ts index dca8d10e821d5..011350b70dc54 100644 --- a/clients/client-glue/commands/StartMLLabelingSetGenerationTaskRunCommand.ts +++ b/clients/client-glue/commands/StartMLLabelingSetGenerationTaskRunCommand.ts @@ -45,6 +45,7 @@ export class StartMLLabelingSetGenerationTaskRunCommand extends $Command< StartMLLabelingSetGenerationTaskRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class StartMLLabelingSetGenerationTaskRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartTriggerCommand.ts b/clients/client-glue/commands/StartTriggerCommand.ts index 15cb12a65d97e..1c3d4fb548d32 100644 --- a/clients/client-glue/commands/StartTriggerCommand.ts +++ b/clients/client-glue/commands/StartTriggerCommand.ts @@ -30,6 +30,7 @@ export class StartTriggerCommand extends $Command< StartTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StartWorkflowRunCommand.ts b/clients/client-glue/commands/StartWorkflowRunCommand.ts index b90c7e67ffcfe..37c682044bf1a 100644 --- a/clients/client-glue/commands/StartWorkflowRunCommand.ts +++ b/clients/client-glue/commands/StartWorkflowRunCommand.ts @@ -28,6 +28,7 @@ export class StartWorkflowRunCommand extends $Command< StartWorkflowRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartWorkflowRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StopCrawlerCommand.ts b/clients/client-glue/commands/StopCrawlerCommand.ts index a900ee4778fed..15f8c192ee28f 100644 --- a/clients/client-glue/commands/StopCrawlerCommand.ts +++ b/clients/client-glue/commands/StopCrawlerCommand.ts @@ -28,6 +28,7 @@ export class StopCrawlerCommand extends $Command< StopCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StopCrawlerScheduleCommand.ts b/clients/client-glue/commands/StopCrawlerScheduleCommand.ts index 560e720632607..8e839019c916a 100644 --- a/clients/client-glue/commands/StopCrawlerScheduleCommand.ts +++ b/clients/client-glue/commands/StopCrawlerScheduleCommand.ts @@ -30,6 +30,7 @@ export class StopCrawlerScheduleCommand extends $Command< StopCrawlerScheduleCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StopCrawlerScheduleCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StopTriggerCommand.ts b/clients/client-glue/commands/StopTriggerCommand.ts index 5d5dbffa97ad9..eec99a448b787 100644 --- a/clients/client-glue/commands/StopTriggerCommand.ts +++ b/clients/client-glue/commands/StopTriggerCommand.ts @@ -28,6 +28,7 @@ export class StopTriggerCommand extends $Command< StopTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/StopWorkflowRunCommand.ts b/clients/client-glue/commands/StopWorkflowRunCommand.ts index 0ae3d7a32214b..754265f04cfcc 100644 --- a/clients/client-glue/commands/StopWorkflowRunCommand.ts +++ b/clients/client-glue/commands/StopWorkflowRunCommand.ts @@ -28,6 +28,7 @@ export class StopWorkflowRunCommand extends $Command< StopWorkflowRunCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopWorkflowRunCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/TagResourceCommand.ts b/clients/client-glue/commands/TagResourceCommand.ts index e34ec77c0c988..3547a6012a5fc 100644 --- a/clients/client-glue/commands/TagResourceCommand.ts +++ b/clients/client-glue/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UntagResourceCommand.ts b/clients/client-glue/commands/UntagResourceCommand.ts index 49eabbbf8342c..7cdcfeac80229 100644 --- a/clients/client-glue/commands/UntagResourceCommand.ts +++ b/clients/client-glue/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateClassifierCommand.ts b/clients/client-glue/commands/UpdateClassifierCommand.ts index c1784e63ca6af..ef20e4f412996 100644 --- a/clients/client-glue/commands/UpdateClassifierCommand.ts +++ b/clients/client-glue/commands/UpdateClassifierCommand.ts @@ -30,6 +30,7 @@ export class UpdateClassifierCommand extends $Command< UpdateClassifierCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateClassifierCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateColumnStatisticsForPartitionCommand.ts b/clients/client-glue/commands/UpdateColumnStatisticsForPartitionCommand.ts index b86b6122322ea..2cff17b7c8ed8 100644 --- a/clients/client-glue/commands/UpdateColumnStatisticsForPartitionCommand.ts +++ b/clients/client-glue/commands/UpdateColumnStatisticsForPartitionCommand.ts @@ -34,6 +34,7 @@ export class UpdateColumnStatisticsForPartitionCommand extends $Command< UpdateColumnStatisticsForPartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateColumnStatisticsForPartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateColumnStatisticsForTableCommand.ts b/clients/client-glue/commands/UpdateColumnStatisticsForTableCommand.ts index 0ec31eff17753..fe65e57ce3408 100644 --- a/clients/client-glue/commands/UpdateColumnStatisticsForTableCommand.ts +++ b/clients/client-glue/commands/UpdateColumnStatisticsForTableCommand.ts @@ -30,6 +30,7 @@ export class UpdateColumnStatisticsForTableCommand extends $Command< UpdateColumnStatisticsForTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateColumnStatisticsForTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateConnectionCommand.ts b/clients/client-glue/commands/UpdateConnectionCommand.ts index 7bf3a88b9f5a5..15f326b4b6912 100644 --- a/clients/client-glue/commands/UpdateConnectionCommand.ts +++ b/clients/client-glue/commands/UpdateConnectionCommand.ts @@ -28,6 +28,7 @@ export class UpdateConnectionCommand extends $Command< UpdateConnectionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConnectionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateCrawlerCommand.ts b/clients/client-glue/commands/UpdateCrawlerCommand.ts index 5875ce62fb58a..b9f44d5a7492e 100644 --- a/clients/client-glue/commands/UpdateCrawlerCommand.ts +++ b/clients/client-glue/commands/UpdateCrawlerCommand.ts @@ -30,6 +30,7 @@ export class UpdateCrawlerCommand extends $Command< UpdateCrawlerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateCrawlerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateCrawlerScheduleCommand.ts b/clients/client-glue/commands/UpdateCrawlerScheduleCommand.ts index 6e4d91dae0c16..b3d893e1d3518 100644 --- a/clients/client-glue/commands/UpdateCrawlerScheduleCommand.ts +++ b/clients/client-glue/commands/UpdateCrawlerScheduleCommand.ts @@ -28,6 +28,7 @@ export class UpdateCrawlerScheduleCommand extends $Command< UpdateCrawlerScheduleCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCrawlerScheduleCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateDatabaseCommand.ts b/clients/client-glue/commands/UpdateDatabaseCommand.ts index b7cc5668f9f8a..dd244f9cee441 100644 --- a/clients/client-glue/commands/UpdateDatabaseCommand.ts +++ b/clients/client-glue/commands/UpdateDatabaseCommand.ts @@ -28,6 +28,7 @@ export class UpdateDatabaseCommand extends $Command< UpdateDatabaseCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDatabaseCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateDevEndpointCommand.ts b/clients/client-glue/commands/UpdateDevEndpointCommand.ts index 2ee632d243c80..8c302575bc40c 100644 --- a/clients/client-glue/commands/UpdateDevEndpointCommand.ts +++ b/clients/client-glue/commands/UpdateDevEndpointCommand.ts @@ -28,6 +28,7 @@ export class UpdateDevEndpointCommand extends $Command< UpdateDevEndpointCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDevEndpointCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateJobCommand.ts b/clients/client-glue/commands/UpdateJobCommand.ts index 59a6850614266..06484e40894a6 100644 --- a/clients/client-glue/commands/UpdateJobCommand.ts +++ b/clients/client-glue/commands/UpdateJobCommand.ts @@ -25,6 +25,7 @@ export class UpdateJobCommand extends $Command< UpdateJobCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateJobCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateMLTransformCommand.ts b/clients/client-glue/commands/UpdateMLTransformCommand.ts index 1d0a3572946ea..869e42b70baa1 100644 --- a/clients/client-glue/commands/UpdateMLTransformCommand.ts +++ b/clients/client-glue/commands/UpdateMLTransformCommand.ts @@ -32,6 +32,7 @@ export class UpdateMLTransformCommand extends $Command< UpdateMLTransformCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateMLTransformCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdatePartitionCommand.ts b/clients/client-glue/commands/UpdatePartitionCommand.ts index 8fedcd80e010a..cdf36da2b8efe 100644 --- a/clients/client-glue/commands/UpdatePartitionCommand.ts +++ b/clients/client-glue/commands/UpdatePartitionCommand.ts @@ -28,6 +28,7 @@ export class UpdatePartitionCommand extends $Command< UpdatePartitionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePartitionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateRegistryCommand.ts b/clients/client-glue/commands/UpdateRegistryCommand.ts index 17bba8e595231..d045086968532 100644 --- a/clients/client-glue/commands/UpdateRegistryCommand.ts +++ b/clients/client-glue/commands/UpdateRegistryCommand.ts @@ -28,6 +28,7 @@ export class UpdateRegistryCommand extends $Command< UpdateRegistryCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRegistryCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateSchemaCommand.ts b/clients/client-glue/commands/UpdateSchemaCommand.ts index 48e78cc3dff25..874d3430532d7 100644 --- a/clients/client-glue/commands/UpdateSchemaCommand.ts +++ b/clients/client-glue/commands/UpdateSchemaCommand.ts @@ -31,6 +31,7 @@ export class UpdateSchemaCommand extends $Command< UpdateSchemaCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateSchemaCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateTableCommand.ts b/clients/client-glue/commands/UpdateTableCommand.ts index 757e89276cef4..0d6ed47657979 100644 --- a/clients/client-glue/commands/UpdateTableCommand.ts +++ b/clients/client-glue/commands/UpdateTableCommand.ts @@ -28,6 +28,7 @@ export class UpdateTableCommand extends $Command< UpdateTableCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTableCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateTriggerCommand.ts b/clients/client-glue/commands/UpdateTriggerCommand.ts index 79153a3d89c46..4d09538037107 100644 --- a/clients/client-glue/commands/UpdateTriggerCommand.ts +++ b/clients/client-glue/commands/UpdateTriggerCommand.ts @@ -28,6 +28,7 @@ export class UpdateTriggerCommand extends $Command< UpdateTriggerCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTriggerCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateUserDefinedFunctionCommand.ts b/clients/client-glue/commands/UpdateUserDefinedFunctionCommand.ts index 987652a9fd7c5..c0af10ec358ae 100644 --- a/clients/client-glue/commands/UpdateUserDefinedFunctionCommand.ts +++ b/clients/client-glue/commands/UpdateUserDefinedFunctionCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserDefinedFunctionCommand extends $Command< UpdateUserDefinedFunctionCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserDefinedFunctionCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-glue/commands/UpdateWorkflowCommand.ts b/clients/client-glue/commands/UpdateWorkflowCommand.ts index e8ab3532fcd9a..8d4be7d44dc17 100644 --- a/clients/client-glue/commands/UpdateWorkflowCommand.ts +++ b/clients/client-glue/commands/UpdateWorkflowCommand.ts @@ -28,6 +28,7 @@ export class UpdateWorkflowCommand extends $Command< UpdateWorkflowCommandOutput, GlueClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateWorkflowCommand extends $Command< configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/AssociateRoleToGroupCommand.ts b/clients/client-greengrass/commands/AssociateRoleToGroupCommand.ts index d9edea757f22f..50df9302859dc 100644 --- a/clients/client-greengrass/commands/AssociateRoleToGroupCommand.ts +++ b/clients/client-greengrass/commands/AssociateRoleToGroupCommand.ts @@ -28,6 +28,7 @@ export class AssociateRoleToGroupCommand extends $Command< AssociateRoleToGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateRoleToGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/AssociateServiceRoleToAccountCommand.ts b/clients/client-greengrass/commands/AssociateServiceRoleToAccountCommand.ts index 7163ceadf65af..60c76818009b1 100644 --- a/clients/client-greengrass/commands/AssociateServiceRoleToAccountCommand.ts +++ b/clients/client-greengrass/commands/AssociateServiceRoleToAccountCommand.ts @@ -28,6 +28,7 @@ export class AssociateServiceRoleToAccountCommand extends $Command< AssociateServiceRoleToAccountCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateServiceRoleToAccountCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateConnectorDefinitionCommand.ts b/clients/client-greengrass/commands/CreateConnectorDefinitionCommand.ts index 8b3a5b16b6aa0..f7957ab8ab000 100644 --- a/clients/client-greengrass/commands/CreateConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateConnectorDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateConnectorDefinitionCommand extends $Command< CreateConnectorDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConnectorDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateConnectorDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateConnectorDefinitionVersionCommand.ts index e8235391ccaed..9f1f3e1ebb023 100644 --- a/clients/client-greengrass/commands/CreateConnectorDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateConnectorDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateConnectorDefinitionVersionCommand extends $Command< CreateConnectorDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConnectorDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateCoreDefinitionCommand.ts b/clients/client-greengrass/commands/CreateCoreDefinitionCommand.ts index bed723618033d..00dad335200ff 100644 --- a/clients/client-greengrass/commands/CreateCoreDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateCoreDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateCoreDefinitionCommand extends $Command< CreateCoreDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCoreDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateCoreDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateCoreDefinitionVersionCommand.ts index 806546e878aaf..3f98434084dd4 100644 --- a/clients/client-greengrass/commands/CreateCoreDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateCoreDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateCoreDefinitionVersionCommand extends $Command< CreateCoreDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCoreDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateDeploymentCommand.ts b/clients/client-greengrass/commands/CreateDeploymentCommand.ts index 7788225fde179..5352fee8e4905 100644 --- a/clients/client-greengrass/commands/CreateDeploymentCommand.ts +++ b/clients/client-greengrass/commands/CreateDeploymentCommand.ts @@ -28,6 +28,7 @@ export class CreateDeploymentCommand extends $Command< CreateDeploymentCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeploymentCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateDeviceDefinitionCommand.ts b/clients/client-greengrass/commands/CreateDeviceDefinitionCommand.ts index 14e357103a33d..c37afe5fec799 100644 --- a/clients/client-greengrass/commands/CreateDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateDeviceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateDeviceDefinitionCommand extends $Command< CreateDeviceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeviceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateDeviceDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateDeviceDefinitionVersionCommand.ts index 1dece41553722..bec7b5045e0fd 100644 --- a/clients/client-greengrass/commands/CreateDeviceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateDeviceDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateDeviceDefinitionVersionCommand extends $Command< CreateDeviceDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeviceDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateFunctionDefinitionCommand.ts b/clients/client-greengrass/commands/CreateFunctionDefinitionCommand.ts index 421d2ee8015c7..c4ee4006a1e1c 100644 --- a/clients/client-greengrass/commands/CreateFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateFunctionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateFunctionDefinitionCommand extends $Command< CreateFunctionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFunctionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateFunctionDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateFunctionDefinitionVersionCommand.ts index d6c1e94f3b73b..7ba6e43b73033 100644 --- a/clients/client-greengrass/commands/CreateFunctionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateFunctionDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateFunctionDefinitionVersionCommand extends $Command< CreateFunctionDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFunctionDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateGroupCertificateAuthorityCommand.ts b/clients/client-greengrass/commands/CreateGroupCertificateAuthorityCommand.ts index 6ab97b991de1e..d06e17a101177 100644 --- a/clients/client-greengrass/commands/CreateGroupCertificateAuthorityCommand.ts +++ b/clients/client-greengrass/commands/CreateGroupCertificateAuthorityCommand.ts @@ -28,6 +28,7 @@ export class CreateGroupCertificateAuthorityCommand extends $Command< CreateGroupCertificateAuthorityCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGroupCertificateAuthorityCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateGroupCommand.ts b/clients/client-greengrass/commands/CreateGroupCommand.ts index bf3765273e2dd..25dc697520844 100644 --- a/clients/client-greengrass/commands/CreateGroupCommand.ts +++ b/clients/client-greengrass/commands/CreateGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateGroupVersionCommand.ts b/clients/client-greengrass/commands/CreateGroupVersionCommand.ts index c7e16c9026e90..e440c7f0e769d 100644 --- a/clients/client-greengrass/commands/CreateGroupVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateGroupVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateGroupVersionCommand extends $Command< CreateGroupVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGroupVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateLoggerDefinitionCommand.ts b/clients/client-greengrass/commands/CreateLoggerDefinitionCommand.ts index 7908a230d51bf..66e1dc49c7139 100644 --- a/clients/client-greengrass/commands/CreateLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateLoggerDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateLoggerDefinitionCommand extends $Command< CreateLoggerDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLoggerDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateLoggerDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateLoggerDefinitionVersionCommand.ts index 82a74205eef5e..4b269b2689bf7 100644 --- a/clients/client-greengrass/commands/CreateLoggerDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateLoggerDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateLoggerDefinitionVersionCommand extends $Command< CreateLoggerDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLoggerDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateResourceDefinitionCommand.ts b/clients/client-greengrass/commands/CreateResourceDefinitionCommand.ts index aab56ba649513..ed4199f6fe6aa 100644 --- a/clients/client-greengrass/commands/CreateResourceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateResourceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateResourceDefinitionCommand extends $Command< CreateResourceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateResourceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateResourceDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateResourceDefinitionVersionCommand.ts index 687982c6819a6..b6e1c4cd40a9a 100644 --- a/clients/client-greengrass/commands/CreateResourceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateResourceDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateResourceDefinitionVersionCommand extends $Command< CreateResourceDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateResourceDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateSoftwareUpdateJobCommand.ts b/clients/client-greengrass/commands/CreateSoftwareUpdateJobCommand.ts index 2b03c3714eb16..cff877b5a4a03 100644 --- a/clients/client-greengrass/commands/CreateSoftwareUpdateJobCommand.ts +++ b/clients/client-greengrass/commands/CreateSoftwareUpdateJobCommand.ts @@ -28,6 +28,7 @@ export class CreateSoftwareUpdateJobCommand extends $Command< CreateSoftwareUpdateJobCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSoftwareUpdateJobCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateSubscriptionDefinitionCommand.ts b/clients/client-greengrass/commands/CreateSubscriptionDefinitionCommand.ts index 1fc62ebb2c6b4..7ca629ca832d6 100644 --- a/clients/client-greengrass/commands/CreateSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/CreateSubscriptionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateSubscriptionDefinitionCommand extends $Command< CreateSubscriptionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSubscriptionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/CreateSubscriptionDefinitionVersionCommand.ts b/clients/client-greengrass/commands/CreateSubscriptionDefinitionVersionCommand.ts index cbeeb8120ee8f..ab5b0b5e92925 100644 --- a/clients/client-greengrass/commands/CreateSubscriptionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/CreateSubscriptionDefinitionVersionCommand.ts @@ -32,6 +32,7 @@ export class CreateSubscriptionDefinitionVersionCommand extends $Command< CreateSubscriptionDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateSubscriptionDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteConnectorDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteConnectorDefinitionCommand.ts index a0948971a1621..8f471a7a3b248 100644 --- a/clients/client-greengrass/commands/DeleteConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteConnectorDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteConnectorDefinitionCommand extends $Command< DeleteConnectorDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConnectorDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteCoreDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteCoreDefinitionCommand.ts index 4dd31cc7e41ea..3f2a5c4a6f7a1 100644 --- a/clients/client-greengrass/commands/DeleteCoreDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteCoreDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteCoreDefinitionCommand extends $Command< DeleteCoreDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCoreDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteDeviceDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteDeviceDefinitionCommand.ts index 4999454d316f1..a16886ccdcfd8 100644 --- a/clients/client-greengrass/commands/DeleteDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteDeviceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteDeviceDefinitionCommand extends $Command< DeleteDeviceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDeviceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteFunctionDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteFunctionDefinitionCommand.ts index 8346d199471b0..e54e27d597d58 100644 --- a/clients/client-greengrass/commands/DeleteFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteFunctionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteFunctionDefinitionCommand extends $Command< DeleteFunctionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFunctionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteGroupCommand.ts b/clients/client-greengrass/commands/DeleteGroupCommand.ts index bfff51a36d5e2..0220d097401ea 100644 --- a/clients/client-greengrass/commands/DeleteGroupCommand.ts +++ b/clients/client-greengrass/commands/DeleteGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteLoggerDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteLoggerDefinitionCommand.ts index 1db9964166647..3f83377d97648 100644 --- a/clients/client-greengrass/commands/DeleteLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteLoggerDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteLoggerDefinitionCommand extends $Command< DeleteLoggerDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLoggerDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteResourceDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteResourceDefinitionCommand.ts index 672c67e8a937b..3e0cb27fb40b1 100644 --- a/clients/client-greengrass/commands/DeleteResourceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteResourceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourceDefinitionCommand extends $Command< DeleteResourceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DeleteSubscriptionDefinitionCommand.ts b/clients/client-greengrass/commands/DeleteSubscriptionDefinitionCommand.ts index 4bcecc0908d5a..28d982ec869fe 100644 --- a/clients/client-greengrass/commands/DeleteSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/DeleteSubscriptionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteSubscriptionDefinitionCommand extends $Command< DeleteSubscriptionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSubscriptionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DisassociateRoleFromGroupCommand.ts b/clients/client-greengrass/commands/DisassociateRoleFromGroupCommand.ts index d52518655e441..5b1f43c20628d 100644 --- a/clients/client-greengrass/commands/DisassociateRoleFromGroupCommand.ts +++ b/clients/client-greengrass/commands/DisassociateRoleFromGroupCommand.ts @@ -28,6 +28,7 @@ export class DisassociateRoleFromGroupCommand extends $Command< DisassociateRoleFromGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateRoleFromGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/DisassociateServiceRoleFromAccountCommand.ts b/clients/client-greengrass/commands/DisassociateServiceRoleFromAccountCommand.ts index 6c0c418365464..3eceb9c4f385a 100644 --- a/clients/client-greengrass/commands/DisassociateServiceRoleFromAccountCommand.ts +++ b/clients/client-greengrass/commands/DisassociateServiceRoleFromAccountCommand.ts @@ -32,6 +32,7 @@ export class DisassociateServiceRoleFromAccountCommand extends $Command< DisassociateServiceRoleFromAccountCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateServiceRoleFromAccountCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetAssociatedRoleCommand.ts b/clients/client-greengrass/commands/GetAssociatedRoleCommand.ts index 3c0a9fb0eed23..37474ef470963 100644 --- a/clients/client-greengrass/commands/GetAssociatedRoleCommand.ts +++ b/clients/client-greengrass/commands/GetAssociatedRoleCommand.ts @@ -28,6 +28,7 @@ export class GetAssociatedRoleCommand extends $Command< GetAssociatedRoleCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAssociatedRoleCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetBulkDeploymentStatusCommand.ts b/clients/client-greengrass/commands/GetBulkDeploymentStatusCommand.ts index fe54208b002dc..57c6d03866d0e 100644 --- a/clients/client-greengrass/commands/GetBulkDeploymentStatusCommand.ts +++ b/clients/client-greengrass/commands/GetBulkDeploymentStatusCommand.ts @@ -28,6 +28,7 @@ export class GetBulkDeploymentStatusCommand extends $Command< GetBulkDeploymentStatusCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBulkDeploymentStatusCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetConnectivityInfoCommand.ts b/clients/client-greengrass/commands/GetConnectivityInfoCommand.ts index 0ae494910dd34..e6fae85a5b25f 100644 --- a/clients/client-greengrass/commands/GetConnectivityInfoCommand.ts +++ b/clients/client-greengrass/commands/GetConnectivityInfoCommand.ts @@ -28,6 +28,7 @@ export class GetConnectivityInfoCommand extends $Command< GetConnectivityInfoCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectivityInfoCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetConnectorDefinitionCommand.ts b/clients/client-greengrass/commands/GetConnectorDefinitionCommand.ts index b9850e0e12a6d..94d7013c02675 100644 --- a/clients/client-greengrass/commands/GetConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetConnectorDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetConnectorDefinitionCommand extends $Command< GetConnectorDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectorDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetConnectorDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetConnectorDefinitionVersionCommand.ts index 58dac9b5deb78..54c4fb725ff09 100644 --- a/clients/client-greengrass/commands/GetConnectorDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetConnectorDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetConnectorDefinitionVersionCommand extends $Command< GetConnectorDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectorDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetCoreDefinitionCommand.ts b/clients/client-greengrass/commands/GetCoreDefinitionCommand.ts index eae55af607aab..da89ab401c51e 100644 --- a/clients/client-greengrass/commands/GetCoreDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetCoreDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetCoreDefinitionCommand extends $Command< GetCoreDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCoreDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetCoreDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetCoreDefinitionVersionCommand.ts index 34726d2c0a3d4..30eda8f2063fd 100644 --- a/clients/client-greengrass/commands/GetCoreDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetCoreDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetCoreDefinitionVersionCommand extends $Command< GetCoreDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCoreDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetDeploymentStatusCommand.ts b/clients/client-greengrass/commands/GetDeploymentStatusCommand.ts index 3535e961d47b0..1712196ef38c2 100644 --- a/clients/client-greengrass/commands/GetDeploymentStatusCommand.ts +++ b/clients/client-greengrass/commands/GetDeploymentStatusCommand.ts @@ -28,6 +28,7 @@ export class GetDeploymentStatusCommand extends $Command< GetDeploymentStatusCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeploymentStatusCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetDeviceDefinitionCommand.ts b/clients/client-greengrass/commands/GetDeviceDefinitionCommand.ts index 83735b266044b..906d4fce9826a 100644 --- a/clients/client-greengrass/commands/GetDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetDeviceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceDefinitionCommand extends $Command< GetDeviceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetDeviceDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetDeviceDefinitionVersionCommand.ts index 0c1c1777d8a3e..9b9ec100bd247 100644 --- a/clients/client-greengrass/commands/GetDeviceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetDeviceDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceDefinitionVersionCommand extends $Command< GetDeviceDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetFunctionDefinitionCommand.ts b/clients/client-greengrass/commands/GetFunctionDefinitionCommand.ts index 6c81a92bebddd..fd6fff502c732 100644 --- a/clients/client-greengrass/commands/GetFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetFunctionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetFunctionDefinitionCommand extends $Command< GetFunctionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFunctionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetFunctionDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetFunctionDefinitionVersionCommand.ts index d0a463bb46944..512ab76a4e1ae 100644 --- a/clients/client-greengrass/commands/GetFunctionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetFunctionDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetFunctionDefinitionVersionCommand extends $Command< GetFunctionDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFunctionDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetGroupCertificateAuthorityCommand.ts b/clients/client-greengrass/commands/GetGroupCertificateAuthorityCommand.ts index d700415563e5e..8b2b019465753 100644 --- a/clients/client-greengrass/commands/GetGroupCertificateAuthorityCommand.ts +++ b/clients/client-greengrass/commands/GetGroupCertificateAuthorityCommand.ts @@ -28,6 +28,7 @@ export class GetGroupCertificateAuthorityCommand extends $Command< GetGroupCertificateAuthorityCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupCertificateAuthorityCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetGroupCertificateConfigurationCommand.ts b/clients/client-greengrass/commands/GetGroupCertificateConfigurationCommand.ts index d0833bf571675..856b9d205852c 100644 --- a/clients/client-greengrass/commands/GetGroupCertificateConfigurationCommand.ts +++ b/clients/client-greengrass/commands/GetGroupCertificateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetGroupCertificateConfigurationCommand extends $Command< GetGroupCertificateConfigurationCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupCertificateConfigurationCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetGroupCommand.ts b/clients/client-greengrass/commands/GetGroupCommand.ts index d04ebacf5ec59..a97a70d0b4ad5 100644 --- a/clients/client-greengrass/commands/GetGroupCommand.ts +++ b/clients/client-greengrass/commands/GetGroupCommand.ts @@ -28,6 +28,7 @@ export class GetGroupCommand extends $Command< GetGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetGroupVersionCommand.ts b/clients/client-greengrass/commands/GetGroupVersionCommand.ts index 446d4866c6f98..279b298e44316 100644 --- a/clients/client-greengrass/commands/GetGroupVersionCommand.ts +++ b/clients/client-greengrass/commands/GetGroupVersionCommand.ts @@ -28,6 +28,7 @@ export class GetGroupVersionCommand extends $Command< GetGroupVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetLoggerDefinitionCommand.ts b/clients/client-greengrass/commands/GetLoggerDefinitionCommand.ts index e4e7ebe086252..58d22593124aa 100644 --- a/clients/client-greengrass/commands/GetLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetLoggerDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetLoggerDefinitionCommand extends $Command< GetLoggerDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLoggerDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetLoggerDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetLoggerDefinitionVersionCommand.ts index 9a89b319102b2..ebc5f10bdddef 100644 --- a/clients/client-greengrass/commands/GetLoggerDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetLoggerDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetLoggerDefinitionVersionCommand extends $Command< GetLoggerDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLoggerDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetResourceDefinitionCommand.ts b/clients/client-greengrass/commands/GetResourceDefinitionCommand.ts index 052ccb26064f0..96501c77349a0 100644 --- a/clients/client-greengrass/commands/GetResourceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetResourceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetResourceDefinitionCommand extends $Command< GetResourceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetResourceDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetResourceDefinitionVersionCommand.ts index 38eb19bfaa997..a5832684ed7ac 100644 --- a/clients/client-greengrass/commands/GetResourceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetResourceDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetResourceDefinitionVersionCommand extends $Command< GetResourceDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourceDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetServiceRoleForAccountCommand.ts b/clients/client-greengrass/commands/GetServiceRoleForAccountCommand.ts index f583d0573724f..0bf28e1e5087a 100644 --- a/clients/client-greengrass/commands/GetServiceRoleForAccountCommand.ts +++ b/clients/client-greengrass/commands/GetServiceRoleForAccountCommand.ts @@ -28,6 +28,7 @@ export class GetServiceRoleForAccountCommand extends $Command< GetServiceRoleForAccountCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetServiceRoleForAccountCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetSubscriptionDefinitionCommand.ts b/clients/client-greengrass/commands/GetSubscriptionDefinitionCommand.ts index c349d2395454b..042fcb06c877b 100644 --- a/clients/client-greengrass/commands/GetSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/GetSubscriptionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class GetSubscriptionDefinitionCommand extends $Command< GetSubscriptionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSubscriptionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetSubscriptionDefinitionVersionCommand.ts b/clients/client-greengrass/commands/GetSubscriptionDefinitionVersionCommand.ts index 5c6547d3bce4a..d43fa6a6ae3b3 100644 --- a/clients/client-greengrass/commands/GetSubscriptionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/commands/GetSubscriptionDefinitionVersionCommand.ts @@ -28,6 +28,7 @@ export class GetSubscriptionDefinitionVersionCommand extends $Command< GetSubscriptionDefinitionVersionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSubscriptionDefinitionVersionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/GetThingRuntimeConfigurationCommand.ts b/clients/client-greengrass/commands/GetThingRuntimeConfigurationCommand.ts index a7a7137c7fff3..acd9cbb410da4 100644 --- a/clients/client-greengrass/commands/GetThingRuntimeConfigurationCommand.ts +++ b/clients/client-greengrass/commands/GetThingRuntimeConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetThingRuntimeConfigurationCommand extends $Command< GetThingRuntimeConfigurationCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetThingRuntimeConfigurationCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListBulkDeploymentDetailedReportsCommand.ts b/clients/client-greengrass/commands/ListBulkDeploymentDetailedReportsCommand.ts index aaf1d6c77e42a..603c47ce18cce 100644 --- a/clients/client-greengrass/commands/ListBulkDeploymentDetailedReportsCommand.ts +++ b/clients/client-greengrass/commands/ListBulkDeploymentDetailedReportsCommand.ts @@ -32,6 +32,7 @@ export class ListBulkDeploymentDetailedReportsCommand extends $Command< ListBulkDeploymentDetailedReportsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListBulkDeploymentDetailedReportsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListBulkDeploymentsCommand.ts b/clients/client-greengrass/commands/ListBulkDeploymentsCommand.ts index 9b62d5621c3ce..a82b2e65a9087 100644 --- a/clients/client-greengrass/commands/ListBulkDeploymentsCommand.ts +++ b/clients/client-greengrass/commands/ListBulkDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class ListBulkDeploymentsCommand extends $Command< ListBulkDeploymentsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBulkDeploymentsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListConnectorDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListConnectorDefinitionVersionsCommand.ts index 7395be476fe5c..9088384264778 100644 --- a/clients/client-greengrass/commands/ListConnectorDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListConnectorDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListConnectorDefinitionVersionsCommand extends $Command< ListConnectorDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConnectorDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListConnectorDefinitionsCommand.ts b/clients/client-greengrass/commands/ListConnectorDefinitionsCommand.ts index 58443b98b9e33..8a9b76f7101e5 100644 --- a/clients/client-greengrass/commands/ListConnectorDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListConnectorDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListConnectorDefinitionsCommand extends $Command< ListConnectorDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConnectorDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListCoreDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListCoreDefinitionVersionsCommand.ts index 6ea1c8792fed5..c975a41acbe32 100644 --- a/clients/client-greengrass/commands/ListCoreDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListCoreDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListCoreDefinitionVersionsCommand extends $Command< ListCoreDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCoreDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListCoreDefinitionsCommand.ts b/clients/client-greengrass/commands/ListCoreDefinitionsCommand.ts index 76d90e2f6e758..561dc3e0dacc9 100644 --- a/clients/client-greengrass/commands/ListCoreDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListCoreDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListCoreDefinitionsCommand extends $Command< ListCoreDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCoreDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListDeploymentsCommand.ts b/clients/client-greengrass/commands/ListDeploymentsCommand.ts index 625f19addd8fe..a5efd9d9172a3 100644 --- a/clients/client-greengrass/commands/ListDeploymentsCommand.ts +++ b/clients/client-greengrass/commands/ListDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class ListDeploymentsCommand extends $Command< ListDeploymentsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeploymentsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListDeviceDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListDeviceDefinitionVersionsCommand.ts index b3e3b97a1cb7f..9171d35318203 100644 --- a/clients/client-greengrass/commands/ListDeviceDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListDeviceDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListDeviceDefinitionVersionsCommand extends $Command< ListDeviceDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeviceDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListDeviceDefinitionsCommand.ts b/clients/client-greengrass/commands/ListDeviceDefinitionsCommand.ts index b0982db920fd9..ddd130af85416 100644 --- a/clients/client-greengrass/commands/ListDeviceDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListDeviceDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListDeviceDefinitionsCommand extends $Command< ListDeviceDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeviceDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListFunctionDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListFunctionDefinitionVersionsCommand.ts index 2bc9489fcc10d..1279ec04e6b2e 100644 --- a/clients/client-greengrass/commands/ListFunctionDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListFunctionDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListFunctionDefinitionVersionsCommand extends $Command< ListFunctionDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFunctionDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListFunctionDefinitionsCommand.ts b/clients/client-greengrass/commands/ListFunctionDefinitionsCommand.ts index 6467c87a2790b..8374cda7d71be 100644 --- a/clients/client-greengrass/commands/ListFunctionDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListFunctionDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListFunctionDefinitionsCommand extends $Command< ListFunctionDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFunctionDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListGroupCertificateAuthoritiesCommand.ts b/clients/client-greengrass/commands/ListGroupCertificateAuthoritiesCommand.ts index 347f69e871570..424441cea528e 100644 --- a/clients/client-greengrass/commands/ListGroupCertificateAuthoritiesCommand.ts +++ b/clients/client-greengrass/commands/ListGroupCertificateAuthoritiesCommand.ts @@ -28,6 +28,7 @@ export class ListGroupCertificateAuthoritiesCommand extends $Command< ListGroupCertificateAuthoritiesCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupCertificateAuthoritiesCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListGroupVersionsCommand.ts b/clients/client-greengrass/commands/ListGroupVersionsCommand.ts index 58e8f3193dfeb..08407973307c7 100644 --- a/clients/client-greengrass/commands/ListGroupVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListGroupVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupVersionsCommand extends $Command< ListGroupVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListGroupsCommand.ts b/clients/client-greengrass/commands/ListGroupsCommand.ts index 2fa316dd28b76..91477b1df610e 100644 --- a/clients/client-greengrass/commands/ListGroupsCommand.ts +++ b/clients/client-greengrass/commands/ListGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListLoggerDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListLoggerDefinitionVersionsCommand.ts index b7c0c0dbc833e..c4be1e405fa85 100644 --- a/clients/client-greengrass/commands/ListLoggerDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListLoggerDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListLoggerDefinitionVersionsCommand extends $Command< ListLoggerDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLoggerDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListLoggerDefinitionsCommand.ts b/clients/client-greengrass/commands/ListLoggerDefinitionsCommand.ts index 5a789544ca497..2fa11f54e2016 100644 --- a/clients/client-greengrass/commands/ListLoggerDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListLoggerDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListLoggerDefinitionsCommand extends $Command< ListLoggerDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLoggerDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListResourceDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListResourceDefinitionVersionsCommand.ts index 453726ffba4e5..040b796f026c6 100644 --- a/clients/client-greengrass/commands/ListResourceDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListResourceDefinitionVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListResourceDefinitionVersionsCommand extends $Command< ListResourceDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourceDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListResourceDefinitionsCommand.ts b/clients/client-greengrass/commands/ListResourceDefinitionsCommand.ts index c8e833344b3dc..af2bf4783d5a6 100644 --- a/clients/client-greengrass/commands/ListResourceDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListResourceDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListResourceDefinitionsCommand extends $Command< ListResourceDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourceDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListSubscriptionDefinitionVersionsCommand.ts b/clients/client-greengrass/commands/ListSubscriptionDefinitionVersionsCommand.ts index 3f13503df149e..5c3b592aa8277 100644 --- a/clients/client-greengrass/commands/ListSubscriptionDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/commands/ListSubscriptionDefinitionVersionsCommand.ts @@ -32,6 +32,7 @@ export class ListSubscriptionDefinitionVersionsCommand extends $Command< ListSubscriptionDefinitionVersionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListSubscriptionDefinitionVersionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListSubscriptionDefinitionsCommand.ts b/clients/client-greengrass/commands/ListSubscriptionDefinitionsCommand.ts index 95706b64b8fc9..9a838bbe54b71 100644 --- a/clients/client-greengrass/commands/ListSubscriptionDefinitionsCommand.ts +++ b/clients/client-greengrass/commands/ListSubscriptionDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListSubscriptionDefinitionsCommand extends $Command< ListSubscriptionDefinitionsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSubscriptionDefinitionsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ListTagsForResourceCommand.ts b/clients/client-greengrass/commands/ListTagsForResourceCommand.ts index fa29c2cbcdb48..fea73350c0b28 100644 --- a/clients/client-greengrass/commands/ListTagsForResourceCommand.ts +++ b/clients/client-greengrass/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/ResetDeploymentsCommand.ts b/clients/client-greengrass/commands/ResetDeploymentsCommand.ts index 2c67d2019bcbb..00cde797d6038 100644 --- a/clients/client-greengrass/commands/ResetDeploymentsCommand.ts +++ b/clients/client-greengrass/commands/ResetDeploymentsCommand.ts @@ -28,6 +28,7 @@ export class ResetDeploymentsCommand extends $Command< ResetDeploymentsCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResetDeploymentsCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/StartBulkDeploymentCommand.ts b/clients/client-greengrass/commands/StartBulkDeploymentCommand.ts index 17b657a074e75..64bc3a32fd057 100644 --- a/clients/client-greengrass/commands/StartBulkDeploymentCommand.ts +++ b/clients/client-greengrass/commands/StartBulkDeploymentCommand.ts @@ -28,6 +28,7 @@ export class StartBulkDeploymentCommand extends $Command< StartBulkDeploymentCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartBulkDeploymentCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/StopBulkDeploymentCommand.ts b/clients/client-greengrass/commands/StopBulkDeploymentCommand.ts index cc7cdecf7a18e..e3ffe8f59fe49 100644 --- a/clients/client-greengrass/commands/StopBulkDeploymentCommand.ts +++ b/clients/client-greengrass/commands/StopBulkDeploymentCommand.ts @@ -28,6 +28,7 @@ export class StopBulkDeploymentCommand extends $Command< StopBulkDeploymentCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopBulkDeploymentCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/TagResourceCommand.ts b/clients/client-greengrass/commands/TagResourceCommand.ts index d1e21c65ea94e..c07db08238435 100644 --- a/clients/client-greengrass/commands/TagResourceCommand.ts +++ b/clients/client-greengrass/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UntagResourceCommand.ts b/clients/client-greengrass/commands/UntagResourceCommand.ts index 0edc941e768b5..9fb2962efc61f 100644 --- a/clients/client-greengrass/commands/UntagResourceCommand.ts +++ b/clients/client-greengrass/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateConnectivityInfoCommand.ts b/clients/client-greengrass/commands/UpdateConnectivityInfoCommand.ts index fbf55be7f0047..403503d125013 100644 --- a/clients/client-greengrass/commands/UpdateConnectivityInfoCommand.ts +++ b/clients/client-greengrass/commands/UpdateConnectivityInfoCommand.ts @@ -28,6 +28,7 @@ export class UpdateConnectivityInfoCommand extends $Command< UpdateConnectivityInfoCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConnectivityInfoCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateConnectorDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateConnectorDefinitionCommand.ts index b49c38d4e02d3..74d74382649fa 100644 --- a/clients/client-greengrass/commands/UpdateConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateConnectorDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateConnectorDefinitionCommand extends $Command< UpdateConnectorDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConnectorDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateCoreDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateCoreDefinitionCommand.ts index 082a61c523fda..b950dbe4adb18 100644 --- a/clients/client-greengrass/commands/UpdateCoreDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateCoreDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateCoreDefinitionCommand extends $Command< UpdateCoreDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCoreDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateDeviceDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateDeviceDefinitionCommand.ts index aeff2d8f8aa77..557463eb3c196 100644 --- a/clients/client-greengrass/commands/UpdateDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateDeviceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeviceDefinitionCommand extends $Command< UpdateDeviceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeviceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateFunctionDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateFunctionDefinitionCommand.ts index 06c1c1cede5e1..4c5038ddaefb5 100644 --- a/clients/client-greengrass/commands/UpdateFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateFunctionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateFunctionDefinitionCommand extends $Command< UpdateFunctionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFunctionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateGroupCertificateConfigurationCommand.ts b/clients/client-greengrass/commands/UpdateGroupCertificateConfigurationCommand.ts index 7ab74ab80b365..946294706d7d1 100644 --- a/clients/client-greengrass/commands/UpdateGroupCertificateConfigurationCommand.ts +++ b/clients/client-greengrass/commands/UpdateGroupCertificateConfigurationCommand.ts @@ -32,6 +32,7 @@ export class UpdateGroupCertificateConfigurationCommand extends $Command< UpdateGroupCertificateConfigurationCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateGroupCertificateConfigurationCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateGroupCommand.ts b/clients/client-greengrass/commands/UpdateGroupCommand.ts index 5a0b780491327..fa54d2c95d1da 100644 --- a/clients/client-greengrass/commands/UpdateGroupCommand.ts +++ b/clients/client-greengrass/commands/UpdateGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGroupCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateLoggerDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateLoggerDefinitionCommand.ts index 8a29c1c3b076a..ba8b7d14516c4 100644 --- a/clients/client-greengrass/commands/UpdateLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateLoggerDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateLoggerDefinitionCommand extends $Command< UpdateLoggerDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateLoggerDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateResourceDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateResourceDefinitionCommand.ts index 806ea792f31f6..d3cf795a9fb5b 100644 --- a/clients/client-greengrass/commands/UpdateResourceDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateResourceDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateResourceDefinitionCommand extends $Command< UpdateResourceDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResourceDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateSubscriptionDefinitionCommand.ts b/clients/client-greengrass/commands/UpdateSubscriptionDefinitionCommand.ts index 35be2803f9625..5d121e8067024 100644 --- a/clients/client-greengrass/commands/UpdateSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/commands/UpdateSubscriptionDefinitionCommand.ts @@ -28,6 +28,7 @@ export class UpdateSubscriptionDefinitionCommand extends $Command< UpdateSubscriptionDefinitionCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSubscriptionDefinitionCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/commands/UpdateThingRuntimeConfigurationCommand.ts b/clients/client-greengrass/commands/UpdateThingRuntimeConfigurationCommand.ts index 26f3ee1403ee8..ce5e40170e973 100644 --- a/clients/client-greengrass/commands/UpdateThingRuntimeConfigurationCommand.ts +++ b/clients/client-greengrass/commands/UpdateThingRuntimeConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateThingRuntimeConfigurationCommand extends $Command< UpdateThingRuntimeConfigurationCommandOutput, GreengrassClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThingRuntimeConfigurationCommand extends $Command< configuration: GreengrassClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/CancelContactCommand.ts b/clients/client-groundstation/commands/CancelContactCommand.ts index 75921fbc405b1..497d0293dcf88 100644 --- a/clients/client-groundstation/commands/CancelContactCommand.ts +++ b/clients/client-groundstation/commands/CancelContactCommand.ts @@ -28,6 +28,7 @@ export class CancelContactCommand extends $Command< CancelContactCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelContactCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/CreateConfigCommand.ts b/clients/client-groundstation/commands/CreateConfigCommand.ts index 7f2d13edd57a0..3fe1d4eeb312f 100644 --- a/clients/client-groundstation/commands/CreateConfigCommand.ts +++ b/clients/client-groundstation/commands/CreateConfigCommand.ts @@ -29,6 +29,7 @@ export class CreateConfigCommand extends $Command< CreateConfigCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateConfigCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/CreateDataflowEndpointGroupCommand.ts b/clients/client-groundstation/commands/CreateDataflowEndpointGroupCommand.ts index 3f41fad2e1317..f601c8018ce1a 100644 --- a/clients/client-groundstation/commands/CreateDataflowEndpointGroupCommand.ts +++ b/clients/client-groundstation/commands/CreateDataflowEndpointGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateDataflowEndpointGroupCommand extends $Command< CreateDataflowEndpointGroupCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateDataflowEndpointGroupCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/CreateMissionProfileCommand.ts b/clients/client-groundstation/commands/CreateMissionProfileCommand.ts index d30d229f5987a..639974e0532ec 100644 --- a/clients/client-groundstation/commands/CreateMissionProfileCommand.ts +++ b/clients/client-groundstation/commands/CreateMissionProfileCommand.ts @@ -31,6 +31,7 @@ export class CreateMissionProfileCommand extends $Command< CreateMissionProfileCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateMissionProfileCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/DeleteConfigCommand.ts b/clients/client-groundstation/commands/DeleteConfigCommand.ts index 378043a8b990a..7512859dc1d50 100644 --- a/clients/client-groundstation/commands/DeleteConfigCommand.ts +++ b/clients/client-groundstation/commands/DeleteConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteConfigCommand extends $Command< DeleteConfigCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConfigCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/DeleteDataflowEndpointGroupCommand.ts b/clients/client-groundstation/commands/DeleteDataflowEndpointGroupCommand.ts index 427a7ef964186..d664773cb1dde 100644 --- a/clients/client-groundstation/commands/DeleteDataflowEndpointGroupCommand.ts +++ b/clients/client-groundstation/commands/DeleteDataflowEndpointGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataflowEndpointGroupCommand extends $Command< DeleteDataflowEndpointGroupCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataflowEndpointGroupCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/DeleteMissionProfileCommand.ts b/clients/client-groundstation/commands/DeleteMissionProfileCommand.ts index 9cbd7d25ef9aa..b88033d1b97ad 100644 --- a/clients/client-groundstation/commands/DeleteMissionProfileCommand.ts +++ b/clients/client-groundstation/commands/DeleteMissionProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteMissionProfileCommand extends $Command< DeleteMissionProfileCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMissionProfileCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/DescribeContactCommand.ts b/clients/client-groundstation/commands/DescribeContactCommand.ts index c4cc5357a0073..17e6e20922d29 100644 --- a/clients/client-groundstation/commands/DescribeContactCommand.ts +++ b/clients/client-groundstation/commands/DescribeContactCommand.ts @@ -28,6 +28,7 @@ export class DescribeContactCommand extends $Command< DescribeContactCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeContactCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/GetConfigCommand.ts b/clients/client-groundstation/commands/GetConfigCommand.ts index 4ae73ec0f0ca7..6b7de5e419b29 100644 --- a/clients/client-groundstation/commands/GetConfigCommand.ts +++ b/clients/client-groundstation/commands/GetConfigCommand.ts @@ -29,6 +29,7 @@ export class GetConfigCommand extends $Command< GetConfigCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetConfigCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/GetDataflowEndpointGroupCommand.ts b/clients/client-groundstation/commands/GetDataflowEndpointGroupCommand.ts index 023361f2ee86d..bfe05b5a8e1b8 100644 --- a/clients/client-groundstation/commands/GetDataflowEndpointGroupCommand.ts +++ b/clients/client-groundstation/commands/GetDataflowEndpointGroupCommand.ts @@ -28,6 +28,7 @@ export class GetDataflowEndpointGroupCommand extends $Command< GetDataflowEndpointGroupCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataflowEndpointGroupCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/GetMinuteUsageCommand.ts b/clients/client-groundstation/commands/GetMinuteUsageCommand.ts index 8b08dafddcee0..53fbe4ae9b7c1 100644 --- a/clients/client-groundstation/commands/GetMinuteUsageCommand.ts +++ b/clients/client-groundstation/commands/GetMinuteUsageCommand.ts @@ -28,6 +28,7 @@ export class GetMinuteUsageCommand extends $Command< GetMinuteUsageCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMinuteUsageCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/GetMissionProfileCommand.ts b/clients/client-groundstation/commands/GetMissionProfileCommand.ts index 8d666aae65d34..fa2428a8c0eb8 100644 --- a/clients/client-groundstation/commands/GetMissionProfileCommand.ts +++ b/clients/client-groundstation/commands/GetMissionProfileCommand.ts @@ -28,6 +28,7 @@ export class GetMissionProfileCommand extends $Command< GetMissionProfileCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMissionProfileCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/GetSatelliteCommand.ts b/clients/client-groundstation/commands/GetSatelliteCommand.ts index f5641575b3dd4..8d606a00b5ccc 100644 --- a/clients/client-groundstation/commands/GetSatelliteCommand.ts +++ b/clients/client-groundstation/commands/GetSatelliteCommand.ts @@ -28,6 +28,7 @@ export class GetSatelliteCommand extends $Command< GetSatelliteCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSatelliteCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListConfigsCommand.ts b/clients/client-groundstation/commands/ListConfigsCommand.ts index 913f371cd192c..0312c88841245 100644 --- a/clients/client-groundstation/commands/ListConfigsCommand.ts +++ b/clients/client-groundstation/commands/ListConfigsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigsCommand extends $Command< ListConfigsCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigsCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListContactsCommand.ts b/clients/client-groundstation/commands/ListContactsCommand.ts index f54e163205d00..cabf5d3a4b5ee 100644 --- a/clients/client-groundstation/commands/ListContactsCommand.ts +++ b/clients/client-groundstation/commands/ListContactsCommand.ts @@ -31,6 +31,7 @@ export class ListContactsCommand extends $Command< ListContactsCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListContactsCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListDataflowEndpointGroupsCommand.ts b/clients/client-groundstation/commands/ListDataflowEndpointGroupsCommand.ts index ffdbafa6acb07..24ce6a4a43dfd 100644 --- a/clients/client-groundstation/commands/ListDataflowEndpointGroupsCommand.ts +++ b/clients/client-groundstation/commands/ListDataflowEndpointGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListDataflowEndpointGroupsCommand extends $Command< ListDataflowEndpointGroupsCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataflowEndpointGroupsCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListGroundStationsCommand.ts b/clients/client-groundstation/commands/ListGroundStationsCommand.ts index 3d1742929b41c..8f9f36d524444 100644 --- a/clients/client-groundstation/commands/ListGroundStationsCommand.ts +++ b/clients/client-groundstation/commands/ListGroundStationsCommand.ts @@ -28,6 +28,7 @@ export class ListGroundStationsCommand extends $Command< ListGroundStationsCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroundStationsCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListMissionProfilesCommand.ts b/clients/client-groundstation/commands/ListMissionProfilesCommand.ts index 12146be7f3bb3..56f8e795e663c 100644 --- a/clients/client-groundstation/commands/ListMissionProfilesCommand.ts +++ b/clients/client-groundstation/commands/ListMissionProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListMissionProfilesCommand extends $Command< ListMissionProfilesCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMissionProfilesCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListSatellitesCommand.ts b/clients/client-groundstation/commands/ListSatellitesCommand.ts index 368332d64698a..4c19e733f2967 100644 --- a/clients/client-groundstation/commands/ListSatellitesCommand.ts +++ b/clients/client-groundstation/commands/ListSatellitesCommand.ts @@ -28,6 +28,7 @@ export class ListSatellitesCommand extends $Command< ListSatellitesCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSatellitesCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ListTagsForResourceCommand.ts b/clients/client-groundstation/commands/ListTagsForResourceCommand.ts index 480c8c49662d2..a8a6a3e2a8b34 100644 --- a/clients/client-groundstation/commands/ListTagsForResourceCommand.ts +++ b/clients/client-groundstation/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/ReserveContactCommand.ts b/clients/client-groundstation/commands/ReserveContactCommand.ts index 8ee5ff977dd65..fd4c9a0ef6f60 100644 --- a/clients/client-groundstation/commands/ReserveContactCommand.ts +++ b/clients/client-groundstation/commands/ReserveContactCommand.ts @@ -28,6 +28,7 @@ export class ReserveContactCommand extends $Command< ReserveContactCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ReserveContactCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/TagResourceCommand.ts b/clients/client-groundstation/commands/TagResourceCommand.ts index 9468bba4af7b9..74aa109034555 100644 --- a/clients/client-groundstation/commands/TagResourceCommand.ts +++ b/clients/client-groundstation/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/UntagResourceCommand.ts b/clients/client-groundstation/commands/UntagResourceCommand.ts index 5e78e83c9c8b2..69ac403fd1d58 100644 --- a/clients/client-groundstation/commands/UntagResourceCommand.ts +++ b/clients/client-groundstation/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/UpdateConfigCommand.ts b/clients/client-groundstation/commands/UpdateConfigCommand.ts index 7b805993e9b3b..0bebd2f9b55e2 100644 --- a/clients/client-groundstation/commands/UpdateConfigCommand.ts +++ b/clients/client-groundstation/commands/UpdateConfigCommand.ts @@ -30,6 +30,7 @@ export class UpdateConfigCommand extends $Command< UpdateConfigCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateConfigCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-groundstation/commands/UpdateMissionProfileCommand.ts b/clients/client-groundstation/commands/UpdateMissionProfileCommand.ts index c1de38e8104d3..966eab1646e35 100644 --- a/clients/client-groundstation/commands/UpdateMissionProfileCommand.ts +++ b/clients/client-groundstation/commands/UpdateMissionProfileCommand.ts @@ -30,6 +30,7 @@ export class UpdateMissionProfileCommand extends $Command< UpdateMissionProfileCommandOutput, GroundStationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateMissionProfileCommand extends $Command< configuration: GroundStationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/AcceptInvitationCommand.ts b/clients/client-guardduty/commands/AcceptInvitationCommand.ts index 815a9640f4896..40be5e8a203f2 100644 --- a/clients/client-guardduty/commands/AcceptInvitationCommand.ts +++ b/clients/client-guardduty/commands/AcceptInvitationCommand.ts @@ -28,6 +28,7 @@ export class AcceptInvitationCommand extends $Command< AcceptInvitationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptInvitationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ArchiveFindingsCommand.ts b/clients/client-guardduty/commands/ArchiveFindingsCommand.ts index 3d481ace545d3..3bc49a85ac8cd 100644 --- a/clients/client-guardduty/commands/ArchiveFindingsCommand.ts +++ b/clients/client-guardduty/commands/ArchiveFindingsCommand.ts @@ -32,6 +32,7 @@ export class ArchiveFindingsCommand extends $Command< ArchiveFindingsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ArchiveFindingsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateDetectorCommand.ts b/clients/client-guardduty/commands/CreateDetectorCommand.ts index adad67abb1b26..97daee89682ef 100644 --- a/clients/client-guardduty/commands/CreateDetectorCommand.ts +++ b/clients/client-guardduty/commands/CreateDetectorCommand.ts @@ -31,6 +31,7 @@ export class CreateDetectorCommand extends $Command< CreateDetectorCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDetectorCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateFilterCommand.ts b/clients/client-guardduty/commands/CreateFilterCommand.ts index 08d246a82aeda..4af1d10e7427e 100644 --- a/clients/client-guardduty/commands/CreateFilterCommand.ts +++ b/clients/client-guardduty/commands/CreateFilterCommand.ts @@ -28,6 +28,7 @@ export class CreateFilterCommand extends $Command< CreateFilterCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFilterCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateIPSetCommand.ts b/clients/client-guardduty/commands/CreateIPSetCommand.ts index bece06db81554..9a8f43c7a4418 100644 --- a/clients/client-guardduty/commands/CreateIPSetCommand.ts +++ b/clients/client-guardduty/commands/CreateIPSetCommand.ts @@ -31,6 +31,7 @@ export class CreateIPSetCommand extends $Command< CreateIPSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateIPSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateMembersCommand.ts b/clients/client-guardduty/commands/CreateMembersCommand.ts index d7616181b97f7..a2b857e076846 100644 --- a/clients/client-guardduty/commands/CreateMembersCommand.ts +++ b/clients/client-guardduty/commands/CreateMembersCommand.ts @@ -39,6 +39,7 @@ export class CreateMembersCommand extends $Command< CreateMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreatePublishingDestinationCommand.ts b/clients/client-guardduty/commands/CreatePublishingDestinationCommand.ts index 1a35dc3b736b3..e2a574338c314 100644 --- a/clients/client-guardduty/commands/CreatePublishingDestinationCommand.ts +++ b/clients/client-guardduty/commands/CreatePublishingDestinationCommand.ts @@ -29,6 +29,7 @@ export class CreatePublishingDestinationCommand extends $Command< CreatePublishingDestinationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreatePublishingDestinationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateSampleFindingsCommand.ts b/clients/client-guardduty/commands/CreateSampleFindingsCommand.ts index f796ed1400f5d..4a30ea7915611 100644 --- a/clients/client-guardduty/commands/CreateSampleFindingsCommand.ts +++ b/clients/client-guardduty/commands/CreateSampleFindingsCommand.ts @@ -30,6 +30,7 @@ export class CreateSampleFindingsCommand extends $Command< CreateSampleFindingsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateSampleFindingsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/CreateThreatIntelSetCommand.ts b/clients/client-guardduty/commands/CreateThreatIntelSetCommand.ts index fa31ba8958ba1..0061bc9ec38eb 100644 --- a/clients/client-guardduty/commands/CreateThreatIntelSetCommand.ts +++ b/clients/client-guardduty/commands/CreateThreatIntelSetCommand.ts @@ -30,6 +30,7 @@ export class CreateThreatIntelSetCommand extends $Command< CreateThreatIntelSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateThreatIntelSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeclineInvitationsCommand.ts b/clients/client-guardduty/commands/DeclineInvitationsCommand.ts index bd5adbc8b5f31..b9a444c8eb2d9 100644 --- a/clients/client-guardduty/commands/DeclineInvitationsCommand.ts +++ b/clients/client-guardduty/commands/DeclineInvitationsCommand.ts @@ -29,6 +29,7 @@ export class DeclineInvitationsCommand extends $Command< DeclineInvitationsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeclineInvitationsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteDetectorCommand.ts b/clients/client-guardduty/commands/DeleteDetectorCommand.ts index c495af7f82446..b5678c00a9c78 100644 --- a/clients/client-guardduty/commands/DeleteDetectorCommand.ts +++ b/clients/client-guardduty/commands/DeleteDetectorCommand.ts @@ -28,6 +28,7 @@ export class DeleteDetectorCommand extends $Command< DeleteDetectorCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDetectorCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteFilterCommand.ts b/clients/client-guardduty/commands/DeleteFilterCommand.ts index 26a36dc1d2437..acb365eb16097 100644 --- a/clients/client-guardduty/commands/DeleteFilterCommand.ts +++ b/clients/client-guardduty/commands/DeleteFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteFilterCommand extends $Command< DeleteFilterCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFilterCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteIPSetCommand.ts b/clients/client-guardduty/commands/DeleteIPSetCommand.ts index 1c1048a901943..d1473ceaf45bd 100644 --- a/clients/client-guardduty/commands/DeleteIPSetCommand.ts +++ b/clients/client-guardduty/commands/DeleteIPSetCommand.ts @@ -29,6 +29,7 @@ export class DeleteIPSetCommand extends $Command< DeleteIPSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteIPSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteInvitationsCommand.ts b/clients/client-guardduty/commands/DeleteInvitationsCommand.ts index 7c30f47e7ead3..d0a07704de165 100644 --- a/clients/client-guardduty/commands/DeleteInvitationsCommand.ts +++ b/clients/client-guardduty/commands/DeleteInvitationsCommand.ts @@ -29,6 +29,7 @@ export class DeleteInvitationsCommand extends $Command< DeleteInvitationsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteInvitationsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteMembersCommand.ts b/clients/client-guardduty/commands/DeleteMembersCommand.ts index f8e61749652ac..4c4bd4c3b3b10 100644 --- a/clients/client-guardduty/commands/DeleteMembersCommand.ts +++ b/clients/client-guardduty/commands/DeleteMembersCommand.ts @@ -29,6 +29,7 @@ export class DeleteMembersCommand extends $Command< DeleteMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeletePublishingDestinationCommand.ts b/clients/client-guardduty/commands/DeletePublishingDestinationCommand.ts index 487b4a5ec7536..c0f50701b32d9 100644 --- a/clients/client-guardduty/commands/DeletePublishingDestinationCommand.ts +++ b/clients/client-guardduty/commands/DeletePublishingDestinationCommand.ts @@ -28,6 +28,7 @@ export class DeletePublishingDestinationCommand extends $Command< DeletePublishingDestinationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePublishingDestinationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DeleteThreatIntelSetCommand.ts b/clients/client-guardduty/commands/DeleteThreatIntelSetCommand.ts index e8d9139718b6e..31352fc4a0425 100644 --- a/clients/client-guardduty/commands/DeleteThreatIntelSetCommand.ts +++ b/clients/client-guardduty/commands/DeleteThreatIntelSetCommand.ts @@ -28,6 +28,7 @@ export class DeleteThreatIntelSetCommand extends $Command< DeleteThreatIntelSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteThreatIntelSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DescribeOrganizationConfigurationCommand.ts b/clients/client-guardduty/commands/DescribeOrganizationConfigurationCommand.ts index 972091aa54394..160f42fa47e8b 100644 --- a/clients/client-guardduty/commands/DescribeOrganizationConfigurationCommand.ts +++ b/clients/client-guardduty/commands/DescribeOrganizationConfigurationCommand.ts @@ -33,6 +33,7 @@ export class DescribeOrganizationConfigurationCommand extends $Command< DescribeOrganizationConfigurationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeOrganizationConfigurationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DescribePublishingDestinationCommand.ts b/clients/client-guardduty/commands/DescribePublishingDestinationCommand.ts index 8562979593447..1d1694383a145 100644 --- a/clients/client-guardduty/commands/DescribePublishingDestinationCommand.ts +++ b/clients/client-guardduty/commands/DescribePublishingDestinationCommand.ts @@ -29,6 +29,7 @@ export class DescribePublishingDestinationCommand extends $Command< DescribePublishingDestinationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePublishingDestinationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DisableOrganizationAdminAccountCommand.ts b/clients/client-guardduty/commands/DisableOrganizationAdminAccountCommand.ts index 69885fcf3b0f4..b59e50e7396bc 100644 --- a/clients/client-guardduty/commands/DisableOrganizationAdminAccountCommand.ts +++ b/clients/client-guardduty/commands/DisableOrganizationAdminAccountCommand.ts @@ -29,6 +29,7 @@ export class DisableOrganizationAdminAccountCommand extends $Command< DisableOrganizationAdminAccountCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableOrganizationAdminAccountCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DisassociateFromMasterAccountCommand.ts b/clients/client-guardduty/commands/DisassociateFromMasterAccountCommand.ts index b0c91bbd6db1f..52a5aa3e10197 100644 --- a/clients/client-guardduty/commands/DisassociateFromMasterAccountCommand.ts +++ b/clients/client-guardduty/commands/DisassociateFromMasterAccountCommand.ts @@ -28,6 +28,7 @@ export class DisassociateFromMasterAccountCommand extends $Command< DisassociateFromMasterAccountCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateFromMasterAccountCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/DisassociateMembersCommand.ts b/clients/client-guardduty/commands/DisassociateMembersCommand.ts index c6c2b7cbc3a98..83f5cd93bd5e9 100644 --- a/clients/client-guardduty/commands/DisassociateMembersCommand.ts +++ b/clients/client-guardduty/commands/DisassociateMembersCommand.ts @@ -29,6 +29,7 @@ export class DisassociateMembersCommand extends $Command< DisassociateMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/EnableOrganizationAdminAccountCommand.ts b/clients/client-guardduty/commands/EnableOrganizationAdminAccountCommand.ts index 03e002d2b4603..4e393d350f034 100644 --- a/clients/client-guardduty/commands/EnableOrganizationAdminAccountCommand.ts +++ b/clients/client-guardduty/commands/EnableOrganizationAdminAccountCommand.ts @@ -29,6 +29,7 @@ export class EnableOrganizationAdminAccountCommand extends $Command< EnableOrganizationAdminAccountCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableOrganizationAdminAccountCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetDetectorCommand.ts b/clients/client-guardduty/commands/GetDetectorCommand.ts index 37dc87025a761..ada8dc7a18c7e 100644 --- a/clients/client-guardduty/commands/GetDetectorCommand.ts +++ b/clients/client-guardduty/commands/GetDetectorCommand.ts @@ -28,6 +28,7 @@ export class GetDetectorCommand extends $Command< GetDetectorCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDetectorCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetFilterCommand.ts b/clients/client-guardduty/commands/GetFilterCommand.ts index b3b3bfa59c055..e4cefbf8d0312 100644 --- a/clients/client-guardduty/commands/GetFilterCommand.ts +++ b/clients/client-guardduty/commands/GetFilterCommand.ts @@ -28,6 +28,7 @@ export class GetFilterCommand extends $Command< GetFilterCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFilterCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetFindingsCommand.ts b/clients/client-guardduty/commands/GetFindingsCommand.ts index 8f833cef20133..f1a8d13314c1d 100644 --- a/clients/client-guardduty/commands/GetFindingsCommand.ts +++ b/clients/client-guardduty/commands/GetFindingsCommand.ts @@ -28,6 +28,7 @@ export class GetFindingsCommand extends $Command< GetFindingsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFindingsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetFindingsStatisticsCommand.ts b/clients/client-guardduty/commands/GetFindingsStatisticsCommand.ts index ec340a7ebd672..20283844f027d 100644 --- a/clients/client-guardduty/commands/GetFindingsStatisticsCommand.ts +++ b/clients/client-guardduty/commands/GetFindingsStatisticsCommand.ts @@ -28,6 +28,7 @@ export class GetFindingsStatisticsCommand extends $Command< GetFindingsStatisticsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFindingsStatisticsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetIPSetCommand.ts b/clients/client-guardduty/commands/GetIPSetCommand.ts index 7f34807017c54..bffce2163463c 100644 --- a/clients/client-guardduty/commands/GetIPSetCommand.ts +++ b/clients/client-guardduty/commands/GetIPSetCommand.ts @@ -28,6 +28,7 @@ export class GetIPSetCommand extends $Command< GetIPSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIPSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetInvitationsCountCommand.ts b/clients/client-guardduty/commands/GetInvitationsCountCommand.ts index 42526c758d451..7bc0915ea7ff8 100644 --- a/clients/client-guardduty/commands/GetInvitationsCountCommand.ts +++ b/clients/client-guardduty/commands/GetInvitationsCountCommand.ts @@ -29,6 +29,7 @@ export class GetInvitationsCountCommand extends $Command< GetInvitationsCountCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInvitationsCountCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetMasterAccountCommand.ts b/clients/client-guardduty/commands/GetMasterAccountCommand.ts index 3b407b5a1ef3e..0c01be533dcfa 100644 --- a/clients/client-guardduty/commands/GetMasterAccountCommand.ts +++ b/clients/client-guardduty/commands/GetMasterAccountCommand.ts @@ -29,6 +29,7 @@ export class GetMasterAccountCommand extends $Command< GetMasterAccountCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetMasterAccountCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetMemberDetectorsCommand.ts b/clients/client-guardduty/commands/GetMemberDetectorsCommand.ts index 139cb40f0b69a..2fa51d30eca39 100644 --- a/clients/client-guardduty/commands/GetMemberDetectorsCommand.ts +++ b/clients/client-guardduty/commands/GetMemberDetectorsCommand.ts @@ -28,6 +28,7 @@ export class GetMemberDetectorsCommand extends $Command< GetMemberDetectorsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMemberDetectorsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetMembersCommand.ts b/clients/client-guardduty/commands/GetMembersCommand.ts index 0f0f2195d8841..128392be1155e 100644 --- a/clients/client-guardduty/commands/GetMembersCommand.ts +++ b/clients/client-guardduty/commands/GetMembersCommand.ts @@ -29,6 +29,7 @@ export class GetMembersCommand extends $Command< GetMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetThreatIntelSetCommand.ts b/clients/client-guardduty/commands/GetThreatIntelSetCommand.ts index 56a3df8603243..07d9fe16727dc 100644 --- a/clients/client-guardduty/commands/GetThreatIntelSetCommand.ts +++ b/clients/client-guardduty/commands/GetThreatIntelSetCommand.ts @@ -28,6 +28,7 @@ export class GetThreatIntelSetCommand extends $Command< GetThreatIntelSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetThreatIntelSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/GetUsageStatisticsCommand.ts b/clients/client-guardduty/commands/GetUsageStatisticsCommand.ts index 25098db3341e1..b338fa6a9e69c 100644 --- a/clients/client-guardduty/commands/GetUsageStatisticsCommand.ts +++ b/clients/client-guardduty/commands/GetUsageStatisticsCommand.ts @@ -31,6 +31,7 @@ export class GetUsageStatisticsCommand extends $Command< GetUsageStatisticsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetUsageStatisticsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/InviteMembersCommand.ts b/clients/client-guardduty/commands/InviteMembersCommand.ts index 5c1ea342ab766..ca0a59c6618f3 100644 --- a/clients/client-guardduty/commands/InviteMembersCommand.ts +++ b/clients/client-guardduty/commands/InviteMembersCommand.ts @@ -30,6 +30,7 @@ export class InviteMembersCommand extends $Command< InviteMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class InviteMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListDetectorsCommand.ts b/clients/client-guardduty/commands/ListDetectorsCommand.ts index f4f0a47b3ff5b..e3ec9c1ae10c0 100644 --- a/clients/client-guardduty/commands/ListDetectorsCommand.ts +++ b/clients/client-guardduty/commands/ListDetectorsCommand.ts @@ -28,6 +28,7 @@ export class ListDetectorsCommand extends $Command< ListDetectorsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDetectorsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListFiltersCommand.ts b/clients/client-guardduty/commands/ListFiltersCommand.ts index 49b50e90b7fac..13f400309add4 100644 --- a/clients/client-guardduty/commands/ListFiltersCommand.ts +++ b/clients/client-guardduty/commands/ListFiltersCommand.ts @@ -28,6 +28,7 @@ export class ListFiltersCommand extends $Command< ListFiltersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFiltersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListFindingsCommand.ts b/clients/client-guardduty/commands/ListFindingsCommand.ts index 30da3d98ece7f..6238eade84366 100644 --- a/clients/client-guardduty/commands/ListFindingsCommand.ts +++ b/clients/client-guardduty/commands/ListFindingsCommand.ts @@ -28,6 +28,7 @@ export class ListFindingsCommand extends $Command< ListFindingsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFindingsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListIPSetsCommand.ts b/clients/client-guardduty/commands/ListIPSetsCommand.ts index 828fcb87efbb0..07d093c9dfd78 100644 --- a/clients/client-guardduty/commands/ListIPSetsCommand.ts +++ b/clients/client-guardduty/commands/ListIPSetsCommand.ts @@ -30,6 +30,7 @@ export class ListIPSetsCommand extends $Command< ListIPSetsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListIPSetsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListInvitationsCommand.ts b/clients/client-guardduty/commands/ListInvitationsCommand.ts index f8d287e9cee8f..095c42f9d6fbd 100644 --- a/clients/client-guardduty/commands/ListInvitationsCommand.ts +++ b/clients/client-guardduty/commands/ListInvitationsCommand.ts @@ -29,6 +29,7 @@ export class ListInvitationsCommand extends $Command< ListInvitationsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListInvitationsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListMembersCommand.ts b/clients/client-guardduty/commands/ListMembersCommand.ts index e8198f691641f..da30a8844984d 100644 --- a/clients/client-guardduty/commands/ListMembersCommand.ts +++ b/clients/client-guardduty/commands/ListMembersCommand.ts @@ -28,6 +28,7 @@ export class ListMembersCommand extends $Command< ListMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListOrganizationAdminAccountsCommand.ts b/clients/client-guardduty/commands/ListOrganizationAdminAccountsCommand.ts index ff3e69dbea600..f7f7a73cdec44 100644 --- a/clients/client-guardduty/commands/ListOrganizationAdminAccountsCommand.ts +++ b/clients/client-guardduty/commands/ListOrganizationAdminAccountsCommand.ts @@ -28,6 +28,7 @@ export class ListOrganizationAdminAccountsCommand extends $Command< ListOrganizationAdminAccountsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOrganizationAdminAccountsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListPublishingDestinationsCommand.ts b/clients/client-guardduty/commands/ListPublishingDestinationsCommand.ts index b6c417b052087..76eefa80ad8a1 100644 --- a/clients/client-guardduty/commands/ListPublishingDestinationsCommand.ts +++ b/clients/client-guardduty/commands/ListPublishingDestinationsCommand.ts @@ -29,6 +29,7 @@ export class ListPublishingDestinationsCommand extends $Command< ListPublishingDestinationsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPublishingDestinationsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListTagsForResourceCommand.ts b/clients/client-guardduty/commands/ListTagsForResourceCommand.ts index f8f6b19980ba6..993ba17cdc9b6 100644 --- a/clients/client-guardduty/commands/ListTagsForResourceCommand.ts +++ b/clients/client-guardduty/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/ListThreatIntelSetsCommand.ts b/clients/client-guardduty/commands/ListThreatIntelSetsCommand.ts index 3176a325d1b2d..b41d58f867188 100644 --- a/clients/client-guardduty/commands/ListThreatIntelSetsCommand.ts +++ b/clients/client-guardduty/commands/ListThreatIntelSetsCommand.ts @@ -30,6 +30,7 @@ export class ListThreatIntelSetsCommand extends $Command< ListThreatIntelSetsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListThreatIntelSetsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/StartMonitoringMembersCommand.ts b/clients/client-guardduty/commands/StartMonitoringMembersCommand.ts index bb1aba0eb8165..760e139e07c41 100644 --- a/clients/client-guardduty/commands/StartMonitoringMembersCommand.ts +++ b/clients/client-guardduty/commands/StartMonitoringMembersCommand.ts @@ -30,6 +30,7 @@ export class StartMonitoringMembersCommand extends $Command< StartMonitoringMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartMonitoringMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/StopMonitoringMembersCommand.ts b/clients/client-guardduty/commands/StopMonitoringMembersCommand.ts index a78f4773cce39..419c6014159e8 100644 --- a/clients/client-guardduty/commands/StopMonitoringMembersCommand.ts +++ b/clients/client-guardduty/commands/StopMonitoringMembersCommand.ts @@ -30,6 +30,7 @@ export class StopMonitoringMembersCommand extends $Command< StopMonitoringMembersCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StopMonitoringMembersCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/TagResourceCommand.ts b/clients/client-guardduty/commands/TagResourceCommand.ts index 90b685f358912..3f8a79aa4ef2f 100644 --- a/clients/client-guardduty/commands/TagResourceCommand.ts +++ b/clients/client-guardduty/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UnarchiveFindingsCommand.ts b/clients/client-guardduty/commands/UnarchiveFindingsCommand.ts index 671c7039b6665..70675a2d89889 100644 --- a/clients/client-guardduty/commands/UnarchiveFindingsCommand.ts +++ b/clients/client-guardduty/commands/UnarchiveFindingsCommand.ts @@ -28,6 +28,7 @@ export class UnarchiveFindingsCommand extends $Command< UnarchiveFindingsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UnarchiveFindingsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UntagResourceCommand.ts b/clients/client-guardduty/commands/UntagResourceCommand.ts index d96973820adc3..cca7194ad3c5e 100644 --- a/clients/client-guardduty/commands/UntagResourceCommand.ts +++ b/clients/client-guardduty/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateDetectorCommand.ts b/clients/client-guardduty/commands/UpdateDetectorCommand.ts index de7e5ba214d5c..4569711415f0b 100644 --- a/clients/client-guardduty/commands/UpdateDetectorCommand.ts +++ b/clients/client-guardduty/commands/UpdateDetectorCommand.ts @@ -28,6 +28,7 @@ export class UpdateDetectorCommand extends $Command< UpdateDetectorCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDetectorCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateFilterCommand.ts b/clients/client-guardduty/commands/UpdateFilterCommand.ts index d77c63c7ab5f2..64a0ca1b24f74 100644 --- a/clients/client-guardduty/commands/UpdateFilterCommand.ts +++ b/clients/client-guardduty/commands/UpdateFilterCommand.ts @@ -28,6 +28,7 @@ export class UpdateFilterCommand extends $Command< UpdateFilterCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFilterCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateFindingsFeedbackCommand.ts b/clients/client-guardduty/commands/UpdateFindingsFeedbackCommand.ts index f0d079729aa0e..f54546e8e2ef8 100644 --- a/clients/client-guardduty/commands/UpdateFindingsFeedbackCommand.ts +++ b/clients/client-guardduty/commands/UpdateFindingsFeedbackCommand.ts @@ -28,6 +28,7 @@ export class UpdateFindingsFeedbackCommand extends $Command< UpdateFindingsFeedbackCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFindingsFeedbackCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateIPSetCommand.ts b/clients/client-guardduty/commands/UpdateIPSetCommand.ts index 2873829ff1dff..cbcbcf43f4e72 100644 --- a/clients/client-guardduty/commands/UpdateIPSetCommand.ts +++ b/clients/client-guardduty/commands/UpdateIPSetCommand.ts @@ -28,6 +28,7 @@ export class UpdateIPSetCommand extends $Command< UpdateIPSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIPSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateMemberDetectorsCommand.ts b/clients/client-guardduty/commands/UpdateMemberDetectorsCommand.ts index 7b891e7d535de..cd240c15bc03f 100644 --- a/clients/client-guardduty/commands/UpdateMemberDetectorsCommand.ts +++ b/clients/client-guardduty/commands/UpdateMemberDetectorsCommand.ts @@ -28,6 +28,7 @@ export class UpdateMemberDetectorsCommand extends $Command< UpdateMemberDetectorsCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMemberDetectorsCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateOrganizationConfigurationCommand.ts b/clients/client-guardduty/commands/UpdateOrganizationConfigurationCommand.ts index db87ae890bdfc..48f1d2f180d18 100644 --- a/clients/client-guardduty/commands/UpdateOrganizationConfigurationCommand.ts +++ b/clients/client-guardduty/commands/UpdateOrganizationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateOrganizationConfigurationCommand extends $Command< UpdateOrganizationConfigurationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateOrganizationConfigurationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdatePublishingDestinationCommand.ts b/clients/client-guardduty/commands/UpdatePublishingDestinationCommand.ts index d7bdd650ec202..57e71a94179f8 100644 --- a/clients/client-guardduty/commands/UpdatePublishingDestinationCommand.ts +++ b/clients/client-guardduty/commands/UpdatePublishingDestinationCommand.ts @@ -29,6 +29,7 @@ export class UpdatePublishingDestinationCommand extends $Command< UpdatePublishingDestinationCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdatePublishingDestinationCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-guardduty/commands/UpdateThreatIntelSetCommand.ts b/clients/client-guardduty/commands/UpdateThreatIntelSetCommand.ts index 145c62063bc1a..810c9de6cc957 100644 --- a/clients/client-guardduty/commands/UpdateThreatIntelSetCommand.ts +++ b/clients/client-guardduty/commands/UpdateThreatIntelSetCommand.ts @@ -28,6 +28,7 @@ export class UpdateThreatIntelSetCommand extends $Command< UpdateThreatIntelSetCommandOutput, GuardDutyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThreatIntelSetCommand extends $Command< configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeAffectedAccountsForOrganizationCommand.ts b/clients/client-health/commands/DescribeAffectedAccountsForOrganizationCommand.ts index 7cef1f2e23929..ee70ebfe1b411 100644 --- a/clients/client-health/commands/DescribeAffectedAccountsForOrganizationCommand.ts +++ b/clients/client-health/commands/DescribeAffectedAccountsForOrganizationCommand.ts @@ -41,6 +41,7 @@ export class DescribeAffectedAccountsForOrganizationCommand extends $Command< DescribeAffectedAccountsForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeAffectedAccountsForOrganizationCommand extends $Command< DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAccountsForOrganizationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeAffectedEntitiesCommand.ts b/clients/client-health/commands/DescribeAffectedEntitiesCommand.ts index 7cfb39469c643..8a0ae1cfd4fa5 100644 --- a/clients/client-health/commands/DescribeAffectedEntitiesCommand.ts +++ b/clients/client-health/commands/DescribeAffectedEntitiesCommand.ts @@ -38,6 +38,7 @@ export class DescribeAffectedEntitiesCommand extends $Command< DescribeAffectedEntitiesCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeAffectedEntitiesCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeAffectedEntitiesForOrganizationCommand.ts b/clients/client-health/commands/DescribeAffectedEntitiesForOrganizationCommand.ts index f4f713658ba66..0abe1f81f6155 100644 --- a/clients/client-health/commands/DescribeAffectedEntitiesForOrganizationCommand.ts +++ b/clients/client-health/commands/DescribeAffectedEntitiesForOrganizationCommand.ts @@ -44,6 +44,7 @@ export class DescribeAffectedEntitiesForOrganizationCommand extends $Command< DescribeAffectedEntitiesForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeAffectedEntitiesForOrganizationCommand extends $Command< DescribeAffectedEntitiesForOrganizationCommandInput, DescribeAffectedEntitiesForOrganizationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEntityAggregatesCommand.ts b/clients/client-health/commands/DescribeEntityAggregatesCommand.ts index 9cdd51bd6c2e1..0e66749869f1a 100644 --- a/clients/client-health/commands/DescribeEntityAggregatesCommand.ts +++ b/clients/client-health/commands/DescribeEntityAggregatesCommand.ts @@ -29,6 +29,7 @@ export class DescribeEntityAggregatesCommand extends $Command< DescribeEntityAggregatesCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEntityAggregatesCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventAggregatesCommand.ts b/clients/client-health/commands/DescribeEventAggregatesCommand.ts index 23b91c3d95c36..1fb9724642ee0 100644 --- a/clients/client-health/commands/DescribeEventAggregatesCommand.ts +++ b/clients/client-health/commands/DescribeEventAggregatesCommand.ts @@ -34,6 +34,7 @@ export class DescribeEventAggregatesCommand extends $Command< DescribeEventAggregatesCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeEventAggregatesCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventDetailsCommand.ts b/clients/client-health/commands/DescribeEventDetailsCommand.ts index bd6e6fbd3ddc5..388225200a27f 100644 --- a/clients/client-health/commands/DescribeEventDetailsCommand.ts +++ b/clients/client-health/commands/DescribeEventDetailsCommand.ts @@ -33,6 +33,7 @@ export class DescribeEventDetailsCommand extends $Command< DescribeEventDetailsCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEventDetailsCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventDetailsForOrganizationCommand.ts b/clients/client-health/commands/DescribeEventDetailsForOrganizationCommand.ts index 0914f248c41ae..c2cd82d462e5b 100644 --- a/clients/client-health/commands/DescribeEventDetailsForOrganizationCommand.ts +++ b/clients/client-health/commands/DescribeEventDetailsForOrganizationCommand.ts @@ -57,6 +57,7 @@ export class DescribeEventDetailsForOrganizationCommand extends $Command< DescribeEventDetailsForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class DescribeEventDetailsForOrganizationCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventTypesCommand.ts b/clients/client-health/commands/DescribeEventTypesCommand.ts index 1f66904e1a1dd..166a81d18a538 100644 --- a/clients/client-health/commands/DescribeEventTypesCommand.ts +++ b/clients/client-health/commands/DescribeEventTypesCommand.ts @@ -33,6 +33,7 @@ export class DescribeEventTypesCommand extends $Command< DescribeEventTypesCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEventTypesCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventsCommand.ts b/clients/client-health/commands/DescribeEventsCommand.ts index f10be0a15613b..9a396960e66e1 100644 --- a/clients/client-health/commands/DescribeEventsCommand.ts +++ b/clients/client-health/commands/DescribeEventsCommand.ts @@ -51,6 +51,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DescribeEventsCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeEventsForOrganizationCommand.ts b/clients/client-health/commands/DescribeEventsForOrganizationCommand.ts index 2818de7947e3c..8cd1fa7546965 100644 --- a/clients/client-health/commands/DescribeEventsForOrganizationCommand.ts +++ b/clients/client-health/commands/DescribeEventsForOrganizationCommand.ts @@ -59,6 +59,7 @@ export class DescribeEventsForOrganizationCommand extends $Command< DescribeEventsForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class DescribeEventsForOrganizationCommand extends $Command< configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DescribeHealthServiceStatusForOrganizationCommand.ts b/clients/client-health/commands/DescribeHealthServiceStatusForOrganizationCommand.ts index 8ab5f72ac1eef..16e93a8440e63 100644 --- a/clients/client-health/commands/DescribeHealthServiceStatusForOrganizationCommand.ts +++ b/clients/client-health/commands/DescribeHealthServiceStatusForOrganizationCommand.ts @@ -32,6 +32,7 @@ export class DescribeHealthServiceStatusForOrganizationCommand extends $Command< DescribeHealthServiceStatusForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeHealthServiceStatusForOrganizationCommand extends $Command< DescribeHealthServiceStatusForOrganizationCommandInput, DescribeHealthServiceStatusForOrganizationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/DisableHealthServiceAccessForOrganizationCommand.ts b/clients/client-health/commands/DisableHealthServiceAccessForOrganizationCommand.ts index 1bc35d2ff104e..54a62e6721d3e 100644 --- a/clients/client-health/commands/DisableHealthServiceAccessForOrganizationCommand.ts +++ b/clients/client-health/commands/DisableHealthServiceAccessForOrganizationCommand.ts @@ -42,6 +42,7 @@ export class DisableHealthServiceAccessForOrganizationCommand extends $Command< DisableHealthServiceAccessForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DisableHealthServiceAccessForOrganizationCommand extends $Command< DisableHealthServiceAccessForOrganizationCommandInput, DisableHealthServiceAccessForOrganizationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-health/commands/EnableHealthServiceAccessForOrganizationCommand.ts b/clients/client-health/commands/EnableHealthServiceAccessForOrganizationCommand.ts index 69adb98f4f28d..b551cd250a1e4 100644 --- a/clients/client-health/commands/EnableHealthServiceAccessForOrganizationCommand.ts +++ b/clients/client-health/commands/EnableHealthServiceAccessForOrganizationCommand.ts @@ -32,6 +32,7 @@ export class EnableHealthServiceAccessForOrganizationCommand extends $Command< EnableHealthServiceAccessForOrganizationCommandOutput, HealthClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class EnableHealthServiceAccessForOrganizationCommand extends $Command< EnableHealthServiceAccessForOrganizationCommandInput, EnableHealthServiceAccessForOrganizationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/CreateFHIRDatastoreCommand.ts b/clients/client-healthlake/commands/CreateFHIRDatastoreCommand.ts index a62f585770703..f9d9ea5ea7de8 100644 --- a/clients/client-healthlake/commands/CreateFHIRDatastoreCommand.ts +++ b/clients/client-healthlake/commands/CreateFHIRDatastoreCommand.ts @@ -28,6 +28,7 @@ export class CreateFHIRDatastoreCommand extends $Command< CreateFHIRDatastoreCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFHIRDatastoreCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/DeleteFHIRDatastoreCommand.ts b/clients/client-healthlake/commands/DeleteFHIRDatastoreCommand.ts index dde601a93c6cb..7c2c755ab8f3c 100644 --- a/clients/client-healthlake/commands/DeleteFHIRDatastoreCommand.ts +++ b/clients/client-healthlake/commands/DeleteFHIRDatastoreCommand.ts @@ -28,6 +28,7 @@ export class DeleteFHIRDatastoreCommand extends $Command< DeleteFHIRDatastoreCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFHIRDatastoreCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/DescribeFHIRDatastoreCommand.ts b/clients/client-healthlake/commands/DescribeFHIRDatastoreCommand.ts index 51a4a1997f106..df7057cb203d9 100644 --- a/clients/client-healthlake/commands/DescribeFHIRDatastoreCommand.ts +++ b/clients/client-healthlake/commands/DescribeFHIRDatastoreCommand.ts @@ -30,6 +30,7 @@ export class DescribeFHIRDatastoreCommand extends $Command< DescribeFHIRDatastoreCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFHIRDatastoreCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/DescribeFHIRImportJobCommand.ts b/clients/client-healthlake/commands/DescribeFHIRImportJobCommand.ts index 9b9210cd8229a..d8592140033d9 100644 --- a/clients/client-healthlake/commands/DescribeFHIRImportJobCommand.ts +++ b/clients/client-healthlake/commands/DescribeFHIRImportJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeFHIRImportJobCommand extends $Command< DescribeFHIRImportJobCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFHIRImportJobCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/ListFHIRDatastoresCommand.ts b/clients/client-healthlake/commands/ListFHIRDatastoresCommand.ts index d4a124ce89424..212891348c568 100644 --- a/clients/client-healthlake/commands/ListFHIRDatastoresCommand.ts +++ b/clients/client-healthlake/commands/ListFHIRDatastoresCommand.ts @@ -29,6 +29,7 @@ export class ListFHIRDatastoresCommand extends $Command< ListFHIRDatastoresCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFHIRDatastoresCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-healthlake/commands/StartFHIRImportJobCommand.ts b/clients/client-healthlake/commands/StartFHIRImportJobCommand.ts index 28235b2ddf791..c048d44efb629 100644 --- a/clients/client-healthlake/commands/StartFHIRImportJobCommand.ts +++ b/clients/client-healthlake/commands/StartFHIRImportJobCommand.ts @@ -28,6 +28,7 @@ export class StartFHIRImportJobCommand extends $Command< StartFHIRImportJobCommandOutput, HealthLakeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartFHIRImportJobCommand extends $Command< configuration: HealthLakeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/BatchCreateTableRowsCommand.ts b/clients/client-honeycode/commands/BatchCreateTableRowsCommand.ts index 35dcec2c12128..de2b0adc975bc 100644 --- a/clients/client-honeycode/commands/BatchCreateTableRowsCommand.ts +++ b/clients/client-honeycode/commands/BatchCreateTableRowsCommand.ts @@ -37,6 +37,7 @@ export class BatchCreateTableRowsCommand extends $Command< BatchCreateTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class BatchCreateTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/BatchDeleteTableRowsCommand.ts b/clients/client-honeycode/commands/BatchDeleteTableRowsCommand.ts index 83ef177895a0b..4b918d17afd4c 100644 --- a/clients/client-honeycode/commands/BatchDeleteTableRowsCommand.ts +++ b/clients/client-honeycode/commands/BatchDeleteTableRowsCommand.ts @@ -31,6 +31,7 @@ export class BatchDeleteTableRowsCommand extends $Command< BatchDeleteTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class BatchDeleteTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/BatchUpdateTableRowsCommand.ts b/clients/client-honeycode/commands/BatchUpdateTableRowsCommand.ts index 3b5bb14a57cd4..81849bce8ef7a 100644 --- a/clients/client-honeycode/commands/BatchUpdateTableRowsCommand.ts +++ b/clients/client-honeycode/commands/BatchUpdateTableRowsCommand.ts @@ -37,6 +37,7 @@ export class BatchUpdateTableRowsCommand extends $Command< BatchUpdateTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class BatchUpdateTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/BatchUpsertTableRowsCommand.ts b/clients/client-honeycode/commands/BatchUpsertTableRowsCommand.ts index 9a7c38f331213..40ee2c5f8713a 100644 --- a/clients/client-honeycode/commands/BatchUpsertTableRowsCommand.ts +++ b/clients/client-honeycode/commands/BatchUpsertTableRowsCommand.ts @@ -40,6 +40,7 @@ export class BatchUpsertTableRowsCommand extends $Command< BatchUpsertTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class BatchUpsertTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/DescribeTableDataImportJobCommand.ts b/clients/client-honeycode/commands/DescribeTableDataImportJobCommand.ts index 49eb26f810801..628319e939b03 100644 --- a/clients/client-honeycode/commands/DescribeTableDataImportJobCommand.ts +++ b/clients/client-honeycode/commands/DescribeTableDataImportJobCommand.ts @@ -30,6 +30,7 @@ export class DescribeTableDataImportJobCommand extends $Command< DescribeTableDataImportJobCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeTableDataImportJobCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/GetScreenDataCommand.ts b/clients/client-honeycode/commands/GetScreenDataCommand.ts index 9420582fd4ac2..5c90e1545f46e 100644 --- a/clients/client-honeycode/commands/GetScreenDataCommand.ts +++ b/clients/client-honeycode/commands/GetScreenDataCommand.ts @@ -32,6 +32,7 @@ export class GetScreenDataCommand extends $Command< GetScreenDataCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetScreenDataCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/InvokeScreenAutomationCommand.ts b/clients/client-honeycode/commands/InvokeScreenAutomationCommand.ts index d4921e0d8650a..2d691147fde69 100644 --- a/clients/client-honeycode/commands/InvokeScreenAutomationCommand.ts +++ b/clients/client-honeycode/commands/InvokeScreenAutomationCommand.ts @@ -32,6 +32,7 @@ export class InvokeScreenAutomationCommand extends $Command< InvokeScreenAutomationCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class InvokeScreenAutomationCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/ListTableColumnsCommand.ts b/clients/client-honeycode/commands/ListTableColumnsCommand.ts index 0f91483fc6ab5..1383d8c65ab35 100644 --- a/clients/client-honeycode/commands/ListTableColumnsCommand.ts +++ b/clients/client-honeycode/commands/ListTableColumnsCommand.ts @@ -30,6 +30,7 @@ export class ListTableColumnsCommand extends $Command< ListTableColumnsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTableColumnsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/ListTableRowsCommand.ts b/clients/client-honeycode/commands/ListTableRowsCommand.ts index 5c71145bfbe30..3b2a0c2e5ff1d 100644 --- a/clients/client-honeycode/commands/ListTableRowsCommand.ts +++ b/clients/client-honeycode/commands/ListTableRowsCommand.ts @@ -30,6 +30,7 @@ export class ListTableRowsCommand extends $Command< ListTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/ListTablesCommand.ts b/clients/client-honeycode/commands/ListTablesCommand.ts index b4702b14b2297..46da4ee3440e9 100644 --- a/clients/client-honeycode/commands/ListTablesCommand.ts +++ b/clients/client-honeycode/commands/ListTablesCommand.ts @@ -30,6 +30,7 @@ export class ListTablesCommand extends $Command< ListTablesCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTablesCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/QueryTableRowsCommand.ts b/clients/client-honeycode/commands/QueryTableRowsCommand.ts index a865afe4b43d2..aefb1bbc959cf 100644 --- a/clients/client-honeycode/commands/QueryTableRowsCommand.ts +++ b/clients/client-honeycode/commands/QueryTableRowsCommand.ts @@ -30,6 +30,7 @@ export class QueryTableRowsCommand extends $Command< QueryTableRowsCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class QueryTableRowsCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-honeycode/commands/StartTableDataImportJobCommand.ts b/clients/client-honeycode/commands/StartTableDataImportJobCommand.ts index 2e069270778e6..61616a2c8ed91 100644 --- a/clients/client-honeycode/commands/StartTableDataImportJobCommand.ts +++ b/clients/client-honeycode/commands/StartTableDataImportJobCommand.ts @@ -32,6 +32,7 @@ export class StartTableDataImportJobCommand extends $Command< StartTableDataImportJobCommandOutput, HoneycodeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartTableDataImportJobCommand extends $Command< configuration: HoneycodeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AddClientIDToOpenIDConnectProviderCommand.ts b/clients/client-iam/commands/AddClientIDToOpenIDConnectProviderCommand.ts index 745bcb9598c42..3c3f07a3b2bbd 100644 --- a/clients/client-iam/commands/AddClientIDToOpenIDConnectProviderCommand.ts +++ b/clients/client-iam/commands/AddClientIDToOpenIDConnectProviderCommand.ts @@ -31,6 +31,7 @@ export class AddClientIDToOpenIDConnectProviderCommand extends $Command< AddClientIDToOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AddClientIDToOpenIDConnectProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AddRoleToInstanceProfileCommand.ts b/clients/client-iam/commands/AddRoleToInstanceProfileCommand.ts index 07751cd035bd8..dbd60b5f8f525 100644 --- a/clients/client-iam/commands/AddRoleToInstanceProfileCommand.ts +++ b/clients/client-iam/commands/AddRoleToInstanceProfileCommand.ts @@ -40,6 +40,7 @@ export class AddRoleToInstanceProfileCommand extends $Command< AddRoleToInstanceProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AddRoleToInstanceProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AddUserToGroupCommand.ts b/clients/client-iam/commands/AddUserToGroupCommand.ts index e6366054438f6..6f2989984d821 100644 --- a/clients/client-iam/commands/AddUserToGroupCommand.ts +++ b/clients/client-iam/commands/AddUserToGroupCommand.ts @@ -28,6 +28,7 @@ export class AddUserToGroupCommand extends $Command< AddUserToGroupCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddUserToGroupCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AttachGroupPolicyCommand.ts b/clients/client-iam/commands/AttachGroupPolicyCommand.ts index 957815b8a2fc8..3610999278eb5 100644 --- a/clients/client-iam/commands/AttachGroupPolicyCommand.ts +++ b/clients/client-iam/commands/AttachGroupPolicyCommand.ts @@ -32,6 +32,7 @@ export class AttachGroupPolicyCommand extends $Command< AttachGroupPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AttachGroupPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AttachRolePolicyCommand.ts b/clients/client-iam/commands/AttachRolePolicyCommand.ts index 5d4ae0bfcd81e..ab623fe70349c 100644 --- a/clients/client-iam/commands/AttachRolePolicyCommand.ts +++ b/clients/client-iam/commands/AttachRolePolicyCommand.ts @@ -39,6 +39,7 @@ export class AttachRolePolicyCommand extends $Command< AttachRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AttachRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/AttachUserPolicyCommand.ts b/clients/client-iam/commands/AttachUserPolicyCommand.ts index 30ca2efd4a3c5..390123a5c15ab 100644 --- a/clients/client-iam/commands/AttachUserPolicyCommand.ts +++ b/clients/client-iam/commands/AttachUserPolicyCommand.ts @@ -32,6 +32,7 @@ export class AttachUserPolicyCommand extends $Command< AttachUserPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AttachUserPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ChangePasswordCommand.ts b/clients/client-iam/commands/ChangePasswordCommand.ts index 0f60a410e808d..eda0deec5a9ee 100644 --- a/clients/client-iam/commands/ChangePasswordCommand.ts +++ b/clients/client-iam/commands/ChangePasswordCommand.ts @@ -32,6 +32,7 @@ export class ChangePasswordCommand extends $Command< ChangePasswordCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ChangePasswordCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateAccessKeyCommand.ts b/clients/client-iam/commands/CreateAccessKeyCommand.ts index 49c4fb966855a..83f566e03186f 100644 --- a/clients/client-iam/commands/CreateAccessKeyCommand.ts +++ b/clients/client-iam/commands/CreateAccessKeyCommand.ts @@ -40,6 +40,7 @@ export class CreateAccessKeyCommand extends $Command< CreateAccessKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateAccessKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateAccountAliasCommand.ts b/clients/client-iam/commands/CreateAccountAliasCommand.ts index c97ea87b70594..1ca681c8342f7 100644 --- a/clients/client-iam/commands/CreateAccountAliasCommand.ts +++ b/clients/client-iam/commands/CreateAccountAliasCommand.ts @@ -31,6 +31,7 @@ export class CreateAccountAliasCommand extends $Command< CreateAccountAliasCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateAccountAliasCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateGroupCommand.ts b/clients/client-iam/commands/CreateGroupCommand.ts index 7e727dd9f3479..c884a4ee0e5f5 100644 --- a/clients/client-iam/commands/CreateGroupCommand.ts +++ b/clients/client-iam/commands/CreateGroupCommand.ts @@ -26,6 +26,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CreateGroupCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateInstanceProfileCommand.ts b/clients/client-iam/commands/CreateInstanceProfileCommand.ts index 21681e61df92a..f708b7a56866c 100644 --- a/clients/client-iam/commands/CreateInstanceProfileCommand.ts +++ b/clients/client-iam/commands/CreateInstanceProfileCommand.ts @@ -30,6 +30,7 @@ export class CreateInstanceProfileCommand extends $Command< CreateInstanceProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateInstanceProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateLoginProfileCommand.ts b/clients/client-iam/commands/CreateLoginProfileCommand.ts index 1c4481dab282b..be2acf01c7b77 100644 --- a/clients/client-iam/commands/CreateLoginProfileCommand.ts +++ b/clients/client-iam/commands/CreateLoginProfileCommand.ts @@ -30,6 +30,7 @@ export class CreateLoginProfileCommand extends $Command< CreateLoginProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateLoginProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateOpenIDConnectProviderCommand.ts b/clients/client-iam/commands/CreateOpenIDConnectProviderCommand.ts index 155034158f413..1a03cdd28e8d2 100644 --- a/clients/client-iam/commands/CreateOpenIDConnectProviderCommand.ts +++ b/clients/client-iam/commands/CreateOpenIDConnectProviderCommand.ts @@ -50,6 +50,7 @@ export class CreateOpenIDConnectProviderCommand extends $Command< CreateOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CreateOpenIDConnectProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreatePolicyCommand.ts b/clients/client-iam/commands/CreatePolicyCommand.ts index c39ee2c1ba857..b9c193723675d 100644 --- a/clients/client-iam/commands/CreatePolicyCommand.ts +++ b/clients/client-iam/commands/CreatePolicyCommand.ts @@ -31,6 +31,7 @@ export class CreatePolicyCommand extends $Command< CreatePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreatePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreatePolicyVersionCommand.ts b/clients/client-iam/commands/CreatePolicyVersionCommand.ts index af97b2d046855..ae1cd6c7a5e96 100644 --- a/clients/client-iam/commands/CreatePolicyVersionCommand.ts +++ b/clients/client-iam/commands/CreatePolicyVersionCommand.ts @@ -35,6 +35,7 @@ export class CreatePolicyVersionCommand extends $Command< CreatePolicyVersionCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreatePolicyVersionCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateRoleCommand.ts b/clients/client-iam/commands/CreateRoleCommand.ts index 5e77c624aa725..16935d206f7ff 100644 --- a/clients/client-iam/commands/CreateRoleCommand.ts +++ b/clients/client-iam/commands/CreateRoleCommand.ts @@ -27,6 +27,7 @@ export class CreateRoleCommand extends $Command< CreateRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class CreateRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateSAMLProviderCommand.ts b/clients/client-iam/commands/CreateSAMLProviderCommand.ts index cd4eed94b128b..7052c706a2a95 100644 --- a/clients/client-iam/commands/CreateSAMLProviderCommand.ts +++ b/clients/client-iam/commands/CreateSAMLProviderCommand.ts @@ -45,6 +45,7 @@ export class CreateSAMLProviderCommand extends $Command< CreateSAMLProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateSAMLProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateServiceLinkedRoleCommand.ts b/clients/client-iam/commands/CreateServiceLinkedRoleCommand.ts index 44a647513e1b3..cb6c7926fd050 100644 --- a/clients/client-iam/commands/CreateServiceLinkedRoleCommand.ts +++ b/clients/client-iam/commands/CreateServiceLinkedRoleCommand.ts @@ -36,6 +36,7 @@ export class CreateServiceLinkedRoleCommand extends $Command< CreateServiceLinkedRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateServiceLinkedRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateServiceSpecificCredentialCommand.ts b/clients/client-iam/commands/CreateServiceSpecificCredentialCommand.ts index cb471d2ee01f4..7e2cf809c0d71 100644 --- a/clients/client-iam/commands/CreateServiceSpecificCredentialCommand.ts +++ b/clients/client-iam/commands/CreateServiceSpecificCredentialCommand.ts @@ -37,6 +37,7 @@ export class CreateServiceSpecificCredentialCommand extends $Command< CreateServiceSpecificCredentialCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateServiceSpecificCredentialCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateUserCommand.ts b/clients/client-iam/commands/CreateUserCommand.ts index 953035ae2ad4e..579596ffee996 100644 --- a/clients/client-iam/commands/CreateUserCommand.ts +++ b/clients/client-iam/commands/CreateUserCommand.ts @@ -26,6 +26,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class CreateUserCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/CreateVirtualMFADeviceCommand.ts b/clients/client-iam/commands/CreateVirtualMFADeviceCommand.ts index 83e35a563666c..15e772416f9f3 100644 --- a/clients/client-iam/commands/CreateVirtualMFADeviceCommand.ts +++ b/clients/client-iam/commands/CreateVirtualMFADeviceCommand.ts @@ -39,6 +39,7 @@ export class CreateVirtualMFADeviceCommand extends $Command< CreateVirtualMFADeviceCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateVirtualMFADeviceCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeactivateMFADeviceCommand.ts b/clients/client-iam/commands/DeactivateMFADeviceCommand.ts index 78a0cc4222e79..936144aabcf44 100644 --- a/clients/client-iam/commands/DeactivateMFADeviceCommand.ts +++ b/clients/client-iam/commands/DeactivateMFADeviceCommand.ts @@ -32,6 +32,7 @@ export class DeactivateMFADeviceCommand extends $Command< DeactivateMFADeviceCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeactivateMFADeviceCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteAccessKeyCommand.ts b/clients/client-iam/commands/DeleteAccessKeyCommand.ts index fbdc731ebbbea..b21037cb1db35 100644 --- a/clients/client-iam/commands/DeleteAccessKeyCommand.ts +++ b/clients/client-iam/commands/DeleteAccessKeyCommand.ts @@ -32,6 +32,7 @@ export class DeleteAccessKeyCommand extends $Command< DeleteAccessKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAccessKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteAccountAliasCommand.ts b/clients/client-iam/commands/DeleteAccountAliasCommand.ts index c7c889855411e..3ef766cb92078 100644 --- a/clients/client-iam/commands/DeleteAccountAliasCommand.ts +++ b/clients/client-iam/commands/DeleteAccountAliasCommand.ts @@ -31,6 +31,7 @@ export class DeleteAccountAliasCommand extends $Command< DeleteAccountAliasCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteAccountAliasCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteAccountPasswordPolicyCommand.ts b/clients/client-iam/commands/DeleteAccountPasswordPolicyCommand.ts index e38fd2003d137..0578df9ebeb09 100644 --- a/clients/client-iam/commands/DeleteAccountPasswordPolicyCommand.ts +++ b/clients/client-iam/commands/DeleteAccountPasswordPolicyCommand.ts @@ -27,6 +27,7 @@ export class DeleteAccountPasswordPolicyCommand extends $Command< DeleteAccountPasswordPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class DeleteAccountPasswordPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteGroupCommand.ts b/clients/client-iam/commands/DeleteGroupCommand.ts index e67ce8a6db244..93c18b089860d 100644 --- a/clients/client-iam/commands/DeleteGroupCommand.ts +++ b/clients/client-iam/commands/DeleteGroupCommand.ts @@ -26,6 +26,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteGroupCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteGroupPolicyCommand.ts b/clients/client-iam/commands/DeleteGroupPolicyCommand.ts index 546368981e420..5e6c43bed58a0 100644 --- a/clients/client-iam/commands/DeleteGroupPolicyCommand.ts +++ b/clients/client-iam/commands/DeleteGroupPolicyCommand.ts @@ -34,6 +34,7 @@ export class DeleteGroupPolicyCommand extends $Command< DeleteGroupPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteGroupPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteInstanceProfileCommand.ts b/clients/client-iam/commands/DeleteInstanceProfileCommand.ts index b6a688c4f2048..80f1fb5c2fc22 100644 --- a/clients/client-iam/commands/DeleteInstanceProfileCommand.ts +++ b/clients/client-iam/commands/DeleteInstanceProfileCommand.ts @@ -35,6 +35,7 @@ export class DeleteInstanceProfileCommand extends $Command< DeleteInstanceProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteInstanceProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteLoginProfileCommand.ts b/clients/client-iam/commands/DeleteLoginProfileCommand.ts index b7814b1c5278b..e4ef2680120c9 100644 --- a/clients/client-iam/commands/DeleteLoginProfileCommand.ts +++ b/clients/client-iam/commands/DeleteLoginProfileCommand.ts @@ -35,6 +35,7 @@ export class DeleteLoginProfileCommand extends $Command< DeleteLoginProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteLoginProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteOpenIDConnectProviderCommand.ts b/clients/client-iam/commands/DeleteOpenIDConnectProviderCommand.ts index cda9d6188553e..2327548f6e5b6 100644 --- a/clients/client-iam/commands/DeleteOpenIDConnectProviderCommand.ts +++ b/clients/client-iam/commands/DeleteOpenIDConnectProviderCommand.ts @@ -33,6 +33,7 @@ export class DeleteOpenIDConnectProviderCommand extends $Command< DeleteOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteOpenIDConnectProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeletePolicyCommand.ts b/clients/client-iam/commands/DeletePolicyCommand.ts index cc26873d1c975..3f2cfa0ee453e 100644 --- a/clients/client-iam/commands/DeletePolicyCommand.ts +++ b/clients/client-iam/commands/DeletePolicyCommand.ts @@ -48,6 +48,7 @@ export class DeletePolicyCommand extends $Command< DeletePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DeletePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeletePolicyVersionCommand.ts b/clients/client-iam/commands/DeletePolicyVersionCommand.ts index e0bbcd150b438..cb0323500f165 100644 --- a/clients/client-iam/commands/DeletePolicyVersionCommand.ts +++ b/clients/client-iam/commands/DeletePolicyVersionCommand.ts @@ -33,6 +33,7 @@ export class DeletePolicyVersionCommand extends $Command< DeletePolicyVersionCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeletePolicyVersionCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteRoleCommand.ts b/clients/client-iam/commands/DeleteRoleCommand.ts index 72e1d67103379..5a6c5820ec6fc 100644 --- a/clients/client-iam/commands/DeleteRoleCommand.ts +++ b/clients/client-iam/commands/DeleteRoleCommand.ts @@ -31,6 +31,7 @@ export class DeleteRoleCommand extends $Command< DeleteRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteRolePermissionsBoundaryCommand.ts b/clients/client-iam/commands/DeleteRolePermissionsBoundaryCommand.ts index 3aafd9d509116..e01af6de487ca 100644 --- a/clients/client-iam/commands/DeleteRolePermissionsBoundaryCommand.ts +++ b/clients/client-iam/commands/DeleteRolePermissionsBoundaryCommand.ts @@ -33,6 +33,7 @@ export class DeleteRolePermissionsBoundaryCommand extends $Command< DeleteRolePermissionsBoundaryCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteRolePermissionsBoundaryCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteRolePolicyCommand.ts b/clients/client-iam/commands/DeleteRolePolicyCommand.ts index b01efb8362ee4..03c6572464560 100644 --- a/clients/client-iam/commands/DeleteRolePolicyCommand.ts +++ b/clients/client-iam/commands/DeleteRolePolicyCommand.ts @@ -33,6 +33,7 @@ export class DeleteRolePolicyCommand extends $Command< DeleteRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteSAMLProviderCommand.ts b/clients/client-iam/commands/DeleteSAMLProviderCommand.ts index 2db5419a6b385..e812184170101 100644 --- a/clients/client-iam/commands/DeleteSAMLProviderCommand.ts +++ b/clients/client-iam/commands/DeleteSAMLProviderCommand.ts @@ -34,6 +34,7 @@ export class DeleteSAMLProviderCommand extends $Command< DeleteSAMLProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteSAMLProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteSSHPublicKeyCommand.ts b/clients/client-iam/commands/DeleteSSHPublicKeyCommand.ts index 556b5957e4924..d617bd908a7ad 100644 --- a/clients/client-iam/commands/DeleteSSHPublicKeyCommand.ts +++ b/clients/client-iam/commands/DeleteSSHPublicKeyCommand.ts @@ -32,6 +32,7 @@ export class DeleteSSHPublicKeyCommand extends $Command< DeleteSSHPublicKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteSSHPublicKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteServerCertificateCommand.ts b/clients/client-iam/commands/DeleteServerCertificateCommand.ts index 52135d34a9b92..6d8f449d4e595 100644 --- a/clients/client-iam/commands/DeleteServerCertificateCommand.ts +++ b/clients/client-iam/commands/DeleteServerCertificateCommand.ts @@ -41,6 +41,7 @@ export class DeleteServerCertificateCommand extends $Command< DeleteServerCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeleteServerCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteServiceLinkedRoleCommand.ts b/clients/client-iam/commands/DeleteServiceLinkedRoleCommand.ts index 2dc5e8e729854..0cafc79b8f86f 100644 --- a/clients/client-iam/commands/DeleteServiceLinkedRoleCommand.ts +++ b/clients/client-iam/commands/DeleteServiceLinkedRoleCommand.ts @@ -42,6 +42,7 @@ export class DeleteServiceLinkedRoleCommand extends $Command< DeleteServiceLinkedRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DeleteServiceLinkedRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteServiceSpecificCredentialCommand.ts b/clients/client-iam/commands/DeleteServiceSpecificCredentialCommand.ts index 01336605274ff..528f70605d482 100644 --- a/clients/client-iam/commands/DeleteServiceSpecificCredentialCommand.ts +++ b/clients/client-iam/commands/DeleteServiceSpecificCredentialCommand.ts @@ -28,6 +28,7 @@ export class DeleteServiceSpecificCredentialCommand extends $Command< DeleteServiceSpecificCredentialCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteServiceSpecificCredentialCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteSigningCertificateCommand.ts b/clients/client-iam/commands/DeleteSigningCertificateCommand.ts index 51995df760b01..a8162e7069362 100644 --- a/clients/client-iam/commands/DeleteSigningCertificateCommand.ts +++ b/clients/client-iam/commands/DeleteSigningCertificateCommand.ts @@ -32,6 +32,7 @@ export class DeleteSigningCertificateCommand extends $Command< DeleteSigningCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteSigningCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteUserCommand.ts b/clients/client-iam/commands/DeleteUserCommand.ts index c611cf49c7d53..bdb71c72c9260 100644 --- a/clients/client-iam/commands/DeleteUserCommand.ts +++ b/clients/client-iam/commands/DeleteUserCommand.ts @@ -58,6 +58,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class DeleteUserCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteUserPermissionsBoundaryCommand.ts b/clients/client-iam/commands/DeleteUserPermissionsBoundaryCommand.ts index f70e7d096dacf..4d68d98088d57 100644 --- a/clients/client-iam/commands/DeleteUserPermissionsBoundaryCommand.ts +++ b/clients/client-iam/commands/DeleteUserPermissionsBoundaryCommand.ts @@ -33,6 +33,7 @@ export class DeleteUserPermissionsBoundaryCommand extends $Command< DeleteUserPermissionsBoundaryCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteUserPermissionsBoundaryCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteUserPolicyCommand.ts b/clients/client-iam/commands/DeleteUserPolicyCommand.ts index b0d9ceaf17658..e4caa2119d7e9 100644 --- a/clients/client-iam/commands/DeleteUserPolicyCommand.ts +++ b/clients/client-iam/commands/DeleteUserPolicyCommand.ts @@ -33,6 +33,7 @@ export class DeleteUserPolicyCommand extends $Command< DeleteUserPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteUserPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DeleteVirtualMFADeviceCommand.ts b/clients/client-iam/commands/DeleteVirtualMFADeviceCommand.ts index 687d5794be350..1ea7d31554810 100644 --- a/clients/client-iam/commands/DeleteVirtualMFADeviceCommand.ts +++ b/clients/client-iam/commands/DeleteVirtualMFADeviceCommand.ts @@ -33,6 +33,7 @@ export class DeleteVirtualMFADeviceCommand extends $Command< DeleteVirtualMFADeviceCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteVirtualMFADeviceCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DetachGroupPolicyCommand.ts b/clients/client-iam/commands/DetachGroupPolicyCommand.ts index 3521e20adf32f..67041bf620cd7 100644 --- a/clients/client-iam/commands/DetachGroupPolicyCommand.ts +++ b/clients/client-iam/commands/DetachGroupPolicyCommand.ts @@ -32,6 +32,7 @@ export class DetachGroupPolicyCommand extends $Command< DetachGroupPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DetachGroupPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DetachRolePolicyCommand.ts b/clients/client-iam/commands/DetachRolePolicyCommand.ts index 5c4408c63366f..4101dc216ae22 100644 --- a/clients/client-iam/commands/DetachRolePolicyCommand.ts +++ b/clients/client-iam/commands/DetachRolePolicyCommand.ts @@ -32,6 +32,7 @@ export class DetachRolePolicyCommand extends $Command< DetachRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DetachRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/DetachUserPolicyCommand.ts b/clients/client-iam/commands/DetachUserPolicyCommand.ts index 85420ec0494e7..5fdb76418a948 100644 --- a/clients/client-iam/commands/DetachUserPolicyCommand.ts +++ b/clients/client-iam/commands/DetachUserPolicyCommand.ts @@ -32,6 +32,7 @@ export class DetachUserPolicyCommand extends $Command< DetachUserPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DetachUserPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/EnableMFADeviceCommand.ts b/clients/client-iam/commands/EnableMFADeviceCommand.ts index 67e37c578542f..fc30d261fe64f 100644 --- a/clients/client-iam/commands/EnableMFADeviceCommand.ts +++ b/clients/client-iam/commands/EnableMFADeviceCommand.ts @@ -30,6 +30,7 @@ export class EnableMFADeviceCommand extends $Command< EnableMFADeviceCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class EnableMFADeviceCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GenerateCredentialReportCommand.ts b/clients/client-iam/commands/GenerateCredentialReportCommand.ts index fd65202e7b4de..b0e773b89adb1 100644 --- a/clients/client-iam/commands/GenerateCredentialReportCommand.ts +++ b/clients/client-iam/commands/GenerateCredentialReportCommand.ts @@ -30,6 +30,7 @@ export class GenerateCredentialReportCommand extends $Command< GenerateCredentialReportCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GenerateCredentialReportCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GenerateOrganizationsAccessReportCommand.ts b/clients/client-iam/commands/GenerateOrganizationsAccessReportCommand.ts index 7bf97c38b8ba1..3627fce3a8fa2 100644 --- a/clients/client-iam/commands/GenerateOrganizationsAccessReportCommand.ts +++ b/clients/client-iam/commands/GenerateOrganizationsAccessReportCommand.ts @@ -157,6 +157,7 @@ export class GenerateOrganizationsAccessReportCommand extends $Command< GenerateOrganizationsAccessReportCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -174,7 +175,10 @@ export class GenerateOrganizationsAccessReportCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GenerateServiceLastAccessedDetailsCommand.ts b/clients/client-iam/commands/GenerateServiceLastAccessedDetailsCommand.ts index 1a2b117652adc..fd9f0908c17f2 100644 --- a/clients/client-iam/commands/GenerateServiceLastAccessedDetailsCommand.ts +++ b/clients/client-iam/commands/GenerateServiceLastAccessedDetailsCommand.ts @@ -82,6 +82,7 @@ export class GenerateServiceLastAccessedDetailsCommand extends $Command< GenerateServiceLastAccessedDetailsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class GenerateServiceLastAccessedDetailsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetAccessKeyLastUsedCommand.ts b/clients/client-iam/commands/GetAccessKeyLastUsedCommand.ts index 5ffd881d57e00..1186b75629914 100644 --- a/clients/client-iam/commands/GetAccessKeyLastUsedCommand.ts +++ b/clients/client-iam/commands/GetAccessKeyLastUsedCommand.ts @@ -30,6 +30,7 @@ export class GetAccessKeyLastUsedCommand extends $Command< GetAccessKeyLastUsedCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAccessKeyLastUsedCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetAccountAuthorizationDetailsCommand.ts b/clients/client-iam/commands/GetAccountAuthorizationDetailsCommand.ts index d1982663fb709..8488243235fdc 100644 --- a/clients/client-iam/commands/GetAccountAuthorizationDetailsCommand.ts +++ b/clients/client-iam/commands/GetAccountAuthorizationDetailsCommand.ts @@ -41,6 +41,7 @@ export class GetAccountAuthorizationDetailsCommand extends $Command< GetAccountAuthorizationDetailsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetAccountAuthorizationDetailsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetAccountPasswordPolicyCommand.ts b/clients/client-iam/commands/GetAccountPasswordPolicyCommand.ts index da6b6692fadde..ff143422dd1ad 100644 --- a/clients/client-iam/commands/GetAccountPasswordPolicyCommand.ts +++ b/clients/client-iam/commands/GetAccountPasswordPolicyCommand.ts @@ -30,6 +30,7 @@ export class GetAccountPasswordPolicyCommand extends $Command< GetAccountPasswordPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAccountPasswordPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetAccountSummaryCommand.ts b/clients/client-iam/commands/GetAccountSummaryCommand.ts index 7987ad877a3ec..cb55a337f2a9c 100644 --- a/clients/client-iam/commands/GetAccountSummaryCommand.ts +++ b/clients/client-iam/commands/GetAccountSummaryCommand.ts @@ -30,6 +30,7 @@ export class GetAccountSummaryCommand extends $Command< GetAccountSummaryCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAccountSummaryCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetContextKeysForCustomPolicyCommand.ts b/clients/client-iam/commands/GetContextKeysForCustomPolicyCommand.ts index 7eb41b5a684a2..890216b41b95b 100644 --- a/clients/client-iam/commands/GetContextKeysForCustomPolicyCommand.ts +++ b/clients/client-iam/commands/GetContextKeysForCustomPolicyCommand.ts @@ -36,6 +36,7 @@ export class GetContextKeysForCustomPolicyCommand extends $Command< GetContextKeysForCustomPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetContextKeysForCustomPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetContextKeysForPrincipalPolicyCommand.ts b/clients/client-iam/commands/GetContextKeysForPrincipalPolicyCommand.ts index 502e41087b2cb..95e52f72dfc87 100644 --- a/clients/client-iam/commands/GetContextKeysForPrincipalPolicyCommand.ts +++ b/clients/client-iam/commands/GetContextKeysForPrincipalPolicyCommand.ts @@ -43,6 +43,7 @@ export class GetContextKeysForPrincipalPolicyCommand extends $Command< GetContextKeysForPrincipalPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class GetContextKeysForPrincipalPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetCredentialReportCommand.ts b/clients/client-iam/commands/GetCredentialReportCommand.ts index c2c14e9b8aee9..9305138839fed 100644 --- a/clients/client-iam/commands/GetCredentialReportCommand.ts +++ b/clients/client-iam/commands/GetCredentialReportCommand.ts @@ -30,6 +30,7 @@ export class GetCredentialReportCommand extends $Command< GetCredentialReportCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetCredentialReportCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetGroupCommand.ts b/clients/client-iam/commands/GetGroupCommand.ts index d74dfda1322cb..eda4bc00ce552 100644 --- a/clients/client-iam/commands/GetGroupCommand.ts +++ b/clients/client-iam/commands/GetGroupCommand.ts @@ -22,6 +22,7 @@ export type GetGroupCommandOutput = GetGroupResponse & __MetadataBearer; * the results using the MaxItems and Marker parameters.

*/ export class GetGroupCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class GetGroupCommand 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-iam/commands/GetGroupPolicyCommand.ts b/clients/client-iam/commands/GetGroupPolicyCommand.ts index dc7e694dde165..0e439e1999266 100644 --- a/clients/client-iam/commands/GetGroupPolicyCommand.ts +++ b/clients/client-iam/commands/GetGroupPolicyCommand.ts @@ -41,6 +41,7 @@ export class GetGroupPolicyCommand extends $Command< GetGroupPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetGroupPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetInstanceProfileCommand.ts b/clients/client-iam/commands/GetInstanceProfileCommand.ts index b02c7d39cd549..60867aecaea54 100644 --- a/clients/client-iam/commands/GetInstanceProfileCommand.ts +++ b/clients/client-iam/commands/GetInstanceProfileCommand.ts @@ -31,6 +31,7 @@ export class GetInstanceProfileCommand extends $Command< GetInstanceProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetInstanceProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetLoginProfileCommand.ts b/clients/client-iam/commands/GetLoginProfileCommand.ts index 2f6a52b07dfbf..a8635b446f336 100644 --- a/clients/client-iam/commands/GetLoginProfileCommand.ts +++ b/clients/client-iam/commands/GetLoginProfileCommand.ts @@ -30,6 +30,7 @@ export class GetLoginProfileCommand extends $Command< GetLoginProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLoginProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetOpenIDConnectProviderCommand.ts b/clients/client-iam/commands/GetOpenIDConnectProviderCommand.ts index f7de94abfeff0..1a5237040ee95 100644 --- a/clients/client-iam/commands/GetOpenIDConnectProviderCommand.ts +++ b/clients/client-iam/commands/GetOpenIDConnectProviderCommand.ts @@ -29,6 +29,7 @@ export class GetOpenIDConnectProviderCommand extends $Command< GetOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetOpenIDConnectProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetOrganizationsAccessReportCommand.ts b/clients/client-iam/commands/GetOrganizationsAccessReportCommand.ts index b67ad16d67abc..7a04b86b406c5 100644 --- a/clients/client-iam/commands/GetOrganizationsAccessReportCommand.ts +++ b/clients/client-iam/commands/GetOrganizationsAccessReportCommand.ts @@ -44,6 +44,7 @@ export class GetOrganizationsAccessReportCommand extends $Command< GetOrganizationsAccessReportCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class GetOrganizationsAccessReportCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetPolicyCommand.ts b/clients/client-iam/commands/GetPolicyCommand.ts index 3de9c6cdb3236..fb55b7ca9a88f 100644 --- a/clients/client-iam/commands/GetPolicyCommand.ts +++ b/clients/client-iam/commands/GetPolicyCommand.ts @@ -30,6 +30,7 @@ export type GetPolicyCommandOutput = GetPolicyResponse & __MetadataBearer; * Policies in the IAM User Guide.

*/ export class GetPolicyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetPolicyCommand 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-iam/commands/GetPolicyVersionCommand.ts b/clients/client-iam/commands/GetPolicyVersionCommand.ts index 77e73e64929bf..61b43a09bd798 100644 --- a/clients/client-iam/commands/GetPolicyVersionCommand.ts +++ b/clients/client-iam/commands/GetPolicyVersionCommand.ts @@ -44,6 +44,7 @@ export class GetPolicyVersionCommand extends $Command< GetPolicyVersionCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class GetPolicyVersionCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetRoleCommand.ts b/clients/client-iam/commands/GetRoleCommand.ts index fc9cfd56b7c4e..dc6a45725d9de 100644 --- a/clients/client-iam/commands/GetRoleCommand.ts +++ b/clients/client-iam/commands/GetRoleCommand.ts @@ -30,6 +30,7 @@ export type GetRoleCommandOutput = GetRoleResponse & __MetadataBearer; * */ export class GetRoleCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetRoleCommand 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-iam/commands/GetRolePolicyCommand.ts b/clients/client-iam/commands/GetRolePolicyCommand.ts index 6086a8fed871d..dd3ec110c94e8 100644 --- a/clients/client-iam/commands/GetRolePolicyCommand.ts +++ b/clients/client-iam/commands/GetRolePolicyCommand.ts @@ -42,6 +42,7 @@ export class GetRolePolicyCommand extends $Command< GetRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetSAMLProviderCommand.ts b/clients/client-iam/commands/GetSAMLProviderCommand.ts index 33b21eee03ee6..9586a97297600 100644 --- a/clients/client-iam/commands/GetSAMLProviderCommand.ts +++ b/clients/client-iam/commands/GetSAMLProviderCommand.ts @@ -32,6 +32,7 @@ export class GetSAMLProviderCommand extends $Command< GetSAMLProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetSAMLProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetSSHPublicKeyCommand.ts b/clients/client-iam/commands/GetSSHPublicKeyCommand.ts index 8447fd1964354..5969d3abb7485 100644 --- a/clients/client-iam/commands/GetSSHPublicKeyCommand.ts +++ b/clients/client-iam/commands/GetSSHPublicKeyCommand.ts @@ -32,6 +32,7 @@ export class GetSSHPublicKeyCommand extends $Command< GetSSHPublicKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetSSHPublicKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetServerCertificateCommand.ts b/clients/client-iam/commands/GetServerCertificateCommand.ts index f4b293558a631..2452fc93a8ae4 100644 --- a/clients/client-iam/commands/GetServerCertificateCommand.ts +++ b/clients/client-iam/commands/GetServerCertificateCommand.ts @@ -32,6 +32,7 @@ export class GetServerCertificateCommand extends $Command< GetServerCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetServerCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetServiceLastAccessedDetailsCommand.ts b/clients/client-iam/commands/GetServiceLastAccessedDetailsCommand.ts index e226724823ecc..3c364c3a5b4c6 100644 --- a/clients/client-iam/commands/GetServiceLastAccessedDetailsCommand.ts +++ b/clients/client-iam/commands/GetServiceLastAccessedDetailsCommand.ts @@ -79,6 +79,7 @@ export class GetServiceLastAccessedDetailsCommand extends $Command< GetServiceLastAccessedDetailsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class GetServiceLastAccessedDetailsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.ts b/clients/client-iam/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.ts index 8a22b3147b2d1..865790f999788 100644 --- a/clients/client-iam/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.ts +++ b/clients/client-iam/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.ts @@ -56,6 +56,7 @@ export class GetServiceLastAccessedDetailsWithEntitiesCommand extends $Command< GetServiceLastAccessedDetailsWithEntitiesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class GetServiceLastAccessedDetailsWithEntitiesCommand extends $Command< GetServiceLastAccessedDetailsWithEntitiesCommandInput, GetServiceLastAccessedDetailsWithEntitiesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetServiceLinkedRoleDeletionStatusCommand.ts b/clients/client-iam/commands/GetServiceLinkedRoleDeletionStatusCommand.ts index 1f98c609d71e9..4babeb46b8feb 100644 --- a/clients/client-iam/commands/GetServiceLinkedRoleDeletionStatusCommand.ts +++ b/clients/client-iam/commands/GetServiceLinkedRoleDeletionStatusCommand.ts @@ -36,6 +36,7 @@ export class GetServiceLinkedRoleDeletionStatusCommand extends $Command< GetServiceLinkedRoleDeletionStatusCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetServiceLinkedRoleDeletionStatusCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/GetUserCommand.ts b/clients/client-iam/commands/GetUserCommand.ts index c9fd117571d38..a5b5ece0ca850 100644 --- a/clients/client-iam/commands/GetUserCommand.ts +++ b/clients/client-iam/commands/GetUserCommand.ts @@ -24,6 +24,7 @@ export type GetUserCommandOutput = GetUserResponse & __MetadataBearer; * the AWS access key ID used to sign the request to this API.

*/ export class GetUserCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetUserCommand 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-iam/commands/GetUserPolicyCommand.ts b/clients/client-iam/commands/GetUserPolicyCommand.ts index 132513bd626bd..b9ac09e008849 100644 --- a/clients/client-iam/commands/GetUserPolicyCommand.ts +++ b/clients/client-iam/commands/GetUserPolicyCommand.ts @@ -40,6 +40,7 @@ export class GetUserPolicyCommand extends $Command< GetUserPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetUserPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListAccessKeysCommand.ts b/clients/client-iam/commands/ListAccessKeysCommand.ts index 2bae5ac7c5ec0..53704a65aa8f4 100644 --- a/clients/client-iam/commands/ListAccessKeysCommand.ts +++ b/clients/client-iam/commands/ListAccessKeysCommand.ts @@ -40,6 +40,7 @@ export class ListAccessKeysCommand extends $Command< ListAccessKeysCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListAccessKeysCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListAccountAliasesCommand.ts b/clients/client-iam/commands/ListAccountAliasesCommand.ts index 7d53ade02417f..26e8d56efe3f6 100644 --- a/clients/client-iam/commands/ListAccountAliasesCommand.ts +++ b/clients/client-iam/commands/ListAccountAliasesCommand.ts @@ -30,6 +30,7 @@ export class ListAccountAliasesCommand extends $Command< ListAccountAliasesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAccountAliasesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListAttachedGroupPoliciesCommand.ts b/clients/client-iam/commands/ListAttachedGroupPoliciesCommand.ts index e2d28efc48cbc..04fddad201d2a 100644 --- a/clients/client-iam/commands/ListAttachedGroupPoliciesCommand.ts +++ b/clients/client-iam/commands/ListAttachedGroupPoliciesCommand.ts @@ -37,6 +37,7 @@ export class ListAttachedGroupPoliciesCommand extends $Command< ListAttachedGroupPoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListAttachedGroupPoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListAttachedRolePoliciesCommand.ts b/clients/client-iam/commands/ListAttachedRolePoliciesCommand.ts index 924bb0e3d9814..7d29534c112a4 100644 --- a/clients/client-iam/commands/ListAttachedRolePoliciesCommand.ts +++ b/clients/client-iam/commands/ListAttachedRolePoliciesCommand.ts @@ -37,6 +37,7 @@ export class ListAttachedRolePoliciesCommand extends $Command< ListAttachedRolePoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListAttachedRolePoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListAttachedUserPoliciesCommand.ts b/clients/client-iam/commands/ListAttachedUserPoliciesCommand.ts index 4c91e8645bc9a..0e0e3d97c95cc 100644 --- a/clients/client-iam/commands/ListAttachedUserPoliciesCommand.ts +++ b/clients/client-iam/commands/ListAttachedUserPoliciesCommand.ts @@ -37,6 +37,7 @@ export class ListAttachedUserPoliciesCommand extends $Command< ListAttachedUserPoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListAttachedUserPoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListEntitiesForPolicyCommand.ts b/clients/client-iam/commands/ListEntitiesForPolicyCommand.ts index 1db31d7a4f0c2..6aa951c9568ad 100644 --- a/clients/client-iam/commands/ListEntitiesForPolicyCommand.ts +++ b/clients/client-iam/commands/ListEntitiesForPolicyCommand.ts @@ -35,6 +35,7 @@ export class ListEntitiesForPolicyCommand extends $Command< ListEntitiesForPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListEntitiesForPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListGroupPoliciesCommand.ts b/clients/client-iam/commands/ListGroupPoliciesCommand.ts index 8e99285a6afbe..4ad0a6ca93b00 100644 --- a/clients/client-iam/commands/ListGroupPoliciesCommand.ts +++ b/clients/client-iam/commands/ListGroupPoliciesCommand.ts @@ -36,6 +36,7 @@ export class ListGroupPoliciesCommand extends $Command< ListGroupPoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListGroupPoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListGroupsCommand.ts b/clients/client-iam/commands/ListGroupsCommand.ts index dd12eb01d25f1..63cef386bb875 100644 --- a/clients/client-iam/commands/ListGroupsCommand.ts +++ b/clients/client-iam/commands/ListGroupsCommand.ts @@ -27,6 +27,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ListGroupsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListGroupsForUserCommand.ts b/clients/client-iam/commands/ListGroupsForUserCommand.ts index 6aa8ccefeb5ed..7e7390cd75232 100644 --- a/clients/client-iam/commands/ListGroupsForUserCommand.ts +++ b/clients/client-iam/commands/ListGroupsForUserCommand.ts @@ -30,6 +30,7 @@ export class ListGroupsForUserCommand extends $Command< ListGroupsForUserCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListGroupsForUserCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListInstanceProfilesCommand.ts b/clients/client-iam/commands/ListInstanceProfilesCommand.ts index 22222c95bf0ee..271d205570bf7 100644 --- a/clients/client-iam/commands/ListInstanceProfilesCommand.ts +++ b/clients/client-iam/commands/ListInstanceProfilesCommand.ts @@ -32,6 +32,7 @@ export class ListInstanceProfilesCommand extends $Command< ListInstanceProfilesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListInstanceProfilesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListInstanceProfilesForRoleCommand.ts b/clients/client-iam/commands/ListInstanceProfilesForRoleCommand.ts index b64c2bbba7b85..2037413911a61 100644 --- a/clients/client-iam/commands/ListInstanceProfilesForRoleCommand.ts +++ b/clients/client-iam/commands/ListInstanceProfilesForRoleCommand.ts @@ -33,6 +33,7 @@ export class ListInstanceProfilesForRoleCommand extends $Command< ListInstanceProfilesForRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListInstanceProfilesForRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListMFADevicesCommand.ts b/clients/client-iam/commands/ListMFADevicesCommand.ts index 856e555cb1a11..548c04467bf59 100644 --- a/clients/client-iam/commands/ListMFADevicesCommand.ts +++ b/clients/client-iam/commands/ListMFADevicesCommand.ts @@ -33,6 +33,7 @@ export class ListMFADevicesCommand extends $Command< ListMFADevicesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListMFADevicesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListOpenIDConnectProvidersCommand.ts b/clients/client-iam/commands/ListOpenIDConnectProvidersCommand.ts index 455a81d6c068d..862e8ccdd1400 100644 --- a/clients/client-iam/commands/ListOpenIDConnectProvidersCommand.ts +++ b/clients/client-iam/commands/ListOpenIDConnectProvidersCommand.ts @@ -29,6 +29,7 @@ export class ListOpenIDConnectProvidersCommand extends $Command< ListOpenIDConnectProvidersCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListOpenIDConnectProvidersCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListPoliciesCommand.ts b/clients/client-iam/commands/ListPoliciesCommand.ts index c537a99940a91..65c1bd77c0409 100644 --- a/clients/client-iam/commands/ListPoliciesCommand.ts +++ b/clients/client-iam/commands/ListPoliciesCommand.ts @@ -35,6 +35,7 @@ export class ListPoliciesCommand extends $Command< ListPoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListPoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListPoliciesGrantingServiceAccessCommand.ts b/clients/client-iam/commands/ListPoliciesGrantingServiceAccessCommand.ts index 545caadac3fc9..a76f522fbcf23 100644 --- a/clients/client-iam/commands/ListPoliciesGrantingServiceAccessCommand.ts +++ b/clients/client-iam/commands/ListPoliciesGrantingServiceAccessCommand.ts @@ -71,6 +71,7 @@ export class ListPoliciesGrantingServiceAccessCommand extends $Command< ListPoliciesGrantingServiceAccessCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class ListPoliciesGrantingServiceAccessCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListPolicyVersionsCommand.ts b/clients/client-iam/commands/ListPolicyVersionsCommand.ts index a53f9eedc3946..3e142e8bc5175 100644 --- a/clients/client-iam/commands/ListPolicyVersionsCommand.ts +++ b/clients/client-iam/commands/ListPolicyVersionsCommand.ts @@ -31,6 +31,7 @@ export class ListPolicyVersionsCommand extends $Command< ListPolicyVersionsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListPolicyVersionsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListRolePoliciesCommand.ts b/clients/client-iam/commands/ListRolePoliciesCommand.ts index 0e5243ab9244d..6d6280a7385e6 100644 --- a/clients/client-iam/commands/ListRolePoliciesCommand.ts +++ b/clients/client-iam/commands/ListRolePoliciesCommand.ts @@ -36,6 +36,7 @@ export class ListRolePoliciesCommand extends $Command< ListRolePoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRolePoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListRoleTagsCommand.ts b/clients/client-iam/commands/ListRoleTagsCommand.ts index 2f5e21ab0b59b..cd72229878e29 100644 --- a/clients/client-iam/commands/ListRoleTagsCommand.ts +++ b/clients/client-iam/commands/ListRoleTagsCommand.ts @@ -27,6 +27,7 @@ export class ListRoleTagsCommand extends $Command< ListRoleTagsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ListRoleTagsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListRolesCommand.ts b/clients/client-iam/commands/ListRolesCommand.ts index c8f409d206961..62014a12350da 100644 --- a/clients/client-iam/commands/ListRolesCommand.ts +++ b/clients/client-iam/commands/ListRolesCommand.ts @@ -25,6 +25,7 @@ export type ListRolesCommandOutput = ListRolesResponse & __MetadataBearer; * parameters.

*/ export class ListRolesCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListRolesCommand 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-iam/commands/ListSAMLProvidersCommand.ts b/clients/client-iam/commands/ListSAMLProvidersCommand.ts index fe50f61aa5265..a9efd82ff4aff 100644 --- a/clients/client-iam/commands/ListSAMLProvidersCommand.ts +++ b/clients/client-iam/commands/ListSAMLProvidersCommand.ts @@ -31,6 +31,7 @@ export class ListSAMLProvidersCommand extends $Command< ListSAMLProvidersCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListSAMLProvidersCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListSSHPublicKeysCommand.ts b/clients/client-iam/commands/ListSSHPublicKeysCommand.ts index a8addbbbbdbbe..c342db2af7077 100644 --- a/clients/client-iam/commands/ListSSHPublicKeysCommand.ts +++ b/clients/client-iam/commands/ListSSHPublicKeysCommand.ts @@ -35,6 +35,7 @@ export class ListSSHPublicKeysCommand extends $Command< ListSSHPublicKeysCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListSSHPublicKeysCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListServerCertificatesCommand.ts b/clients/client-iam/commands/ListServerCertificatesCommand.ts index 41a42d76235b2..7bf11e4249a1b 100644 --- a/clients/client-iam/commands/ListServerCertificatesCommand.ts +++ b/clients/client-iam/commands/ListServerCertificatesCommand.ts @@ -35,6 +35,7 @@ export class ListServerCertificatesCommand extends $Command< ListServerCertificatesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListServerCertificatesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListServiceSpecificCredentialsCommand.ts b/clients/client-iam/commands/ListServiceSpecificCredentialsCommand.ts index 851849d581162..2298dff525221 100644 --- a/clients/client-iam/commands/ListServiceSpecificCredentialsCommand.ts +++ b/clients/client-iam/commands/ListServiceSpecificCredentialsCommand.ts @@ -33,6 +33,7 @@ export class ListServiceSpecificCredentialsCommand extends $Command< ListServiceSpecificCredentialsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListServiceSpecificCredentialsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListSigningCertificatesCommand.ts b/clients/client-iam/commands/ListSigningCertificatesCommand.ts index db8214d9ef493..6571f19f41749 100644 --- a/clients/client-iam/commands/ListSigningCertificatesCommand.ts +++ b/clients/client-iam/commands/ListSigningCertificatesCommand.ts @@ -37,6 +37,7 @@ export class ListSigningCertificatesCommand extends $Command< ListSigningCertificatesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListSigningCertificatesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListUserPoliciesCommand.ts b/clients/client-iam/commands/ListUserPoliciesCommand.ts index 88e8433178ea6..750d38e7f1bcf 100644 --- a/clients/client-iam/commands/ListUserPoliciesCommand.ts +++ b/clients/client-iam/commands/ListUserPoliciesCommand.ts @@ -35,6 +35,7 @@ export class ListUserPoliciesCommand extends $Command< ListUserPoliciesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListUserPoliciesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListUserTagsCommand.ts b/clients/client-iam/commands/ListUserTagsCommand.ts index 0885a7e8cd41a..450cc492896dc 100644 --- a/clients/client-iam/commands/ListUserTagsCommand.ts +++ b/clients/client-iam/commands/ListUserTagsCommand.ts @@ -27,6 +27,7 @@ export class ListUserTagsCommand extends $Command< ListUserTagsCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ListUserTagsCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ListUsersCommand.ts b/clients/client-iam/commands/ListUsersCommand.ts index 041814dce869c..45da41d7a7a90 100644 --- a/clients/client-iam/commands/ListUsersCommand.ts +++ b/clients/client-iam/commands/ListUsersCommand.ts @@ -25,6 +25,7 @@ export type ListUsersCommandOutput = ListUsersResponse & __MetadataBearer; * parameters.

*/ export class ListUsersCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListUsersCommand 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-iam/commands/ListVirtualMFADevicesCommand.ts b/clients/client-iam/commands/ListVirtualMFADevicesCommand.ts index d0a1e5853d99e..6aaa584238060 100644 --- a/clients/client-iam/commands/ListVirtualMFADevicesCommand.ts +++ b/clients/client-iam/commands/ListVirtualMFADevicesCommand.ts @@ -33,6 +33,7 @@ export class ListVirtualMFADevicesCommand extends $Command< ListVirtualMFADevicesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListVirtualMFADevicesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/PutGroupPolicyCommand.ts b/clients/client-iam/commands/PutGroupPolicyCommand.ts index 8da28c1fb28e1..3e9eb87e307ee 100644 --- a/clients/client-iam/commands/PutGroupPolicyCommand.ts +++ b/clients/client-iam/commands/PutGroupPolicyCommand.ts @@ -42,6 +42,7 @@ export class PutGroupPolicyCommand extends $Command< PutGroupPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class PutGroupPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/PutRolePermissionsBoundaryCommand.ts b/clients/client-iam/commands/PutRolePermissionsBoundaryCommand.ts index 50f2873194094..bd16d44fc206f 100644 --- a/clients/client-iam/commands/PutRolePermissionsBoundaryCommand.ts +++ b/clients/client-iam/commands/PutRolePermissionsBoundaryCommand.ts @@ -39,6 +39,7 @@ export class PutRolePermissionsBoundaryCommand extends $Command< PutRolePermissionsBoundaryCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class PutRolePermissionsBoundaryCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/PutRolePolicyCommand.ts b/clients/client-iam/commands/PutRolePolicyCommand.ts index 2048cdd66ed15..e1c8836ca4c26 100644 --- a/clients/client-iam/commands/PutRolePolicyCommand.ts +++ b/clients/client-iam/commands/PutRolePolicyCommand.ts @@ -48,6 +48,7 @@ export class PutRolePolicyCommand extends $Command< PutRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class PutRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/PutUserPermissionsBoundaryCommand.ts b/clients/client-iam/commands/PutUserPermissionsBoundaryCommand.ts index c0c6138c6c8dc..ff445423c32fa 100644 --- a/clients/client-iam/commands/PutUserPermissionsBoundaryCommand.ts +++ b/clients/client-iam/commands/PutUserPermissionsBoundaryCommand.ts @@ -38,6 +38,7 @@ export class PutUserPermissionsBoundaryCommand extends $Command< PutUserPermissionsBoundaryCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutUserPermissionsBoundaryCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/PutUserPolicyCommand.ts b/clients/client-iam/commands/PutUserPolicyCommand.ts index 018603f86d9bd..89097bc07909f 100644 --- a/clients/client-iam/commands/PutUserPolicyCommand.ts +++ b/clients/client-iam/commands/PutUserPolicyCommand.ts @@ -43,6 +43,7 @@ export class PutUserPolicyCommand extends $Command< PutUserPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class PutUserPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/RemoveClientIDFromOpenIDConnectProviderCommand.ts b/clients/client-iam/commands/RemoveClientIDFromOpenIDConnectProviderCommand.ts index 1bd22f74081bd..486c6c5e79a8e 100644 --- a/clients/client-iam/commands/RemoveClientIDFromOpenIDConnectProviderCommand.ts +++ b/clients/client-iam/commands/RemoveClientIDFromOpenIDConnectProviderCommand.ts @@ -31,6 +31,7 @@ export class RemoveClientIDFromOpenIDConnectProviderCommand extends $Command< RemoveClientIDFromOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RemoveClientIDFromOpenIDConnectProviderCommand extends $Command< RemoveClientIDFromOpenIDConnectProviderCommandInput, RemoveClientIDFromOpenIDConnectProviderCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/RemoveRoleFromInstanceProfileCommand.ts b/clients/client-iam/commands/RemoveRoleFromInstanceProfileCommand.ts index b25d3e1d66a7d..6b4a67f49bf20 100644 --- a/clients/client-iam/commands/RemoveRoleFromInstanceProfileCommand.ts +++ b/clients/client-iam/commands/RemoveRoleFromInstanceProfileCommand.ts @@ -36,6 +36,7 @@ export class RemoveRoleFromInstanceProfileCommand extends $Command< RemoveRoleFromInstanceProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class RemoveRoleFromInstanceProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/RemoveUserFromGroupCommand.ts b/clients/client-iam/commands/RemoveUserFromGroupCommand.ts index f5ef2a4e2e285..7507ac820b276 100644 --- a/clients/client-iam/commands/RemoveUserFromGroupCommand.ts +++ b/clients/client-iam/commands/RemoveUserFromGroupCommand.ts @@ -28,6 +28,7 @@ export class RemoveUserFromGroupCommand extends $Command< RemoveUserFromGroupCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveUserFromGroupCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ResetServiceSpecificCredentialCommand.ts b/clients/client-iam/commands/ResetServiceSpecificCredentialCommand.ts index ed4a92781662a..5399dcee3268c 100644 --- a/clients/client-iam/commands/ResetServiceSpecificCredentialCommand.ts +++ b/clients/client-iam/commands/ResetServiceSpecificCredentialCommand.ts @@ -30,6 +30,7 @@ export class ResetServiceSpecificCredentialCommand extends $Command< ResetServiceSpecificCredentialCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ResetServiceSpecificCredentialCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/ResyncMFADeviceCommand.ts b/clients/client-iam/commands/ResyncMFADeviceCommand.ts index 18a21d9d7c5f1..8d9684398619c 100644 --- a/clients/client-iam/commands/ResyncMFADeviceCommand.ts +++ b/clients/client-iam/commands/ResyncMFADeviceCommand.ts @@ -31,6 +31,7 @@ export class ResyncMFADeviceCommand extends $Command< ResyncMFADeviceCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResyncMFADeviceCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/SetDefaultPolicyVersionCommand.ts b/clients/client-iam/commands/SetDefaultPolicyVersionCommand.ts index 64167f211e17a..f3dc97364a3a7 100644 --- a/clients/client-iam/commands/SetDefaultPolicyVersionCommand.ts +++ b/clients/client-iam/commands/SetDefaultPolicyVersionCommand.ts @@ -33,6 +33,7 @@ export class SetDefaultPolicyVersionCommand extends $Command< SetDefaultPolicyVersionCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetDefaultPolicyVersionCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/SetSecurityTokenServicePreferencesCommand.ts b/clients/client-iam/commands/SetSecurityTokenServicePreferencesCommand.ts index 213f828f7c3cc..446f3c43f5759 100644 --- a/clients/client-iam/commands/SetSecurityTokenServicePreferencesCommand.ts +++ b/clients/client-iam/commands/SetSecurityTokenServicePreferencesCommand.ts @@ -43,6 +43,7 @@ export class SetSecurityTokenServicePreferencesCommand extends $Command< SetSecurityTokenServicePreferencesCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class SetSecurityTokenServicePreferencesCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/SimulateCustomPolicyCommand.ts b/clients/client-iam/commands/SimulateCustomPolicyCommand.ts index e12596639ddda..f7ba4c4b9929d 100644 --- a/clients/client-iam/commands/SimulateCustomPolicyCommand.ts +++ b/clients/client-iam/commands/SimulateCustomPolicyCommand.ts @@ -40,6 +40,7 @@ export class SimulateCustomPolicyCommand extends $Command< SimulateCustomPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class SimulateCustomPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/SimulatePrincipalPolicyCommand.ts b/clients/client-iam/commands/SimulatePrincipalPolicyCommand.ts index b503d1b6dd3a3..fa38c982b6152 100644 --- a/clients/client-iam/commands/SimulatePrincipalPolicyCommand.ts +++ b/clients/client-iam/commands/SimulatePrincipalPolicyCommand.ts @@ -49,6 +49,7 @@ export class SimulatePrincipalPolicyCommand extends $Command< SimulatePrincipalPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class SimulatePrincipalPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/TagRoleCommand.ts b/clients/client-iam/commands/TagRoleCommand.ts index c61def9df4f86..2106aec300304 100644 --- a/clients/client-iam/commands/TagRoleCommand.ts +++ b/clients/client-iam/commands/TagRoleCommand.ts @@ -65,6 +65,7 @@ export type TagRoleCommandOutput = __MetadataBearer; * IAM User Guide.

*/ export class TagRoleCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class TagRoleCommand 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-iam/commands/TagUserCommand.ts b/clients/client-iam/commands/TagUserCommand.ts index 0d606198076f7..4cd9730477a2b 100644 --- a/clients/client-iam/commands/TagUserCommand.ts +++ b/clients/client-iam/commands/TagUserCommand.ts @@ -65,6 +65,7 @@ export type TagUserCommandOutput = __MetadataBearer; * IAM User Guide.

*/ export class TagUserCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class TagUserCommand 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-iam/commands/UntagRoleCommand.ts b/clients/client-iam/commands/UntagRoleCommand.ts index 0d8435eb429dd..6388637677ced 100644 --- a/clients/client-iam/commands/UntagRoleCommand.ts +++ b/clients/client-iam/commands/UntagRoleCommand.ts @@ -23,6 +23,7 @@ export type UntagRoleCommandOutput = __MetadataBearer; * in the IAM User Guide.

*/ export class UntagRoleCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class UntagRoleCommand 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-iam/commands/UntagUserCommand.ts b/clients/client-iam/commands/UntagUserCommand.ts index 60827421fa9dd..1346a8059bb35 100644 --- a/clients/client-iam/commands/UntagUserCommand.ts +++ b/clients/client-iam/commands/UntagUserCommand.ts @@ -23,6 +23,7 @@ export type UntagUserCommandOutput = __MetadataBearer; * in the IAM User Guide.

*/ export class UntagUserCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class UntagUserCommand 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-iam/commands/UpdateAccessKeyCommand.ts b/clients/client-iam/commands/UpdateAccessKeyCommand.ts index b4ec5bc022dd5..8710fc622d8ea 100644 --- a/clients/client-iam/commands/UpdateAccessKeyCommand.ts +++ b/clients/client-iam/commands/UpdateAccessKeyCommand.ts @@ -36,6 +36,7 @@ export class UpdateAccessKeyCommand extends $Command< UpdateAccessKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateAccessKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateAccountPasswordPolicyCommand.ts b/clients/client-iam/commands/UpdateAccountPasswordPolicyCommand.ts index 3ba210a2a2312..8567c709d4685 100644 --- a/clients/client-iam/commands/UpdateAccountPasswordPolicyCommand.ts +++ b/clients/client-iam/commands/UpdateAccountPasswordPolicyCommand.ts @@ -42,6 +42,7 @@ export class UpdateAccountPasswordPolicyCommand extends $Command< UpdateAccountPasswordPolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class UpdateAccountPasswordPolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateAssumeRolePolicyCommand.ts b/clients/client-iam/commands/UpdateAssumeRolePolicyCommand.ts index 2c55b700233d2..d4bd4582263d2 100644 --- a/clients/client-iam/commands/UpdateAssumeRolePolicyCommand.ts +++ b/clients/client-iam/commands/UpdateAssumeRolePolicyCommand.ts @@ -31,6 +31,7 @@ export class UpdateAssumeRolePolicyCommand extends $Command< UpdateAssumeRolePolicyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateAssumeRolePolicyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateGroupCommand.ts b/clients/client-iam/commands/UpdateGroupCommand.ts index eda5fe727f226..84529161acfe5 100644 --- a/clients/client-iam/commands/UpdateGroupCommand.ts +++ b/clients/client-iam/commands/UpdateGroupCommand.ts @@ -38,6 +38,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateGroupCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateLoginProfileCommand.ts b/clients/client-iam/commands/UpdateLoginProfileCommand.ts index 5b68c400681df..748bbdc2465ce 100644 --- a/clients/client-iam/commands/UpdateLoginProfileCommand.ts +++ b/clients/client-iam/commands/UpdateLoginProfileCommand.ts @@ -31,6 +31,7 @@ export class UpdateLoginProfileCommand extends $Command< UpdateLoginProfileCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateLoginProfileCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateOpenIDConnectProviderThumbprintCommand.ts b/clients/client-iam/commands/UpdateOpenIDConnectProviderThumbprintCommand.ts index 9fb2e2b9467a8..61ff94895a3e4 100644 --- a/clients/client-iam/commands/UpdateOpenIDConnectProviderThumbprintCommand.ts +++ b/clients/client-iam/commands/UpdateOpenIDConnectProviderThumbprintCommand.ts @@ -41,6 +41,7 @@ export class UpdateOpenIDConnectProviderThumbprintCommand extends $Command< UpdateOpenIDConnectProviderThumbprintCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateOpenIDConnectProviderThumbprintCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateRoleCommand.ts b/clients/client-iam/commands/UpdateRoleCommand.ts index 88d7604315b69..f33e0a6bdff2f 100644 --- a/clients/client-iam/commands/UpdateRoleCommand.ts +++ b/clients/client-iam/commands/UpdateRoleCommand.ts @@ -25,6 +25,7 @@ export class UpdateRoleCommand extends $Command< UpdateRoleCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UpdateRoleCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateRoleDescriptionCommand.ts b/clients/client-iam/commands/UpdateRoleDescriptionCommand.ts index 877f832a2f3ac..dace6a035bb23 100644 --- a/clients/client-iam/commands/UpdateRoleDescriptionCommand.ts +++ b/clients/client-iam/commands/UpdateRoleDescriptionCommand.ts @@ -30,6 +30,7 @@ export class UpdateRoleDescriptionCommand extends $Command< UpdateRoleDescriptionCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateRoleDescriptionCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateSAMLProviderCommand.ts b/clients/client-iam/commands/UpdateSAMLProviderCommand.ts index 47bc17e2ef2c6..b5727d091482a 100644 --- a/clients/client-iam/commands/UpdateSAMLProviderCommand.ts +++ b/clients/client-iam/commands/UpdateSAMLProviderCommand.ts @@ -31,6 +31,7 @@ export class UpdateSAMLProviderCommand extends $Command< UpdateSAMLProviderCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateSAMLProviderCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateSSHPublicKeyCommand.ts b/clients/client-iam/commands/UpdateSSHPublicKeyCommand.ts index 7cb8233ee445b..b52e36dd2e062 100644 --- a/clients/client-iam/commands/UpdateSSHPublicKeyCommand.ts +++ b/clients/client-iam/commands/UpdateSSHPublicKeyCommand.ts @@ -34,6 +34,7 @@ export class UpdateSSHPublicKeyCommand extends $Command< UpdateSSHPublicKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateSSHPublicKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateServerCertificateCommand.ts b/clients/client-iam/commands/UpdateServerCertificateCommand.ts index bf796c97f8a1f..a6a2d7efadfb2 100644 --- a/clients/client-iam/commands/UpdateServerCertificateCommand.ts +++ b/clients/client-iam/commands/UpdateServerCertificateCommand.ts @@ -48,6 +48,7 @@ export class UpdateServerCertificateCommand extends $Command< UpdateServerCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class UpdateServerCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateServiceSpecificCredentialCommand.ts b/clients/client-iam/commands/UpdateServiceSpecificCredentialCommand.ts index 95188e70f15fe..3e9f678730866 100644 --- a/clients/client-iam/commands/UpdateServiceSpecificCredentialCommand.ts +++ b/clients/client-iam/commands/UpdateServiceSpecificCredentialCommand.ts @@ -31,6 +31,7 @@ export class UpdateServiceSpecificCredentialCommand extends $Command< UpdateServiceSpecificCredentialCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateServiceSpecificCredentialCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateSigningCertificateCommand.ts b/clients/client-iam/commands/UpdateSigningCertificateCommand.ts index 5e0dea14b05d9..d8a7511400a81 100644 --- a/clients/client-iam/commands/UpdateSigningCertificateCommand.ts +++ b/clients/client-iam/commands/UpdateSigningCertificateCommand.ts @@ -35,6 +35,7 @@ export class UpdateSigningCertificateCommand extends $Command< UpdateSigningCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateSigningCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UpdateUserCommand.ts b/clients/client-iam/commands/UpdateUserCommand.ts index ff25e0c6c0d30..df2da9e2b9bd2 100644 --- a/clients/client-iam/commands/UpdateUserCommand.ts +++ b/clients/client-iam/commands/UpdateUserCommand.ts @@ -38,6 +38,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateUserCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UploadSSHPublicKeyCommand.ts b/clients/client-iam/commands/UploadSSHPublicKeyCommand.ts index c3f82b01633be..cf2bb90a07949 100644 --- a/clients/client-iam/commands/UploadSSHPublicKeyCommand.ts +++ b/clients/client-iam/commands/UploadSSHPublicKeyCommand.ts @@ -32,6 +32,7 @@ export class UploadSSHPublicKeyCommand extends $Command< UploadSSHPublicKeyCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UploadSSHPublicKeyCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UploadServerCertificateCommand.ts b/clients/client-iam/commands/UploadServerCertificateCommand.ts index d9f7beaaf3e1c..981ff309edb3f 100644 --- a/clients/client-iam/commands/UploadServerCertificateCommand.ts +++ b/clients/client-iam/commands/UploadServerCertificateCommand.ts @@ -51,6 +51,7 @@ export class UploadServerCertificateCommand extends $Command< UploadServerCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class UploadServerCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iam/commands/UploadSigningCertificateCommand.ts b/clients/client-iam/commands/UploadSigningCertificateCommand.ts index 9c14c37dce909..a506dd3898018 100644 --- a/clients/client-iam/commands/UploadSigningCertificateCommand.ts +++ b/clients/client-iam/commands/UploadSigningCertificateCommand.ts @@ -44,6 +44,7 @@ export class UploadSigningCertificateCommand extends $Command< UploadSigningCertificateCommandOutput, IAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class UploadSigningCertificateCommand extends $Command< configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-identitystore/commands/DescribeGroupCommand.ts b/clients/client-identitystore/commands/DescribeGroupCommand.ts index c41c64e82c041..abd6072498134 100644 --- a/clients/client-identitystore/commands/DescribeGroupCommand.ts +++ b/clients/client-identitystore/commands/DescribeGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeGroupCommand extends $Command< DescribeGroupCommandOutput, IdentitystoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGroupCommand extends $Command< configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-identitystore/commands/DescribeUserCommand.ts b/clients/client-identitystore/commands/DescribeUserCommand.ts index 1bec592d616dd..0d62f1d8c78e5 100644 --- a/clients/client-identitystore/commands/DescribeUserCommand.ts +++ b/clients/client-identitystore/commands/DescribeUserCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, IdentitystoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserCommand extends $Command< configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-identitystore/commands/ListGroupsCommand.ts b/clients/client-identitystore/commands/ListGroupsCommand.ts index 30dd793933ede..dd5066e0b97db 100644 --- a/clients/client-identitystore/commands/ListGroupsCommand.ts +++ b/clients/client-identitystore/commands/ListGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, IdentitystoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupsCommand extends $Command< configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-identitystore/commands/ListUsersCommand.ts b/clients/client-identitystore/commands/ListUsersCommand.ts index daddb9681cb04..5539a186bbb37 100644 --- a/clients/client-identitystore/commands/ListUsersCommand.ts +++ b/clients/client-identitystore/commands/ListUsersCommand.ts @@ -25,6 +25,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, IdentitystoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListUsersCommand extends $Command< configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CancelImageCreationCommand.ts b/clients/client-imagebuilder/commands/CancelImageCreationCommand.ts index 294f396d0a853..310024d1be4fa 100644 --- a/clients/client-imagebuilder/commands/CancelImageCreationCommand.ts +++ b/clients/client-imagebuilder/commands/CancelImageCreationCommand.ts @@ -28,6 +28,7 @@ export class CancelImageCreationCommand extends $Command< CancelImageCreationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelImageCreationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateComponentCommand.ts b/clients/client-imagebuilder/commands/CreateComponentCommand.ts index beda85e2fddd5..bb62514eeb83c 100644 --- a/clients/client-imagebuilder/commands/CreateComponentCommand.ts +++ b/clients/client-imagebuilder/commands/CreateComponentCommand.ts @@ -28,6 +28,7 @@ export class CreateComponentCommand extends $Command< CreateComponentCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateComponentCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateDistributionConfigurationCommand.ts b/clients/client-imagebuilder/commands/CreateDistributionConfigurationCommand.ts index 56dbc0b9f74ab..55ae157fcc94f 100644 --- a/clients/client-imagebuilder/commands/CreateDistributionConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/CreateDistributionConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreateDistributionConfigurationCommand extends $Command< CreateDistributionConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDistributionConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateImageCommand.ts b/clients/client-imagebuilder/commands/CreateImageCommand.ts index 03e211eca8642..2ed4dfc1610a8 100644 --- a/clients/client-imagebuilder/commands/CreateImageCommand.ts +++ b/clients/client-imagebuilder/commands/CreateImageCommand.ts @@ -28,6 +28,7 @@ export class CreateImageCommand extends $Command< CreateImageCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImageCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateImagePipelineCommand.ts b/clients/client-imagebuilder/commands/CreateImagePipelineCommand.ts index a12d746e670b1..144beeb149559 100644 --- a/clients/client-imagebuilder/commands/CreateImagePipelineCommand.ts +++ b/clients/client-imagebuilder/commands/CreateImagePipelineCommand.ts @@ -28,6 +28,7 @@ export class CreateImagePipelineCommand extends $Command< CreateImagePipelineCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImagePipelineCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateImageRecipeCommand.ts b/clients/client-imagebuilder/commands/CreateImageRecipeCommand.ts index 26b6f8e8b835c..d10b0415f1cde 100644 --- a/clients/client-imagebuilder/commands/CreateImageRecipeCommand.ts +++ b/clients/client-imagebuilder/commands/CreateImageRecipeCommand.ts @@ -28,6 +28,7 @@ export class CreateImageRecipeCommand extends $Command< CreateImageRecipeCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImageRecipeCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/CreateInfrastructureConfigurationCommand.ts b/clients/client-imagebuilder/commands/CreateInfrastructureConfigurationCommand.ts index 2605e9dcb49e5..f4f1a72f08d53 100644 --- a/clients/client-imagebuilder/commands/CreateInfrastructureConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/CreateInfrastructureConfigurationCommand.ts @@ -32,6 +32,7 @@ export class CreateInfrastructureConfigurationCommand extends $Command< CreateInfrastructureConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateInfrastructureConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteComponentCommand.ts b/clients/client-imagebuilder/commands/DeleteComponentCommand.ts index ba0593be9fd1a..d9dc699c1b00a 100644 --- a/clients/client-imagebuilder/commands/DeleteComponentCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteComponentCommand.ts @@ -28,6 +28,7 @@ export class DeleteComponentCommand extends $Command< DeleteComponentCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteComponentCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteDistributionConfigurationCommand.ts b/clients/client-imagebuilder/commands/DeleteDistributionConfigurationCommand.ts index d887fd72b1c1b..1ada7e54b542d 100644 --- a/clients/client-imagebuilder/commands/DeleteDistributionConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteDistributionConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteDistributionConfigurationCommand extends $Command< DeleteDistributionConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDistributionConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteImageCommand.ts b/clients/client-imagebuilder/commands/DeleteImageCommand.ts index 972014a60d2e1..ee4e189f05909 100644 --- a/clients/client-imagebuilder/commands/DeleteImageCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteImageCommand.ts @@ -28,6 +28,7 @@ export class DeleteImageCommand extends $Command< DeleteImageCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteImageCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteImagePipelineCommand.ts b/clients/client-imagebuilder/commands/DeleteImagePipelineCommand.ts index 0a12d7d6a917f..039866d330cb9 100644 --- a/clients/client-imagebuilder/commands/DeleteImagePipelineCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteImagePipelineCommand.ts @@ -28,6 +28,7 @@ export class DeleteImagePipelineCommand extends $Command< DeleteImagePipelineCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteImagePipelineCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteImageRecipeCommand.ts b/clients/client-imagebuilder/commands/DeleteImageRecipeCommand.ts index 45fe739cda18a..0af72583e1b91 100644 --- a/clients/client-imagebuilder/commands/DeleteImageRecipeCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteImageRecipeCommand.ts @@ -28,6 +28,7 @@ export class DeleteImageRecipeCommand extends $Command< DeleteImageRecipeCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteImageRecipeCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/DeleteInfrastructureConfigurationCommand.ts b/clients/client-imagebuilder/commands/DeleteInfrastructureConfigurationCommand.ts index f4252faf64075..7bde23d3922f0 100644 --- a/clients/client-imagebuilder/commands/DeleteInfrastructureConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/DeleteInfrastructureConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DeleteInfrastructureConfigurationCommand extends $Command< DeleteInfrastructureConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteInfrastructureConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetComponentCommand.ts b/clients/client-imagebuilder/commands/GetComponentCommand.ts index df5a6d3550850..65636a17cd776 100644 --- a/clients/client-imagebuilder/commands/GetComponentCommand.ts +++ b/clients/client-imagebuilder/commands/GetComponentCommand.ts @@ -28,6 +28,7 @@ export class GetComponentCommand extends $Command< GetComponentCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetComponentCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetComponentPolicyCommand.ts b/clients/client-imagebuilder/commands/GetComponentPolicyCommand.ts index 4d793cc3ccf0a..5e9b032993da6 100644 --- a/clients/client-imagebuilder/commands/GetComponentPolicyCommand.ts +++ b/clients/client-imagebuilder/commands/GetComponentPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetComponentPolicyCommand extends $Command< GetComponentPolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetComponentPolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetDistributionConfigurationCommand.ts b/clients/client-imagebuilder/commands/GetDistributionConfigurationCommand.ts index 6852492f9ab4b..0a7cd2a0afa19 100644 --- a/clients/client-imagebuilder/commands/GetDistributionConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/GetDistributionConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetDistributionConfigurationCommand extends $Command< GetDistributionConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDistributionConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetImageCommand.ts b/clients/client-imagebuilder/commands/GetImageCommand.ts index cb9837fdc9787..7f2c438b89d5d 100644 --- a/clients/client-imagebuilder/commands/GetImageCommand.ts +++ b/clients/client-imagebuilder/commands/GetImageCommand.ts @@ -28,6 +28,7 @@ export class GetImageCommand extends $Command< GetImageCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImageCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetImagePipelineCommand.ts b/clients/client-imagebuilder/commands/GetImagePipelineCommand.ts index bbe8f89168668..7f0b77d14f8c1 100644 --- a/clients/client-imagebuilder/commands/GetImagePipelineCommand.ts +++ b/clients/client-imagebuilder/commands/GetImagePipelineCommand.ts @@ -28,6 +28,7 @@ export class GetImagePipelineCommand extends $Command< GetImagePipelineCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImagePipelineCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetImagePolicyCommand.ts b/clients/client-imagebuilder/commands/GetImagePolicyCommand.ts index a1f702eff05fc..2a3316a85ac03 100644 --- a/clients/client-imagebuilder/commands/GetImagePolicyCommand.ts +++ b/clients/client-imagebuilder/commands/GetImagePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetImagePolicyCommand extends $Command< GetImagePolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImagePolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetImageRecipeCommand.ts b/clients/client-imagebuilder/commands/GetImageRecipeCommand.ts index 47a349a5343b3..43232cfdb4eb8 100644 --- a/clients/client-imagebuilder/commands/GetImageRecipeCommand.ts +++ b/clients/client-imagebuilder/commands/GetImageRecipeCommand.ts @@ -28,6 +28,7 @@ export class GetImageRecipeCommand extends $Command< GetImageRecipeCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImageRecipeCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetImageRecipePolicyCommand.ts b/clients/client-imagebuilder/commands/GetImageRecipePolicyCommand.ts index 37ff3aaacf5cb..b502340296064 100644 --- a/clients/client-imagebuilder/commands/GetImageRecipePolicyCommand.ts +++ b/clients/client-imagebuilder/commands/GetImageRecipePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetImageRecipePolicyCommand extends $Command< GetImageRecipePolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImageRecipePolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/GetInfrastructureConfigurationCommand.ts b/clients/client-imagebuilder/commands/GetInfrastructureConfigurationCommand.ts index b1018c961728a..fcb3a74b06b60 100644 --- a/clients/client-imagebuilder/commands/GetInfrastructureConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/GetInfrastructureConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetInfrastructureConfigurationCommand extends $Command< GetInfrastructureConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInfrastructureConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ImportComponentCommand.ts b/clients/client-imagebuilder/commands/ImportComponentCommand.ts index cbc48e489ab26..b08f9e7fa2662 100644 --- a/clients/client-imagebuilder/commands/ImportComponentCommand.ts +++ b/clients/client-imagebuilder/commands/ImportComponentCommand.ts @@ -28,6 +28,7 @@ export class ImportComponentCommand extends $Command< ImportComponentCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportComponentCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListComponentBuildVersionsCommand.ts b/clients/client-imagebuilder/commands/ListComponentBuildVersionsCommand.ts index 6f2c2d5258878..38bee4b71b634 100644 --- a/clients/client-imagebuilder/commands/ListComponentBuildVersionsCommand.ts +++ b/clients/client-imagebuilder/commands/ListComponentBuildVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListComponentBuildVersionsCommand extends $Command< ListComponentBuildVersionsCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListComponentBuildVersionsCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListComponentsCommand.ts b/clients/client-imagebuilder/commands/ListComponentsCommand.ts index bf6b0026447e1..596d4f26fe67a 100644 --- a/clients/client-imagebuilder/commands/ListComponentsCommand.ts +++ b/clients/client-imagebuilder/commands/ListComponentsCommand.ts @@ -28,6 +28,7 @@ export class ListComponentsCommand extends $Command< ListComponentsCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListComponentsCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListDistributionConfigurationsCommand.ts b/clients/client-imagebuilder/commands/ListDistributionConfigurationsCommand.ts index 8f8989a850848..2b7d4b194fed0 100644 --- a/clients/client-imagebuilder/commands/ListDistributionConfigurationsCommand.ts +++ b/clients/client-imagebuilder/commands/ListDistributionConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListDistributionConfigurationsCommand extends $Command< ListDistributionConfigurationsCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDistributionConfigurationsCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListImageBuildVersionsCommand.ts b/clients/client-imagebuilder/commands/ListImageBuildVersionsCommand.ts index 1347defc1adbe..50aa8885e39a8 100644 --- a/clients/client-imagebuilder/commands/ListImageBuildVersionsCommand.ts +++ b/clients/client-imagebuilder/commands/ListImageBuildVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListImageBuildVersionsCommand extends $Command< ListImageBuildVersionsCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImageBuildVersionsCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListImagePipelineImagesCommand.ts b/clients/client-imagebuilder/commands/ListImagePipelineImagesCommand.ts index ef5809b72b7bb..fb4752b555a8c 100644 --- a/clients/client-imagebuilder/commands/ListImagePipelineImagesCommand.ts +++ b/clients/client-imagebuilder/commands/ListImagePipelineImagesCommand.ts @@ -28,6 +28,7 @@ export class ListImagePipelineImagesCommand extends $Command< ListImagePipelineImagesCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImagePipelineImagesCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListImagePipelinesCommand.ts b/clients/client-imagebuilder/commands/ListImagePipelinesCommand.ts index c7830b518ea87..92ef5c3b3dd02 100644 --- a/clients/client-imagebuilder/commands/ListImagePipelinesCommand.ts +++ b/clients/client-imagebuilder/commands/ListImagePipelinesCommand.ts @@ -28,6 +28,7 @@ export class ListImagePipelinesCommand extends $Command< ListImagePipelinesCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImagePipelinesCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListImageRecipesCommand.ts b/clients/client-imagebuilder/commands/ListImageRecipesCommand.ts index bee6ad8b97168..3823ee73bb71d 100644 --- a/clients/client-imagebuilder/commands/ListImageRecipesCommand.ts +++ b/clients/client-imagebuilder/commands/ListImageRecipesCommand.ts @@ -28,6 +28,7 @@ export class ListImageRecipesCommand extends $Command< ListImageRecipesCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImageRecipesCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListImagesCommand.ts b/clients/client-imagebuilder/commands/ListImagesCommand.ts index 5237b23c70b88..92fd5d9a984f8 100644 --- a/clients/client-imagebuilder/commands/ListImagesCommand.ts +++ b/clients/client-imagebuilder/commands/ListImagesCommand.ts @@ -28,6 +28,7 @@ export class ListImagesCommand extends $Command< ListImagesCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImagesCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListInfrastructureConfigurationsCommand.ts b/clients/client-imagebuilder/commands/ListInfrastructureConfigurationsCommand.ts index ab1f69af4fc97..204af24ae0f05 100644 --- a/clients/client-imagebuilder/commands/ListInfrastructureConfigurationsCommand.ts +++ b/clients/client-imagebuilder/commands/ListInfrastructureConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListInfrastructureConfigurationsCommand extends $Command< ListInfrastructureConfigurationsCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInfrastructureConfigurationsCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/ListTagsForResourceCommand.ts b/clients/client-imagebuilder/commands/ListTagsForResourceCommand.ts index 83a227274644b..6c2c7406aa994 100644 --- a/clients/client-imagebuilder/commands/ListTagsForResourceCommand.ts +++ b/clients/client-imagebuilder/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/PutComponentPolicyCommand.ts b/clients/client-imagebuilder/commands/PutComponentPolicyCommand.ts index 351900982347c..2fa543309cc09 100644 --- a/clients/client-imagebuilder/commands/PutComponentPolicyCommand.ts +++ b/clients/client-imagebuilder/commands/PutComponentPolicyCommand.ts @@ -28,6 +28,7 @@ export class PutComponentPolicyCommand extends $Command< PutComponentPolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutComponentPolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/PutImagePolicyCommand.ts b/clients/client-imagebuilder/commands/PutImagePolicyCommand.ts index ae2445d2977cc..e63ac1d16ac29 100644 --- a/clients/client-imagebuilder/commands/PutImagePolicyCommand.ts +++ b/clients/client-imagebuilder/commands/PutImagePolicyCommand.ts @@ -28,6 +28,7 @@ export class PutImagePolicyCommand extends $Command< PutImagePolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutImagePolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/PutImageRecipePolicyCommand.ts b/clients/client-imagebuilder/commands/PutImageRecipePolicyCommand.ts index d180086902fa5..3874602c69862 100644 --- a/clients/client-imagebuilder/commands/PutImageRecipePolicyCommand.ts +++ b/clients/client-imagebuilder/commands/PutImageRecipePolicyCommand.ts @@ -28,6 +28,7 @@ export class PutImageRecipePolicyCommand extends $Command< PutImageRecipePolicyCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutImageRecipePolicyCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/StartImagePipelineExecutionCommand.ts b/clients/client-imagebuilder/commands/StartImagePipelineExecutionCommand.ts index 2b25d22db1a78..7cff8af39b6ac 100644 --- a/clients/client-imagebuilder/commands/StartImagePipelineExecutionCommand.ts +++ b/clients/client-imagebuilder/commands/StartImagePipelineExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartImagePipelineExecutionCommand extends $Command< StartImagePipelineExecutionCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartImagePipelineExecutionCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/TagResourceCommand.ts b/clients/client-imagebuilder/commands/TagResourceCommand.ts index 3200cab22be0d..133e009f0fcfa 100644 --- a/clients/client-imagebuilder/commands/TagResourceCommand.ts +++ b/clients/client-imagebuilder/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/UntagResourceCommand.ts b/clients/client-imagebuilder/commands/UntagResourceCommand.ts index 444e9dcd8c1d9..01575ba25a8ff 100644 --- a/clients/client-imagebuilder/commands/UntagResourceCommand.ts +++ b/clients/client-imagebuilder/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/UpdateDistributionConfigurationCommand.ts b/clients/client-imagebuilder/commands/UpdateDistributionConfigurationCommand.ts index abb37b9c14610..25000830b7561 100644 --- a/clients/client-imagebuilder/commands/UpdateDistributionConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/UpdateDistributionConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateDistributionConfigurationCommand extends $Command< UpdateDistributionConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDistributionConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/UpdateImagePipelineCommand.ts b/clients/client-imagebuilder/commands/UpdateImagePipelineCommand.ts index bc5145f9e2a26..757854c24c4c7 100644 --- a/clients/client-imagebuilder/commands/UpdateImagePipelineCommand.ts +++ b/clients/client-imagebuilder/commands/UpdateImagePipelineCommand.ts @@ -28,6 +28,7 @@ export class UpdateImagePipelineCommand extends $Command< UpdateImagePipelineCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateImagePipelineCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-imagebuilder/commands/UpdateInfrastructureConfigurationCommand.ts b/clients/client-imagebuilder/commands/UpdateInfrastructureConfigurationCommand.ts index d6958fdd59804..2ca529a521b1a 100644 --- a/clients/client-imagebuilder/commands/UpdateInfrastructureConfigurationCommand.ts +++ b/clients/client-imagebuilder/commands/UpdateInfrastructureConfigurationCommand.ts @@ -32,6 +32,7 @@ export class UpdateInfrastructureConfigurationCommand extends $Command< UpdateInfrastructureConfigurationCommandOutput, ImagebuilderClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateInfrastructureConfigurationCommand extends $Command< configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/AddAttributesToFindingsCommand.ts b/clients/client-inspector/commands/AddAttributesToFindingsCommand.ts index 93e71c687f213..3254080414d9d 100644 --- a/clients/client-inspector/commands/AddAttributesToFindingsCommand.ts +++ b/clients/client-inspector/commands/AddAttributesToFindingsCommand.ts @@ -29,6 +29,7 @@ export class AddAttributesToFindingsCommand extends $Command< AddAttributesToFindingsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AddAttributesToFindingsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/CreateAssessmentTargetCommand.ts b/clients/client-inspector/commands/CreateAssessmentTargetCommand.ts index 207caca53c4e5..99981f2c1e461 100644 --- a/clients/client-inspector/commands/CreateAssessmentTargetCommand.ts +++ b/clients/client-inspector/commands/CreateAssessmentTargetCommand.ts @@ -35,6 +35,7 @@ export class CreateAssessmentTargetCommand extends $Command< CreateAssessmentTargetCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateAssessmentTargetCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/CreateAssessmentTemplateCommand.ts b/clients/client-inspector/commands/CreateAssessmentTemplateCommand.ts index 9d9714e653491..98ae5515e17dd 100644 --- a/clients/client-inspector/commands/CreateAssessmentTemplateCommand.ts +++ b/clients/client-inspector/commands/CreateAssessmentTemplateCommand.ts @@ -31,6 +31,7 @@ export class CreateAssessmentTemplateCommand extends $Command< CreateAssessmentTemplateCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateAssessmentTemplateCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/CreateExclusionsPreviewCommand.ts b/clients/client-inspector/commands/CreateExclusionsPreviewCommand.ts index d2cc64e7f0091..2cc6197d2f910 100644 --- a/clients/client-inspector/commands/CreateExclusionsPreviewCommand.ts +++ b/clients/client-inspector/commands/CreateExclusionsPreviewCommand.ts @@ -30,6 +30,7 @@ export class CreateExclusionsPreviewCommand extends $Command< CreateExclusionsPreviewCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateExclusionsPreviewCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/CreateResourceGroupCommand.ts b/clients/client-inspector/commands/CreateResourceGroupCommand.ts index 2cd80fdab1c2d..a483c2f3abbe6 100644 --- a/clients/client-inspector/commands/CreateResourceGroupCommand.ts +++ b/clients/client-inspector/commands/CreateResourceGroupCommand.ts @@ -31,6 +31,7 @@ export class CreateResourceGroupCommand extends $Command< CreateResourceGroupCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateResourceGroupCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DeleteAssessmentRunCommand.ts b/clients/client-inspector/commands/DeleteAssessmentRunCommand.ts index 95ee95774bc4e..b8773770938cc 100644 --- a/clients/client-inspector/commands/DeleteAssessmentRunCommand.ts +++ b/clients/client-inspector/commands/DeleteAssessmentRunCommand.ts @@ -29,6 +29,7 @@ export class DeleteAssessmentRunCommand extends $Command< DeleteAssessmentRunCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAssessmentRunCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DeleteAssessmentTargetCommand.ts b/clients/client-inspector/commands/DeleteAssessmentTargetCommand.ts index f5b89d7d326ad..0ca3d37cfbef2 100644 --- a/clients/client-inspector/commands/DeleteAssessmentTargetCommand.ts +++ b/clients/client-inspector/commands/DeleteAssessmentTargetCommand.ts @@ -29,6 +29,7 @@ export class DeleteAssessmentTargetCommand extends $Command< DeleteAssessmentTargetCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAssessmentTargetCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DeleteAssessmentTemplateCommand.ts b/clients/client-inspector/commands/DeleteAssessmentTemplateCommand.ts index 221aab5bebe9a..1d53b50e93e03 100644 --- a/clients/client-inspector/commands/DeleteAssessmentTemplateCommand.ts +++ b/clients/client-inspector/commands/DeleteAssessmentTemplateCommand.ts @@ -29,6 +29,7 @@ export class DeleteAssessmentTemplateCommand extends $Command< DeleteAssessmentTemplateCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAssessmentTemplateCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeAssessmentRunsCommand.ts b/clients/client-inspector/commands/DescribeAssessmentRunsCommand.ts index ab9a7285b8452..854b422a5de71 100644 --- a/clients/client-inspector/commands/DescribeAssessmentRunsCommand.ts +++ b/clients/client-inspector/commands/DescribeAssessmentRunsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAssessmentRunsCommand extends $Command< DescribeAssessmentRunsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAssessmentRunsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeAssessmentTargetsCommand.ts b/clients/client-inspector/commands/DescribeAssessmentTargetsCommand.ts index a1ed957515e64..7d6391bec0932 100644 --- a/clients/client-inspector/commands/DescribeAssessmentTargetsCommand.ts +++ b/clients/client-inspector/commands/DescribeAssessmentTargetsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAssessmentTargetsCommand extends $Command< DescribeAssessmentTargetsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAssessmentTargetsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeAssessmentTemplatesCommand.ts b/clients/client-inspector/commands/DescribeAssessmentTemplatesCommand.ts index 7fffbdf7973c9..42c48f3fe2289 100644 --- a/clients/client-inspector/commands/DescribeAssessmentTemplatesCommand.ts +++ b/clients/client-inspector/commands/DescribeAssessmentTemplatesCommand.ts @@ -29,6 +29,7 @@ export class DescribeAssessmentTemplatesCommand extends $Command< DescribeAssessmentTemplatesCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAssessmentTemplatesCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeCrossAccountAccessRoleCommand.ts b/clients/client-inspector/commands/DescribeCrossAccountAccessRoleCommand.ts index 83e7e2a1947c3..d05edb9e17eaa 100644 --- a/clients/client-inspector/commands/DescribeCrossAccountAccessRoleCommand.ts +++ b/clients/client-inspector/commands/DescribeCrossAccountAccessRoleCommand.ts @@ -29,6 +29,7 @@ export class DescribeCrossAccountAccessRoleCommand extends $Command< DescribeCrossAccountAccessRoleCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeCrossAccountAccessRoleCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeExclusionsCommand.ts b/clients/client-inspector/commands/DescribeExclusionsCommand.ts index 619c3693b34c7..33a370e3f0346 100644 --- a/clients/client-inspector/commands/DescribeExclusionsCommand.ts +++ b/clients/client-inspector/commands/DescribeExclusionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeExclusionsCommand extends $Command< DescribeExclusionsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExclusionsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeFindingsCommand.ts b/clients/client-inspector/commands/DescribeFindingsCommand.ts index 51f997480a9d2..29a097f4974d4 100644 --- a/clients/client-inspector/commands/DescribeFindingsCommand.ts +++ b/clients/client-inspector/commands/DescribeFindingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeFindingsCommand extends $Command< DescribeFindingsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFindingsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeResourceGroupsCommand.ts b/clients/client-inspector/commands/DescribeResourceGroupsCommand.ts index c8dba61ea83c6..3c66253f797be 100644 --- a/clients/client-inspector/commands/DescribeResourceGroupsCommand.ts +++ b/clients/client-inspector/commands/DescribeResourceGroupsCommand.ts @@ -29,6 +29,7 @@ export class DescribeResourceGroupsCommand extends $Command< DescribeResourceGroupsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeResourceGroupsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/DescribeRulesPackagesCommand.ts b/clients/client-inspector/commands/DescribeRulesPackagesCommand.ts index 9cd3efc884054..d489be9097bda 100644 --- a/clients/client-inspector/commands/DescribeRulesPackagesCommand.ts +++ b/clients/client-inspector/commands/DescribeRulesPackagesCommand.ts @@ -29,6 +29,7 @@ export class DescribeRulesPackagesCommand extends $Command< DescribeRulesPackagesCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeRulesPackagesCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/GetAssessmentReportCommand.ts b/clients/client-inspector/commands/GetAssessmentReportCommand.ts index c2b857ec6937f..eb73974b4e8f1 100644 --- a/clients/client-inspector/commands/GetAssessmentReportCommand.ts +++ b/clients/client-inspector/commands/GetAssessmentReportCommand.ts @@ -29,6 +29,7 @@ export class GetAssessmentReportCommand extends $Command< GetAssessmentReportCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAssessmentReportCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/GetExclusionsPreviewCommand.ts b/clients/client-inspector/commands/GetExclusionsPreviewCommand.ts index c1741a506b383..ccaffb296f711 100644 --- a/clients/client-inspector/commands/GetExclusionsPreviewCommand.ts +++ b/clients/client-inspector/commands/GetExclusionsPreviewCommand.ts @@ -30,6 +30,7 @@ export class GetExclusionsPreviewCommand extends $Command< GetExclusionsPreviewCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetExclusionsPreviewCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/GetTelemetryMetadataCommand.ts b/clients/client-inspector/commands/GetTelemetryMetadataCommand.ts index ee35bb036d944..16d53e109f185 100644 --- a/clients/client-inspector/commands/GetTelemetryMetadataCommand.ts +++ b/clients/client-inspector/commands/GetTelemetryMetadataCommand.ts @@ -29,6 +29,7 @@ export class GetTelemetryMetadataCommand extends $Command< GetTelemetryMetadataCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTelemetryMetadataCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListAssessmentRunAgentsCommand.ts b/clients/client-inspector/commands/ListAssessmentRunAgentsCommand.ts index 43b3249153c0a..5dc990c271e72 100644 --- a/clients/client-inspector/commands/ListAssessmentRunAgentsCommand.ts +++ b/clients/client-inspector/commands/ListAssessmentRunAgentsCommand.ts @@ -29,6 +29,7 @@ export class ListAssessmentRunAgentsCommand extends $Command< ListAssessmentRunAgentsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAssessmentRunAgentsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListAssessmentRunsCommand.ts b/clients/client-inspector/commands/ListAssessmentRunsCommand.ts index e73cb0405763a..b22b08f4d3bdd 100644 --- a/clients/client-inspector/commands/ListAssessmentRunsCommand.ts +++ b/clients/client-inspector/commands/ListAssessmentRunsCommand.ts @@ -29,6 +29,7 @@ export class ListAssessmentRunsCommand extends $Command< ListAssessmentRunsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAssessmentRunsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListAssessmentTargetsCommand.ts b/clients/client-inspector/commands/ListAssessmentTargetsCommand.ts index 06c13327d47df..fbf372a776edb 100644 --- a/clients/client-inspector/commands/ListAssessmentTargetsCommand.ts +++ b/clients/client-inspector/commands/ListAssessmentTargetsCommand.ts @@ -30,6 +30,7 @@ export class ListAssessmentTargetsCommand extends $Command< ListAssessmentTargetsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssessmentTargetsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListAssessmentTemplatesCommand.ts b/clients/client-inspector/commands/ListAssessmentTemplatesCommand.ts index 291db74d6e9bf..b406b9459d699 100644 --- a/clients/client-inspector/commands/ListAssessmentTemplatesCommand.ts +++ b/clients/client-inspector/commands/ListAssessmentTemplatesCommand.ts @@ -29,6 +29,7 @@ export class ListAssessmentTemplatesCommand extends $Command< ListAssessmentTemplatesCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAssessmentTemplatesCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListEventSubscriptionsCommand.ts b/clients/client-inspector/commands/ListEventSubscriptionsCommand.ts index 1b7275250da3f..3039ab8022d53 100644 --- a/clients/client-inspector/commands/ListEventSubscriptionsCommand.ts +++ b/clients/client-inspector/commands/ListEventSubscriptionsCommand.ts @@ -29,6 +29,7 @@ export class ListEventSubscriptionsCommand extends $Command< ListEventSubscriptionsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventSubscriptionsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListExclusionsCommand.ts b/clients/client-inspector/commands/ListExclusionsCommand.ts index 8b88594524dbe..adfe99458d5f4 100644 --- a/clients/client-inspector/commands/ListExclusionsCommand.ts +++ b/clients/client-inspector/commands/ListExclusionsCommand.ts @@ -28,6 +28,7 @@ export class ListExclusionsCommand extends $Command< ListExclusionsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListExclusionsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListFindingsCommand.ts b/clients/client-inspector/commands/ListFindingsCommand.ts index f26de9fd1dd70..912baefdb0099 100644 --- a/clients/client-inspector/commands/ListFindingsCommand.ts +++ b/clients/client-inspector/commands/ListFindingsCommand.ts @@ -29,6 +29,7 @@ export class ListFindingsCommand extends $Command< ListFindingsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFindingsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListRulesPackagesCommand.ts b/clients/client-inspector/commands/ListRulesPackagesCommand.ts index 2394ca2d3a82d..8cb4442719b77 100644 --- a/clients/client-inspector/commands/ListRulesPackagesCommand.ts +++ b/clients/client-inspector/commands/ListRulesPackagesCommand.ts @@ -28,6 +28,7 @@ export class ListRulesPackagesCommand extends $Command< ListRulesPackagesCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRulesPackagesCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/ListTagsForResourceCommand.ts b/clients/client-inspector/commands/ListTagsForResourceCommand.ts index 0e2d3b74f023b..796852b9fb720 100644 --- a/clients/client-inspector/commands/ListTagsForResourceCommand.ts +++ b/clients/client-inspector/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/PreviewAgentsCommand.ts b/clients/client-inspector/commands/PreviewAgentsCommand.ts index 25f93b1658735..b90638764fc1f 100644 --- a/clients/client-inspector/commands/PreviewAgentsCommand.ts +++ b/clients/client-inspector/commands/PreviewAgentsCommand.ts @@ -29,6 +29,7 @@ export class PreviewAgentsCommand extends $Command< PreviewAgentsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PreviewAgentsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/RegisterCrossAccountAccessRoleCommand.ts b/clients/client-inspector/commands/RegisterCrossAccountAccessRoleCommand.ts index 28de739ffb6c9..1472ca3f103a6 100644 --- a/clients/client-inspector/commands/RegisterCrossAccountAccessRoleCommand.ts +++ b/clients/client-inspector/commands/RegisterCrossAccountAccessRoleCommand.ts @@ -29,6 +29,7 @@ export class RegisterCrossAccountAccessRoleCommand extends $Command< RegisterCrossAccountAccessRoleCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RegisterCrossAccountAccessRoleCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/RemoveAttributesFromFindingsCommand.ts b/clients/client-inspector/commands/RemoveAttributesFromFindingsCommand.ts index 32ca48e0ccf25..b3323143c48ee 100644 --- a/clients/client-inspector/commands/RemoveAttributesFromFindingsCommand.ts +++ b/clients/client-inspector/commands/RemoveAttributesFromFindingsCommand.ts @@ -29,6 +29,7 @@ export class RemoveAttributesFromFindingsCommand extends $Command< RemoveAttributesFromFindingsCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveAttributesFromFindingsCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/SetTagsForResourceCommand.ts b/clients/client-inspector/commands/SetTagsForResourceCommand.ts index 701c20d47a97f..f87ee196f83af 100644 --- a/clients/client-inspector/commands/SetTagsForResourceCommand.ts +++ b/clients/client-inspector/commands/SetTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class SetTagsForResourceCommand extends $Command< SetTagsForResourceCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SetTagsForResourceCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/StartAssessmentRunCommand.ts b/clients/client-inspector/commands/StartAssessmentRunCommand.ts index 431443336e6c0..efdd60e9c6e83 100644 --- a/clients/client-inspector/commands/StartAssessmentRunCommand.ts +++ b/clients/client-inspector/commands/StartAssessmentRunCommand.ts @@ -30,6 +30,7 @@ export class StartAssessmentRunCommand extends $Command< StartAssessmentRunCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartAssessmentRunCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/StopAssessmentRunCommand.ts b/clients/client-inspector/commands/StopAssessmentRunCommand.ts index 88c060baad64e..4dbe223534d20 100644 --- a/clients/client-inspector/commands/StopAssessmentRunCommand.ts +++ b/clients/client-inspector/commands/StopAssessmentRunCommand.ts @@ -29,6 +29,7 @@ export class StopAssessmentRunCommand extends $Command< StopAssessmentRunCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopAssessmentRunCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/SubscribeToEventCommand.ts b/clients/client-inspector/commands/SubscribeToEventCommand.ts index 87e5673ac0678..e9c4a9a648d88 100644 --- a/clients/client-inspector/commands/SubscribeToEventCommand.ts +++ b/clients/client-inspector/commands/SubscribeToEventCommand.ts @@ -29,6 +29,7 @@ export class SubscribeToEventCommand extends $Command< SubscribeToEventCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SubscribeToEventCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/UnsubscribeFromEventCommand.ts b/clients/client-inspector/commands/UnsubscribeFromEventCommand.ts index 6815d129a30a2..402aae1e13a6b 100644 --- a/clients/client-inspector/commands/UnsubscribeFromEventCommand.ts +++ b/clients/client-inspector/commands/UnsubscribeFromEventCommand.ts @@ -29,6 +29,7 @@ export class UnsubscribeFromEventCommand extends $Command< UnsubscribeFromEventCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UnsubscribeFromEventCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-inspector/commands/UpdateAssessmentTargetCommand.ts b/clients/client-inspector/commands/UpdateAssessmentTargetCommand.ts index ca14f51fe33b7..a5c8668379e45 100644 --- a/clients/client-inspector/commands/UpdateAssessmentTargetCommand.ts +++ b/clients/client-inspector/commands/UpdateAssessmentTargetCommand.ts @@ -31,6 +31,7 @@ export class UpdateAssessmentTargetCommand extends $Command< UpdateAssessmentTargetCommandOutput, InspectorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateAssessmentTargetCommand extends $Command< configuration: InspectorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/ClaimDevicesByClaimCodeCommand.ts b/clients/client-iot-1click-devices-service/commands/ClaimDevicesByClaimCodeCommand.ts index 495314c33da3f..fee4a4cea02e5 100644 --- a/clients/client-iot-1click-devices-service/commands/ClaimDevicesByClaimCodeCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/ClaimDevicesByClaimCodeCommand.ts @@ -33,6 +33,7 @@ export class ClaimDevicesByClaimCodeCommand extends $Command< ClaimDevicesByClaimCodeCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ClaimDevicesByClaimCodeCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/DescribeDeviceCommand.ts b/clients/client-iot-1click-devices-service/commands/DescribeDeviceCommand.ts index 6dcd131178845..786cc62dde41c 100644 --- a/clients/client-iot-1click-devices-service/commands/DescribeDeviceCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/DescribeDeviceCommand.ts @@ -33,6 +33,7 @@ export class DescribeDeviceCommand extends $Command< DescribeDeviceCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDeviceCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/FinalizeDeviceClaimCommand.ts b/clients/client-iot-1click-devices-service/commands/FinalizeDeviceClaimCommand.ts index eb398602cb5fb..86ed2b452584c 100644 --- a/clients/client-iot-1click-devices-service/commands/FinalizeDeviceClaimCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/FinalizeDeviceClaimCommand.ts @@ -36,6 +36,7 @@ export class FinalizeDeviceClaimCommand extends $Command< FinalizeDeviceClaimCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class FinalizeDeviceClaimCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/GetDeviceMethodsCommand.ts b/clients/client-iot-1click-devices-service/commands/GetDeviceMethodsCommand.ts index 24ce92b9918bb..6152d612ec1db 100644 --- a/clients/client-iot-1click-devices-service/commands/GetDeviceMethodsCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/GetDeviceMethodsCommand.ts @@ -32,6 +32,7 @@ export class GetDeviceMethodsCommand extends $Command< GetDeviceMethodsCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetDeviceMethodsCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/InitiateDeviceClaimCommand.ts b/clients/client-iot-1click-devices-service/commands/InitiateDeviceClaimCommand.ts index 9e09aa4d6d035..24a26f12ceb1f 100644 --- a/clients/client-iot-1click-devices-service/commands/InitiateDeviceClaimCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/InitiateDeviceClaimCommand.ts @@ -36,6 +36,7 @@ export class InitiateDeviceClaimCommand extends $Command< InitiateDeviceClaimCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class InitiateDeviceClaimCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/InvokeDeviceMethodCommand.ts b/clients/client-iot-1click-devices-service/commands/InvokeDeviceMethodCommand.ts index 73dd73a8bacf7..4bcf55e712082 100644 --- a/clients/client-iot-1click-devices-service/commands/InvokeDeviceMethodCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/InvokeDeviceMethodCommand.ts @@ -33,6 +33,7 @@ export class InvokeDeviceMethodCommand extends $Command< InvokeDeviceMethodCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class InvokeDeviceMethodCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/ListDeviceEventsCommand.ts b/clients/client-iot-1click-devices-service/commands/ListDeviceEventsCommand.ts index df9ce84993e4f..7917b6ef9ce9e 100644 --- a/clients/client-iot-1click-devices-service/commands/ListDeviceEventsCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/ListDeviceEventsCommand.ts @@ -33,6 +33,7 @@ export class ListDeviceEventsCommand extends $Command< ListDeviceEventsCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListDeviceEventsCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/ListDevicesCommand.ts b/clients/client-iot-1click-devices-service/commands/ListDevicesCommand.ts index 10631f7b36ba3..f2c7dfd9f768a 100644 --- a/clients/client-iot-1click-devices-service/commands/ListDevicesCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/ListDevicesCommand.ts @@ -32,6 +32,7 @@ export class ListDevicesCommand extends $Command< ListDevicesCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDevicesCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/ListTagsForResourceCommand.ts b/clients/client-iot-1click-devices-service/commands/ListTagsForResourceCommand.ts index 6ee2d8dd8412e..ce2a5573f5fd3 100644 --- a/clients/client-iot-1click-devices-service/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/TagResourceCommand.ts b/clients/client-iot-1click-devices-service/commands/TagResourceCommand.ts index 387bf7205818b..462833c39bde7 100644 --- a/clients/client-iot-1click-devices-service/commands/TagResourceCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/UnclaimDeviceCommand.ts b/clients/client-iot-1click-devices-service/commands/UnclaimDeviceCommand.ts index bc612a49df0c3..adf8ad0dc5cb9 100644 --- a/clients/client-iot-1click-devices-service/commands/UnclaimDeviceCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/UnclaimDeviceCommand.ts @@ -32,6 +32,7 @@ export class UnclaimDeviceCommand extends $Command< UnclaimDeviceCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UnclaimDeviceCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/UntagResourceCommand.ts b/clients/client-iot-1click-devices-service/commands/UntagResourceCommand.ts index 0aa7ade5c1211..11694c909ae4a 100644 --- a/clients/client-iot-1click-devices-service/commands/UntagResourceCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/UntagResourceCommand.ts @@ -33,6 +33,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UntagResourceCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-devices-service/commands/UpdateDeviceStateCommand.ts b/clients/client-iot-1click-devices-service/commands/UpdateDeviceStateCommand.ts index f45f4639e7d93..d6d3d4e1d095d 100644 --- a/clients/client-iot-1click-devices-service/commands/UpdateDeviceStateCommand.ts +++ b/clients/client-iot-1click-devices-service/commands/UpdateDeviceStateCommand.ts @@ -33,6 +33,7 @@ export class UpdateDeviceStateCommand extends $Command< UpdateDeviceStateCommandOutput, IoT1ClickDevicesServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateDeviceStateCommand extends $Command< configuration: IoT1ClickDevicesServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/AssociateDeviceWithPlacementCommand.ts b/clients/client-iot-1click-projects/commands/AssociateDeviceWithPlacementCommand.ts index fb837e1e9b207..8f70295d1d91f 100644 --- a/clients/client-iot-1click-projects/commands/AssociateDeviceWithPlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/AssociateDeviceWithPlacementCommand.ts @@ -32,6 +32,7 @@ export class AssociateDeviceWithPlacementCommand extends $Command< AssociateDeviceWithPlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateDeviceWithPlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/CreatePlacementCommand.ts b/clients/client-iot-1click-projects/commands/CreatePlacementCommand.ts index e05df5ab47307..38cd79be0c3fe 100644 --- a/clients/client-iot-1click-projects/commands/CreatePlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/CreatePlacementCommand.ts @@ -32,6 +32,7 @@ export class CreatePlacementCommand extends $Command< CreatePlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/CreateProjectCommand.ts b/clients/client-iot-1click-projects/commands/CreateProjectCommand.ts index 076d030f1a874..08fc97f125238 100644 --- a/clients/client-iot-1click-projects/commands/CreateProjectCommand.ts +++ b/clients/client-iot-1click-projects/commands/CreateProjectCommand.ts @@ -33,6 +33,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateProjectCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/DeletePlacementCommand.ts b/clients/client-iot-1click-projects/commands/DeletePlacementCommand.ts index 754d7989ae736..95abc6d222023 100644 --- a/clients/client-iot-1click-projects/commands/DeletePlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/DeletePlacementCommand.ts @@ -36,6 +36,7 @@ export class DeletePlacementCommand extends $Command< DeletePlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeletePlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/DeleteProjectCommand.ts b/clients/client-iot-1click-projects/commands/DeleteProjectCommand.ts index 1ac157171552e..cc859f8b97baf 100644 --- a/clients/client-iot-1click-projects/commands/DeleteProjectCommand.ts +++ b/clients/client-iot-1click-projects/commands/DeleteProjectCommand.ts @@ -36,6 +36,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteProjectCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/DescribePlacementCommand.ts b/clients/client-iot-1click-projects/commands/DescribePlacementCommand.ts index 9b1f4884a753b..09ef107d480fa 100644 --- a/clients/client-iot-1click-projects/commands/DescribePlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/DescribePlacementCommand.ts @@ -32,6 +32,7 @@ export class DescribePlacementCommand extends $Command< DescribePlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribePlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/DescribeProjectCommand.ts b/clients/client-iot-1click-projects/commands/DescribeProjectCommand.ts index a828225ab9383..9384dbba165aa 100644 --- a/clients/client-iot-1click-projects/commands/DescribeProjectCommand.ts +++ b/clients/client-iot-1click-projects/commands/DescribeProjectCommand.ts @@ -32,6 +32,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeProjectCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/DisassociateDeviceFromPlacementCommand.ts b/clients/client-iot-1click-projects/commands/DisassociateDeviceFromPlacementCommand.ts index c61c02d4a6465..2988083474f21 100644 --- a/clients/client-iot-1click-projects/commands/DisassociateDeviceFromPlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/DisassociateDeviceFromPlacementCommand.ts @@ -32,6 +32,7 @@ export class DisassociateDeviceFromPlacementCommand extends $Command< DisassociateDeviceFromPlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateDeviceFromPlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/GetDevicesInPlacementCommand.ts b/clients/client-iot-1click-projects/commands/GetDevicesInPlacementCommand.ts index 13a07f6692449..57c044e43fa84 100644 --- a/clients/client-iot-1click-projects/commands/GetDevicesInPlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/GetDevicesInPlacementCommand.ts @@ -32,6 +32,7 @@ export class GetDevicesInPlacementCommand extends $Command< GetDevicesInPlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetDevicesInPlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/ListPlacementsCommand.ts b/clients/client-iot-1click-projects/commands/ListPlacementsCommand.ts index 381443e57684b..a062e57061022 100644 --- a/clients/client-iot-1click-projects/commands/ListPlacementsCommand.ts +++ b/clients/client-iot-1click-projects/commands/ListPlacementsCommand.ts @@ -32,6 +32,7 @@ export class ListPlacementsCommand extends $Command< ListPlacementsCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPlacementsCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/ListProjectsCommand.ts b/clients/client-iot-1click-projects/commands/ListProjectsCommand.ts index e5522ae54a563..71b9af632e648 100644 --- a/clients/client-iot-1click-projects/commands/ListProjectsCommand.ts +++ b/clients/client-iot-1click-projects/commands/ListProjectsCommand.ts @@ -32,6 +32,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListProjectsCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/ListTagsForResourceCommand.ts b/clients/client-iot-1click-projects/commands/ListTagsForResourceCommand.ts index 2cce8d8a7ee1b..2e97be1237d29 100644 --- a/clients/client-iot-1click-projects/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iot-1click-projects/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/TagResourceCommand.ts b/clients/client-iot-1click-projects/commands/TagResourceCommand.ts index 082c3b4c3376b..924b5c84140d0 100644 --- a/clients/client-iot-1click-projects/commands/TagResourceCommand.ts +++ b/clients/client-iot-1click-projects/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/UntagResourceCommand.ts b/clients/client-iot-1click-projects/commands/UntagResourceCommand.ts index 71d1a739f652c..8ec238d9f961c 100644 --- a/clients/client-iot-1click-projects/commands/UntagResourceCommand.ts +++ b/clients/client-iot-1click-projects/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/UpdatePlacementCommand.ts b/clients/client-iot-1click-projects/commands/UpdatePlacementCommand.ts index 7ac6a62e3a630..a6cfbda5897a4 100644 --- a/clients/client-iot-1click-projects/commands/UpdatePlacementCommand.ts +++ b/clients/client-iot-1click-projects/commands/UpdatePlacementCommand.ts @@ -33,6 +33,7 @@ export class UpdatePlacementCommand extends $Command< UpdatePlacementCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdatePlacementCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-1click-projects/commands/UpdateProjectCommand.ts b/clients/client-iot-1click-projects/commands/UpdateProjectCommand.ts index eb390c6ff6602..cb07f8d107349 100644 --- a/clients/client-iot-1click-projects/commands/UpdateProjectCommand.ts +++ b/clients/client-iot-1click-projects/commands/UpdateProjectCommand.ts @@ -35,6 +35,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, IoT1ClickProjectsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateProjectCommand extends $Command< configuration: IoT1ClickProjectsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-data-plane/commands/DeleteThingShadowCommand.ts b/clients/client-iot-data-plane/commands/DeleteThingShadowCommand.ts index 6e1fd6169bf2c..b9311d52f72fd 100644 --- a/clients/client-iot-data-plane/commands/DeleteThingShadowCommand.ts +++ b/clients/client-iot-data-plane/commands/DeleteThingShadowCommand.ts @@ -29,6 +29,7 @@ export class DeleteThingShadowCommand extends $Command< DeleteThingShadowCommandOutput, IoTDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteThingShadowCommand extends $Command< configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-data-plane/commands/GetThingShadowCommand.ts b/clients/client-iot-data-plane/commands/GetThingShadowCommand.ts index 82a2743201345..8c6714fef0cea 100644 --- a/clients/client-iot-data-plane/commands/GetThingShadowCommand.ts +++ b/clients/client-iot-data-plane/commands/GetThingShadowCommand.ts @@ -30,6 +30,7 @@ export class GetThingShadowCommand extends $Command< GetThingShadowCommandOutput, IoTDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetThingShadowCommand extends $Command< configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-data-plane/commands/ListNamedShadowsForThingCommand.ts b/clients/client-iot-data-plane/commands/ListNamedShadowsForThingCommand.ts index 423cda9337768..04ae0b334106f 100644 --- a/clients/client-iot-data-plane/commands/ListNamedShadowsForThingCommand.ts +++ b/clients/client-iot-data-plane/commands/ListNamedShadowsForThingCommand.ts @@ -28,6 +28,7 @@ export class ListNamedShadowsForThingCommand extends $Command< ListNamedShadowsForThingCommandOutput, IoTDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListNamedShadowsForThingCommand extends $Command< configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-data-plane/commands/PublishCommand.ts b/clients/client-iot-data-plane/commands/PublishCommand.ts index e488ab0834c49..e03950e68d649 100644 --- a/clients/client-iot-data-plane/commands/PublishCommand.ts +++ b/clients/client-iot-data-plane/commands/PublishCommand.ts @@ -30,6 +30,7 @@ export class PublishCommand extends $Command< PublishCommandOutput, IoTDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PublishCommand extends $Command< configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-data-plane/commands/UpdateThingShadowCommand.ts b/clients/client-iot-data-plane/commands/UpdateThingShadowCommand.ts index 03b15c5fd598f..4be4c14da8f79 100644 --- a/clients/client-iot-data-plane/commands/UpdateThingShadowCommand.ts +++ b/clients/client-iot-data-plane/commands/UpdateThingShadowCommand.ts @@ -30,6 +30,7 @@ export class UpdateThingShadowCommand extends $Command< UpdateThingShadowCommandOutput, IoTDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateThingShadowCommand extends $Command< configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events-data/commands/BatchPutMessageCommand.ts b/clients/client-iot-events-data/commands/BatchPutMessageCommand.ts index c19ab62f72ec8..a6b90b8a04013 100644 --- a/clients/client-iot-events-data/commands/BatchPutMessageCommand.ts +++ b/clients/client-iot-events-data/commands/BatchPutMessageCommand.ts @@ -32,6 +32,7 @@ export class BatchPutMessageCommand extends $Command< BatchPutMessageCommandOutput, IoTEventsDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class BatchPutMessageCommand extends $Command< configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events-data/commands/BatchUpdateDetectorCommand.ts b/clients/client-iot-events-data/commands/BatchUpdateDetectorCommand.ts index 34e6961d35ddb..98f56167859ff 100644 --- a/clients/client-iot-events-data/commands/BatchUpdateDetectorCommand.ts +++ b/clients/client-iot-events-data/commands/BatchUpdateDetectorCommand.ts @@ -29,6 +29,7 @@ export class BatchUpdateDetectorCommand extends $Command< BatchUpdateDetectorCommandOutput, IoTEventsDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class BatchUpdateDetectorCommand extends $Command< configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events-data/commands/DescribeDetectorCommand.ts b/clients/client-iot-events-data/commands/DescribeDetectorCommand.ts index 2171891d4d90f..2735c20223d70 100644 --- a/clients/client-iot-events-data/commands/DescribeDetectorCommand.ts +++ b/clients/client-iot-events-data/commands/DescribeDetectorCommand.ts @@ -28,6 +28,7 @@ export class DescribeDetectorCommand extends $Command< DescribeDetectorCommandOutput, IoTEventsDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDetectorCommand extends $Command< configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events-data/commands/ListDetectorsCommand.ts b/clients/client-iot-events-data/commands/ListDetectorsCommand.ts index 6daab5b1acd6e..163cc4ef33946 100644 --- a/clients/client-iot-events-data/commands/ListDetectorsCommand.ts +++ b/clients/client-iot-events-data/commands/ListDetectorsCommand.ts @@ -28,6 +28,7 @@ export class ListDetectorsCommand extends $Command< ListDetectorsCommandOutput, IoTEventsDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDetectorsCommand extends $Command< configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/CreateDetectorModelCommand.ts b/clients/client-iot-events/commands/CreateDetectorModelCommand.ts index ea4c10e21458b..9c0eaed50d3a0 100644 --- a/clients/client-iot-events/commands/CreateDetectorModelCommand.ts +++ b/clients/client-iot-events/commands/CreateDetectorModelCommand.ts @@ -28,6 +28,7 @@ export class CreateDetectorModelCommand extends $Command< CreateDetectorModelCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDetectorModelCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/CreateInputCommand.ts b/clients/client-iot-events/commands/CreateInputCommand.ts index 0af9f0a382ed9..b04d5e703b4f2 100644 --- a/clients/client-iot-events/commands/CreateInputCommand.ts +++ b/clients/client-iot-events/commands/CreateInputCommand.ts @@ -28,6 +28,7 @@ export class CreateInputCommand extends $Command< CreateInputCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateInputCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/DeleteDetectorModelCommand.ts b/clients/client-iot-events/commands/DeleteDetectorModelCommand.ts index cade20de5674b..1cccea10b3a4b 100644 --- a/clients/client-iot-events/commands/DeleteDetectorModelCommand.ts +++ b/clients/client-iot-events/commands/DeleteDetectorModelCommand.ts @@ -29,6 +29,7 @@ export class DeleteDetectorModelCommand extends $Command< DeleteDetectorModelCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDetectorModelCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/DeleteInputCommand.ts b/clients/client-iot-events/commands/DeleteInputCommand.ts index c5a317bb6ecba..60ac22beea257 100644 --- a/clients/client-iot-events/commands/DeleteInputCommand.ts +++ b/clients/client-iot-events/commands/DeleteInputCommand.ts @@ -28,6 +28,7 @@ export class DeleteInputCommand extends $Command< DeleteInputCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInputCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/DescribeDetectorModelCommand.ts b/clients/client-iot-events/commands/DescribeDetectorModelCommand.ts index f4e25e2c49471..207aa814effee 100644 --- a/clients/client-iot-events/commands/DescribeDetectorModelCommand.ts +++ b/clients/client-iot-events/commands/DescribeDetectorModelCommand.ts @@ -29,6 +29,7 @@ export class DescribeDetectorModelCommand extends $Command< DescribeDetectorModelCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDetectorModelCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/DescribeInputCommand.ts b/clients/client-iot-events/commands/DescribeInputCommand.ts index eac50ddb898df..162d8bf365366 100644 --- a/clients/client-iot-events/commands/DescribeInputCommand.ts +++ b/clients/client-iot-events/commands/DescribeInputCommand.ts @@ -28,6 +28,7 @@ export class DescribeInputCommand extends $Command< DescribeInputCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInputCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/DescribeLoggingOptionsCommand.ts b/clients/client-iot-events/commands/DescribeLoggingOptionsCommand.ts index cf3f985637cc8..76ab1e593125c 100644 --- a/clients/client-iot-events/commands/DescribeLoggingOptionsCommand.ts +++ b/clients/client-iot-events/commands/DescribeLoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLoggingOptionsCommand extends $Command< DescribeLoggingOptionsCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLoggingOptionsCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/ListDetectorModelVersionsCommand.ts b/clients/client-iot-events/commands/ListDetectorModelVersionsCommand.ts index 5aafdf091fe39..ce977799de0ef 100644 --- a/clients/client-iot-events/commands/ListDetectorModelVersionsCommand.ts +++ b/clients/client-iot-events/commands/ListDetectorModelVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListDetectorModelVersionsCommand extends $Command< ListDetectorModelVersionsCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDetectorModelVersionsCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/ListDetectorModelsCommand.ts b/clients/client-iot-events/commands/ListDetectorModelsCommand.ts index b9cf6ccd67d5e..d6c5191afc340 100644 --- a/clients/client-iot-events/commands/ListDetectorModelsCommand.ts +++ b/clients/client-iot-events/commands/ListDetectorModelsCommand.ts @@ -29,6 +29,7 @@ export class ListDetectorModelsCommand extends $Command< ListDetectorModelsCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDetectorModelsCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/ListInputsCommand.ts b/clients/client-iot-events/commands/ListInputsCommand.ts index bcbd7dde9303c..7343867ccf4e4 100644 --- a/clients/client-iot-events/commands/ListInputsCommand.ts +++ b/clients/client-iot-events/commands/ListInputsCommand.ts @@ -28,6 +28,7 @@ export class ListInputsCommand extends $Command< ListInputsCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInputsCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/ListTagsForResourceCommand.ts b/clients/client-iot-events/commands/ListTagsForResourceCommand.ts index 59c1a97d6b189..6ea49a81150e8 100644 --- a/clients/client-iot-events/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iot-events/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/PutLoggingOptionsCommand.ts b/clients/client-iot-events/commands/PutLoggingOptionsCommand.ts index 349d371303155..0fe2ad00ba777 100644 --- a/clients/client-iot-events/commands/PutLoggingOptionsCommand.ts +++ b/clients/client-iot-events/commands/PutLoggingOptionsCommand.ts @@ -32,6 +32,7 @@ export class PutLoggingOptionsCommand extends $Command< PutLoggingOptionsCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutLoggingOptionsCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/TagResourceCommand.ts b/clients/client-iot-events/commands/TagResourceCommand.ts index 76f40febf2230..7e35c9db0fce5 100644 --- a/clients/client-iot-events/commands/TagResourceCommand.ts +++ b/clients/client-iot-events/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/UntagResourceCommand.ts b/clients/client-iot-events/commands/UntagResourceCommand.ts index ddc82ccda043c..edd6ac9914646 100644 --- a/clients/client-iot-events/commands/UntagResourceCommand.ts +++ b/clients/client-iot-events/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/UpdateDetectorModelCommand.ts b/clients/client-iot-events/commands/UpdateDetectorModelCommand.ts index 4f2560b2211ed..5bb3dbe867ce5 100644 --- a/clients/client-iot-events/commands/UpdateDetectorModelCommand.ts +++ b/clients/client-iot-events/commands/UpdateDetectorModelCommand.ts @@ -29,6 +29,7 @@ export class UpdateDetectorModelCommand extends $Command< UpdateDetectorModelCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDetectorModelCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-events/commands/UpdateInputCommand.ts b/clients/client-iot-events/commands/UpdateInputCommand.ts index 86c3e443198e6..93d3a980b2e07 100644 --- a/clients/client-iot-events/commands/UpdateInputCommand.ts +++ b/clients/client-iot-events/commands/UpdateInputCommand.ts @@ -28,6 +28,7 @@ export class UpdateInputCommand extends $Command< UpdateInputCommandOutput, IoTEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInputCommand extends $Command< configuration: IoTEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-jobs-data-plane/commands/DescribeJobExecutionCommand.ts b/clients/client-iot-jobs-data-plane/commands/DescribeJobExecutionCommand.ts index 2b14734853640..50a648762309b 100644 --- a/clients/client-iot-jobs-data-plane/commands/DescribeJobExecutionCommand.ts +++ b/clients/client-iot-jobs-data-plane/commands/DescribeJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobExecutionCommand extends $Command< DescribeJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobExecutionCommand extends $Command< configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-jobs-data-plane/commands/GetPendingJobExecutionsCommand.ts b/clients/client-iot-jobs-data-plane/commands/GetPendingJobExecutionsCommand.ts index a356a7a8c8f52..9b5e27d81f863 100644 --- a/clients/client-iot-jobs-data-plane/commands/GetPendingJobExecutionsCommand.ts +++ b/clients/client-iot-jobs-data-plane/commands/GetPendingJobExecutionsCommand.ts @@ -28,6 +28,7 @@ export class GetPendingJobExecutionsCommand extends $Command< GetPendingJobExecutionsCommandOutput, IoTJobsDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPendingJobExecutionsCommand extends $Command< configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-jobs-data-plane/commands/StartNextPendingJobExecutionCommand.ts b/clients/client-iot-jobs-data-plane/commands/StartNextPendingJobExecutionCommand.ts index e3bdcb232bc85..9c64df0fa11a1 100644 --- a/clients/client-iot-jobs-data-plane/commands/StartNextPendingJobExecutionCommand.ts +++ b/clients/client-iot-jobs-data-plane/commands/StartNextPendingJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartNextPendingJobExecutionCommand extends $Command< StartNextPendingJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartNextPendingJobExecutionCommand extends $Command< configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot-jobs-data-plane/commands/UpdateJobExecutionCommand.ts b/clients/client-iot-jobs-data-plane/commands/UpdateJobExecutionCommand.ts index 4baba2a785f11..b3c899003d758 100644 --- a/clients/client-iot-jobs-data-plane/commands/UpdateJobExecutionCommand.ts +++ b/clients/client-iot-jobs-data-plane/commands/UpdateJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class UpdateJobExecutionCommand extends $Command< UpdateJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJobExecutionCommand extends $Command< configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AcceptCertificateTransferCommand.ts b/clients/client-iot/commands/AcceptCertificateTransferCommand.ts index f1e8a208d2612..77a66e86f0eae 100644 --- a/clients/client-iot/commands/AcceptCertificateTransferCommand.ts +++ b/clients/client-iot/commands/AcceptCertificateTransferCommand.ts @@ -31,6 +31,7 @@ export class AcceptCertificateTransferCommand extends $Command< AcceptCertificateTransferCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AcceptCertificateTransferCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AddThingToBillingGroupCommand.ts b/clients/client-iot/commands/AddThingToBillingGroupCommand.ts index eb63303b442a9..bcc049bebba49 100644 --- a/clients/client-iot/commands/AddThingToBillingGroupCommand.ts +++ b/clients/client-iot/commands/AddThingToBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class AddThingToBillingGroupCommand extends $Command< AddThingToBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddThingToBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AddThingToThingGroupCommand.ts b/clients/client-iot/commands/AddThingToThingGroupCommand.ts index eff98e27ca068..399e57dd07434 100644 --- a/clients/client-iot/commands/AddThingToThingGroupCommand.ts +++ b/clients/client-iot/commands/AddThingToThingGroupCommand.ts @@ -28,6 +28,7 @@ export class AddThingToThingGroupCommand extends $Command< AddThingToThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddThingToThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AssociateTargetsWithJobCommand.ts b/clients/client-iot/commands/AssociateTargetsWithJobCommand.ts index 68c08b0e925ff..74ca8734596ed 100644 --- a/clients/client-iot/commands/AssociateTargetsWithJobCommand.ts +++ b/clients/client-iot/commands/AssociateTargetsWithJobCommand.ts @@ -40,6 +40,7 @@ export class AssociateTargetsWithJobCommand extends $Command< AssociateTargetsWithJobCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AssociateTargetsWithJobCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AttachPolicyCommand.ts b/clients/client-iot/commands/AttachPolicyCommand.ts index 75d02044b1b4c..d9cb339950294 100644 --- a/clients/client-iot/commands/AttachPolicyCommand.ts +++ b/clients/client-iot/commands/AttachPolicyCommand.ts @@ -28,6 +28,7 @@ export class AttachPolicyCommand extends $Command< AttachPolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AttachPolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AttachPrincipalPolicyCommand.ts b/clients/client-iot/commands/AttachPrincipalPolicyCommand.ts index 1a65687a37947..c27d6c25ccbcc 100644 --- a/clients/client-iot/commands/AttachPrincipalPolicyCommand.ts +++ b/clients/client-iot/commands/AttachPrincipalPolicyCommand.ts @@ -31,6 +31,7 @@ export class AttachPrincipalPolicyCommand extends $Command< AttachPrincipalPolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AttachPrincipalPolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AttachSecurityProfileCommand.ts b/clients/client-iot/commands/AttachSecurityProfileCommand.ts index e0c6df09e3957..31912d4c9f787 100644 --- a/clients/client-iot/commands/AttachSecurityProfileCommand.ts +++ b/clients/client-iot/commands/AttachSecurityProfileCommand.ts @@ -29,6 +29,7 @@ export class AttachSecurityProfileCommand extends $Command< AttachSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AttachSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/AttachThingPrincipalCommand.ts b/clients/client-iot/commands/AttachThingPrincipalCommand.ts index 578521c83b81c..5f897f37128ec 100644 --- a/clients/client-iot/commands/AttachThingPrincipalCommand.ts +++ b/clients/client-iot/commands/AttachThingPrincipalCommand.ts @@ -30,6 +30,7 @@ export class AttachThingPrincipalCommand extends $Command< AttachThingPrincipalCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AttachThingPrincipalCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CancelAuditMitigationActionsTaskCommand.ts b/clients/client-iot/commands/CancelAuditMitigationActionsTaskCommand.ts index 5cef9dc1c5e0e..708bdc13775e6 100644 --- a/clients/client-iot/commands/CancelAuditMitigationActionsTaskCommand.ts +++ b/clients/client-iot/commands/CancelAuditMitigationActionsTaskCommand.ts @@ -28,6 +28,7 @@ export class CancelAuditMitigationActionsTaskCommand extends $Command< CancelAuditMitigationActionsTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelAuditMitigationActionsTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CancelAuditTaskCommand.ts b/clients/client-iot/commands/CancelAuditTaskCommand.ts index b272fcc61ffdd..e60fcefa38846 100644 --- a/clients/client-iot/commands/CancelAuditTaskCommand.ts +++ b/clients/client-iot/commands/CancelAuditTaskCommand.ts @@ -29,6 +29,7 @@ export class CancelAuditTaskCommand extends $Command< CancelAuditTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CancelAuditTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CancelCertificateTransferCommand.ts b/clients/client-iot/commands/CancelCertificateTransferCommand.ts index 097b3080cb757..44682aa05240c 100644 --- a/clients/client-iot/commands/CancelCertificateTransferCommand.ts +++ b/clients/client-iot/commands/CancelCertificateTransferCommand.ts @@ -35,6 +35,7 @@ export class CancelCertificateTransferCommand extends $Command< CancelCertificateTransferCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CancelCertificateTransferCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CancelJobCommand.ts b/clients/client-iot/commands/CancelJobCommand.ts index 918e2efcabbfd..ecaff80933307 100644 --- a/clients/client-iot/commands/CancelJobCommand.ts +++ b/clients/client-iot/commands/CancelJobCommand.ts @@ -24,6 +24,7 @@ export type CancelJobCommandOutput = CancelJobResponse & __MetadataBearer; *

Cancels a job.

*/ export class CancelJobCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class CancelJobCommand 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-iot/commands/CancelJobExecutionCommand.ts b/clients/client-iot/commands/CancelJobExecutionCommand.ts index db02012a903f6..4e32ff2dc5869 100644 --- a/clients/client-iot/commands/CancelJobExecutionCommand.ts +++ b/clients/client-iot/commands/CancelJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class CancelJobExecutionCommand extends $Command< CancelJobExecutionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelJobExecutionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ClearDefaultAuthorizerCommand.ts b/clients/client-iot/commands/ClearDefaultAuthorizerCommand.ts index dc76389718be4..05eb02f3c928a 100644 --- a/clients/client-iot/commands/ClearDefaultAuthorizerCommand.ts +++ b/clients/client-iot/commands/ClearDefaultAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class ClearDefaultAuthorizerCommand extends $Command< ClearDefaultAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ClearDefaultAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ConfirmTopicRuleDestinationCommand.ts b/clients/client-iot/commands/ConfirmTopicRuleDestinationCommand.ts index 9796e2e58ad51..1f566dafc6e91 100644 --- a/clients/client-iot/commands/ConfirmTopicRuleDestinationCommand.ts +++ b/clients/client-iot/commands/ConfirmTopicRuleDestinationCommand.ts @@ -31,6 +31,7 @@ export class ConfirmTopicRuleDestinationCommand extends $Command< ConfirmTopicRuleDestinationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ConfirmTopicRuleDestinationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateAuditSuppressionCommand.ts b/clients/client-iot/commands/CreateAuditSuppressionCommand.ts index b13c2e80328da..61179594e6751 100644 --- a/clients/client-iot/commands/CreateAuditSuppressionCommand.ts +++ b/clients/client-iot/commands/CreateAuditSuppressionCommand.ts @@ -30,6 +30,7 @@ export class CreateAuditSuppressionCommand extends $Command< CreateAuditSuppressionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAuditSuppressionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateAuthorizerCommand.ts b/clients/client-iot/commands/CreateAuthorizerCommand.ts index cd771df78f52e..43a8758c27cfd 100644 --- a/clients/client-iot/commands/CreateAuthorizerCommand.ts +++ b/clients/client-iot/commands/CreateAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class CreateAuthorizerCommand extends $Command< CreateAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateBillingGroupCommand.ts b/clients/client-iot/commands/CreateBillingGroupCommand.ts index cebf1cc7562c2..1d2351f31117e 100644 --- a/clients/client-iot/commands/CreateBillingGroupCommand.ts +++ b/clients/client-iot/commands/CreateBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateBillingGroupCommand extends $Command< CreateBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateCertificateFromCsrCommand.ts b/clients/client-iot/commands/CreateCertificateFromCsrCommand.ts index 38945b0d28907..3e28b61edbd33 100644 --- a/clients/client-iot/commands/CreateCertificateFromCsrCommand.ts +++ b/clients/client-iot/commands/CreateCertificateFromCsrCommand.ts @@ -62,6 +62,7 @@ export class CreateCertificateFromCsrCommand extends $Command< CreateCertificateFromCsrCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class CreateCertificateFromCsrCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateDimensionCommand.ts b/clients/client-iot/commands/CreateDimensionCommand.ts index da851b14f48fe..f932b515ede9c 100644 --- a/clients/client-iot/commands/CreateDimensionCommand.ts +++ b/clients/client-iot/commands/CreateDimensionCommand.ts @@ -28,6 +28,7 @@ export class CreateDimensionCommand extends $Command< CreateDimensionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDimensionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateDomainConfigurationCommand.ts b/clients/client-iot/commands/CreateDomainConfigurationCommand.ts index 7aa3d693946f4..0377fbc54ffe5 100644 --- a/clients/client-iot/commands/CreateDomainConfigurationCommand.ts +++ b/clients/client-iot/commands/CreateDomainConfigurationCommand.ts @@ -31,6 +31,7 @@ export class CreateDomainConfigurationCommand extends $Command< CreateDomainConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDomainConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateDynamicThingGroupCommand.ts b/clients/client-iot/commands/CreateDynamicThingGroupCommand.ts index 3a30adae4d38c..25c3526441183 100644 --- a/clients/client-iot/commands/CreateDynamicThingGroupCommand.ts +++ b/clients/client-iot/commands/CreateDynamicThingGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateDynamicThingGroupCommand extends $Command< CreateDynamicThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDynamicThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateJobCommand.ts b/clients/client-iot/commands/CreateJobCommand.ts index c4fc925de3208..424a3c035aacb 100644 --- a/clients/client-iot/commands/CreateJobCommand.ts +++ b/clients/client-iot/commands/CreateJobCommand.ts @@ -24,6 +24,7 @@ export type CreateJobCommandOutput = CreateJobResponse & __MetadataBearer; *

Creates a job.

*/ export class CreateJobCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class CreateJobCommand 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-iot/commands/CreateKeysAndCertificateCommand.ts b/clients/client-iot/commands/CreateKeysAndCertificateCommand.ts index d385d8263483a..1b263c422fa4f 100644 --- a/clients/client-iot/commands/CreateKeysAndCertificateCommand.ts +++ b/clients/client-iot/commands/CreateKeysAndCertificateCommand.ts @@ -33,6 +33,7 @@ export class CreateKeysAndCertificateCommand extends $Command< CreateKeysAndCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateKeysAndCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateMitigationActionCommand.ts b/clients/client-iot/commands/CreateMitigationActionCommand.ts index ba01dafae0a6a..fe1ea21f411e7 100644 --- a/clients/client-iot/commands/CreateMitigationActionCommand.ts +++ b/clients/client-iot/commands/CreateMitigationActionCommand.ts @@ -28,6 +28,7 @@ export class CreateMitigationActionCommand extends $Command< CreateMitigationActionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateMitigationActionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateOTAUpdateCommand.ts b/clients/client-iot/commands/CreateOTAUpdateCommand.ts index e6cceae61f03c..f5c474e8ed76f 100644 --- a/clients/client-iot/commands/CreateOTAUpdateCommand.ts +++ b/clients/client-iot/commands/CreateOTAUpdateCommand.ts @@ -28,6 +28,7 @@ export class CreateOTAUpdateCommand extends $Command< CreateOTAUpdateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateOTAUpdateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreatePolicyCommand.ts b/clients/client-iot/commands/CreatePolicyCommand.ts index f61ebaf1a623c..b079629376961 100644 --- a/clients/client-iot/commands/CreatePolicyCommand.ts +++ b/clients/client-iot/commands/CreatePolicyCommand.ts @@ -31,6 +31,7 @@ export class CreatePolicyCommand extends $Command< CreatePolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreatePolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreatePolicyVersionCommand.ts b/clients/client-iot/commands/CreatePolicyVersionCommand.ts index f5627ae826ec3..60881e1b8432a 100644 --- a/clients/client-iot/commands/CreatePolicyVersionCommand.ts +++ b/clients/client-iot/commands/CreatePolicyVersionCommand.ts @@ -34,6 +34,7 @@ export class CreatePolicyVersionCommand extends $Command< CreatePolicyVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreatePolicyVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateProvisioningClaimCommand.ts b/clients/client-iot/commands/CreateProvisioningClaimCommand.ts index 6193e94b78320..b2932c6c3bf44 100644 --- a/clients/client-iot/commands/CreateProvisioningClaimCommand.ts +++ b/clients/client-iot/commands/CreateProvisioningClaimCommand.ts @@ -28,6 +28,7 @@ export class CreateProvisioningClaimCommand extends $Command< CreateProvisioningClaimCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProvisioningClaimCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateProvisioningTemplateCommand.ts b/clients/client-iot/commands/CreateProvisioningTemplateCommand.ts index 3ebb3aa25db5e..abd908029b1cc 100644 --- a/clients/client-iot/commands/CreateProvisioningTemplateCommand.ts +++ b/clients/client-iot/commands/CreateProvisioningTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateProvisioningTemplateCommand extends $Command< CreateProvisioningTemplateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProvisioningTemplateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateProvisioningTemplateVersionCommand.ts b/clients/client-iot/commands/CreateProvisioningTemplateVersionCommand.ts index d1bbc61e86409..98445dabf622d 100644 --- a/clients/client-iot/commands/CreateProvisioningTemplateVersionCommand.ts +++ b/clients/client-iot/commands/CreateProvisioningTemplateVersionCommand.ts @@ -32,6 +32,7 @@ export class CreateProvisioningTemplateVersionCommand extends $Command< CreateProvisioningTemplateVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateProvisioningTemplateVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateRoleAliasCommand.ts b/clients/client-iot/commands/CreateRoleAliasCommand.ts index 562ca0f07195b..236a32b809340 100644 --- a/clients/client-iot/commands/CreateRoleAliasCommand.ts +++ b/clients/client-iot/commands/CreateRoleAliasCommand.ts @@ -28,6 +28,7 @@ export class CreateRoleAliasCommand extends $Command< CreateRoleAliasCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRoleAliasCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateScheduledAuditCommand.ts b/clients/client-iot/commands/CreateScheduledAuditCommand.ts index d4f9b2de1ed4f..d19e97f5a1985 100644 --- a/clients/client-iot/commands/CreateScheduledAuditCommand.ts +++ b/clients/client-iot/commands/CreateScheduledAuditCommand.ts @@ -29,6 +29,7 @@ export class CreateScheduledAuditCommand extends $Command< CreateScheduledAuditCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateScheduledAuditCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateSecurityProfileCommand.ts b/clients/client-iot/commands/CreateSecurityProfileCommand.ts index c994650bdc773..2949a8eb822ce 100644 --- a/clients/client-iot/commands/CreateSecurityProfileCommand.ts +++ b/clients/client-iot/commands/CreateSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class CreateSecurityProfileCommand extends $Command< CreateSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateStreamCommand.ts b/clients/client-iot/commands/CreateStreamCommand.ts index 9d393618fcaa5..09456f06ad930 100644 --- a/clients/client-iot/commands/CreateStreamCommand.ts +++ b/clients/client-iot/commands/CreateStreamCommand.ts @@ -30,6 +30,7 @@ export class CreateStreamCommand extends $Command< CreateStreamCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateStreamCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateThingCommand.ts b/clients/client-iot/commands/CreateThingCommand.ts index 010ed19b8f249..c28e8087dee31 100644 --- a/clients/client-iot/commands/CreateThingCommand.ts +++ b/clients/client-iot/commands/CreateThingCommand.ts @@ -35,6 +35,7 @@ export class CreateThingCommand extends $Command< CreateThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateThingGroupCommand.ts b/clients/client-iot/commands/CreateThingGroupCommand.ts index dbb764eb9a412..dde1981e3c9e3 100644 --- a/clients/client-iot/commands/CreateThingGroupCommand.ts +++ b/clients/client-iot/commands/CreateThingGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateThingGroupCommand extends $Command< CreateThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateThingTypeCommand.ts b/clients/client-iot/commands/CreateThingTypeCommand.ts index 0baa6e682adf2..0331ceb22e9cc 100644 --- a/clients/client-iot/commands/CreateThingTypeCommand.ts +++ b/clients/client-iot/commands/CreateThingTypeCommand.ts @@ -28,6 +28,7 @@ export class CreateThingTypeCommand extends $Command< CreateThingTypeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateThingTypeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateTopicRuleCommand.ts b/clients/client-iot/commands/CreateTopicRuleCommand.ts index bf5ca24fe34a0..5d4e745d4116a 100644 --- a/clients/client-iot/commands/CreateTopicRuleCommand.ts +++ b/clients/client-iot/commands/CreateTopicRuleCommand.ts @@ -29,6 +29,7 @@ export class CreateTopicRuleCommand extends $Command< CreateTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/CreateTopicRuleDestinationCommand.ts b/clients/client-iot/commands/CreateTopicRuleDestinationCommand.ts index f79db839a30fe..2931ba1da2dfc 100644 --- a/clients/client-iot/commands/CreateTopicRuleDestinationCommand.ts +++ b/clients/client-iot/commands/CreateTopicRuleDestinationCommand.ts @@ -28,6 +28,7 @@ export class CreateTopicRuleDestinationCommand extends $Command< CreateTopicRuleDestinationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTopicRuleDestinationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteAccountAuditConfigurationCommand.ts b/clients/client-iot/commands/DeleteAccountAuditConfigurationCommand.ts index fd128264a0faf..3db90ed4b6f4f 100644 --- a/clients/client-iot/commands/DeleteAccountAuditConfigurationCommand.ts +++ b/clients/client-iot/commands/DeleteAccountAuditConfigurationCommand.ts @@ -30,6 +30,7 @@ export class DeleteAccountAuditConfigurationCommand extends $Command< DeleteAccountAuditConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAccountAuditConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteAuditSuppressionCommand.ts b/clients/client-iot/commands/DeleteAuditSuppressionCommand.ts index 2662365b3441f..b0cbad01a76e4 100644 --- a/clients/client-iot/commands/DeleteAuditSuppressionCommand.ts +++ b/clients/client-iot/commands/DeleteAuditSuppressionCommand.ts @@ -30,6 +30,7 @@ export class DeleteAuditSuppressionCommand extends $Command< DeleteAuditSuppressionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAuditSuppressionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteAuthorizerCommand.ts b/clients/client-iot/commands/DeleteAuthorizerCommand.ts index bedfd4eca9a02..9ac55622062f2 100644 --- a/clients/client-iot/commands/DeleteAuthorizerCommand.ts +++ b/clients/client-iot/commands/DeleteAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class DeleteAuthorizerCommand extends $Command< DeleteAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteBillingGroupCommand.ts b/clients/client-iot/commands/DeleteBillingGroupCommand.ts index b0a2e0c799eb3..b604eb16c6be1 100644 --- a/clients/client-iot/commands/DeleteBillingGroupCommand.ts +++ b/clients/client-iot/commands/DeleteBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteBillingGroupCommand extends $Command< DeleteBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteCACertificateCommand.ts b/clients/client-iot/commands/DeleteCACertificateCommand.ts index 5138cd60b5b16..ad5b651d8de3e 100644 --- a/clients/client-iot/commands/DeleteCACertificateCommand.ts +++ b/clients/client-iot/commands/DeleteCACertificateCommand.ts @@ -28,6 +28,7 @@ export class DeleteCACertificateCommand extends $Command< DeleteCACertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCACertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteCertificateCommand.ts b/clients/client-iot/commands/DeleteCertificateCommand.ts index f90d2a0b08e9b..adbad77b40098 100644 --- a/clients/client-iot/commands/DeleteCertificateCommand.ts +++ b/clients/client-iot/commands/DeleteCertificateCommand.ts @@ -31,6 +31,7 @@ export class DeleteCertificateCommand extends $Command< DeleteCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteDimensionCommand.ts b/clients/client-iot/commands/DeleteDimensionCommand.ts index f9eb0374d41f9..93cffc74865b1 100644 --- a/clients/client-iot/commands/DeleteDimensionCommand.ts +++ b/clients/client-iot/commands/DeleteDimensionCommand.ts @@ -28,6 +28,7 @@ export class DeleteDimensionCommand extends $Command< DeleteDimensionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDimensionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteDomainConfigurationCommand.ts b/clients/client-iot/commands/DeleteDomainConfigurationCommand.ts index eebc0c4363f14..9a0fc4eb4f535 100644 --- a/clients/client-iot/commands/DeleteDomainConfigurationCommand.ts +++ b/clients/client-iot/commands/DeleteDomainConfigurationCommand.ts @@ -31,6 +31,7 @@ export class DeleteDomainConfigurationCommand extends $Command< DeleteDomainConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDomainConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteDynamicThingGroupCommand.ts b/clients/client-iot/commands/DeleteDynamicThingGroupCommand.ts index 1823a064f5dfa..7c4d20feeeb85 100644 --- a/clients/client-iot/commands/DeleteDynamicThingGroupCommand.ts +++ b/clients/client-iot/commands/DeleteDynamicThingGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteDynamicThingGroupCommand extends $Command< DeleteDynamicThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDynamicThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteJobCommand.ts b/clients/client-iot/commands/DeleteJobCommand.ts index 61cade41af7e8..e8a2ff4c7d782 100644 --- a/clients/client-iot/commands/DeleteJobCommand.ts +++ b/clients/client-iot/commands/DeleteJobCommand.ts @@ -31,6 +31,7 @@ export type DeleteJobCommandOutput = __MetadataBearer; * a LimitExceededException will occur.

*/ export class DeleteJobCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteJobCommand 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-iot/commands/DeleteJobExecutionCommand.ts b/clients/client-iot/commands/DeleteJobExecutionCommand.ts index d73d33d5b2d8c..935e034e4576e 100644 --- a/clients/client-iot/commands/DeleteJobExecutionCommand.ts +++ b/clients/client-iot/commands/DeleteJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class DeleteJobExecutionCommand extends $Command< DeleteJobExecutionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteJobExecutionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteMitigationActionCommand.ts b/clients/client-iot/commands/DeleteMitigationActionCommand.ts index f9743aec11a4c..bb81fcc038565 100644 --- a/clients/client-iot/commands/DeleteMitigationActionCommand.ts +++ b/clients/client-iot/commands/DeleteMitigationActionCommand.ts @@ -28,6 +28,7 @@ export class DeleteMitigationActionCommand extends $Command< DeleteMitigationActionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMitigationActionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteOTAUpdateCommand.ts b/clients/client-iot/commands/DeleteOTAUpdateCommand.ts index c84bf45d9d9cb..dadb8fb66732d 100644 --- a/clients/client-iot/commands/DeleteOTAUpdateCommand.ts +++ b/clients/client-iot/commands/DeleteOTAUpdateCommand.ts @@ -28,6 +28,7 @@ export class DeleteOTAUpdateCommand extends $Command< DeleteOTAUpdateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOTAUpdateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeletePolicyCommand.ts b/clients/client-iot/commands/DeletePolicyCommand.ts index cc03d85e8be03..34cd07d879fca 100644 --- a/clients/client-iot/commands/DeletePolicyCommand.ts +++ b/clients/client-iot/commands/DeletePolicyCommand.ts @@ -35,6 +35,7 @@ export class DeletePolicyCommand extends $Command< DeletePolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeletePolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeletePolicyVersionCommand.ts b/clients/client-iot/commands/DeletePolicyVersionCommand.ts index d63889e89e8a9..0b4572384ccab 100644 --- a/clients/client-iot/commands/DeletePolicyVersionCommand.ts +++ b/clients/client-iot/commands/DeletePolicyVersionCommand.ts @@ -30,6 +30,7 @@ export class DeletePolicyVersionCommand extends $Command< DeletePolicyVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeletePolicyVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteProvisioningTemplateCommand.ts b/clients/client-iot/commands/DeleteProvisioningTemplateCommand.ts index 37e2ece440eff..00d109a6d0d10 100644 --- a/clients/client-iot/commands/DeleteProvisioningTemplateCommand.ts +++ b/clients/client-iot/commands/DeleteProvisioningTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteProvisioningTemplateCommand extends $Command< DeleteProvisioningTemplateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProvisioningTemplateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteProvisioningTemplateVersionCommand.ts b/clients/client-iot/commands/DeleteProvisioningTemplateVersionCommand.ts index 1e18fc5cdd1ae..47eb4bf2e0bab 100644 --- a/clients/client-iot/commands/DeleteProvisioningTemplateVersionCommand.ts +++ b/clients/client-iot/commands/DeleteProvisioningTemplateVersionCommand.ts @@ -32,6 +32,7 @@ export class DeleteProvisioningTemplateVersionCommand extends $Command< DeleteProvisioningTemplateVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteProvisioningTemplateVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteRegistrationCodeCommand.ts b/clients/client-iot/commands/DeleteRegistrationCodeCommand.ts index 7184ecafbbb81..729101fe47f59 100644 --- a/clients/client-iot/commands/DeleteRegistrationCodeCommand.ts +++ b/clients/client-iot/commands/DeleteRegistrationCodeCommand.ts @@ -28,6 +28,7 @@ export class DeleteRegistrationCodeCommand extends $Command< DeleteRegistrationCodeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRegistrationCodeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteRoleAliasCommand.ts b/clients/client-iot/commands/DeleteRoleAliasCommand.ts index 5649ebe10e6f6..08fdfaf88149f 100644 --- a/clients/client-iot/commands/DeleteRoleAliasCommand.ts +++ b/clients/client-iot/commands/DeleteRoleAliasCommand.ts @@ -28,6 +28,7 @@ export class DeleteRoleAliasCommand extends $Command< DeleteRoleAliasCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRoleAliasCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteScheduledAuditCommand.ts b/clients/client-iot/commands/DeleteScheduledAuditCommand.ts index d06472ae6d9e5..8c48e99b77489 100644 --- a/clients/client-iot/commands/DeleteScheduledAuditCommand.ts +++ b/clients/client-iot/commands/DeleteScheduledAuditCommand.ts @@ -28,6 +28,7 @@ export class DeleteScheduledAuditCommand extends $Command< DeleteScheduledAuditCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteScheduledAuditCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteSecurityProfileCommand.ts b/clients/client-iot/commands/DeleteSecurityProfileCommand.ts index 482b578a8eda2..b77d7c2e56180 100644 --- a/clients/client-iot/commands/DeleteSecurityProfileCommand.ts +++ b/clients/client-iot/commands/DeleteSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class DeleteSecurityProfileCommand extends $Command< DeleteSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteStreamCommand.ts b/clients/client-iot/commands/DeleteStreamCommand.ts index 4e3d37e5788a9..1d474d577019e 100644 --- a/clients/client-iot/commands/DeleteStreamCommand.ts +++ b/clients/client-iot/commands/DeleteStreamCommand.ts @@ -28,6 +28,7 @@ export class DeleteStreamCommand extends $Command< DeleteStreamCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteStreamCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteThingCommand.ts b/clients/client-iot/commands/DeleteThingCommand.ts index 7b4f1ad7cab95..9d641fe4f9dca 100644 --- a/clients/client-iot/commands/DeleteThingCommand.ts +++ b/clients/client-iot/commands/DeleteThingCommand.ts @@ -29,6 +29,7 @@ export class DeleteThingCommand extends $Command< DeleteThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteThingGroupCommand.ts b/clients/client-iot/commands/DeleteThingGroupCommand.ts index 13b40fe908456..3a59e7213f9e0 100644 --- a/clients/client-iot/commands/DeleteThingGroupCommand.ts +++ b/clients/client-iot/commands/DeleteThingGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteThingGroupCommand extends $Command< DeleteThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteThingTypeCommand.ts b/clients/client-iot/commands/DeleteThingTypeCommand.ts index 28d33d85d0917..5f37445325942 100644 --- a/clients/client-iot/commands/DeleteThingTypeCommand.ts +++ b/clients/client-iot/commands/DeleteThingTypeCommand.ts @@ -30,6 +30,7 @@ export class DeleteThingTypeCommand extends $Command< DeleteThingTypeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteThingTypeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteTopicRuleCommand.ts b/clients/client-iot/commands/DeleteTopicRuleCommand.ts index 2540ec20df835..f54fcf71ca976 100644 --- a/clients/client-iot/commands/DeleteTopicRuleCommand.ts +++ b/clients/client-iot/commands/DeleteTopicRuleCommand.ts @@ -28,6 +28,7 @@ export class DeleteTopicRuleCommand extends $Command< DeleteTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteTopicRuleDestinationCommand.ts b/clients/client-iot/commands/DeleteTopicRuleDestinationCommand.ts index ef293d5f8a3c5..42f24c29ee5ca 100644 --- a/clients/client-iot/commands/DeleteTopicRuleDestinationCommand.ts +++ b/clients/client-iot/commands/DeleteTopicRuleDestinationCommand.ts @@ -28,6 +28,7 @@ export class DeleteTopicRuleDestinationCommand extends $Command< DeleteTopicRuleDestinationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTopicRuleDestinationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeleteV2LoggingLevelCommand.ts b/clients/client-iot/commands/DeleteV2LoggingLevelCommand.ts index 351903ad34906..e6000bfd1ad5f 100644 --- a/clients/client-iot/commands/DeleteV2LoggingLevelCommand.ts +++ b/clients/client-iot/commands/DeleteV2LoggingLevelCommand.ts @@ -28,6 +28,7 @@ export class DeleteV2LoggingLevelCommand extends $Command< DeleteV2LoggingLevelCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteV2LoggingLevelCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DeprecateThingTypeCommand.ts b/clients/client-iot/commands/DeprecateThingTypeCommand.ts index b708415491cb2..36e345fc7bc26 100644 --- a/clients/client-iot/commands/DeprecateThingTypeCommand.ts +++ b/clients/client-iot/commands/DeprecateThingTypeCommand.ts @@ -29,6 +29,7 @@ export class DeprecateThingTypeCommand extends $Command< DeprecateThingTypeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeprecateThingTypeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAccountAuditConfigurationCommand.ts b/clients/client-iot/commands/DescribeAccountAuditConfigurationCommand.ts index 8a59f2d2f5118..e60c6376c5655 100644 --- a/clients/client-iot/commands/DescribeAccountAuditConfigurationCommand.ts +++ b/clients/client-iot/commands/DescribeAccountAuditConfigurationCommand.ts @@ -34,6 +34,7 @@ export class DescribeAccountAuditConfigurationCommand extends $Command< DescribeAccountAuditConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeAccountAuditConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAuditFindingCommand.ts b/clients/client-iot/commands/DescribeAuditFindingCommand.ts index d453d952244f3..c8b4bacdd2ed6 100644 --- a/clients/client-iot/commands/DescribeAuditFindingCommand.ts +++ b/clients/client-iot/commands/DescribeAuditFindingCommand.ts @@ -28,6 +28,7 @@ export class DescribeAuditFindingCommand extends $Command< DescribeAuditFindingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAuditFindingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAuditMitigationActionsTaskCommand.ts b/clients/client-iot/commands/DescribeAuditMitigationActionsTaskCommand.ts index d4fc14236543c..49d1c10cbc135 100644 --- a/clients/client-iot/commands/DescribeAuditMitigationActionsTaskCommand.ts +++ b/clients/client-iot/commands/DescribeAuditMitigationActionsTaskCommand.ts @@ -32,6 +32,7 @@ export class DescribeAuditMitigationActionsTaskCommand extends $Command< DescribeAuditMitigationActionsTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeAuditMitigationActionsTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAuditSuppressionCommand.ts b/clients/client-iot/commands/DescribeAuditSuppressionCommand.ts index f942fb7a2b835..6a6d35fdec966 100644 --- a/clients/client-iot/commands/DescribeAuditSuppressionCommand.ts +++ b/clients/client-iot/commands/DescribeAuditSuppressionCommand.ts @@ -30,6 +30,7 @@ export class DescribeAuditSuppressionCommand extends $Command< DescribeAuditSuppressionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAuditSuppressionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAuditTaskCommand.ts b/clients/client-iot/commands/DescribeAuditTaskCommand.ts index 8936d26c53cbb..1cf6040dd50b0 100644 --- a/clients/client-iot/commands/DescribeAuditTaskCommand.ts +++ b/clients/client-iot/commands/DescribeAuditTaskCommand.ts @@ -29,6 +29,7 @@ export class DescribeAuditTaskCommand extends $Command< DescribeAuditTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAuditTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeAuthorizerCommand.ts b/clients/client-iot/commands/DescribeAuthorizerCommand.ts index ca9366229671c..b83e741ec726c 100644 --- a/clients/client-iot/commands/DescribeAuthorizerCommand.ts +++ b/clients/client-iot/commands/DescribeAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class DescribeAuthorizerCommand extends $Command< DescribeAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeBillingGroupCommand.ts b/clients/client-iot/commands/DescribeBillingGroupCommand.ts index 9f98f2052ff8e..54bc952bb6b78 100644 --- a/clients/client-iot/commands/DescribeBillingGroupCommand.ts +++ b/clients/client-iot/commands/DescribeBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeBillingGroupCommand extends $Command< DescribeBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeCACertificateCommand.ts b/clients/client-iot/commands/DescribeCACertificateCommand.ts index b5005a43ea912..e8fda4a962c64 100644 --- a/clients/client-iot/commands/DescribeCACertificateCommand.ts +++ b/clients/client-iot/commands/DescribeCACertificateCommand.ts @@ -28,6 +28,7 @@ export class DescribeCACertificateCommand extends $Command< DescribeCACertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCACertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeCertificateCommand.ts b/clients/client-iot/commands/DescribeCertificateCommand.ts index 73e04c8423383..5b1b30fd5b387 100644 --- a/clients/client-iot/commands/DescribeCertificateCommand.ts +++ b/clients/client-iot/commands/DescribeCertificateCommand.ts @@ -28,6 +28,7 @@ export class DescribeCertificateCommand extends $Command< DescribeCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeDefaultAuthorizerCommand.ts b/clients/client-iot/commands/DescribeDefaultAuthorizerCommand.ts index ae78bc5d27873..1cec42421b7e6 100644 --- a/clients/client-iot/commands/DescribeDefaultAuthorizerCommand.ts +++ b/clients/client-iot/commands/DescribeDefaultAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class DescribeDefaultAuthorizerCommand extends $Command< DescribeDefaultAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDefaultAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeDimensionCommand.ts b/clients/client-iot/commands/DescribeDimensionCommand.ts index fad2ea8dcf78c..bb10fc8a5ee01 100644 --- a/clients/client-iot/commands/DescribeDimensionCommand.ts +++ b/clients/client-iot/commands/DescribeDimensionCommand.ts @@ -28,6 +28,7 @@ export class DescribeDimensionCommand extends $Command< DescribeDimensionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDimensionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeDomainConfigurationCommand.ts b/clients/client-iot/commands/DescribeDomainConfigurationCommand.ts index bc0f5c2d063f8..1a8d0d149bfba 100644 --- a/clients/client-iot/commands/DescribeDomainConfigurationCommand.ts +++ b/clients/client-iot/commands/DescribeDomainConfigurationCommand.ts @@ -31,6 +31,7 @@ export class DescribeDomainConfigurationCommand extends $Command< DescribeDomainConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDomainConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeEndpointCommand.ts b/clients/client-iot/commands/DescribeEndpointCommand.ts index 18ad4a72f6744..7150f57137b80 100644 --- a/clients/client-iot/commands/DescribeEndpointCommand.ts +++ b/clients/client-iot/commands/DescribeEndpointCommand.ts @@ -28,6 +28,7 @@ export class DescribeEndpointCommand extends $Command< DescribeEndpointCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEndpointCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeEventConfigurationsCommand.ts b/clients/client-iot/commands/DescribeEventConfigurationsCommand.ts index 82e9148f83e7b..9f6071fc86fba 100644 --- a/clients/client-iot/commands/DescribeEventConfigurationsCommand.ts +++ b/clients/client-iot/commands/DescribeEventConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEventConfigurationsCommand extends $Command< DescribeEventConfigurationsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEventConfigurationsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeIndexCommand.ts b/clients/client-iot/commands/DescribeIndexCommand.ts index dee5dd2f8ecf5..9dc407b8380a0 100644 --- a/clients/client-iot/commands/DescribeIndexCommand.ts +++ b/clients/client-iot/commands/DescribeIndexCommand.ts @@ -28,6 +28,7 @@ export class DescribeIndexCommand extends $Command< DescribeIndexCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIndexCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeJobCommand.ts b/clients/client-iot/commands/DescribeJobCommand.ts index f36fd9f21a527..37a8f133e483d 100644 --- a/clients/client-iot/commands/DescribeJobCommand.ts +++ b/clients/client-iot/commands/DescribeJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobCommand extends $Command< DescribeJobCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeJobExecutionCommand.ts b/clients/client-iot/commands/DescribeJobExecutionCommand.ts index 8bd37e5ccdcf6..67bf24c0f4f91 100644 --- a/clients/client-iot/commands/DescribeJobExecutionCommand.ts +++ b/clients/client-iot/commands/DescribeJobExecutionCommand.ts @@ -28,6 +28,7 @@ export class DescribeJobExecutionCommand extends $Command< DescribeJobExecutionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeJobExecutionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeMitigationActionCommand.ts b/clients/client-iot/commands/DescribeMitigationActionCommand.ts index 3628cb264a777..4d58a9aef08e4 100644 --- a/clients/client-iot/commands/DescribeMitigationActionCommand.ts +++ b/clients/client-iot/commands/DescribeMitigationActionCommand.ts @@ -28,6 +28,7 @@ export class DescribeMitigationActionCommand extends $Command< DescribeMitigationActionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMitigationActionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeProvisioningTemplateCommand.ts b/clients/client-iot/commands/DescribeProvisioningTemplateCommand.ts index 076919a407cd3..d0c3234c6f6e7 100644 --- a/clients/client-iot/commands/DescribeProvisioningTemplateCommand.ts +++ b/clients/client-iot/commands/DescribeProvisioningTemplateCommand.ts @@ -28,6 +28,7 @@ export class DescribeProvisioningTemplateCommand extends $Command< DescribeProvisioningTemplateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProvisioningTemplateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeProvisioningTemplateVersionCommand.ts b/clients/client-iot/commands/DescribeProvisioningTemplateVersionCommand.ts index 8662b7ae3ecb6..3bb998974606a 100644 --- a/clients/client-iot/commands/DescribeProvisioningTemplateVersionCommand.ts +++ b/clients/client-iot/commands/DescribeProvisioningTemplateVersionCommand.ts @@ -32,6 +32,7 @@ export class DescribeProvisioningTemplateVersionCommand extends $Command< DescribeProvisioningTemplateVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeProvisioningTemplateVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeRoleAliasCommand.ts b/clients/client-iot/commands/DescribeRoleAliasCommand.ts index 9b3b0675551ee..9c2d765406fed 100644 --- a/clients/client-iot/commands/DescribeRoleAliasCommand.ts +++ b/clients/client-iot/commands/DescribeRoleAliasCommand.ts @@ -28,6 +28,7 @@ export class DescribeRoleAliasCommand extends $Command< DescribeRoleAliasCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRoleAliasCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeScheduledAuditCommand.ts b/clients/client-iot/commands/DescribeScheduledAuditCommand.ts index 69be9e4d69eaa..dfb615473d8e9 100644 --- a/clients/client-iot/commands/DescribeScheduledAuditCommand.ts +++ b/clients/client-iot/commands/DescribeScheduledAuditCommand.ts @@ -28,6 +28,7 @@ export class DescribeScheduledAuditCommand extends $Command< DescribeScheduledAuditCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScheduledAuditCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeSecurityProfileCommand.ts b/clients/client-iot/commands/DescribeSecurityProfileCommand.ts index 2e86037cb512b..5fca2bc5f9734 100644 --- a/clients/client-iot/commands/DescribeSecurityProfileCommand.ts +++ b/clients/client-iot/commands/DescribeSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class DescribeSecurityProfileCommand extends $Command< DescribeSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeStreamCommand.ts b/clients/client-iot/commands/DescribeStreamCommand.ts index 1060865e2ed62..23d1bf2badb81 100644 --- a/clients/client-iot/commands/DescribeStreamCommand.ts +++ b/clients/client-iot/commands/DescribeStreamCommand.ts @@ -28,6 +28,7 @@ export class DescribeStreamCommand extends $Command< DescribeStreamCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStreamCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeThingCommand.ts b/clients/client-iot/commands/DescribeThingCommand.ts index eb45c9dd9bdc5..6286ca3324f8b 100644 --- a/clients/client-iot/commands/DescribeThingCommand.ts +++ b/clients/client-iot/commands/DescribeThingCommand.ts @@ -28,6 +28,7 @@ export class DescribeThingCommand extends $Command< DescribeThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeThingGroupCommand.ts b/clients/client-iot/commands/DescribeThingGroupCommand.ts index 19d71d5486da5..cdbf9ef632dff 100644 --- a/clients/client-iot/commands/DescribeThingGroupCommand.ts +++ b/clients/client-iot/commands/DescribeThingGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeThingGroupCommand extends $Command< DescribeThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeThingRegistrationTaskCommand.ts b/clients/client-iot/commands/DescribeThingRegistrationTaskCommand.ts index 96469ec111472..71d7f08e6d072 100644 --- a/clients/client-iot/commands/DescribeThingRegistrationTaskCommand.ts +++ b/clients/client-iot/commands/DescribeThingRegistrationTaskCommand.ts @@ -28,6 +28,7 @@ export class DescribeThingRegistrationTaskCommand extends $Command< DescribeThingRegistrationTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThingRegistrationTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DescribeThingTypeCommand.ts b/clients/client-iot/commands/DescribeThingTypeCommand.ts index bb932f1488acd..a223212935c9d 100644 --- a/clients/client-iot/commands/DescribeThingTypeCommand.ts +++ b/clients/client-iot/commands/DescribeThingTypeCommand.ts @@ -28,6 +28,7 @@ export class DescribeThingTypeCommand extends $Command< DescribeThingTypeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThingTypeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DetachPolicyCommand.ts b/clients/client-iot/commands/DetachPolicyCommand.ts index b9b2b13debb40..ed60b3de41995 100644 --- a/clients/client-iot/commands/DetachPolicyCommand.ts +++ b/clients/client-iot/commands/DetachPolicyCommand.ts @@ -28,6 +28,7 @@ export class DetachPolicyCommand extends $Command< DetachPolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachPolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DetachPrincipalPolicyCommand.ts b/clients/client-iot/commands/DetachPrincipalPolicyCommand.ts index 518f1497d43cb..dda9b2f838789 100644 --- a/clients/client-iot/commands/DetachPrincipalPolicyCommand.ts +++ b/clients/client-iot/commands/DetachPrincipalPolicyCommand.ts @@ -30,6 +30,7 @@ export class DetachPrincipalPolicyCommand extends $Command< DetachPrincipalPolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DetachPrincipalPolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DetachSecurityProfileCommand.ts b/clients/client-iot/commands/DetachSecurityProfileCommand.ts index 09eb21253e459..c495a728746e1 100644 --- a/clients/client-iot/commands/DetachSecurityProfileCommand.ts +++ b/clients/client-iot/commands/DetachSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class DetachSecurityProfileCommand extends $Command< DetachSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DetachThingPrincipalCommand.ts b/clients/client-iot/commands/DetachThingPrincipalCommand.ts index a686fc9bf4b1f..37339ea995f94 100644 --- a/clients/client-iot/commands/DetachThingPrincipalCommand.ts +++ b/clients/client-iot/commands/DetachThingPrincipalCommand.ts @@ -34,6 +34,7 @@ export class DetachThingPrincipalCommand extends $Command< DetachThingPrincipalCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DetachThingPrincipalCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/DisableTopicRuleCommand.ts b/clients/client-iot/commands/DisableTopicRuleCommand.ts index 7c144b34d3e25..041737e2d9307 100644 --- a/clients/client-iot/commands/DisableTopicRuleCommand.ts +++ b/clients/client-iot/commands/DisableTopicRuleCommand.ts @@ -28,6 +28,7 @@ export class DisableTopicRuleCommand extends $Command< DisableTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/EnableTopicRuleCommand.ts b/clients/client-iot/commands/EnableTopicRuleCommand.ts index ec741109e899a..ba669cf1f7100 100644 --- a/clients/client-iot/commands/EnableTopicRuleCommand.ts +++ b/clients/client-iot/commands/EnableTopicRuleCommand.ts @@ -28,6 +28,7 @@ export class EnableTopicRuleCommand extends $Command< EnableTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetCardinalityCommand.ts b/clients/client-iot/commands/GetCardinalityCommand.ts index 8ef3b1fb66383..3ab53767cdbee 100644 --- a/clients/client-iot/commands/GetCardinalityCommand.ts +++ b/clients/client-iot/commands/GetCardinalityCommand.ts @@ -28,6 +28,7 @@ export class GetCardinalityCommand extends $Command< GetCardinalityCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCardinalityCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetEffectivePoliciesCommand.ts b/clients/client-iot/commands/GetEffectivePoliciesCommand.ts index 4187d6ea31b17..22bc4271a651f 100644 --- a/clients/client-iot/commands/GetEffectivePoliciesCommand.ts +++ b/clients/client-iot/commands/GetEffectivePoliciesCommand.ts @@ -29,6 +29,7 @@ export class GetEffectivePoliciesCommand extends $Command< GetEffectivePoliciesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetEffectivePoliciesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetIndexingConfigurationCommand.ts b/clients/client-iot/commands/GetIndexingConfigurationCommand.ts index dcaa9f3851c67..8d3aac0c97e2a 100644 --- a/clients/client-iot/commands/GetIndexingConfigurationCommand.ts +++ b/clients/client-iot/commands/GetIndexingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetIndexingConfigurationCommand extends $Command< GetIndexingConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetIndexingConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetJobDocumentCommand.ts b/clients/client-iot/commands/GetJobDocumentCommand.ts index d751b4f0a381e..cea3db58eab6c 100644 --- a/clients/client-iot/commands/GetJobDocumentCommand.ts +++ b/clients/client-iot/commands/GetJobDocumentCommand.ts @@ -28,6 +28,7 @@ export class GetJobDocumentCommand extends $Command< GetJobDocumentCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJobDocumentCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetLoggingOptionsCommand.ts b/clients/client-iot/commands/GetLoggingOptionsCommand.ts index 36f7fc414c0f1..0414c2cc0c50b 100644 --- a/clients/client-iot/commands/GetLoggingOptionsCommand.ts +++ b/clients/client-iot/commands/GetLoggingOptionsCommand.ts @@ -30,6 +30,7 @@ export class GetLoggingOptionsCommand extends $Command< GetLoggingOptionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLoggingOptionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetOTAUpdateCommand.ts b/clients/client-iot/commands/GetOTAUpdateCommand.ts index dee969d0be74f..f380d8f5d5ed3 100644 --- a/clients/client-iot/commands/GetOTAUpdateCommand.ts +++ b/clients/client-iot/commands/GetOTAUpdateCommand.ts @@ -28,6 +28,7 @@ export class GetOTAUpdateCommand extends $Command< GetOTAUpdateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOTAUpdateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetPercentilesCommand.ts b/clients/client-iot/commands/GetPercentilesCommand.ts index a48bd5a55ad96..488bc3c105baa 100644 --- a/clients/client-iot/commands/GetPercentilesCommand.ts +++ b/clients/client-iot/commands/GetPercentilesCommand.ts @@ -36,6 +36,7 @@ export class GetPercentilesCommand extends $Command< GetPercentilesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetPercentilesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetPolicyCommand.ts b/clients/client-iot/commands/GetPolicyCommand.ts index ab830f4c255d2..5ec660be09ef7 100644 --- a/clients/client-iot/commands/GetPolicyCommand.ts +++ b/clients/client-iot/commands/GetPolicyCommand.ts @@ -25,6 +25,7 @@ export type GetPolicyCommandOutput = GetPolicyResponse & __MetadataBearer; * version.

*/ export class GetPolicyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetPolicyCommand 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-iot/commands/GetPolicyVersionCommand.ts b/clients/client-iot/commands/GetPolicyVersionCommand.ts index ca4b3a114fb3e..7b3eaeaa6fd85 100644 --- a/clients/client-iot/commands/GetPolicyVersionCommand.ts +++ b/clients/client-iot/commands/GetPolicyVersionCommand.ts @@ -28,6 +28,7 @@ export class GetPolicyVersionCommand extends $Command< GetPolicyVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPolicyVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetRegistrationCodeCommand.ts b/clients/client-iot/commands/GetRegistrationCodeCommand.ts index 85501b0e51cc2..9ee4eb7826b54 100644 --- a/clients/client-iot/commands/GetRegistrationCodeCommand.ts +++ b/clients/client-iot/commands/GetRegistrationCodeCommand.ts @@ -28,6 +28,7 @@ export class GetRegistrationCodeCommand extends $Command< GetRegistrationCodeCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRegistrationCodeCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetStatisticsCommand.ts b/clients/client-iot/commands/GetStatisticsCommand.ts index 3f719872a799e..38f82ed77ef75 100644 --- a/clients/client-iot/commands/GetStatisticsCommand.ts +++ b/clients/client-iot/commands/GetStatisticsCommand.ts @@ -30,6 +30,7 @@ export class GetStatisticsCommand extends $Command< GetStatisticsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetStatisticsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetTopicRuleCommand.ts b/clients/client-iot/commands/GetTopicRuleCommand.ts index 5ce6f426e476d..645628fea8191 100644 --- a/clients/client-iot/commands/GetTopicRuleCommand.ts +++ b/clients/client-iot/commands/GetTopicRuleCommand.ts @@ -28,6 +28,7 @@ export class GetTopicRuleCommand extends $Command< GetTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetTopicRuleDestinationCommand.ts b/clients/client-iot/commands/GetTopicRuleDestinationCommand.ts index 148d9c5ea679b..ec0b596d8d300 100644 --- a/clients/client-iot/commands/GetTopicRuleDestinationCommand.ts +++ b/clients/client-iot/commands/GetTopicRuleDestinationCommand.ts @@ -28,6 +28,7 @@ export class GetTopicRuleDestinationCommand extends $Command< GetTopicRuleDestinationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTopicRuleDestinationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/GetV2LoggingOptionsCommand.ts b/clients/client-iot/commands/GetV2LoggingOptionsCommand.ts index 11ae212e3d309..4933dd721516e 100644 --- a/clients/client-iot/commands/GetV2LoggingOptionsCommand.ts +++ b/clients/client-iot/commands/GetV2LoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class GetV2LoggingOptionsCommand extends $Command< GetV2LoggingOptionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetV2LoggingOptionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListActiveViolationsCommand.ts b/clients/client-iot/commands/ListActiveViolationsCommand.ts index b4768557bbd21..47a244ca819a4 100644 --- a/clients/client-iot/commands/ListActiveViolationsCommand.ts +++ b/clients/client-iot/commands/ListActiveViolationsCommand.ts @@ -28,6 +28,7 @@ export class ListActiveViolationsCommand extends $Command< ListActiveViolationsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListActiveViolationsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAttachedPoliciesCommand.ts b/clients/client-iot/commands/ListAttachedPoliciesCommand.ts index b35c76feab32e..81767a0352590 100644 --- a/clients/client-iot/commands/ListAttachedPoliciesCommand.ts +++ b/clients/client-iot/commands/ListAttachedPoliciesCommand.ts @@ -28,6 +28,7 @@ export class ListAttachedPoliciesCommand extends $Command< ListAttachedPoliciesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAttachedPoliciesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuditFindingsCommand.ts b/clients/client-iot/commands/ListAuditFindingsCommand.ts index 78319de50ab4c..691d103558652 100644 --- a/clients/client-iot/commands/ListAuditFindingsCommand.ts +++ b/clients/client-iot/commands/ListAuditFindingsCommand.ts @@ -29,6 +29,7 @@ export class ListAuditFindingsCommand extends $Command< ListAuditFindingsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAuditFindingsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuditMitigationActionsExecutionsCommand.ts b/clients/client-iot/commands/ListAuditMitigationActionsExecutionsCommand.ts index 56272d679f660..ea6f0135640bc 100644 --- a/clients/client-iot/commands/ListAuditMitigationActionsExecutionsCommand.ts +++ b/clients/client-iot/commands/ListAuditMitigationActionsExecutionsCommand.ts @@ -32,6 +32,7 @@ export class ListAuditMitigationActionsExecutionsCommand extends $Command< ListAuditMitigationActionsExecutionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListAuditMitigationActionsExecutionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuditMitigationActionsTasksCommand.ts b/clients/client-iot/commands/ListAuditMitigationActionsTasksCommand.ts index 070ffd377bc16..be99fa25b46a2 100644 --- a/clients/client-iot/commands/ListAuditMitigationActionsTasksCommand.ts +++ b/clients/client-iot/commands/ListAuditMitigationActionsTasksCommand.ts @@ -28,6 +28,7 @@ export class ListAuditMitigationActionsTasksCommand extends $Command< ListAuditMitigationActionsTasksCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAuditMitigationActionsTasksCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuditSuppressionsCommand.ts b/clients/client-iot/commands/ListAuditSuppressionsCommand.ts index 27d6a5ac91d64..a79306b17836a 100644 --- a/clients/client-iot/commands/ListAuditSuppressionsCommand.ts +++ b/clients/client-iot/commands/ListAuditSuppressionsCommand.ts @@ -30,6 +30,7 @@ export class ListAuditSuppressionsCommand extends $Command< ListAuditSuppressionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAuditSuppressionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuditTasksCommand.ts b/clients/client-iot/commands/ListAuditTasksCommand.ts index 18f032ba30e5a..13d10bc1f8bc2 100644 --- a/clients/client-iot/commands/ListAuditTasksCommand.ts +++ b/clients/client-iot/commands/ListAuditTasksCommand.ts @@ -29,6 +29,7 @@ export class ListAuditTasksCommand extends $Command< ListAuditTasksCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAuditTasksCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListAuthorizersCommand.ts b/clients/client-iot/commands/ListAuthorizersCommand.ts index 85bbf355e64b5..5238a78a0397a 100644 --- a/clients/client-iot/commands/ListAuthorizersCommand.ts +++ b/clients/client-iot/commands/ListAuthorizersCommand.ts @@ -28,6 +28,7 @@ export class ListAuthorizersCommand extends $Command< ListAuthorizersCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAuthorizersCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListBillingGroupsCommand.ts b/clients/client-iot/commands/ListBillingGroupsCommand.ts index 3ab6bea27be80..6f3c731f93695 100644 --- a/clients/client-iot/commands/ListBillingGroupsCommand.ts +++ b/clients/client-iot/commands/ListBillingGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListBillingGroupsCommand extends $Command< ListBillingGroupsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBillingGroupsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListCACertificatesCommand.ts b/clients/client-iot/commands/ListCACertificatesCommand.ts index 0c250c451f777..989c2f2b86a61 100644 --- a/clients/client-iot/commands/ListCACertificatesCommand.ts +++ b/clients/client-iot/commands/ListCACertificatesCommand.ts @@ -30,6 +30,7 @@ export class ListCACertificatesCommand extends $Command< ListCACertificatesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListCACertificatesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListCertificatesByCACommand.ts b/clients/client-iot/commands/ListCertificatesByCACommand.ts index a886695f7d1d9..4089314883214 100644 --- a/clients/client-iot/commands/ListCertificatesByCACommand.ts +++ b/clients/client-iot/commands/ListCertificatesByCACommand.ts @@ -28,6 +28,7 @@ export class ListCertificatesByCACommand extends $Command< ListCertificatesByCACommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCertificatesByCACommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListCertificatesCommand.ts b/clients/client-iot/commands/ListCertificatesCommand.ts index 92e8cb6f3b8c3..50903cf6eae55 100644 --- a/clients/client-iot/commands/ListCertificatesCommand.ts +++ b/clients/client-iot/commands/ListCertificatesCommand.ts @@ -30,6 +30,7 @@ export class ListCertificatesCommand extends $Command< ListCertificatesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListCertificatesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListDimensionsCommand.ts b/clients/client-iot/commands/ListDimensionsCommand.ts index 2b2f06cf37c7c..7aa06515841e9 100644 --- a/clients/client-iot/commands/ListDimensionsCommand.ts +++ b/clients/client-iot/commands/ListDimensionsCommand.ts @@ -28,6 +28,7 @@ export class ListDimensionsCommand extends $Command< ListDimensionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDimensionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListDomainConfigurationsCommand.ts b/clients/client-iot/commands/ListDomainConfigurationsCommand.ts index 37c00f26d9e14..966f26cc0d229 100644 --- a/clients/client-iot/commands/ListDomainConfigurationsCommand.ts +++ b/clients/client-iot/commands/ListDomainConfigurationsCommand.ts @@ -31,6 +31,7 @@ export class ListDomainConfigurationsCommand extends $Command< ListDomainConfigurationsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListDomainConfigurationsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListIndicesCommand.ts b/clients/client-iot/commands/ListIndicesCommand.ts index 0957cbf7c1027..715f37da46bb7 100644 --- a/clients/client-iot/commands/ListIndicesCommand.ts +++ b/clients/client-iot/commands/ListIndicesCommand.ts @@ -28,6 +28,7 @@ export class ListIndicesCommand extends $Command< ListIndicesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIndicesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListJobExecutionsForJobCommand.ts b/clients/client-iot/commands/ListJobExecutionsForJobCommand.ts index 622f15e0cdaa3..841103bbf1c7d 100644 --- a/clients/client-iot/commands/ListJobExecutionsForJobCommand.ts +++ b/clients/client-iot/commands/ListJobExecutionsForJobCommand.ts @@ -28,6 +28,7 @@ export class ListJobExecutionsForJobCommand extends $Command< ListJobExecutionsForJobCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobExecutionsForJobCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListJobExecutionsForThingCommand.ts b/clients/client-iot/commands/ListJobExecutionsForThingCommand.ts index c39455be4d1ce..aeaa7660efc0b 100644 --- a/clients/client-iot/commands/ListJobExecutionsForThingCommand.ts +++ b/clients/client-iot/commands/ListJobExecutionsForThingCommand.ts @@ -28,6 +28,7 @@ export class ListJobExecutionsForThingCommand extends $Command< ListJobExecutionsForThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobExecutionsForThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListJobsCommand.ts b/clients/client-iot/commands/ListJobsCommand.ts index 6b75ccf386fe6..6a33c0d237175 100644 --- a/clients/client-iot/commands/ListJobsCommand.ts +++ b/clients/client-iot/commands/ListJobsCommand.ts @@ -24,6 +24,7 @@ export type ListJobsCommandOutput = ListJobsResponse & __MetadataBearer; *

Lists jobs.

*/ export class ListJobsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class ListJobsCommand 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-iot/commands/ListMitigationActionsCommand.ts b/clients/client-iot/commands/ListMitigationActionsCommand.ts index 55565f4c0ca2b..cef37e3e169a5 100644 --- a/clients/client-iot/commands/ListMitigationActionsCommand.ts +++ b/clients/client-iot/commands/ListMitigationActionsCommand.ts @@ -28,6 +28,7 @@ export class ListMitigationActionsCommand extends $Command< ListMitigationActionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMitigationActionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListOTAUpdatesCommand.ts b/clients/client-iot/commands/ListOTAUpdatesCommand.ts index 7970187dafb3f..7fca34818b34c 100644 --- a/clients/client-iot/commands/ListOTAUpdatesCommand.ts +++ b/clients/client-iot/commands/ListOTAUpdatesCommand.ts @@ -28,6 +28,7 @@ export class ListOTAUpdatesCommand extends $Command< ListOTAUpdatesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOTAUpdatesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListOutgoingCertificatesCommand.ts b/clients/client-iot/commands/ListOutgoingCertificatesCommand.ts index f90246b909084..284cb2c9a9689 100644 --- a/clients/client-iot/commands/ListOutgoingCertificatesCommand.ts +++ b/clients/client-iot/commands/ListOutgoingCertificatesCommand.ts @@ -28,6 +28,7 @@ export class ListOutgoingCertificatesCommand extends $Command< ListOutgoingCertificatesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOutgoingCertificatesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListPoliciesCommand.ts b/clients/client-iot/commands/ListPoliciesCommand.ts index 361b00d612841..d4b9063667f80 100644 --- a/clients/client-iot/commands/ListPoliciesCommand.ts +++ b/clients/client-iot/commands/ListPoliciesCommand.ts @@ -28,6 +28,7 @@ export class ListPoliciesCommand extends $Command< ListPoliciesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPoliciesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListPolicyPrincipalsCommand.ts b/clients/client-iot/commands/ListPolicyPrincipalsCommand.ts index cc2f347effe9b..0298bc8a3c6ac 100644 --- a/clients/client-iot/commands/ListPolicyPrincipalsCommand.ts +++ b/clients/client-iot/commands/ListPolicyPrincipalsCommand.ts @@ -30,6 +30,7 @@ export class ListPolicyPrincipalsCommand extends $Command< ListPolicyPrincipalsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPolicyPrincipalsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListPolicyVersionsCommand.ts b/clients/client-iot/commands/ListPolicyVersionsCommand.ts index f85a77b332e57..0ee1d4d01333c 100644 --- a/clients/client-iot/commands/ListPolicyVersionsCommand.ts +++ b/clients/client-iot/commands/ListPolicyVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListPolicyVersionsCommand extends $Command< ListPolicyVersionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPolicyVersionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListPrincipalPoliciesCommand.ts b/clients/client-iot/commands/ListPrincipalPoliciesCommand.ts index b001666c27a60..b1e57f315cd88 100644 --- a/clients/client-iot/commands/ListPrincipalPoliciesCommand.ts +++ b/clients/client-iot/commands/ListPrincipalPoliciesCommand.ts @@ -31,6 +31,7 @@ export class ListPrincipalPoliciesCommand extends $Command< ListPrincipalPoliciesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListPrincipalPoliciesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListPrincipalThingsCommand.ts b/clients/client-iot/commands/ListPrincipalThingsCommand.ts index 917a6e06c84e3..d9132561d824d 100644 --- a/clients/client-iot/commands/ListPrincipalThingsCommand.ts +++ b/clients/client-iot/commands/ListPrincipalThingsCommand.ts @@ -30,6 +30,7 @@ export class ListPrincipalThingsCommand extends $Command< ListPrincipalThingsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPrincipalThingsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListProvisioningTemplateVersionsCommand.ts b/clients/client-iot/commands/ListProvisioningTemplateVersionsCommand.ts index e82e5fc22ec53..5a708216496a9 100644 --- a/clients/client-iot/commands/ListProvisioningTemplateVersionsCommand.ts +++ b/clients/client-iot/commands/ListProvisioningTemplateVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListProvisioningTemplateVersionsCommand extends $Command< ListProvisioningTemplateVersionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProvisioningTemplateVersionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListProvisioningTemplatesCommand.ts b/clients/client-iot/commands/ListProvisioningTemplatesCommand.ts index 47e24206556c1..56ea975a141d2 100644 --- a/clients/client-iot/commands/ListProvisioningTemplatesCommand.ts +++ b/clients/client-iot/commands/ListProvisioningTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListProvisioningTemplatesCommand extends $Command< ListProvisioningTemplatesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProvisioningTemplatesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListRoleAliasesCommand.ts b/clients/client-iot/commands/ListRoleAliasesCommand.ts index db3f7f5fef374..328bd0738a829 100644 --- a/clients/client-iot/commands/ListRoleAliasesCommand.ts +++ b/clients/client-iot/commands/ListRoleAliasesCommand.ts @@ -28,6 +28,7 @@ export class ListRoleAliasesCommand extends $Command< ListRoleAliasesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRoleAliasesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListScheduledAuditsCommand.ts b/clients/client-iot/commands/ListScheduledAuditsCommand.ts index b8b6403dea165..e506b4a9a21b1 100644 --- a/clients/client-iot/commands/ListScheduledAuditsCommand.ts +++ b/clients/client-iot/commands/ListScheduledAuditsCommand.ts @@ -28,6 +28,7 @@ export class ListScheduledAuditsCommand extends $Command< ListScheduledAuditsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListScheduledAuditsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListSecurityProfilesCommand.ts b/clients/client-iot/commands/ListSecurityProfilesCommand.ts index 3f3840af87aa1..b0b8dc31bbdb9 100644 --- a/clients/client-iot/commands/ListSecurityProfilesCommand.ts +++ b/clients/client-iot/commands/ListSecurityProfilesCommand.ts @@ -29,6 +29,7 @@ export class ListSecurityProfilesCommand extends $Command< ListSecurityProfilesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSecurityProfilesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListSecurityProfilesForTargetCommand.ts b/clients/client-iot/commands/ListSecurityProfilesForTargetCommand.ts index af6d2ce4bd1d9..4ec2043bce54d 100644 --- a/clients/client-iot/commands/ListSecurityProfilesForTargetCommand.ts +++ b/clients/client-iot/commands/ListSecurityProfilesForTargetCommand.ts @@ -28,6 +28,7 @@ export class ListSecurityProfilesForTargetCommand extends $Command< ListSecurityProfilesForTargetCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSecurityProfilesForTargetCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListStreamsCommand.ts b/clients/client-iot/commands/ListStreamsCommand.ts index cc8e3d9564b39..1327a06fd92d3 100644 --- a/clients/client-iot/commands/ListStreamsCommand.ts +++ b/clients/client-iot/commands/ListStreamsCommand.ts @@ -28,6 +28,7 @@ export class ListStreamsCommand extends $Command< ListStreamsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStreamsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListTagsForResourceCommand.ts b/clients/client-iot/commands/ListTagsForResourceCommand.ts index 8a691c8b5572e..bc3d9f7e2f6d9 100644 --- a/clients/client-iot/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iot/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListTargetsForPolicyCommand.ts b/clients/client-iot/commands/ListTargetsForPolicyCommand.ts index 496441e12a73b..c952d8985af36 100644 --- a/clients/client-iot/commands/ListTargetsForPolicyCommand.ts +++ b/clients/client-iot/commands/ListTargetsForPolicyCommand.ts @@ -28,6 +28,7 @@ export class ListTargetsForPolicyCommand extends $Command< ListTargetsForPolicyCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTargetsForPolicyCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListTargetsForSecurityProfileCommand.ts b/clients/client-iot/commands/ListTargetsForSecurityProfileCommand.ts index b42586c4b573a..fa7780e1a9fa7 100644 --- a/clients/client-iot/commands/ListTargetsForSecurityProfileCommand.ts +++ b/clients/client-iot/commands/ListTargetsForSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class ListTargetsForSecurityProfileCommand extends $Command< ListTargetsForSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTargetsForSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingGroupsCommand.ts b/clients/client-iot/commands/ListThingGroupsCommand.ts index adeee29525f7b..8629a80d54e96 100644 --- a/clients/client-iot/commands/ListThingGroupsCommand.ts +++ b/clients/client-iot/commands/ListThingGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListThingGroupsCommand extends $Command< ListThingGroupsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingGroupsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingGroupsForThingCommand.ts b/clients/client-iot/commands/ListThingGroupsForThingCommand.ts index e46721124aba1..616c9a6a9cb6b 100644 --- a/clients/client-iot/commands/ListThingGroupsForThingCommand.ts +++ b/clients/client-iot/commands/ListThingGroupsForThingCommand.ts @@ -28,6 +28,7 @@ export class ListThingGroupsForThingCommand extends $Command< ListThingGroupsForThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingGroupsForThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingPrincipalsCommand.ts b/clients/client-iot/commands/ListThingPrincipalsCommand.ts index 9841dc801d421..9ee9a7748461d 100644 --- a/clients/client-iot/commands/ListThingPrincipalsCommand.ts +++ b/clients/client-iot/commands/ListThingPrincipalsCommand.ts @@ -30,6 +30,7 @@ export class ListThingPrincipalsCommand extends $Command< ListThingPrincipalsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListThingPrincipalsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingRegistrationTaskReportsCommand.ts b/clients/client-iot/commands/ListThingRegistrationTaskReportsCommand.ts index 7eb15a03de614..9839c87668d77 100644 --- a/clients/client-iot/commands/ListThingRegistrationTaskReportsCommand.ts +++ b/clients/client-iot/commands/ListThingRegistrationTaskReportsCommand.ts @@ -28,6 +28,7 @@ export class ListThingRegistrationTaskReportsCommand extends $Command< ListThingRegistrationTaskReportsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingRegistrationTaskReportsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingRegistrationTasksCommand.ts b/clients/client-iot/commands/ListThingRegistrationTasksCommand.ts index 49e0183822168..ae8cd0dc55495 100644 --- a/clients/client-iot/commands/ListThingRegistrationTasksCommand.ts +++ b/clients/client-iot/commands/ListThingRegistrationTasksCommand.ts @@ -28,6 +28,7 @@ export class ListThingRegistrationTasksCommand extends $Command< ListThingRegistrationTasksCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingRegistrationTasksCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingTypesCommand.ts b/clients/client-iot/commands/ListThingTypesCommand.ts index a88614b8954d9..a96b030088da3 100644 --- a/clients/client-iot/commands/ListThingTypesCommand.ts +++ b/clients/client-iot/commands/ListThingTypesCommand.ts @@ -28,6 +28,7 @@ export class ListThingTypesCommand extends $Command< ListThingTypesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingTypesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingsCommand.ts b/clients/client-iot/commands/ListThingsCommand.ts index 8d3bce300fd23..ac716b6426f29 100644 --- a/clients/client-iot/commands/ListThingsCommand.ts +++ b/clients/client-iot/commands/ListThingsCommand.ts @@ -35,6 +35,7 @@ export class ListThingsCommand extends $Command< ListThingsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListThingsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingsInBillingGroupCommand.ts b/clients/client-iot/commands/ListThingsInBillingGroupCommand.ts index ec9b407b90d63..ace7d4bf6c324 100644 --- a/clients/client-iot/commands/ListThingsInBillingGroupCommand.ts +++ b/clients/client-iot/commands/ListThingsInBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class ListThingsInBillingGroupCommand extends $Command< ListThingsInBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingsInBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListThingsInThingGroupCommand.ts b/clients/client-iot/commands/ListThingsInThingGroupCommand.ts index 86e288ec3d163..baf914b6a75e4 100644 --- a/clients/client-iot/commands/ListThingsInThingGroupCommand.ts +++ b/clients/client-iot/commands/ListThingsInThingGroupCommand.ts @@ -28,6 +28,7 @@ export class ListThingsInThingGroupCommand extends $Command< ListThingsInThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThingsInThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListTopicRuleDestinationsCommand.ts b/clients/client-iot/commands/ListTopicRuleDestinationsCommand.ts index 8154cca1a523b..d0eac62aaf581 100644 --- a/clients/client-iot/commands/ListTopicRuleDestinationsCommand.ts +++ b/clients/client-iot/commands/ListTopicRuleDestinationsCommand.ts @@ -28,6 +28,7 @@ export class ListTopicRuleDestinationsCommand extends $Command< ListTopicRuleDestinationsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTopicRuleDestinationsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListTopicRulesCommand.ts b/clients/client-iot/commands/ListTopicRulesCommand.ts index c51285a068ca6..40b7292a6cf62 100644 --- a/clients/client-iot/commands/ListTopicRulesCommand.ts +++ b/clients/client-iot/commands/ListTopicRulesCommand.ts @@ -28,6 +28,7 @@ export class ListTopicRulesCommand extends $Command< ListTopicRulesCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTopicRulesCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListV2LoggingLevelsCommand.ts b/clients/client-iot/commands/ListV2LoggingLevelsCommand.ts index 1900b8a5a4334..ec97a89ebfca1 100644 --- a/clients/client-iot/commands/ListV2LoggingLevelsCommand.ts +++ b/clients/client-iot/commands/ListV2LoggingLevelsCommand.ts @@ -28,6 +28,7 @@ export class ListV2LoggingLevelsCommand extends $Command< ListV2LoggingLevelsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListV2LoggingLevelsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ListViolationEventsCommand.ts b/clients/client-iot/commands/ListViolationEventsCommand.ts index 5b1fa857c5a29..25a907477c165 100644 --- a/clients/client-iot/commands/ListViolationEventsCommand.ts +++ b/clients/client-iot/commands/ListViolationEventsCommand.ts @@ -30,6 +30,7 @@ export class ListViolationEventsCommand extends $Command< ListViolationEventsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListViolationEventsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RegisterCACertificateCommand.ts b/clients/client-iot/commands/RegisterCACertificateCommand.ts index 1e842ec079daa..897339cad974c 100644 --- a/clients/client-iot/commands/RegisterCACertificateCommand.ts +++ b/clients/client-iot/commands/RegisterCACertificateCommand.ts @@ -33,6 +33,7 @@ export class RegisterCACertificateCommand extends $Command< RegisterCACertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RegisterCACertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RegisterCertificateCommand.ts b/clients/client-iot/commands/RegisterCertificateCommand.ts index a2b40cd2312e3..f3d47f08baad0 100644 --- a/clients/client-iot/commands/RegisterCertificateCommand.ts +++ b/clients/client-iot/commands/RegisterCertificateCommand.ts @@ -30,6 +30,7 @@ export class RegisterCertificateCommand extends $Command< RegisterCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RegisterCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RegisterCertificateWithoutCACommand.ts b/clients/client-iot/commands/RegisterCertificateWithoutCACommand.ts index c3dde1829db5d..098cee140f973 100644 --- a/clients/client-iot/commands/RegisterCertificateWithoutCACommand.ts +++ b/clients/client-iot/commands/RegisterCertificateWithoutCACommand.ts @@ -28,6 +28,7 @@ export class RegisterCertificateWithoutCACommand extends $Command< RegisterCertificateWithoutCACommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterCertificateWithoutCACommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RegisterThingCommand.ts b/clients/client-iot/commands/RegisterThingCommand.ts index ad2cdfb7b8039..fcac4a823e602 100644 --- a/clients/client-iot/commands/RegisterThingCommand.ts +++ b/clients/client-iot/commands/RegisterThingCommand.ts @@ -31,6 +31,7 @@ export class RegisterThingCommand extends $Command< RegisterThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RegisterThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RejectCertificateTransferCommand.ts b/clients/client-iot/commands/RejectCertificateTransferCommand.ts index 5cc35adceaf8d..56dbb5b5b1f8a 100644 --- a/clients/client-iot/commands/RejectCertificateTransferCommand.ts +++ b/clients/client-iot/commands/RejectCertificateTransferCommand.ts @@ -34,6 +34,7 @@ export class RejectCertificateTransferCommand extends $Command< RejectCertificateTransferCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RejectCertificateTransferCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RemoveThingFromBillingGroupCommand.ts b/clients/client-iot/commands/RemoveThingFromBillingGroupCommand.ts index c6a319afba5b3..278a650d3e197 100644 --- a/clients/client-iot/commands/RemoveThingFromBillingGroupCommand.ts +++ b/clients/client-iot/commands/RemoveThingFromBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class RemoveThingFromBillingGroupCommand extends $Command< RemoveThingFromBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveThingFromBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/RemoveThingFromThingGroupCommand.ts b/clients/client-iot/commands/RemoveThingFromThingGroupCommand.ts index c1e4f3f9e600b..0863b8d359d40 100644 --- a/clients/client-iot/commands/RemoveThingFromThingGroupCommand.ts +++ b/clients/client-iot/commands/RemoveThingFromThingGroupCommand.ts @@ -33,6 +33,7 @@ export class RemoveThingFromThingGroupCommand extends $Command< RemoveThingFromThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RemoveThingFromThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ReplaceTopicRuleCommand.ts b/clients/client-iot/commands/ReplaceTopicRuleCommand.ts index 25560cbc2728c..be97d42fd3c7f 100644 --- a/clients/client-iot/commands/ReplaceTopicRuleCommand.ts +++ b/clients/client-iot/commands/ReplaceTopicRuleCommand.ts @@ -30,6 +30,7 @@ export class ReplaceTopicRuleCommand extends $Command< ReplaceTopicRuleCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ReplaceTopicRuleCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SearchIndexCommand.ts b/clients/client-iot/commands/SearchIndexCommand.ts index d9ce22e16ff30..7018e77935b9d 100644 --- a/clients/client-iot/commands/SearchIndexCommand.ts +++ b/clients/client-iot/commands/SearchIndexCommand.ts @@ -28,6 +28,7 @@ export class SearchIndexCommand extends $Command< SearchIndexCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchIndexCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SetDefaultAuthorizerCommand.ts b/clients/client-iot/commands/SetDefaultAuthorizerCommand.ts index 1772bfa9eb769..d137c9d357e5c 100644 --- a/clients/client-iot/commands/SetDefaultAuthorizerCommand.ts +++ b/clients/client-iot/commands/SetDefaultAuthorizerCommand.ts @@ -29,6 +29,7 @@ export class SetDefaultAuthorizerCommand extends $Command< SetDefaultAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SetDefaultAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SetDefaultPolicyVersionCommand.ts b/clients/client-iot/commands/SetDefaultPolicyVersionCommand.ts index 9a6bcabbada17..fa80bbea2296c 100644 --- a/clients/client-iot/commands/SetDefaultPolicyVersionCommand.ts +++ b/clients/client-iot/commands/SetDefaultPolicyVersionCommand.ts @@ -31,6 +31,7 @@ export class SetDefaultPolicyVersionCommand extends $Command< SetDefaultPolicyVersionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class SetDefaultPolicyVersionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SetLoggingOptionsCommand.ts b/clients/client-iot/commands/SetLoggingOptionsCommand.ts index daf5966aa25c3..aa235996298c1 100644 --- a/clients/client-iot/commands/SetLoggingOptionsCommand.ts +++ b/clients/client-iot/commands/SetLoggingOptionsCommand.ts @@ -30,6 +30,7 @@ export class SetLoggingOptionsCommand extends $Command< SetLoggingOptionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetLoggingOptionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SetV2LoggingLevelCommand.ts b/clients/client-iot/commands/SetV2LoggingLevelCommand.ts index 93ccc7905a54e..f96730e02395f 100644 --- a/clients/client-iot/commands/SetV2LoggingLevelCommand.ts +++ b/clients/client-iot/commands/SetV2LoggingLevelCommand.ts @@ -28,6 +28,7 @@ export class SetV2LoggingLevelCommand extends $Command< SetV2LoggingLevelCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SetV2LoggingLevelCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/SetV2LoggingOptionsCommand.ts b/clients/client-iot/commands/SetV2LoggingOptionsCommand.ts index c43ff85f9c227..863d0816eb94e 100644 --- a/clients/client-iot/commands/SetV2LoggingOptionsCommand.ts +++ b/clients/client-iot/commands/SetV2LoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class SetV2LoggingOptionsCommand extends $Command< SetV2LoggingOptionsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SetV2LoggingOptionsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/StartAuditMitigationActionsTaskCommand.ts b/clients/client-iot/commands/StartAuditMitigationActionsTaskCommand.ts index aba9c6c915af0..beba19d22ed04 100644 --- a/clients/client-iot/commands/StartAuditMitigationActionsTaskCommand.ts +++ b/clients/client-iot/commands/StartAuditMitigationActionsTaskCommand.ts @@ -28,6 +28,7 @@ export class StartAuditMitigationActionsTaskCommand extends $Command< StartAuditMitigationActionsTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartAuditMitigationActionsTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/StartOnDemandAuditTaskCommand.ts b/clients/client-iot/commands/StartOnDemandAuditTaskCommand.ts index cdc7ddcc84944..448b8840e9934 100644 --- a/clients/client-iot/commands/StartOnDemandAuditTaskCommand.ts +++ b/clients/client-iot/commands/StartOnDemandAuditTaskCommand.ts @@ -28,6 +28,7 @@ export class StartOnDemandAuditTaskCommand extends $Command< StartOnDemandAuditTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartOnDemandAuditTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/StartThingRegistrationTaskCommand.ts b/clients/client-iot/commands/StartThingRegistrationTaskCommand.ts index 29c52bd49d14b..37d8c7bb6ae93 100644 --- a/clients/client-iot/commands/StartThingRegistrationTaskCommand.ts +++ b/clients/client-iot/commands/StartThingRegistrationTaskCommand.ts @@ -28,6 +28,7 @@ export class StartThingRegistrationTaskCommand extends $Command< StartThingRegistrationTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartThingRegistrationTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/StopThingRegistrationTaskCommand.ts b/clients/client-iot/commands/StopThingRegistrationTaskCommand.ts index d42cbaf94be28..32b40e5024d18 100644 --- a/clients/client-iot/commands/StopThingRegistrationTaskCommand.ts +++ b/clients/client-iot/commands/StopThingRegistrationTaskCommand.ts @@ -28,6 +28,7 @@ export class StopThingRegistrationTaskCommand extends $Command< StopThingRegistrationTaskCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopThingRegistrationTaskCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/TagResourceCommand.ts b/clients/client-iot/commands/TagResourceCommand.ts index f67b9a350f4c6..bea565eeb9e03 100644 --- a/clients/client-iot/commands/TagResourceCommand.ts +++ b/clients/client-iot/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/TestAuthorizationCommand.ts b/clients/client-iot/commands/TestAuthorizationCommand.ts index 535988387916d..ca85585f72c67 100644 --- a/clients/client-iot/commands/TestAuthorizationCommand.ts +++ b/clients/client-iot/commands/TestAuthorizationCommand.ts @@ -30,6 +30,7 @@ export class TestAuthorizationCommand extends $Command< TestAuthorizationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TestAuthorizationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/TestInvokeAuthorizerCommand.ts b/clients/client-iot/commands/TestInvokeAuthorizerCommand.ts index 439a0e073218a..19853916cb98a 100644 --- a/clients/client-iot/commands/TestInvokeAuthorizerCommand.ts +++ b/clients/client-iot/commands/TestInvokeAuthorizerCommand.ts @@ -30,6 +30,7 @@ export class TestInvokeAuthorizerCommand extends $Command< TestInvokeAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TestInvokeAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/TransferCertificateCommand.ts b/clients/client-iot/commands/TransferCertificateCommand.ts index 494030c95fc8a..9c8f0ca615b1c 100644 --- a/clients/client-iot/commands/TransferCertificateCommand.ts +++ b/clients/client-iot/commands/TransferCertificateCommand.ts @@ -35,6 +35,7 @@ export class TransferCertificateCommand extends $Command< TransferCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class TransferCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UntagResourceCommand.ts b/clients/client-iot/commands/UntagResourceCommand.ts index 7b6d451bb6724..9a70fe98472d3 100644 --- a/clients/client-iot/commands/UntagResourceCommand.ts +++ b/clients/client-iot/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateAccountAuditConfigurationCommand.ts b/clients/client-iot/commands/UpdateAccountAuditConfigurationCommand.ts index f0170200dc8cb..10ed3b13f2990 100644 --- a/clients/client-iot/commands/UpdateAccountAuditConfigurationCommand.ts +++ b/clients/client-iot/commands/UpdateAccountAuditConfigurationCommand.ts @@ -30,6 +30,7 @@ export class UpdateAccountAuditConfigurationCommand extends $Command< UpdateAccountAuditConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAccountAuditConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateAuditSuppressionCommand.ts b/clients/client-iot/commands/UpdateAuditSuppressionCommand.ts index 080faea92632a..5f86023922970 100644 --- a/clients/client-iot/commands/UpdateAuditSuppressionCommand.ts +++ b/clients/client-iot/commands/UpdateAuditSuppressionCommand.ts @@ -30,6 +30,7 @@ export class UpdateAuditSuppressionCommand extends $Command< UpdateAuditSuppressionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAuditSuppressionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateAuthorizerCommand.ts b/clients/client-iot/commands/UpdateAuthorizerCommand.ts index 9e84ae2686613..fe55b1de402da 100644 --- a/clients/client-iot/commands/UpdateAuthorizerCommand.ts +++ b/clients/client-iot/commands/UpdateAuthorizerCommand.ts @@ -28,6 +28,7 @@ export class UpdateAuthorizerCommand extends $Command< UpdateAuthorizerCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAuthorizerCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateBillingGroupCommand.ts b/clients/client-iot/commands/UpdateBillingGroupCommand.ts index 7b337aaec11b3..35fa31700324c 100644 --- a/clients/client-iot/commands/UpdateBillingGroupCommand.ts +++ b/clients/client-iot/commands/UpdateBillingGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateBillingGroupCommand extends $Command< UpdateBillingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBillingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateCACertificateCommand.ts b/clients/client-iot/commands/UpdateCACertificateCommand.ts index ed26571af7394..2492d8155319d 100644 --- a/clients/client-iot/commands/UpdateCACertificateCommand.ts +++ b/clients/client-iot/commands/UpdateCACertificateCommand.ts @@ -28,6 +28,7 @@ export class UpdateCACertificateCommand extends $Command< UpdateCACertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCACertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateCertificateCommand.ts b/clients/client-iot/commands/UpdateCertificateCommand.ts index 5e69e29e61ef8..48ee88e25d256 100644 --- a/clients/client-iot/commands/UpdateCertificateCommand.ts +++ b/clients/client-iot/commands/UpdateCertificateCommand.ts @@ -34,6 +34,7 @@ export class UpdateCertificateCommand extends $Command< UpdateCertificateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateCertificateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateDimensionCommand.ts b/clients/client-iot/commands/UpdateDimensionCommand.ts index c46168a15e9f3..4b9517803b8aa 100644 --- a/clients/client-iot/commands/UpdateDimensionCommand.ts +++ b/clients/client-iot/commands/UpdateDimensionCommand.ts @@ -28,6 +28,7 @@ export class UpdateDimensionCommand extends $Command< UpdateDimensionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDimensionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateDomainConfigurationCommand.ts b/clients/client-iot/commands/UpdateDomainConfigurationCommand.ts index 581f501ca76c6..2daa59a133df6 100644 --- a/clients/client-iot/commands/UpdateDomainConfigurationCommand.ts +++ b/clients/client-iot/commands/UpdateDomainConfigurationCommand.ts @@ -31,6 +31,7 @@ export class UpdateDomainConfigurationCommand extends $Command< UpdateDomainConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDomainConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateDynamicThingGroupCommand.ts b/clients/client-iot/commands/UpdateDynamicThingGroupCommand.ts index 1e69926c75e37..bae79bca945f7 100644 --- a/clients/client-iot/commands/UpdateDynamicThingGroupCommand.ts +++ b/clients/client-iot/commands/UpdateDynamicThingGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateDynamicThingGroupCommand extends $Command< UpdateDynamicThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDynamicThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateEventConfigurationsCommand.ts b/clients/client-iot/commands/UpdateEventConfigurationsCommand.ts index 93b3b236534de..ff278e6441f2e 100644 --- a/clients/client-iot/commands/UpdateEventConfigurationsCommand.ts +++ b/clients/client-iot/commands/UpdateEventConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class UpdateEventConfigurationsCommand extends $Command< UpdateEventConfigurationsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEventConfigurationsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateIndexingConfigurationCommand.ts b/clients/client-iot/commands/UpdateIndexingConfigurationCommand.ts index 1f5767cdfcc5e..f5e57106335cd 100644 --- a/clients/client-iot/commands/UpdateIndexingConfigurationCommand.ts +++ b/clients/client-iot/commands/UpdateIndexingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateIndexingConfigurationCommand extends $Command< UpdateIndexingConfigurationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIndexingConfigurationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateJobCommand.ts b/clients/client-iot/commands/UpdateJobCommand.ts index e26a0065987ad..0d620b3f6c41d 100644 --- a/clients/client-iot/commands/UpdateJobCommand.ts +++ b/clients/client-iot/commands/UpdateJobCommand.ts @@ -24,6 +24,7 @@ export type UpdateJobCommandOutput = __MetadataBearer; *

Updates supported fields of the specified job.

*/ export class UpdateJobCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class UpdateJobCommand 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-iot/commands/UpdateMitigationActionCommand.ts b/clients/client-iot/commands/UpdateMitigationActionCommand.ts index 89460778c7c72..4c28743638b91 100644 --- a/clients/client-iot/commands/UpdateMitigationActionCommand.ts +++ b/clients/client-iot/commands/UpdateMitigationActionCommand.ts @@ -28,6 +28,7 @@ export class UpdateMitigationActionCommand extends $Command< UpdateMitigationActionCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMitigationActionCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateProvisioningTemplateCommand.ts b/clients/client-iot/commands/UpdateProvisioningTemplateCommand.ts index 2f084bb545d73..a55dbfb10f7a2 100644 --- a/clients/client-iot/commands/UpdateProvisioningTemplateCommand.ts +++ b/clients/client-iot/commands/UpdateProvisioningTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateProvisioningTemplateCommand extends $Command< UpdateProvisioningTemplateCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProvisioningTemplateCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateRoleAliasCommand.ts b/clients/client-iot/commands/UpdateRoleAliasCommand.ts index 3712333ec6a41..33bc913f0982d 100644 --- a/clients/client-iot/commands/UpdateRoleAliasCommand.ts +++ b/clients/client-iot/commands/UpdateRoleAliasCommand.ts @@ -28,6 +28,7 @@ export class UpdateRoleAliasCommand extends $Command< UpdateRoleAliasCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRoleAliasCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateScheduledAuditCommand.ts b/clients/client-iot/commands/UpdateScheduledAuditCommand.ts index 66f4c8232f8c0..fa098c3e55e9f 100644 --- a/clients/client-iot/commands/UpdateScheduledAuditCommand.ts +++ b/clients/client-iot/commands/UpdateScheduledAuditCommand.ts @@ -29,6 +29,7 @@ export class UpdateScheduledAuditCommand extends $Command< UpdateScheduledAuditCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateScheduledAuditCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateSecurityProfileCommand.ts b/clients/client-iot/commands/UpdateSecurityProfileCommand.ts index 52eb9900f3d47..1c3f4543db48f 100644 --- a/clients/client-iot/commands/UpdateSecurityProfileCommand.ts +++ b/clients/client-iot/commands/UpdateSecurityProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateSecurityProfileCommand extends $Command< UpdateSecurityProfileCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSecurityProfileCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateStreamCommand.ts b/clients/client-iot/commands/UpdateStreamCommand.ts index 64140f25c04b0..56658df7a1a0f 100644 --- a/clients/client-iot/commands/UpdateStreamCommand.ts +++ b/clients/client-iot/commands/UpdateStreamCommand.ts @@ -28,6 +28,7 @@ export class UpdateStreamCommand extends $Command< UpdateStreamCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateStreamCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateThingCommand.ts b/clients/client-iot/commands/UpdateThingCommand.ts index 8ee80fbe77cbe..6bf05f7a250b0 100644 --- a/clients/client-iot/commands/UpdateThingCommand.ts +++ b/clients/client-iot/commands/UpdateThingCommand.ts @@ -28,6 +28,7 @@ export class UpdateThingCommand extends $Command< UpdateThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateThingGroupCommand.ts b/clients/client-iot/commands/UpdateThingGroupCommand.ts index a4cb72c493449..7009edb51ede9 100644 --- a/clients/client-iot/commands/UpdateThingGroupCommand.ts +++ b/clients/client-iot/commands/UpdateThingGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateThingGroupCommand extends $Command< UpdateThingGroupCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThingGroupCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateThingGroupsForThingCommand.ts b/clients/client-iot/commands/UpdateThingGroupsForThingCommand.ts index 1bf01fe5d86e9..21c51fc8a8c0f 100644 --- a/clients/client-iot/commands/UpdateThingGroupsForThingCommand.ts +++ b/clients/client-iot/commands/UpdateThingGroupsForThingCommand.ts @@ -28,6 +28,7 @@ export class UpdateThingGroupsForThingCommand extends $Command< UpdateThingGroupsForThingCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThingGroupsForThingCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/UpdateTopicRuleDestinationCommand.ts b/clients/client-iot/commands/UpdateTopicRuleDestinationCommand.ts index b93439dc72fca..2ad300b706e94 100644 --- a/clients/client-iot/commands/UpdateTopicRuleDestinationCommand.ts +++ b/clients/client-iot/commands/UpdateTopicRuleDestinationCommand.ts @@ -29,6 +29,7 @@ export class UpdateTopicRuleDestinationCommand extends $Command< UpdateTopicRuleDestinationCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateTopicRuleDestinationCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iot/commands/ValidateSecurityProfileBehaviorsCommand.ts b/clients/client-iot/commands/ValidateSecurityProfileBehaviorsCommand.ts index cc41e32ab9e95..4af91cc8a03e4 100644 --- a/clients/client-iot/commands/ValidateSecurityProfileBehaviorsCommand.ts +++ b/clients/client-iot/commands/ValidateSecurityProfileBehaviorsCommand.ts @@ -28,6 +28,7 @@ export class ValidateSecurityProfileBehaviorsCommand extends $Command< ValidateSecurityProfileBehaviorsCommandOutput, IoTClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ValidateSecurityProfileBehaviorsCommand extends $Command< configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/BatchPutMessageCommand.ts b/clients/client-iotanalytics/commands/BatchPutMessageCommand.ts index c92167bdc78f2..36888903113dd 100644 --- a/clients/client-iotanalytics/commands/BatchPutMessageCommand.ts +++ b/clients/client-iotanalytics/commands/BatchPutMessageCommand.ts @@ -28,6 +28,7 @@ export class BatchPutMessageCommand extends $Command< BatchPutMessageCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchPutMessageCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CancelPipelineReprocessingCommand.ts b/clients/client-iotanalytics/commands/CancelPipelineReprocessingCommand.ts index 35ad8e0d8a21f..f7e012467cb88 100644 --- a/clients/client-iotanalytics/commands/CancelPipelineReprocessingCommand.ts +++ b/clients/client-iotanalytics/commands/CancelPipelineReprocessingCommand.ts @@ -28,6 +28,7 @@ export class CancelPipelineReprocessingCommand extends $Command< CancelPipelineReprocessingCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelPipelineReprocessingCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CreateChannelCommand.ts b/clients/client-iotanalytics/commands/CreateChannelCommand.ts index 9d0faf82e9236..bddfb1316a149 100644 --- a/clients/client-iotanalytics/commands/CreateChannelCommand.ts +++ b/clients/client-iotanalytics/commands/CreateChannelCommand.ts @@ -29,6 +29,7 @@ export class CreateChannelCommand extends $Command< CreateChannelCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateChannelCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CreateDatasetCommand.ts b/clients/client-iotanalytics/commands/CreateDatasetCommand.ts index 683d7fa9be8d9..d5ff0a213f9c6 100644 --- a/clients/client-iotanalytics/commands/CreateDatasetCommand.ts +++ b/clients/client-iotanalytics/commands/CreateDatasetCommand.ts @@ -32,6 +32,7 @@ export class CreateDatasetCommand extends $Command< CreateDatasetCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateDatasetCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CreateDatasetContentCommand.ts b/clients/client-iotanalytics/commands/CreateDatasetContentCommand.ts index 40733ba308f76..890e6869911d3 100644 --- a/clients/client-iotanalytics/commands/CreateDatasetContentCommand.ts +++ b/clients/client-iotanalytics/commands/CreateDatasetContentCommand.ts @@ -29,6 +29,7 @@ export class CreateDatasetContentCommand extends $Command< CreateDatasetContentCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDatasetContentCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CreateDatastoreCommand.ts b/clients/client-iotanalytics/commands/CreateDatastoreCommand.ts index 41371b5458e36..b25392ec15d25 100644 --- a/clients/client-iotanalytics/commands/CreateDatastoreCommand.ts +++ b/clients/client-iotanalytics/commands/CreateDatastoreCommand.ts @@ -28,6 +28,7 @@ export class CreateDatastoreCommand extends $Command< CreateDatastoreCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDatastoreCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/CreatePipelineCommand.ts b/clients/client-iotanalytics/commands/CreatePipelineCommand.ts index b77e992258e2d..1fedb65afd8ee 100644 --- a/clients/client-iotanalytics/commands/CreatePipelineCommand.ts +++ b/clients/client-iotanalytics/commands/CreatePipelineCommand.ts @@ -31,6 +31,7 @@ export class CreatePipelineCommand extends $Command< CreatePipelineCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreatePipelineCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DeleteChannelCommand.ts b/clients/client-iotanalytics/commands/DeleteChannelCommand.ts index f2aee70c9e740..ac5b0a4e3f04a 100644 --- a/clients/client-iotanalytics/commands/DeleteChannelCommand.ts +++ b/clients/client-iotanalytics/commands/DeleteChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelCommand extends $Command< DeleteChannelCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DeleteDatasetCommand.ts b/clients/client-iotanalytics/commands/DeleteDatasetCommand.ts index a640a66276dbd..4bbeb7994f8d2 100644 --- a/clients/client-iotanalytics/commands/DeleteDatasetCommand.ts +++ b/clients/client-iotanalytics/commands/DeleteDatasetCommand.ts @@ -30,6 +30,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDatasetCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DeleteDatasetContentCommand.ts b/clients/client-iotanalytics/commands/DeleteDatasetContentCommand.ts index d76b11f010d59..8040dd028c545 100644 --- a/clients/client-iotanalytics/commands/DeleteDatasetContentCommand.ts +++ b/clients/client-iotanalytics/commands/DeleteDatasetContentCommand.ts @@ -28,6 +28,7 @@ export class DeleteDatasetContentCommand extends $Command< DeleteDatasetContentCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDatasetContentCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DeleteDatastoreCommand.ts b/clients/client-iotanalytics/commands/DeleteDatastoreCommand.ts index e2b2364028c03..ccbfcf15bcdef 100644 --- a/clients/client-iotanalytics/commands/DeleteDatastoreCommand.ts +++ b/clients/client-iotanalytics/commands/DeleteDatastoreCommand.ts @@ -28,6 +28,7 @@ export class DeleteDatastoreCommand extends $Command< DeleteDatastoreCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDatastoreCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DeletePipelineCommand.ts b/clients/client-iotanalytics/commands/DeletePipelineCommand.ts index be9b4eed014d3..fca95e0451e9f 100644 --- a/clients/client-iotanalytics/commands/DeletePipelineCommand.ts +++ b/clients/client-iotanalytics/commands/DeletePipelineCommand.ts @@ -28,6 +28,7 @@ export class DeletePipelineCommand extends $Command< DeletePipelineCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePipelineCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DescribeChannelCommand.ts b/clients/client-iotanalytics/commands/DescribeChannelCommand.ts index 691b962d97f1b..85732bd87a2e9 100644 --- a/clients/client-iotanalytics/commands/DescribeChannelCommand.ts +++ b/clients/client-iotanalytics/commands/DescribeChannelCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelCommand extends $Command< DescribeChannelCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DescribeDatasetCommand.ts b/clients/client-iotanalytics/commands/DescribeDatasetCommand.ts index 53489fa20cd93..80cd1c462abd8 100644 --- a/clients/client-iotanalytics/commands/DescribeDatasetCommand.ts +++ b/clients/client-iotanalytics/commands/DescribeDatasetCommand.ts @@ -28,6 +28,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDatasetCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DescribeDatastoreCommand.ts b/clients/client-iotanalytics/commands/DescribeDatastoreCommand.ts index 2dbb2de730312..4bc61f4f23567 100644 --- a/clients/client-iotanalytics/commands/DescribeDatastoreCommand.ts +++ b/clients/client-iotanalytics/commands/DescribeDatastoreCommand.ts @@ -28,6 +28,7 @@ export class DescribeDatastoreCommand extends $Command< DescribeDatastoreCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDatastoreCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DescribeLoggingOptionsCommand.ts b/clients/client-iotanalytics/commands/DescribeLoggingOptionsCommand.ts index 69d77903471e7..7ef7437d4feb6 100644 --- a/clients/client-iotanalytics/commands/DescribeLoggingOptionsCommand.ts +++ b/clients/client-iotanalytics/commands/DescribeLoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLoggingOptionsCommand extends $Command< DescribeLoggingOptionsCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLoggingOptionsCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/DescribePipelineCommand.ts b/clients/client-iotanalytics/commands/DescribePipelineCommand.ts index f3fcf179ddeb6..f115f2658f2ca 100644 --- a/clients/client-iotanalytics/commands/DescribePipelineCommand.ts +++ b/clients/client-iotanalytics/commands/DescribePipelineCommand.ts @@ -28,6 +28,7 @@ export class DescribePipelineCommand extends $Command< DescribePipelineCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePipelineCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/GetDatasetContentCommand.ts b/clients/client-iotanalytics/commands/GetDatasetContentCommand.ts index a6768db613103..817df3428e0b1 100644 --- a/clients/client-iotanalytics/commands/GetDatasetContentCommand.ts +++ b/clients/client-iotanalytics/commands/GetDatasetContentCommand.ts @@ -28,6 +28,7 @@ export class GetDatasetContentCommand extends $Command< GetDatasetContentCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDatasetContentCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListChannelsCommand.ts b/clients/client-iotanalytics/commands/ListChannelsCommand.ts index 48d85cde3a1ad..a627daba8005a 100644 --- a/clients/client-iotanalytics/commands/ListChannelsCommand.ts +++ b/clients/client-iotanalytics/commands/ListChannelsCommand.ts @@ -28,6 +28,7 @@ export class ListChannelsCommand extends $Command< ListChannelsCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelsCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListDatasetContentsCommand.ts b/clients/client-iotanalytics/commands/ListDatasetContentsCommand.ts index 7244b11e95449..5cf36e8080f25 100644 --- a/clients/client-iotanalytics/commands/ListDatasetContentsCommand.ts +++ b/clients/client-iotanalytics/commands/ListDatasetContentsCommand.ts @@ -28,6 +28,7 @@ export class ListDatasetContentsCommand extends $Command< ListDatasetContentsCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDatasetContentsCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListDatasetsCommand.ts b/clients/client-iotanalytics/commands/ListDatasetsCommand.ts index cdee032fa38e6..bbc0b5c615698 100644 --- a/clients/client-iotanalytics/commands/ListDatasetsCommand.ts +++ b/clients/client-iotanalytics/commands/ListDatasetsCommand.ts @@ -28,6 +28,7 @@ export class ListDatasetsCommand extends $Command< ListDatasetsCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDatasetsCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListDatastoresCommand.ts b/clients/client-iotanalytics/commands/ListDatastoresCommand.ts index 91e051fb7cdec..005f212c7bdaa 100644 --- a/clients/client-iotanalytics/commands/ListDatastoresCommand.ts +++ b/clients/client-iotanalytics/commands/ListDatastoresCommand.ts @@ -28,6 +28,7 @@ export class ListDatastoresCommand extends $Command< ListDatastoresCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDatastoresCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListPipelinesCommand.ts b/clients/client-iotanalytics/commands/ListPipelinesCommand.ts index 79369774c163b..7de35acdbf0c6 100644 --- a/clients/client-iotanalytics/commands/ListPipelinesCommand.ts +++ b/clients/client-iotanalytics/commands/ListPipelinesCommand.ts @@ -28,6 +28,7 @@ export class ListPipelinesCommand extends $Command< ListPipelinesCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelinesCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/ListTagsForResourceCommand.ts b/clients/client-iotanalytics/commands/ListTagsForResourceCommand.ts index aeecded3efe5a..7193ef30bbd16 100644 --- a/clients/client-iotanalytics/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iotanalytics/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/PutLoggingOptionsCommand.ts b/clients/client-iotanalytics/commands/PutLoggingOptionsCommand.ts index b7bb286695e15..3b0ba85329009 100644 --- a/clients/client-iotanalytics/commands/PutLoggingOptionsCommand.ts +++ b/clients/client-iotanalytics/commands/PutLoggingOptionsCommand.ts @@ -32,6 +32,7 @@ export class PutLoggingOptionsCommand extends $Command< PutLoggingOptionsCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutLoggingOptionsCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/RunPipelineActivityCommand.ts b/clients/client-iotanalytics/commands/RunPipelineActivityCommand.ts index af947a11cadc4..d68fff3ea14b3 100644 --- a/clients/client-iotanalytics/commands/RunPipelineActivityCommand.ts +++ b/clients/client-iotanalytics/commands/RunPipelineActivityCommand.ts @@ -28,6 +28,7 @@ export class RunPipelineActivityCommand extends $Command< RunPipelineActivityCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RunPipelineActivityCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/SampleChannelDataCommand.ts b/clients/client-iotanalytics/commands/SampleChannelDataCommand.ts index 075da1d8dad2b..f470a04f3562b 100644 --- a/clients/client-iotanalytics/commands/SampleChannelDataCommand.ts +++ b/clients/client-iotanalytics/commands/SampleChannelDataCommand.ts @@ -29,6 +29,7 @@ export class SampleChannelDataCommand extends $Command< SampleChannelDataCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SampleChannelDataCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/StartPipelineReprocessingCommand.ts b/clients/client-iotanalytics/commands/StartPipelineReprocessingCommand.ts index 7449c050da26a..9ccd8e218e4ec 100644 --- a/clients/client-iotanalytics/commands/StartPipelineReprocessingCommand.ts +++ b/clients/client-iotanalytics/commands/StartPipelineReprocessingCommand.ts @@ -28,6 +28,7 @@ export class StartPipelineReprocessingCommand extends $Command< StartPipelineReprocessingCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartPipelineReprocessingCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/TagResourceCommand.ts b/clients/client-iotanalytics/commands/TagResourceCommand.ts index 3e7b9da80be23..c18681b33e40f 100644 --- a/clients/client-iotanalytics/commands/TagResourceCommand.ts +++ b/clients/client-iotanalytics/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/UntagResourceCommand.ts b/clients/client-iotanalytics/commands/UntagResourceCommand.ts index 798ce976d0599..833cb0cac0e23 100644 --- a/clients/client-iotanalytics/commands/UntagResourceCommand.ts +++ b/clients/client-iotanalytics/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/UpdateChannelCommand.ts b/clients/client-iotanalytics/commands/UpdateChannelCommand.ts index 63c0621fffc26..7589ded846deb 100644 --- a/clients/client-iotanalytics/commands/UpdateChannelCommand.ts +++ b/clients/client-iotanalytics/commands/UpdateChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelCommand extends $Command< UpdateChannelCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/UpdateDatasetCommand.ts b/clients/client-iotanalytics/commands/UpdateDatasetCommand.ts index d06b74432e731..1292f05d4caba 100644 --- a/clients/client-iotanalytics/commands/UpdateDatasetCommand.ts +++ b/clients/client-iotanalytics/commands/UpdateDatasetCommand.ts @@ -28,6 +28,7 @@ export class UpdateDatasetCommand extends $Command< UpdateDatasetCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDatasetCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/UpdateDatastoreCommand.ts b/clients/client-iotanalytics/commands/UpdateDatastoreCommand.ts index 5b5185ff6a2d5..253fcc09469c0 100644 --- a/clients/client-iotanalytics/commands/UpdateDatastoreCommand.ts +++ b/clients/client-iotanalytics/commands/UpdateDatastoreCommand.ts @@ -28,6 +28,7 @@ export class UpdateDatastoreCommand extends $Command< UpdateDatastoreCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDatastoreCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotanalytics/commands/UpdatePipelineCommand.ts b/clients/client-iotanalytics/commands/UpdatePipelineCommand.ts index 9966b414de566..83eba6118affb 100644 --- a/clients/client-iotanalytics/commands/UpdatePipelineCommand.ts +++ b/clients/client-iotanalytics/commands/UpdatePipelineCommand.ts @@ -30,6 +30,7 @@ export class UpdatePipelineCommand extends $Command< UpdatePipelineCommandOutput, IoTAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdatePipelineCommand extends $Command< configuration: IoTAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/CloseTunnelCommand.ts b/clients/client-iotsecuretunneling/commands/CloseTunnelCommand.ts index 00bf0c1ac64ef..689cf0c1d209b 100644 --- a/clients/client-iotsecuretunneling/commands/CloseTunnelCommand.ts +++ b/clients/client-iotsecuretunneling/commands/CloseTunnelCommand.ts @@ -34,6 +34,7 @@ export class CloseTunnelCommand extends $Command< CloseTunnelCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CloseTunnelCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/DescribeTunnelCommand.ts b/clients/client-iotsecuretunneling/commands/DescribeTunnelCommand.ts index fd45bd6d067bc..3c2e39b7468b8 100644 --- a/clients/client-iotsecuretunneling/commands/DescribeTunnelCommand.ts +++ b/clients/client-iotsecuretunneling/commands/DescribeTunnelCommand.ts @@ -32,6 +32,7 @@ export class DescribeTunnelCommand extends $Command< DescribeTunnelCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTunnelCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/ListTagsForResourceCommand.ts b/clients/client-iotsecuretunneling/commands/ListTagsForResourceCommand.ts index 7f59384fd6314..4b308bf436d8a 100644 --- a/clients/client-iotsecuretunneling/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iotsecuretunneling/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/ListTunnelsCommand.ts b/clients/client-iotsecuretunneling/commands/ListTunnelsCommand.ts index 287ae3b1e46ba..aaa847aedefdc 100644 --- a/clients/client-iotsecuretunneling/commands/ListTunnelsCommand.ts +++ b/clients/client-iotsecuretunneling/commands/ListTunnelsCommand.ts @@ -33,6 +33,7 @@ export class ListTunnelsCommand extends $Command< ListTunnelsCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTunnelsCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/OpenTunnelCommand.ts b/clients/client-iotsecuretunneling/commands/OpenTunnelCommand.ts index 88df079929b33..37bf4c40be60e 100644 --- a/clients/client-iotsecuretunneling/commands/OpenTunnelCommand.ts +++ b/clients/client-iotsecuretunneling/commands/OpenTunnelCommand.ts @@ -33,6 +33,7 @@ export class OpenTunnelCommand extends $Command< OpenTunnelCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class OpenTunnelCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/TagResourceCommand.ts b/clients/client-iotsecuretunneling/commands/TagResourceCommand.ts index ca724b05cbce1..539c7bf51b7db 100644 --- a/clients/client-iotsecuretunneling/commands/TagResourceCommand.ts +++ b/clients/client-iotsecuretunneling/commands/TagResourceCommand.ts @@ -32,6 +32,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TagResourceCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsecuretunneling/commands/UntagResourceCommand.ts b/clients/client-iotsecuretunneling/commands/UntagResourceCommand.ts index ee4cad2cbfe0c..64fc9fbf03ef5 100644 --- a/clients/client-iotsecuretunneling/commands/UntagResourceCommand.ts +++ b/clients/client-iotsecuretunneling/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTSecureTunnelingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/AssociateAssetsCommand.ts b/clients/client-iotsitewise/commands/AssociateAssetsCommand.ts index bd0c86ef1d006..0b710de5d1ee2 100644 --- a/clients/client-iotsitewise/commands/AssociateAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/AssociateAssetsCommand.ts @@ -30,6 +30,7 @@ export class AssociateAssetsCommand extends $Command< AssociateAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AssociateAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/BatchAssociateProjectAssetsCommand.ts b/clients/client-iotsitewise/commands/BatchAssociateProjectAssetsCommand.ts index 0c16f501a1f23..d8a8afd92905b 100644 --- a/clients/client-iotsitewise/commands/BatchAssociateProjectAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/BatchAssociateProjectAssetsCommand.ts @@ -28,6 +28,7 @@ export class BatchAssociateProjectAssetsCommand extends $Command< BatchAssociateProjectAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchAssociateProjectAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/BatchDisassociateProjectAssetsCommand.ts b/clients/client-iotsitewise/commands/BatchDisassociateProjectAssetsCommand.ts index e4dc0517d523c..1dd298091392b 100644 --- a/clients/client-iotsitewise/commands/BatchDisassociateProjectAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/BatchDisassociateProjectAssetsCommand.ts @@ -28,6 +28,7 @@ export class BatchDisassociateProjectAssetsCommand extends $Command< BatchDisassociateProjectAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDisassociateProjectAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/BatchPutAssetPropertyValueCommand.ts b/clients/client-iotsitewise/commands/BatchPutAssetPropertyValueCommand.ts index 3111088fbe2ee..94357b842c695 100644 --- a/clients/client-iotsitewise/commands/BatchPutAssetPropertyValueCommand.ts +++ b/clients/client-iotsitewise/commands/BatchPutAssetPropertyValueCommand.ts @@ -52,6 +52,7 @@ export class BatchPutAssetPropertyValueCommand extends $Command< BatchPutAssetPropertyValueCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class BatchPutAssetPropertyValueCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateAccessPolicyCommand.ts b/clients/client-iotsitewise/commands/CreateAccessPolicyCommand.ts index 1d20cb3a7414e..5369ecba6c779 100644 --- a/clients/client-iotsitewise/commands/CreateAccessPolicyCommand.ts +++ b/clients/client-iotsitewise/commands/CreateAccessPolicyCommand.ts @@ -29,6 +29,7 @@ export class CreateAccessPolicyCommand extends $Command< CreateAccessPolicyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAccessPolicyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateAssetCommand.ts b/clients/client-iotsitewise/commands/CreateAssetCommand.ts index 010ca5e6a0883..bc9420e075d1e 100644 --- a/clients/client-iotsitewise/commands/CreateAssetCommand.ts +++ b/clients/client-iotsitewise/commands/CreateAssetCommand.ts @@ -29,6 +29,7 @@ export class CreateAssetCommand extends $Command< CreateAssetCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAssetCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateAssetModelCommand.ts b/clients/client-iotsitewise/commands/CreateAssetModelCommand.ts index 26f267fb05167..20a0eecd016be 100644 --- a/clients/client-iotsitewise/commands/CreateAssetModelCommand.ts +++ b/clients/client-iotsitewise/commands/CreateAssetModelCommand.ts @@ -32,6 +32,7 @@ export class CreateAssetModelCommand extends $Command< CreateAssetModelCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateAssetModelCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateDashboardCommand.ts b/clients/client-iotsitewise/commands/CreateDashboardCommand.ts index 074d6bd7970d5..108d072937a50 100644 --- a/clients/client-iotsitewise/commands/CreateDashboardCommand.ts +++ b/clients/client-iotsitewise/commands/CreateDashboardCommand.ts @@ -28,6 +28,7 @@ export class CreateDashboardCommand extends $Command< CreateDashboardCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDashboardCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateGatewayCommand.ts b/clients/client-iotsitewise/commands/CreateGatewayCommand.ts index 2de6fa3e56686..cb1b0b850a8c1 100644 --- a/clients/client-iotsitewise/commands/CreateGatewayCommand.ts +++ b/clients/client-iotsitewise/commands/CreateGatewayCommand.ts @@ -30,6 +30,7 @@ export class CreateGatewayCommand extends $Command< CreateGatewayCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateGatewayCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreatePortalCommand.ts b/clients/client-iotsitewise/commands/CreatePortalCommand.ts index d2bbda69fdfcc..7967ef8ba36c4 100644 --- a/clients/client-iotsitewise/commands/CreatePortalCommand.ts +++ b/clients/client-iotsitewise/commands/CreatePortalCommand.ts @@ -34,6 +34,7 @@ export class CreatePortalCommand extends $Command< CreatePortalCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreatePortalCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/CreateProjectCommand.ts b/clients/client-iotsitewise/commands/CreateProjectCommand.ts index 4258465651af5..c97842766ccca 100644 --- a/clients/client-iotsitewise/commands/CreateProjectCommand.ts +++ b/clients/client-iotsitewise/commands/CreateProjectCommand.ts @@ -28,6 +28,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProjectCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteAccessPolicyCommand.ts b/clients/client-iotsitewise/commands/DeleteAccessPolicyCommand.ts index 29fbefd252cee..196d28bdf8197 100644 --- a/clients/client-iotsitewise/commands/DeleteAccessPolicyCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteAccessPolicyCommand.ts @@ -30,6 +30,7 @@ export class DeleteAccessPolicyCommand extends $Command< DeleteAccessPolicyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAccessPolicyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteAssetCommand.ts b/clients/client-iotsitewise/commands/DeleteAssetCommand.ts index 32a9aca5f850f..24bb243214dda 100644 --- a/clients/client-iotsitewise/commands/DeleteAssetCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteAssetCommand.ts @@ -34,6 +34,7 @@ export class DeleteAssetCommand extends $Command< DeleteAssetCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteAssetCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteAssetModelCommand.ts b/clients/client-iotsitewise/commands/DeleteAssetModelCommand.ts index ad5c90ab72076..8d1a054f3144b 100644 --- a/clients/client-iotsitewise/commands/DeleteAssetModelCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteAssetModelCommand.ts @@ -32,6 +32,7 @@ export class DeleteAssetModelCommand extends $Command< DeleteAssetModelCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAssetModelCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteDashboardCommand.ts b/clients/client-iotsitewise/commands/DeleteDashboardCommand.ts index 93b03fdde3db2..4c75e3fed83c3 100644 --- a/clients/client-iotsitewise/commands/DeleteDashboardCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteDashboardCommand.ts @@ -28,6 +28,7 @@ export class DeleteDashboardCommand extends $Command< DeleteDashboardCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDashboardCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteGatewayCommand.ts b/clients/client-iotsitewise/commands/DeleteGatewayCommand.ts index f5272b8d5aba9..1acda51d008c5 100644 --- a/clients/client-iotsitewise/commands/DeleteGatewayCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteGatewayCommand.ts @@ -29,6 +29,7 @@ export class DeleteGatewayCommand extends $Command< DeleteGatewayCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteGatewayCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeletePortalCommand.ts b/clients/client-iotsitewise/commands/DeletePortalCommand.ts index a6cdca698bf5f..55e28c8f928a8 100644 --- a/clients/client-iotsitewise/commands/DeletePortalCommand.ts +++ b/clients/client-iotsitewise/commands/DeletePortalCommand.ts @@ -28,6 +28,7 @@ export class DeletePortalCommand extends $Command< DeletePortalCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePortalCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DeleteProjectCommand.ts b/clients/client-iotsitewise/commands/DeleteProjectCommand.ts index 57ca3f7c5afb1..8b0ee297aa1f9 100644 --- a/clients/client-iotsitewise/commands/DeleteProjectCommand.ts +++ b/clients/client-iotsitewise/commands/DeleteProjectCommand.ts @@ -28,6 +28,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProjectCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeAccessPolicyCommand.ts b/clients/client-iotsitewise/commands/DescribeAccessPolicyCommand.ts index c6c1063eeb78b..58eaa53fce426 100644 --- a/clients/client-iotsitewise/commands/DescribeAccessPolicyCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeAccessPolicyCommand.ts @@ -29,6 +29,7 @@ export class DescribeAccessPolicyCommand extends $Command< DescribeAccessPolicyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAccessPolicyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeAssetCommand.ts b/clients/client-iotsitewise/commands/DescribeAssetCommand.ts index e5955aef99d2b..73c5ce5d0888f 100644 --- a/clients/client-iotsitewise/commands/DescribeAssetCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeAssetCommand.ts @@ -28,6 +28,7 @@ export class DescribeAssetCommand extends $Command< DescribeAssetCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAssetCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeAssetModelCommand.ts b/clients/client-iotsitewise/commands/DescribeAssetModelCommand.ts index b4082da2be3f5..48604703f7247 100644 --- a/clients/client-iotsitewise/commands/DescribeAssetModelCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeAssetModelCommand.ts @@ -28,6 +28,7 @@ export class DescribeAssetModelCommand extends $Command< DescribeAssetModelCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAssetModelCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeAssetPropertyCommand.ts b/clients/client-iotsitewise/commands/DescribeAssetPropertyCommand.ts index 3d1c0ee96d913..486e69e9c283b 100644 --- a/clients/client-iotsitewise/commands/DescribeAssetPropertyCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeAssetPropertyCommand.ts @@ -35,6 +35,7 @@ export class DescribeAssetPropertyCommand extends $Command< DescribeAssetPropertyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeAssetPropertyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeDashboardCommand.ts b/clients/client-iotsitewise/commands/DescribeDashboardCommand.ts index de5c0c56c6c02..5c9623888090d 100644 --- a/clients/client-iotsitewise/commands/DescribeDashboardCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeDashboardCommand.ts @@ -28,6 +28,7 @@ export class DescribeDashboardCommand extends $Command< DescribeDashboardCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDashboardCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeDefaultEncryptionConfigurationCommand.ts b/clients/client-iotsitewise/commands/DescribeDefaultEncryptionConfigurationCommand.ts index f16d090cbee84..adb59b15cd051 100644 --- a/clients/client-iotsitewise/commands/DescribeDefaultEncryptionConfigurationCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeDefaultEncryptionConfigurationCommand.ts @@ -34,6 +34,7 @@ export class DescribeDefaultEncryptionConfigurationCommand extends $Command< DescribeDefaultEncryptionConfigurationCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDefaultEncryptionConfigurationCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeGatewayCapabilityConfigurationCommand.ts b/clients/client-iotsitewise/commands/DescribeGatewayCapabilityConfigurationCommand.ts index 564459428f61b..7bdb0ad1bfb8f 100644 --- a/clients/client-iotsitewise/commands/DescribeGatewayCapabilityConfigurationCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeGatewayCapabilityConfigurationCommand.ts @@ -36,6 +36,7 @@ export class DescribeGatewayCapabilityConfigurationCommand extends $Command< DescribeGatewayCapabilityConfigurationCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeGatewayCapabilityConfigurationCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeGatewayCommand.ts b/clients/client-iotsitewise/commands/DescribeGatewayCommand.ts index 3885d5e21d2a1..e42daec94712b 100644 --- a/clients/client-iotsitewise/commands/DescribeGatewayCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeGatewayCommand.ts @@ -28,6 +28,7 @@ export class DescribeGatewayCommand extends $Command< DescribeGatewayCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGatewayCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeLoggingOptionsCommand.ts b/clients/client-iotsitewise/commands/DescribeLoggingOptionsCommand.ts index 3becb6d555112..fdc02a2600b71 100644 --- a/clients/client-iotsitewise/commands/DescribeLoggingOptionsCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeLoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeLoggingOptionsCommand extends $Command< DescribeLoggingOptionsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLoggingOptionsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribePortalCommand.ts b/clients/client-iotsitewise/commands/DescribePortalCommand.ts index dfae2e181889c..405e8f8e8de2e 100644 --- a/clients/client-iotsitewise/commands/DescribePortalCommand.ts +++ b/clients/client-iotsitewise/commands/DescribePortalCommand.ts @@ -28,6 +28,7 @@ export class DescribePortalCommand extends $Command< DescribePortalCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePortalCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DescribeProjectCommand.ts b/clients/client-iotsitewise/commands/DescribeProjectCommand.ts index eac9f084117e4..218afb3160386 100644 --- a/clients/client-iotsitewise/commands/DescribeProjectCommand.ts +++ b/clients/client-iotsitewise/commands/DescribeProjectCommand.ts @@ -28,6 +28,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProjectCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/DisassociateAssetsCommand.ts b/clients/client-iotsitewise/commands/DisassociateAssetsCommand.ts index 218c3e122688b..1d29ec9c86fae 100644 --- a/clients/client-iotsitewise/commands/DisassociateAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/DisassociateAssetsCommand.ts @@ -29,6 +29,7 @@ export class DisassociateAssetsCommand extends $Command< DisassociateAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/GetAssetPropertyAggregatesCommand.ts b/clients/client-iotsitewise/commands/GetAssetPropertyAggregatesCommand.ts index 752714db08a9e..c3cdb38a4ef08 100644 --- a/clients/client-iotsitewise/commands/GetAssetPropertyAggregatesCommand.ts +++ b/clients/client-iotsitewise/commands/GetAssetPropertyAggregatesCommand.ts @@ -39,6 +39,7 @@ export class GetAssetPropertyAggregatesCommand extends $Command< GetAssetPropertyAggregatesCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetAssetPropertyAggregatesCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/GetAssetPropertyValueCommand.ts b/clients/client-iotsitewise/commands/GetAssetPropertyValueCommand.ts index 9082929688af4..e5064bd62d735 100644 --- a/clients/client-iotsitewise/commands/GetAssetPropertyValueCommand.ts +++ b/clients/client-iotsitewise/commands/GetAssetPropertyValueCommand.ts @@ -39,6 +39,7 @@ export class GetAssetPropertyValueCommand extends $Command< GetAssetPropertyValueCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetAssetPropertyValueCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/GetAssetPropertyValueHistoryCommand.ts b/clients/client-iotsitewise/commands/GetAssetPropertyValueHistoryCommand.ts index 09ab885e515cf..ed98a12544f26 100644 --- a/clients/client-iotsitewise/commands/GetAssetPropertyValueHistoryCommand.ts +++ b/clients/client-iotsitewise/commands/GetAssetPropertyValueHistoryCommand.ts @@ -39,6 +39,7 @@ export class GetAssetPropertyValueHistoryCommand extends $Command< GetAssetPropertyValueHistoryCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetAssetPropertyValueHistoryCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListAccessPoliciesCommand.ts b/clients/client-iotsitewise/commands/ListAccessPoliciesCommand.ts index d0caf15c8722b..e999dd8a3f658 100644 --- a/clients/client-iotsitewise/commands/ListAccessPoliciesCommand.ts +++ b/clients/client-iotsitewise/commands/ListAccessPoliciesCommand.ts @@ -29,6 +29,7 @@ export class ListAccessPoliciesCommand extends $Command< ListAccessPoliciesCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAccessPoliciesCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListAssetModelsCommand.ts b/clients/client-iotsitewise/commands/ListAssetModelsCommand.ts index 63feb52b37c90..144f1f45549f6 100644 --- a/clients/client-iotsitewise/commands/ListAssetModelsCommand.ts +++ b/clients/client-iotsitewise/commands/ListAssetModelsCommand.ts @@ -28,6 +28,7 @@ export class ListAssetModelsCommand extends $Command< ListAssetModelsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssetModelsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListAssetRelationshipsCommand.ts b/clients/client-iotsitewise/commands/ListAssetRelationshipsCommand.ts index 6d0afd3931be8..d6469351d4e7f 100644 --- a/clients/client-iotsitewise/commands/ListAssetRelationshipsCommand.ts +++ b/clients/client-iotsitewise/commands/ListAssetRelationshipsCommand.ts @@ -30,6 +30,7 @@ export class ListAssetRelationshipsCommand extends $Command< ListAssetRelationshipsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssetRelationshipsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListAssetsCommand.ts b/clients/client-iotsitewise/commands/ListAssetsCommand.ts index c36ea9aa2624b..ff2caf63c9fa9 100644 --- a/clients/client-iotsitewise/commands/ListAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/ListAssetsCommand.ts @@ -40,6 +40,7 @@ export class ListAssetsCommand extends $Command< ListAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListAssociatedAssetsCommand.ts b/clients/client-iotsitewise/commands/ListAssociatedAssetsCommand.ts index 1d59630b8a46c..35b10b2799cf7 100644 --- a/clients/client-iotsitewise/commands/ListAssociatedAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/ListAssociatedAssetsCommand.ts @@ -37,6 +37,7 @@ export class ListAssociatedAssetsCommand extends $Command< ListAssociatedAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListAssociatedAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListDashboardsCommand.ts b/clients/client-iotsitewise/commands/ListDashboardsCommand.ts index 7b9d5da2f10ff..2999451618414 100644 --- a/clients/client-iotsitewise/commands/ListDashboardsCommand.ts +++ b/clients/client-iotsitewise/commands/ListDashboardsCommand.ts @@ -28,6 +28,7 @@ export class ListDashboardsCommand extends $Command< ListDashboardsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDashboardsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListGatewaysCommand.ts b/clients/client-iotsitewise/commands/ListGatewaysCommand.ts index f1e22777cb5c7..77acd0d06c0fe 100644 --- a/clients/client-iotsitewise/commands/ListGatewaysCommand.ts +++ b/clients/client-iotsitewise/commands/ListGatewaysCommand.ts @@ -28,6 +28,7 @@ export class ListGatewaysCommand extends $Command< ListGatewaysCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGatewaysCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListPortalsCommand.ts b/clients/client-iotsitewise/commands/ListPortalsCommand.ts index 7f92c053e79c8..dbae81cdf663b 100644 --- a/clients/client-iotsitewise/commands/ListPortalsCommand.ts +++ b/clients/client-iotsitewise/commands/ListPortalsCommand.ts @@ -28,6 +28,7 @@ export class ListPortalsCommand extends $Command< ListPortalsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPortalsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListProjectAssetsCommand.ts b/clients/client-iotsitewise/commands/ListProjectAssetsCommand.ts index 13a994cd8991c..d27ec99e6dcb5 100644 --- a/clients/client-iotsitewise/commands/ListProjectAssetsCommand.ts +++ b/clients/client-iotsitewise/commands/ListProjectAssetsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectAssetsCommand extends $Command< ListProjectAssetsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectAssetsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListProjectsCommand.ts b/clients/client-iotsitewise/commands/ListProjectsCommand.ts index 11670232e20c3..a74b794b4f9a7 100644 --- a/clients/client-iotsitewise/commands/ListProjectsCommand.ts +++ b/clients/client-iotsitewise/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/ListTagsForResourceCommand.ts b/clients/client-iotsitewise/commands/ListTagsForResourceCommand.ts index a84d49442f691..483e68b507ac2 100644 --- a/clients/client-iotsitewise/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iotsitewise/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/PutDefaultEncryptionConfigurationCommand.ts b/clients/client-iotsitewise/commands/PutDefaultEncryptionConfigurationCommand.ts index 1249c430c4ca2..4b28d3c107f81 100644 --- a/clients/client-iotsitewise/commands/PutDefaultEncryptionConfigurationCommand.ts +++ b/clients/client-iotsitewise/commands/PutDefaultEncryptionConfigurationCommand.ts @@ -34,6 +34,7 @@ export class PutDefaultEncryptionConfigurationCommand extends $Command< PutDefaultEncryptionConfigurationCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutDefaultEncryptionConfigurationCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/PutLoggingOptionsCommand.ts b/clients/client-iotsitewise/commands/PutLoggingOptionsCommand.ts index ae5991ce19cbe..acf12ba4a8d1b 100644 --- a/clients/client-iotsitewise/commands/PutLoggingOptionsCommand.ts +++ b/clients/client-iotsitewise/commands/PutLoggingOptionsCommand.ts @@ -28,6 +28,7 @@ export class PutLoggingOptionsCommand extends $Command< PutLoggingOptionsCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutLoggingOptionsCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/TagResourceCommand.ts b/clients/client-iotsitewise/commands/TagResourceCommand.ts index 8f9c26ae34e13..42e6867e4d219 100644 --- a/clients/client-iotsitewise/commands/TagResourceCommand.ts +++ b/clients/client-iotsitewise/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UntagResourceCommand.ts b/clients/client-iotsitewise/commands/UntagResourceCommand.ts index 3549012340226..74e6f632ceffb 100644 --- a/clients/client-iotsitewise/commands/UntagResourceCommand.ts +++ b/clients/client-iotsitewise/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateAccessPolicyCommand.ts b/clients/client-iotsitewise/commands/UpdateAccessPolicyCommand.ts index 50c89ee8223d4..6f61a837f864c 100644 --- a/clients/client-iotsitewise/commands/UpdateAccessPolicyCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateAccessPolicyCommand.ts @@ -29,6 +29,7 @@ export class UpdateAccessPolicyCommand extends $Command< UpdateAccessPolicyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateAccessPolicyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateAssetCommand.ts b/clients/client-iotsitewise/commands/UpdateAssetCommand.ts index df80bcf20c9f2..0526e2be61f6d 100644 --- a/clients/client-iotsitewise/commands/UpdateAssetCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateAssetCommand.ts @@ -29,6 +29,7 @@ export class UpdateAssetCommand extends $Command< UpdateAssetCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateAssetCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateAssetModelCommand.ts b/clients/client-iotsitewise/commands/UpdateAssetModelCommand.ts index 29f613f8178b8..4198663759d64 100644 --- a/clients/client-iotsitewise/commands/UpdateAssetModelCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateAssetModelCommand.ts @@ -40,6 +40,7 @@ export class UpdateAssetModelCommand extends $Command< UpdateAssetModelCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateAssetModelCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateAssetPropertyCommand.ts b/clients/client-iotsitewise/commands/UpdateAssetPropertyCommand.ts index d7a4d8b544a9e..c5499c503d24e 100644 --- a/clients/client-iotsitewise/commands/UpdateAssetPropertyCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateAssetPropertyCommand.ts @@ -33,6 +33,7 @@ export class UpdateAssetPropertyCommand extends $Command< UpdateAssetPropertyCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateAssetPropertyCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateDashboardCommand.ts b/clients/client-iotsitewise/commands/UpdateDashboardCommand.ts index 06d9403d558e8..afb04c237d39d 100644 --- a/clients/client-iotsitewise/commands/UpdateDashboardCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateDashboardCommand.ts @@ -28,6 +28,7 @@ export class UpdateDashboardCommand extends $Command< UpdateDashboardCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDashboardCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateGatewayCapabilityConfigurationCommand.ts b/clients/client-iotsitewise/commands/UpdateGatewayCapabilityConfigurationCommand.ts index 86b21ea797e4b..47199026e6a2f 100644 --- a/clients/client-iotsitewise/commands/UpdateGatewayCapabilityConfigurationCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateGatewayCapabilityConfigurationCommand.ts @@ -36,6 +36,7 @@ export class UpdateGatewayCapabilityConfigurationCommand extends $Command< UpdateGatewayCapabilityConfigurationCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateGatewayCapabilityConfigurationCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateGatewayCommand.ts b/clients/client-iotsitewise/commands/UpdateGatewayCommand.ts index 22a58659d3a9d..03f15a6349cf5 100644 --- a/clients/client-iotsitewise/commands/UpdateGatewayCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateGatewayCommand.ts @@ -28,6 +28,7 @@ export class UpdateGatewayCommand extends $Command< UpdateGatewayCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGatewayCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdatePortalCommand.ts b/clients/client-iotsitewise/commands/UpdatePortalCommand.ts index 4e98fc326d66f..0da756de4379f 100644 --- a/clients/client-iotsitewise/commands/UpdatePortalCommand.ts +++ b/clients/client-iotsitewise/commands/UpdatePortalCommand.ts @@ -28,6 +28,7 @@ export class UpdatePortalCommand extends $Command< UpdatePortalCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePortalCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotsitewise/commands/UpdateProjectCommand.ts b/clients/client-iotsitewise/commands/UpdateProjectCommand.ts index a18c3cb6b53d0..fc704ab1e6e88 100644 --- a/clients/client-iotsitewise/commands/UpdateProjectCommand.ts +++ b/clients/client-iotsitewise/commands/UpdateProjectCommand.ts @@ -28,6 +28,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, IoTSiteWiseClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProjectCommand extends $Command< configuration: IoTSiteWiseClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/AssociateEntityToThingCommand.ts b/clients/client-iotthingsgraph/commands/AssociateEntityToThingCommand.ts index 1b81be96c300b..4e07d51cc1849 100644 --- a/clients/client-iotthingsgraph/commands/AssociateEntityToThingCommand.ts +++ b/clients/client-iotthingsgraph/commands/AssociateEntityToThingCommand.ts @@ -29,6 +29,7 @@ export class AssociateEntityToThingCommand extends $Command< AssociateEntityToThingCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateEntityToThingCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/CreateFlowTemplateCommand.ts b/clients/client-iotthingsgraph/commands/CreateFlowTemplateCommand.ts index 37a5ef2dec493..bbfae0b830993 100644 --- a/clients/client-iotthingsgraph/commands/CreateFlowTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/CreateFlowTemplateCommand.ts @@ -30,6 +30,7 @@ export class CreateFlowTemplateCommand extends $Command< CreateFlowTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateFlowTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/CreateSystemInstanceCommand.ts b/clients/client-iotthingsgraph/commands/CreateSystemInstanceCommand.ts index bf4da65be93cb..ed3f0f3725a0d 100644 --- a/clients/client-iotthingsgraph/commands/CreateSystemInstanceCommand.ts +++ b/clients/client-iotthingsgraph/commands/CreateSystemInstanceCommand.ts @@ -36,6 +36,7 @@ export class CreateSystemInstanceCommand extends $Command< CreateSystemInstanceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateSystemInstanceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/CreateSystemTemplateCommand.ts b/clients/client-iotthingsgraph/commands/CreateSystemTemplateCommand.ts index eefc39f0cbe7e..1c7dcd853cb1b 100644 --- a/clients/client-iotthingsgraph/commands/CreateSystemTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/CreateSystemTemplateCommand.ts @@ -29,6 +29,7 @@ export class CreateSystemTemplateCommand extends $Command< CreateSystemTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateSystemTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeleteFlowTemplateCommand.ts b/clients/client-iotthingsgraph/commands/DeleteFlowTemplateCommand.ts index 703e4918302a9..9a2eba308cde6 100644 --- a/clients/client-iotthingsgraph/commands/DeleteFlowTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeleteFlowTemplateCommand.ts @@ -29,6 +29,7 @@ export class DeleteFlowTemplateCommand extends $Command< DeleteFlowTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteFlowTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeleteNamespaceCommand.ts b/clients/client-iotthingsgraph/commands/DeleteNamespaceCommand.ts index af71ec7b42ab5..892a7121344f4 100644 --- a/clients/client-iotthingsgraph/commands/DeleteNamespaceCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeleteNamespaceCommand.ts @@ -28,6 +28,7 @@ export class DeleteNamespaceCommand extends $Command< DeleteNamespaceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNamespaceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeleteSystemInstanceCommand.ts b/clients/client-iotthingsgraph/commands/DeleteSystemInstanceCommand.ts index a26bfb08c3f4d..581511e0dab3c 100644 --- a/clients/client-iotthingsgraph/commands/DeleteSystemInstanceCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeleteSystemInstanceCommand.ts @@ -30,6 +30,7 @@ export class DeleteSystemInstanceCommand extends $Command< DeleteSystemInstanceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteSystemInstanceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeleteSystemTemplateCommand.ts b/clients/client-iotthingsgraph/commands/DeleteSystemTemplateCommand.ts index 84a72aaaa1e10..c9db87b20e60d 100644 --- a/clients/client-iotthingsgraph/commands/DeleteSystemTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeleteSystemTemplateCommand.ts @@ -29,6 +29,7 @@ export class DeleteSystemTemplateCommand extends $Command< DeleteSystemTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteSystemTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeploySystemInstanceCommand.ts b/clients/client-iotthingsgraph/commands/DeploySystemInstanceCommand.ts index 4c609def3d7ab..8c409a97cb5f8 100644 --- a/clients/client-iotthingsgraph/commands/DeploySystemInstanceCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeploySystemInstanceCommand.ts @@ -39,6 +39,7 @@ export class DeploySystemInstanceCommand extends $Command< DeploySystemInstanceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeploySystemInstanceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeprecateFlowTemplateCommand.ts b/clients/client-iotthingsgraph/commands/DeprecateFlowTemplateCommand.ts index 90acbea304e88..e6a3e39e7c03c 100644 --- a/clients/client-iotthingsgraph/commands/DeprecateFlowTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeprecateFlowTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeprecateFlowTemplateCommand extends $Command< DeprecateFlowTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeprecateFlowTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DeprecateSystemTemplateCommand.ts b/clients/client-iotthingsgraph/commands/DeprecateSystemTemplateCommand.ts index 96a53504624c4..f122fc393ffdb 100644 --- a/clients/client-iotthingsgraph/commands/DeprecateSystemTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/DeprecateSystemTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeprecateSystemTemplateCommand extends $Command< DeprecateSystemTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeprecateSystemTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DescribeNamespaceCommand.ts b/clients/client-iotthingsgraph/commands/DescribeNamespaceCommand.ts index a6612f62df439..282f1124c56cf 100644 --- a/clients/client-iotthingsgraph/commands/DescribeNamespaceCommand.ts +++ b/clients/client-iotthingsgraph/commands/DescribeNamespaceCommand.ts @@ -28,6 +28,7 @@ export class DescribeNamespaceCommand extends $Command< DescribeNamespaceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNamespaceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/DissociateEntityFromThingCommand.ts b/clients/client-iotthingsgraph/commands/DissociateEntityFromThingCommand.ts index 0da39885f5a94..95e4ac6b0ce19 100644 --- a/clients/client-iotthingsgraph/commands/DissociateEntityFromThingCommand.ts +++ b/clients/client-iotthingsgraph/commands/DissociateEntityFromThingCommand.ts @@ -29,6 +29,7 @@ export class DissociateEntityFromThingCommand extends $Command< DissociateEntityFromThingCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DissociateEntityFromThingCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetEntitiesCommand.ts b/clients/client-iotthingsgraph/commands/GetEntitiesCommand.ts index 0262db3cfc870..b4899f13847f4 100644 --- a/clients/client-iotthingsgraph/commands/GetEntitiesCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetEntitiesCommand.ts @@ -59,6 +59,7 @@ export class GetEntitiesCommand extends $Command< GetEntitiesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class GetEntitiesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetFlowTemplateCommand.ts b/clients/client-iotthingsgraph/commands/GetFlowTemplateCommand.ts index b5721b163a09c..57fad9c13c142 100644 --- a/clients/client-iotthingsgraph/commands/GetFlowTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetFlowTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetFlowTemplateCommand extends $Command< GetFlowTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFlowTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetFlowTemplateRevisionsCommand.ts b/clients/client-iotthingsgraph/commands/GetFlowTemplateRevisionsCommand.ts index 4ecfa2d86b7ca..80432b5d543dd 100644 --- a/clients/client-iotthingsgraph/commands/GetFlowTemplateRevisionsCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetFlowTemplateRevisionsCommand.ts @@ -29,6 +29,7 @@ export class GetFlowTemplateRevisionsCommand extends $Command< GetFlowTemplateRevisionsCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetFlowTemplateRevisionsCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetNamespaceDeletionStatusCommand.ts b/clients/client-iotthingsgraph/commands/GetNamespaceDeletionStatusCommand.ts index ae23bacbf946d..6de4010fb792b 100644 --- a/clients/client-iotthingsgraph/commands/GetNamespaceDeletionStatusCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetNamespaceDeletionStatusCommand.ts @@ -28,6 +28,7 @@ export class GetNamespaceDeletionStatusCommand extends $Command< GetNamespaceDeletionStatusCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetNamespaceDeletionStatusCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetSystemInstanceCommand.ts b/clients/client-iotthingsgraph/commands/GetSystemInstanceCommand.ts index 40f9211e8c4a8..c315dc816ac0c 100644 --- a/clients/client-iotthingsgraph/commands/GetSystemInstanceCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetSystemInstanceCommand.ts @@ -28,6 +28,7 @@ export class GetSystemInstanceCommand extends $Command< GetSystemInstanceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSystemInstanceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetSystemTemplateCommand.ts b/clients/client-iotthingsgraph/commands/GetSystemTemplateCommand.ts index 8e0f6a34e887c..0df41c0f1663e 100644 --- a/clients/client-iotthingsgraph/commands/GetSystemTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetSystemTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetSystemTemplateCommand extends $Command< GetSystemTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSystemTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetSystemTemplateRevisionsCommand.ts b/clients/client-iotthingsgraph/commands/GetSystemTemplateRevisionsCommand.ts index ede5be233a44a..a926d9d731571 100644 --- a/clients/client-iotthingsgraph/commands/GetSystemTemplateRevisionsCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetSystemTemplateRevisionsCommand.ts @@ -29,6 +29,7 @@ export class GetSystemTemplateRevisionsCommand extends $Command< GetSystemTemplateRevisionsCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSystemTemplateRevisionsCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/GetUploadStatusCommand.ts b/clients/client-iotthingsgraph/commands/GetUploadStatusCommand.ts index 6e023144d3c3b..c9414beeff5e1 100644 --- a/clients/client-iotthingsgraph/commands/GetUploadStatusCommand.ts +++ b/clients/client-iotthingsgraph/commands/GetUploadStatusCommand.ts @@ -28,6 +28,7 @@ export class GetUploadStatusCommand extends $Command< GetUploadStatusCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUploadStatusCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/ListFlowExecutionMessagesCommand.ts b/clients/client-iotthingsgraph/commands/ListFlowExecutionMessagesCommand.ts index d531e206449f7..a36df35041767 100644 --- a/clients/client-iotthingsgraph/commands/ListFlowExecutionMessagesCommand.ts +++ b/clients/client-iotthingsgraph/commands/ListFlowExecutionMessagesCommand.ts @@ -28,6 +28,7 @@ export class ListFlowExecutionMessagesCommand extends $Command< ListFlowExecutionMessagesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFlowExecutionMessagesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/ListTagsForResourceCommand.ts b/clients/client-iotthingsgraph/commands/ListTagsForResourceCommand.ts index d49c67ee4994c..61bb9edad826a 100644 --- a/clients/client-iotthingsgraph/commands/ListTagsForResourceCommand.ts +++ b/clients/client-iotthingsgraph/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchEntitiesCommand.ts b/clients/client-iotthingsgraph/commands/SearchEntitiesCommand.ts index 28b34123cae4e..8ebc37eaecfad 100644 --- a/clients/client-iotthingsgraph/commands/SearchEntitiesCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchEntitiesCommand.ts @@ -28,6 +28,7 @@ export class SearchEntitiesCommand extends $Command< SearchEntitiesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchEntitiesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchFlowExecutionsCommand.ts b/clients/client-iotthingsgraph/commands/SearchFlowExecutionsCommand.ts index 48f0d3a8d4e56..ce2f9e967d50a 100644 --- a/clients/client-iotthingsgraph/commands/SearchFlowExecutionsCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchFlowExecutionsCommand.ts @@ -28,6 +28,7 @@ export class SearchFlowExecutionsCommand extends $Command< SearchFlowExecutionsCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchFlowExecutionsCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchFlowTemplatesCommand.ts b/clients/client-iotthingsgraph/commands/SearchFlowTemplatesCommand.ts index 6f8e166fce1a6..8fff93292c0a8 100644 --- a/clients/client-iotthingsgraph/commands/SearchFlowTemplatesCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchFlowTemplatesCommand.ts @@ -28,6 +28,7 @@ export class SearchFlowTemplatesCommand extends $Command< SearchFlowTemplatesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchFlowTemplatesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchSystemInstancesCommand.ts b/clients/client-iotthingsgraph/commands/SearchSystemInstancesCommand.ts index 00863aed14f59..bbf5c1522f816 100644 --- a/clients/client-iotthingsgraph/commands/SearchSystemInstancesCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchSystemInstancesCommand.ts @@ -28,6 +28,7 @@ export class SearchSystemInstancesCommand extends $Command< SearchSystemInstancesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchSystemInstancesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchSystemTemplatesCommand.ts b/clients/client-iotthingsgraph/commands/SearchSystemTemplatesCommand.ts index fc658d2e9f70e..78b2fc86235bf 100644 --- a/clients/client-iotthingsgraph/commands/SearchSystemTemplatesCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchSystemTemplatesCommand.ts @@ -28,6 +28,7 @@ export class SearchSystemTemplatesCommand extends $Command< SearchSystemTemplatesCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchSystemTemplatesCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/SearchThingsCommand.ts b/clients/client-iotthingsgraph/commands/SearchThingsCommand.ts index 91e15540deaeb..5c71b94b4f101 100644 --- a/clients/client-iotthingsgraph/commands/SearchThingsCommand.ts +++ b/clients/client-iotthingsgraph/commands/SearchThingsCommand.ts @@ -31,6 +31,7 @@ export class SearchThingsCommand extends $Command< SearchThingsCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class SearchThingsCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/TagResourceCommand.ts b/clients/client-iotthingsgraph/commands/TagResourceCommand.ts index 27fb6f8f7753a..54e7e987b1b0e 100644 --- a/clients/client-iotthingsgraph/commands/TagResourceCommand.ts +++ b/clients/client-iotthingsgraph/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/UndeploySystemInstanceCommand.ts b/clients/client-iotthingsgraph/commands/UndeploySystemInstanceCommand.ts index 2d22f262cc7b3..463d12ffcdbad 100644 --- a/clients/client-iotthingsgraph/commands/UndeploySystemInstanceCommand.ts +++ b/clients/client-iotthingsgraph/commands/UndeploySystemInstanceCommand.ts @@ -28,6 +28,7 @@ export class UndeploySystemInstanceCommand extends $Command< UndeploySystemInstanceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UndeploySystemInstanceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/UntagResourceCommand.ts b/clients/client-iotthingsgraph/commands/UntagResourceCommand.ts index 036c1fc3f4437..6863226c55511 100644 --- a/clients/client-iotthingsgraph/commands/UntagResourceCommand.ts +++ b/clients/client-iotthingsgraph/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/UpdateFlowTemplateCommand.ts b/clients/client-iotthingsgraph/commands/UpdateFlowTemplateCommand.ts index b978aca8425f2..67a7c5cac0e01 100644 --- a/clients/client-iotthingsgraph/commands/UpdateFlowTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/UpdateFlowTemplateCommand.ts @@ -29,6 +29,7 @@ export class UpdateFlowTemplateCommand extends $Command< UpdateFlowTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateFlowTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/UpdateSystemTemplateCommand.ts b/clients/client-iotthingsgraph/commands/UpdateSystemTemplateCommand.ts index ea0c6dc30c97c..3842cf9c2935c 100644 --- a/clients/client-iotthingsgraph/commands/UpdateSystemTemplateCommand.ts +++ b/clients/client-iotthingsgraph/commands/UpdateSystemTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateSystemTemplateCommand extends $Command< UpdateSystemTemplateCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSystemTemplateCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-iotthingsgraph/commands/UploadEntityDefinitionsCommand.ts b/clients/client-iotthingsgraph/commands/UploadEntityDefinitionsCommand.ts index 649ae0fe6e6de..135b3d9cd3b76 100644 --- a/clients/client-iotthingsgraph/commands/UploadEntityDefinitionsCommand.ts +++ b/clients/client-iotthingsgraph/commands/UploadEntityDefinitionsCommand.ts @@ -38,6 +38,7 @@ export class UploadEntityDefinitionsCommand extends $Command< UploadEntityDefinitionsCommandOutput, IoTThingsGraphClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UploadEntityDefinitionsCommand extends $Command< configuration: IoTThingsGraphClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/BatchGetChannelCommand.ts b/clients/client-ivs/commands/BatchGetChannelCommand.ts index 46879bb974251..3d40435145c07 100644 --- a/clients/client-ivs/commands/BatchGetChannelCommand.ts +++ b/clients/client-ivs/commands/BatchGetChannelCommand.ts @@ -28,6 +28,7 @@ export class BatchGetChannelCommand extends $Command< BatchGetChannelCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetChannelCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/BatchGetStreamKeyCommand.ts b/clients/client-ivs/commands/BatchGetStreamKeyCommand.ts index f665a8ec1b69f..2232e47561c3a 100644 --- a/clients/client-ivs/commands/BatchGetStreamKeyCommand.ts +++ b/clients/client-ivs/commands/BatchGetStreamKeyCommand.ts @@ -28,6 +28,7 @@ export class BatchGetStreamKeyCommand extends $Command< BatchGetStreamKeyCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetStreamKeyCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/CreateChannelCommand.ts b/clients/client-ivs/commands/CreateChannelCommand.ts index 49ed288a1f4ec..65bdb33cc39f9 100644 --- a/clients/client-ivs/commands/CreateChannelCommand.ts +++ b/clients/client-ivs/commands/CreateChannelCommand.ts @@ -28,6 +28,7 @@ export class CreateChannelCommand extends $Command< CreateChannelCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateChannelCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/CreateStreamKeyCommand.ts b/clients/client-ivs/commands/CreateStreamKeyCommand.ts index 29346e78b658d..ca4fd2cb6433e 100644 --- a/clients/client-ivs/commands/CreateStreamKeyCommand.ts +++ b/clients/client-ivs/commands/CreateStreamKeyCommand.ts @@ -31,6 +31,7 @@ export class CreateStreamKeyCommand extends $Command< CreateStreamKeyCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateStreamKeyCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/DeleteChannelCommand.ts b/clients/client-ivs/commands/DeleteChannelCommand.ts index e1f6c73cbf111..c58ca1e713eb4 100644 --- a/clients/client-ivs/commands/DeleteChannelCommand.ts +++ b/clients/client-ivs/commands/DeleteChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelCommand extends $Command< DeleteChannelCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/DeletePlaybackKeyPairCommand.ts b/clients/client-ivs/commands/DeletePlaybackKeyPairCommand.ts index 599cd71dc0458..71e77193a67ca 100644 --- a/clients/client-ivs/commands/DeletePlaybackKeyPairCommand.ts +++ b/clients/client-ivs/commands/DeletePlaybackKeyPairCommand.ts @@ -29,6 +29,7 @@ export class DeletePlaybackKeyPairCommand extends $Command< DeletePlaybackKeyPairCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeletePlaybackKeyPairCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/DeleteStreamKeyCommand.ts b/clients/client-ivs/commands/DeleteStreamKeyCommand.ts index 570bea837d666..d60c0d1a3518b 100644 --- a/clients/client-ivs/commands/DeleteStreamKeyCommand.ts +++ b/clients/client-ivs/commands/DeleteStreamKeyCommand.ts @@ -29,6 +29,7 @@ export class DeleteStreamKeyCommand extends $Command< DeleteStreamKeyCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteStreamKeyCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/GetChannelCommand.ts b/clients/client-ivs/commands/GetChannelCommand.ts index 676bb45105f72..000573e2b1647 100644 --- a/clients/client-ivs/commands/GetChannelCommand.ts +++ b/clients/client-ivs/commands/GetChannelCommand.ts @@ -28,6 +28,7 @@ export class GetChannelCommand extends $Command< GetChannelCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetChannelCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/GetPlaybackKeyPairCommand.ts b/clients/client-ivs/commands/GetPlaybackKeyPairCommand.ts index e5383da854ed3..54ea9a1817cb5 100644 --- a/clients/client-ivs/commands/GetPlaybackKeyPairCommand.ts +++ b/clients/client-ivs/commands/GetPlaybackKeyPairCommand.ts @@ -30,6 +30,7 @@ export class GetPlaybackKeyPairCommand extends $Command< GetPlaybackKeyPairCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetPlaybackKeyPairCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/GetStreamCommand.ts b/clients/client-ivs/commands/GetStreamCommand.ts index 73262177ff7d8..86f0574f87fc0 100644 --- a/clients/client-ivs/commands/GetStreamCommand.ts +++ b/clients/client-ivs/commands/GetStreamCommand.ts @@ -24,6 +24,7 @@ export type GetStreamCommandOutput = GetStreamResponse & __MetadataBearer; *

Gets information about the active (live) stream on a specified channel.

*/ export class GetStreamCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetStreamCommand 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-ivs/commands/GetStreamKeyCommand.ts b/clients/client-ivs/commands/GetStreamKeyCommand.ts index 96c4e6adfa9c6..2af7099ce3362 100644 --- a/clients/client-ivs/commands/GetStreamKeyCommand.ts +++ b/clients/client-ivs/commands/GetStreamKeyCommand.ts @@ -28,6 +28,7 @@ export class GetStreamKeyCommand extends $Command< GetStreamKeyCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStreamKeyCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ImportPlaybackKeyPairCommand.ts b/clients/client-ivs/commands/ImportPlaybackKeyPairCommand.ts index 8ab7baed1a71c..632f9b761eb2d 100644 --- a/clients/client-ivs/commands/ImportPlaybackKeyPairCommand.ts +++ b/clients/client-ivs/commands/ImportPlaybackKeyPairCommand.ts @@ -30,6 +30,7 @@ export class ImportPlaybackKeyPairCommand extends $Command< ImportPlaybackKeyPairCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ImportPlaybackKeyPairCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ListChannelsCommand.ts b/clients/client-ivs/commands/ListChannelsCommand.ts index 8771ee193ed26..8d9d8f27cf70f 100644 --- a/clients/client-ivs/commands/ListChannelsCommand.ts +++ b/clients/client-ivs/commands/ListChannelsCommand.ts @@ -29,6 +29,7 @@ export class ListChannelsCommand extends $Command< ListChannelsCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListChannelsCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ListPlaybackKeyPairsCommand.ts b/clients/client-ivs/commands/ListPlaybackKeyPairsCommand.ts index f20e0bba705dc..a35bb921358b4 100644 --- a/clients/client-ivs/commands/ListPlaybackKeyPairsCommand.ts +++ b/clients/client-ivs/commands/ListPlaybackKeyPairsCommand.ts @@ -28,6 +28,7 @@ export class ListPlaybackKeyPairsCommand extends $Command< ListPlaybackKeyPairsCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPlaybackKeyPairsCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ListStreamKeysCommand.ts b/clients/client-ivs/commands/ListStreamKeysCommand.ts index c7bc46b6b5296..641a8847e25a4 100644 --- a/clients/client-ivs/commands/ListStreamKeysCommand.ts +++ b/clients/client-ivs/commands/ListStreamKeysCommand.ts @@ -28,6 +28,7 @@ export class ListStreamKeysCommand extends $Command< ListStreamKeysCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStreamKeysCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ListStreamsCommand.ts b/clients/client-ivs/commands/ListStreamsCommand.ts index f35af71c760a3..818049573cf25 100644 --- a/clients/client-ivs/commands/ListStreamsCommand.ts +++ b/clients/client-ivs/commands/ListStreamsCommand.ts @@ -29,6 +29,7 @@ export class ListStreamsCommand extends $Command< ListStreamsCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListStreamsCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/ListTagsForResourceCommand.ts b/clients/client-ivs/commands/ListTagsForResourceCommand.ts index 1247bd82fb432..66a847fe189e9 100644 --- a/clients/client-ivs/commands/ListTagsForResourceCommand.ts +++ b/clients/client-ivs/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/PutMetadataCommand.ts b/clients/client-ivs/commands/PutMetadataCommand.ts index 307bd2ad53324..683ce26b89ae9 100644 --- a/clients/client-ivs/commands/PutMetadataCommand.ts +++ b/clients/client-ivs/commands/PutMetadataCommand.ts @@ -29,6 +29,7 @@ export class PutMetadataCommand extends $Command< PutMetadataCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutMetadataCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/StopStreamCommand.ts b/clients/client-ivs/commands/StopStreamCommand.ts index 9069071511f6a..17e4e42e557f0 100644 --- a/clients/client-ivs/commands/StopStreamCommand.ts +++ b/clients/client-ivs/commands/StopStreamCommand.ts @@ -34,6 +34,7 @@ export class StopStreamCommand extends $Command< StopStreamCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopStreamCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/TagResourceCommand.ts b/clients/client-ivs/commands/TagResourceCommand.ts index 1d46872fc6b4f..7c1b5b784a9fa 100644 --- a/clients/client-ivs/commands/TagResourceCommand.ts +++ b/clients/client-ivs/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/UntagResourceCommand.ts b/clients/client-ivs/commands/UntagResourceCommand.ts index 1704f7303f05f..0d644dc49df15 100644 --- a/clients/client-ivs/commands/UntagResourceCommand.ts +++ b/clients/client-ivs/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ivs/commands/UpdateChannelCommand.ts b/clients/client-ivs/commands/UpdateChannelCommand.ts index 61556fbe1aba5..973d551989e00 100644 --- a/clients/client-ivs/commands/UpdateChannelCommand.ts +++ b/clients/client-ivs/commands/UpdateChannelCommand.ts @@ -29,6 +29,7 @@ export class UpdateChannelCommand extends $Command< UpdateChannelCommandOutput, IvsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateChannelCommand extends $Command< configuration: IvsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/BatchAssociateScramSecretCommand.ts b/clients/client-kafka/commands/BatchAssociateScramSecretCommand.ts index 64a46aab33369..782a55922fafa 100644 --- a/clients/client-kafka/commands/BatchAssociateScramSecretCommand.ts +++ b/clients/client-kafka/commands/BatchAssociateScramSecretCommand.ts @@ -28,6 +28,7 @@ export class BatchAssociateScramSecretCommand extends $Command< BatchAssociateScramSecretCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchAssociateScramSecretCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/BatchDisassociateScramSecretCommand.ts b/clients/client-kafka/commands/BatchDisassociateScramSecretCommand.ts index f8ce4d954692f..75120dac99957 100644 --- a/clients/client-kafka/commands/BatchDisassociateScramSecretCommand.ts +++ b/clients/client-kafka/commands/BatchDisassociateScramSecretCommand.ts @@ -28,6 +28,7 @@ export class BatchDisassociateScramSecretCommand extends $Command< BatchDisassociateScramSecretCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDisassociateScramSecretCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/CreateClusterCommand.ts b/clients/client-kafka/commands/CreateClusterCommand.ts index e75d12dc45bd5..aa4a2d5a7991a 100644 --- a/clients/client-kafka/commands/CreateClusterCommand.ts +++ b/clients/client-kafka/commands/CreateClusterCommand.ts @@ -28,6 +28,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateClusterCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/CreateConfigurationCommand.ts b/clients/client-kafka/commands/CreateConfigurationCommand.ts index 52acda7c8d986..56d226208cc2c 100644 --- a/clients/client-kafka/commands/CreateConfigurationCommand.ts +++ b/clients/client-kafka/commands/CreateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreateConfigurationCommand extends $Command< CreateConfigurationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConfigurationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DeleteClusterCommand.ts b/clients/client-kafka/commands/DeleteClusterCommand.ts index e6d7d031bae47..a6886b241cab0 100644 --- a/clients/client-kafka/commands/DeleteClusterCommand.ts +++ b/clients/client-kafka/commands/DeleteClusterCommand.ts @@ -28,6 +28,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteClusterCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DeleteConfigurationCommand.ts b/clients/client-kafka/commands/DeleteConfigurationCommand.ts index 5d3210f40a8ed..bebbbc2299b8a 100644 --- a/clients/client-kafka/commands/DeleteConfigurationCommand.ts +++ b/clients/client-kafka/commands/DeleteConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteConfigurationCommand extends $Command< DeleteConfigurationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConfigurationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DescribeClusterCommand.ts b/clients/client-kafka/commands/DescribeClusterCommand.ts index 1e5ed4b815b84..69de69f9bdc74 100644 --- a/clients/client-kafka/commands/DescribeClusterCommand.ts +++ b/clients/client-kafka/commands/DescribeClusterCommand.ts @@ -28,6 +28,7 @@ export class DescribeClusterCommand extends $Command< DescribeClusterCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClusterCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DescribeClusterOperationCommand.ts b/clients/client-kafka/commands/DescribeClusterOperationCommand.ts index a18406fca887c..8728d8c1b5b95 100644 --- a/clients/client-kafka/commands/DescribeClusterOperationCommand.ts +++ b/clients/client-kafka/commands/DescribeClusterOperationCommand.ts @@ -28,6 +28,7 @@ export class DescribeClusterOperationCommand extends $Command< DescribeClusterOperationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClusterOperationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DescribeConfigurationCommand.ts b/clients/client-kafka/commands/DescribeConfigurationCommand.ts index 60e1c5ebbd22d..a7c1afd9c70a0 100644 --- a/clients/client-kafka/commands/DescribeConfigurationCommand.ts +++ b/clients/client-kafka/commands/DescribeConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DescribeConfigurationCommand extends $Command< DescribeConfigurationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConfigurationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/DescribeConfigurationRevisionCommand.ts b/clients/client-kafka/commands/DescribeConfigurationRevisionCommand.ts index b7addf6abb0d3..301048fcd9c04 100644 --- a/clients/client-kafka/commands/DescribeConfigurationRevisionCommand.ts +++ b/clients/client-kafka/commands/DescribeConfigurationRevisionCommand.ts @@ -28,6 +28,7 @@ export class DescribeConfigurationRevisionCommand extends $Command< DescribeConfigurationRevisionCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConfigurationRevisionCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/GetBootstrapBrokersCommand.ts b/clients/client-kafka/commands/GetBootstrapBrokersCommand.ts index cfc416343888a..c3bd53e32043e 100644 --- a/clients/client-kafka/commands/GetBootstrapBrokersCommand.ts +++ b/clients/client-kafka/commands/GetBootstrapBrokersCommand.ts @@ -28,6 +28,7 @@ export class GetBootstrapBrokersCommand extends $Command< GetBootstrapBrokersCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBootstrapBrokersCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/GetCompatibleKafkaVersionsCommand.ts b/clients/client-kafka/commands/GetCompatibleKafkaVersionsCommand.ts index afe945b35356f..da37410b6d681 100644 --- a/clients/client-kafka/commands/GetCompatibleKafkaVersionsCommand.ts +++ b/clients/client-kafka/commands/GetCompatibleKafkaVersionsCommand.ts @@ -28,6 +28,7 @@ export class GetCompatibleKafkaVersionsCommand extends $Command< GetCompatibleKafkaVersionsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCompatibleKafkaVersionsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListClusterOperationsCommand.ts b/clients/client-kafka/commands/ListClusterOperationsCommand.ts index b217682d25360..ef0a94978db9b 100644 --- a/clients/client-kafka/commands/ListClusterOperationsCommand.ts +++ b/clients/client-kafka/commands/ListClusterOperationsCommand.ts @@ -28,6 +28,7 @@ export class ListClusterOperationsCommand extends $Command< ListClusterOperationsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListClusterOperationsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListClustersCommand.ts b/clients/client-kafka/commands/ListClustersCommand.ts index 65d1384ce83f2..36ed2c3cbb850 100644 --- a/clients/client-kafka/commands/ListClustersCommand.ts +++ b/clients/client-kafka/commands/ListClustersCommand.ts @@ -28,6 +28,7 @@ export class ListClustersCommand extends $Command< ListClustersCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListClustersCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListConfigurationRevisionsCommand.ts b/clients/client-kafka/commands/ListConfigurationRevisionsCommand.ts index ecc6a78e842a5..ffba96cdbb030 100644 --- a/clients/client-kafka/commands/ListConfigurationRevisionsCommand.ts +++ b/clients/client-kafka/commands/ListConfigurationRevisionsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationRevisionsCommand extends $Command< ListConfigurationRevisionsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationRevisionsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListConfigurationsCommand.ts b/clients/client-kafka/commands/ListConfigurationsCommand.ts index 67e80a51b8c19..1c76005a789d6 100644 --- a/clients/client-kafka/commands/ListConfigurationsCommand.ts +++ b/clients/client-kafka/commands/ListConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationsCommand extends $Command< ListConfigurationsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListKafkaVersionsCommand.ts b/clients/client-kafka/commands/ListKafkaVersionsCommand.ts index 7902a072509b3..ae9c944bdbef1 100644 --- a/clients/client-kafka/commands/ListKafkaVersionsCommand.ts +++ b/clients/client-kafka/commands/ListKafkaVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListKafkaVersionsCommand extends $Command< ListKafkaVersionsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListKafkaVersionsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListNodesCommand.ts b/clients/client-kafka/commands/ListNodesCommand.ts index be9e8d56a5d1e..99a56ec563b92 100644 --- a/clients/client-kafka/commands/ListNodesCommand.ts +++ b/clients/client-kafka/commands/ListNodesCommand.ts @@ -28,6 +28,7 @@ export class ListNodesCommand extends $Command< ListNodesCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListNodesCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListScramSecretsCommand.ts b/clients/client-kafka/commands/ListScramSecretsCommand.ts index d0969e50aa431..8a5c88de2c9aa 100644 --- a/clients/client-kafka/commands/ListScramSecretsCommand.ts +++ b/clients/client-kafka/commands/ListScramSecretsCommand.ts @@ -28,6 +28,7 @@ export class ListScramSecretsCommand extends $Command< ListScramSecretsCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListScramSecretsCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/ListTagsForResourceCommand.ts b/clients/client-kafka/commands/ListTagsForResourceCommand.ts index 9a6433308ed3c..67c76c9f9e27d 100644 --- a/clients/client-kafka/commands/ListTagsForResourceCommand.ts +++ b/clients/client-kafka/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/RebootBrokerCommand.ts b/clients/client-kafka/commands/RebootBrokerCommand.ts index 4e73e92c92b3c..d6f6681e97e42 100644 --- a/clients/client-kafka/commands/RebootBrokerCommand.ts +++ b/clients/client-kafka/commands/RebootBrokerCommand.ts @@ -28,6 +28,7 @@ export class RebootBrokerCommand extends $Command< RebootBrokerCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RebootBrokerCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/TagResourceCommand.ts b/clients/client-kafka/commands/TagResourceCommand.ts index dccea77d8d403..b2e1e834d0f45 100644 --- a/clients/client-kafka/commands/TagResourceCommand.ts +++ b/clients/client-kafka/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UntagResourceCommand.ts b/clients/client-kafka/commands/UntagResourceCommand.ts index 9e6849eca0933..abd073a0a01bb 100644 --- a/clients/client-kafka/commands/UntagResourceCommand.ts +++ b/clients/client-kafka/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateBrokerCountCommand.ts b/clients/client-kafka/commands/UpdateBrokerCountCommand.ts index 1784ce3a5eae2..1791f6eb5ebf3 100644 --- a/clients/client-kafka/commands/UpdateBrokerCountCommand.ts +++ b/clients/client-kafka/commands/UpdateBrokerCountCommand.ts @@ -28,6 +28,7 @@ export class UpdateBrokerCountCommand extends $Command< UpdateBrokerCountCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBrokerCountCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateBrokerStorageCommand.ts b/clients/client-kafka/commands/UpdateBrokerStorageCommand.ts index 5c4c71d333e92..062c1e5db5298 100644 --- a/clients/client-kafka/commands/UpdateBrokerStorageCommand.ts +++ b/clients/client-kafka/commands/UpdateBrokerStorageCommand.ts @@ -28,6 +28,7 @@ export class UpdateBrokerStorageCommand extends $Command< UpdateBrokerStorageCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBrokerStorageCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateClusterConfigurationCommand.ts b/clients/client-kafka/commands/UpdateClusterConfigurationCommand.ts index 6f76f3ad75036..273f7ae1716c3 100644 --- a/clients/client-kafka/commands/UpdateClusterConfigurationCommand.ts +++ b/clients/client-kafka/commands/UpdateClusterConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateClusterConfigurationCommand extends $Command< UpdateClusterConfigurationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateClusterConfigurationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateClusterKafkaVersionCommand.ts b/clients/client-kafka/commands/UpdateClusterKafkaVersionCommand.ts index cb1f258fd21fb..1ebb561df7702 100644 --- a/clients/client-kafka/commands/UpdateClusterKafkaVersionCommand.ts +++ b/clients/client-kafka/commands/UpdateClusterKafkaVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateClusterKafkaVersionCommand extends $Command< UpdateClusterKafkaVersionCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateClusterKafkaVersionCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateConfigurationCommand.ts b/clients/client-kafka/commands/UpdateConfigurationCommand.ts index 3cce1500b27cf..0237a6116596b 100644 --- a/clients/client-kafka/commands/UpdateConfigurationCommand.ts +++ b/clients/client-kafka/commands/UpdateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateConfigurationCommand extends $Command< UpdateConfigurationCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConfigurationCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kafka/commands/UpdateMonitoringCommand.ts b/clients/client-kafka/commands/UpdateMonitoringCommand.ts index e6449181ec7eb..c46f17682bba3 100644 --- a/clients/client-kafka/commands/UpdateMonitoringCommand.ts +++ b/clients/client-kafka/commands/UpdateMonitoringCommand.ts @@ -28,6 +28,7 @@ export class UpdateMonitoringCommand extends $Command< UpdateMonitoringCommandOutput, KafkaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMonitoringCommand extends $Command< configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/BatchDeleteDocumentCommand.ts b/clients/client-kendra/commands/BatchDeleteDocumentCommand.ts index 3d433442bdcb1..43dd8390202e8 100644 --- a/clients/client-kendra/commands/BatchDeleteDocumentCommand.ts +++ b/clients/client-kendra/commands/BatchDeleteDocumentCommand.ts @@ -32,6 +32,7 @@ export class BatchDeleteDocumentCommand extends $Command< BatchDeleteDocumentCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class BatchDeleteDocumentCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/BatchPutDocumentCommand.ts b/clients/client-kendra/commands/BatchPutDocumentCommand.ts index a0971373bb3b2..4e486ea8c5a9f 100644 --- a/clients/client-kendra/commands/BatchPutDocumentCommand.ts +++ b/clients/client-kendra/commands/BatchPutDocumentCommand.ts @@ -35,6 +35,7 @@ export class BatchPutDocumentCommand extends $Command< BatchPutDocumentCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchPutDocumentCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/CreateDataSourceCommand.ts b/clients/client-kendra/commands/CreateDataSourceCommand.ts index bf5947ee1475e..6bf24b18a9aff 100644 --- a/clients/client-kendra/commands/CreateDataSourceCommand.ts +++ b/clients/client-kendra/commands/CreateDataSourceCommand.ts @@ -34,6 +34,7 @@ export class CreateDataSourceCommand extends $Command< CreateDataSourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDataSourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/CreateFaqCommand.ts b/clients/client-kendra/commands/CreateFaqCommand.ts index 764d002c8f014..ae1baa1f23483 100644 --- a/clients/client-kendra/commands/CreateFaqCommand.ts +++ b/clients/client-kendra/commands/CreateFaqCommand.ts @@ -25,6 +25,7 @@ export class CreateFaqCommand extends $Command< CreateFaqCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CreateFaqCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/CreateIndexCommand.ts b/clients/client-kendra/commands/CreateIndexCommand.ts index baa29eedb8d97..4370f84d72945 100644 --- a/clients/client-kendra/commands/CreateIndexCommand.ts +++ b/clients/client-kendra/commands/CreateIndexCommand.ts @@ -33,6 +33,7 @@ export class CreateIndexCommand extends $Command< CreateIndexCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateIndexCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/CreateThesaurusCommand.ts b/clients/client-kendra/commands/CreateThesaurusCommand.ts index 785e54c81bc40..1671e3518f9a2 100644 --- a/clients/client-kendra/commands/CreateThesaurusCommand.ts +++ b/clients/client-kendra/commands/CreateThesaurusCommand.ts @@ -29,6 +29,7 @@ export class CreateThesaurusCommand extends $Command< CreateThesaurusCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateThesaurusCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DeleteDataSourceCommand.ts b/clients/client-kendra/commands/DeleteDataSourceCommand.ts index 43cc0a0ef3f3b..2e9a3dd9b2f09 100644 --- a/clients/client-kendra/commands/DeleteDataSourceCommand.ts +++ b/clients/client-kendra/commands/DeleteDataSourceCommand.ts @@ -31,6 +31,7 @@ export class DeleteDataSourceCommand extends $Command< DeleteDataSourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDataSourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DeleteFaqCommand.ts b/clients/client-kendra/commands/DeleteFaqCommand.ts index 04fe77ab74b88..522a8331fab84 100644 --- a/clients/client-kendra/commands/DeleteFaqCommand.ts +++ b/clients/client-kendra/commands/DeleteFaqCommand.ts @@ -25,6 +25,7 @@ export class DeleteFaqCommand extends $Command< DeleteFaqCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteFaqCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DeleteIndexCommand.ts b/clients/client-kendra/commands/DeleteIndexCommand.ts index f75685c2c3ba2..2630d2b7e55ad 100644 --- a/clients/client-kendra/commands/DeleteIndexCommand.ts +++ b/clients/client-kendra/commands/DeleteIndexCommand.ts @@ -30,6 +30,7 @@ export class DeleteIndexCommand extends $Command< DeleteIndexCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteIndexCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DeleteThesaurusCommand.ts b/clients/client-kendra/commands/DeleteThesaurusCommand.ts index be7b8c6b08b74..d067b41b64b6d 100644 --- a/clients/client-kendra/commands/DeleteThesaurusCommand.ts +++ b/clients/client-kendra/commands/DeleteThesaurusCommand.ts @@ -29,6 +29,7 @@ export class DeleteThesaurusCommand extends $Command< DeleteThesaurusCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteThesaurusCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DescribeDataSourceCommand.ts b/clients/client-kendra/commands/DescribeDataSourceCommand.ts index a519391a7d741..0a4449aef7719 100644 --- a/clients/client-kendra/commands/DescribeDataSourceCommand.ts +++ b/clients/client-kendra/commands/DescribeDataSourceCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataSourceCommand extends $Command< DescribeDataSourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataSourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DescribeFaqCommand.ts b/clients/client-kendra/commands/DescribeFaqCommand.ts index a6ef8e1dd6cb4..7c0251e590557 100644 --- a/clients/client-kendra/commands/DescribeFaqCommand.ts +++ b/clients/client-kendra/commands/DescribeFaqCommand.ts @@ -28,6 +28,7 @@ export class DescribeFaqCommand extends $Command< DescribeFaqCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFaqCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DescribeIndexCommand.ts b/clients/client-kendra/commands/DescribeIndexCommand.ts index 17e16d5fd2be5..1b768151e59bf 100644 --- a/clients/client-kendra/commands/DescribeIndexCommand.ts +++ b/clients/client-kendra/commands/DescribeIndexCommand.ts @@ -28,6 +28,7 @@ export class DescribeIndexCommand extends $Command< DescribeIndexCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIndexCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/DescribeThesaurusCommand.ts b/clients/client-kendra/commands/DescribeThesaurusCommand.ts index 06033a0336c6b..58d1228997fb2 100644 --- a/clients/client-kendra/commands/DescribeThesaurusCommand.ts +++ b/clients/client-kendra/commands/DescribeThesaurusCommand.ts @@ -28,6 +28,7 @@ export class DescribeThesaurusCommand extends $Command< DescribeThesaurusCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThesaurusCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/ListDataSourceSyncJobsCommand.ts b/clients/client-kendra/commands/ListDataSourceSyncJobsCommand.ts index a82ff4fbf84e0..a0b82b4aca9df 100644 --- a/clients/client-kendra/commands/ListDataSourceSyncJobsCommand.ts +++ b/clients/client-kendra/commands/ListDataSourceSyncJobsCommand.ts @@ -28,6 +28,7 @@ export class ListDataSourceSyncJobsCommand extends $Command< ListDataSourceSyncJobsCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSourceSyncJobsCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/ListDataSourcesCommand.ts b/clients/client-kendra/commands/ListDataSourcesCommand.ts index c287eaaba99d7..f1e4e9e4fcbc1 100644 --- a/clients/client-kendra/commands/ListDataSourcesCommand.ts +++ b/clients/client-kendra/commands/ListDataSourcesCommand.ts @@ -28,6 +28,7 @@ export class ListDataSourcesCommand extends $Command< ListDataSourcesCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSourcesCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/ListFaqsCommand.ts b/clients/client-kendra/commands/ListFaqsCommand.ts index d1916102c950c..1a71969562178 100644 --- a/clients/client-kendra/commands/ListFaqsCommand.ts +++ b/clients/client-kendra/commands/ListFaqsCommand.ts @@ -21,6 +21,7 @@ export type ListFaqsCommandOutput = ListFaqsResponse & __MetadataBearer; *

Gets a list of FAQ lists associated with an index.

*/ export class ListFaqsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class ListFaqsCommand 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-kendra/commands/ListIndicesCommand.ts b/clients/client-kendra/commands/ListIndicesCommand.ts index 893361c593987..090ceead970a4 100644 --- a/clients/client-kendra/commands/ListIndicesCommand.ts +++ b/clients/client-kendra/commands/ListIndicesCommand.ts @@ -28,6 +28,7 @@ export class ListIndicesCommand extends $Command< ListIndicesCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIndicesCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/ListTagsForResourceCommand.ts b/clients/client-kendra/commands/ListTagsForResourceCommand.ts index edc2d8348101a..af6662988f04f 100644 --- a/clients/client-kendra/commands/ListTagsForResourceCommand.ts +++ b/clients/client-kendra/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/ListThesauriCommand.ts b/clients/client-kendra/commands/ListThesauriCommand.ts index fbf77532399a6..d2d37a932f7d3 100644 --- a/clients/client-kendra/commands/ListThesauriCommand.ts +++ b/clients/client-kendra/commands/ListThesauriCommand.ts @@ -28,6 +28,7 @@ export class ListThesauriCommand extends $Command< ListThesauriCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThesauriCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/QueryCommand.ts b/clients/client-kendra/commands/QueryCommand.ts index a54e19f3dfa12..05c0b4718d5f3 100644 --- a/clients/client-kendra/commands/QueryCommand.ts +++ b/clients/client-kendra/commands/QueryCommand.ts @@ -41,6 +41,7 @@ export type QueryCommandOutput = QueryResult & __MetadataBearer; *

Each query returns the 100 most relevant results.

*/ export class QueryCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class QueryCommand 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-kendra/commands/StartDataSourceSyncJobCommand.ts b/clients/client-kendra/commands/StartDataSourceSyncJobCommand.ts index a1141f45a6134..294845d7fa197 100644 --- a/clients/client-kendra/commands/StartDataSourceSyncJobCommand.ts +++ b/clients/client-kendra/commands/StartDataSourceSyncJobCommand.ts @@ -29,6 +29,7 @@ export class StartDataSourceSyncJobCommand extends $Command< StartDataSourceSyncJobCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartDataSourceSyncJobCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/StopDataSourceSyncJobCommand.ts b/clients/client-kendra/commands/StopDataSourceSyncJobCommand.ts index e6f0db72888de..a3f4373faf817 100644 --- a/clients/client-kendra/commands/StopDataSourceSyncJobCommand.ts +++ b/clients/client-kendra/commands/StopDataSourceSyncJobCommand.ts @@ -29,6 +29,7 @@ export class StopDataSourceSyncJobCommand extends $Command< StopDataSourceSyncJobCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopDataSourceSyncJobCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/SubmitFeedbackCommand.ts b/clients/client-kendra/commands/SubmitFeedbackCommand.ts index 2ca9e75f06b66..2704a70f4949c 100644 --- a/clients/client-kendra/commands/SubmitFeedbackCommand.ts +++ b/clients/client-kendra/commands/SubmitFeedbackCommand.ts @@ -29,6 +29,7 @@ export class SubmitFeedbackCommand extends $Command< SubmitFeedbackCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SubmitFeedbackCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/TagResourceCommand.ts b/clients/client-kendra/commands/TagResourceCommand.ts index 9a6b9965b79d4..afa0d4698d298 100644 --- a/clients/client-kendra/commands/TagResourceCommand.ts +++ b/clients/client-kendra/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/UntagResourceCommand.ts b/clients/client-kendra/commands/UntagResourceCommand.ts index 246548a67b985..4ab918f9fb2cc 100644 --- a/clients/client-kendra/commands/UntagResourceCommand.ts +++ b/clients/client-kendra/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/UpdateDataSourceCommand.ts b/clients/client-kendra/commands/UpdateDataSourceCommand.ts index f728e8be5634b..9ab2f5c897498 100644 --- a/clients/client-kendra/commands/UpdateDataSourceCommand.ts +++ b/clients/client-kendra/commands/UpdateDataSourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSourceCommand extends $Command< UpdateDataSourceCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSourceCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/UpdateIndexCommand.ts b/clients/client-kendra/commands/UpdateIndexCommand.ts index 0a65096fa2b00..aea01cc8ae77b 100644 --- a/clients/client-kendra/commands/UpdateIndexCommand.ts +++ b/clients/client-kendra/commands/UpdateIndexCommand.ts @@ -28,6 +28,7 @@ export class UpdateIndexCommand extends $Command< UpdateIndexCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateIndexCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kendra/commands/UpdateThesaurusCommand.ts b/clients/client-kendra/commands/UpdateThesaurusCommand.ts index 289a379f8db70..fc9658878767d 100644 --- a/clients/client-kendra/commands/UpdateThesaurusCommand.ts +++ b/clients/client-kendra/commands/UpdateThesaurusCommand.ts @@ -28,6 +28,7 @@ export class UpdateThesaurusCommand extends $Command< UpdateThesaurusCommandOutput, KendraClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThesaurusCommand extends $Command< configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationCloudWatchLoggingOptionCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationCloudWatchLoggingOptionCommand.ts index 9440e92248c6d..811e8a0c08b8e 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationCloudWatchLoggingOptionCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationCloudWatchLoggingOptionCommand.ts @@ -36,6 +36,7 @@ export class AddApplicationCloudWatchLoggingOptionCommand extends $Command< AddApplicationCloudWatchLoggingOptionCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AddApplicationCloudWatchLoggingOptionCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationInputCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationInputCommand.ts index dc6f0698559cf..28f166be751d5 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationInputCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationInputCommand.ts @@ -41,6 +41,7 @@ export class AddApplicationInputCommand extends $Command< AddApplicationInputCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AddApplicationInputCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationInputProcessingConfigurationCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationInputProcessingConfigurationCommand.ts index 397e6cf31735c..a910e54ec4f26 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationInputProcessingConfigurationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationInputProcessingConfigurationCommand.ts @@ -38,6 +38,7 @@ export class AddApplicationInputProcessingConfigurationCommand extends $Command< AddApplicationInputProcessingConfigurationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AddApplicationInputProcessingConfigurationCommand extends $Command< AddApplicationInputProcessingConfigurationCommandInput, AddApplicationInputProcessingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationOutputCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationOutputCommand.ts index 44547b0f1194f..5ca48abd090a1 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationOutputCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationOutputCommand.ts @@ -44,6 +44,7 @@ export class AddApplicationOutputCommand extends $Command< AddApplicationOutputCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class AddApplicationOutputCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationReferenceDataSourceCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationReferenceDataSourceCommand.ts index e382286005909..e962928dfe1f5 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationReferenceDataSourceCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationReferenceDataSourceCommand.ts @@ -41,6 +41,7 @@ export class AddApplicationReferenceDataSourceCommand extends $Command< AddApplicationReferenceDataSourceCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AddApplicationReferenceDataSourceCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/AddApplicationVpcConfigurationCommand.ts b/clients/client-kinesis-analytics-v2/commands/AddApplicationVpcConfigurationCommand.ts index d83ac9b803bf6..fb65f8c98acb4 100644 --- a/clients/client-kinesis-analytics-v2/commands/AddApplicationVpcConfigurationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/AddApplicationVpcConfigurationCommand.ts @@ -43,6 +43,7 @@ export class AddApplicationVpcConfigurationCommand extends $Command< AddApplicationVpcConfigurationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class AddApplicationVpcConfigurationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/CreateApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/CreateApplicationCommand.ts index a2a5e136013ca..bda24c4d33286 100644 --- a/clients/client-kinesis-analytics-v2/commands/CreateApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/CreateApplicationCommand.ts @@ -34,6 +34,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/CreateApplicationPresignedUrlCommand.ts b/clients/client-kinesis-analytics-v2/commands/CreateApplicationPresignedUrlCommand.ts index c25779f8880ee..2aa825df17128 100644 --- a/clients/client-kinesis-analytics-v2/commands/CreateApplicationPresignedUrlCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/CreateApplicationPresignedUrlCommand.ts @@ -44,6 +44,7 @@ export class CreateApplicationPresignedUrlCommand extends $Command< CreateApplicationPresignedUrlCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateApplicationPresignedUrlCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/CreateApplicationSnapshotCommand.ts b/clients/client-kinesis-analytics-v2/commands/CreateApplicationSnapshotCommand.ts index f99bcb4c1a4b8..047c130a174f2 100644 --- a/clients/client-kinesis-analytics-v2/commands/CreateApplicationSnapshotCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/CreateApplicationSnapshotCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationSnapshotCommand extends $Command< CreateApplicationSnapshotCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationSnapshotCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts index 0ad3568bfcbda..0c41fd5396333 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts @@ -36,6 +36,7 @@ export class DeleteApplicationCloudWatchLoggingOptionCommand extends $Command< DeleteApplicationCloudWatchLoggingOptionCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteApplicationCloudWatchLoggingOptionCommand extends $Command< DeleteApplicationCloudWatchLoggingOptionCommandInput, DeleteApplicationCloudWatchLoggingOptionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCommand.ts index 35a4cc39d15c1..ef4721e424466 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationInputProcessingConfigurationCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationInputProcessingConfigurationCommand.ts index f860b1795b359..22239ff361b02 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationInputProcessingConfigurationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationInputProcessingConfigurationCommand.ts @@ -36,6 +36,7 @@ export class DeleteApplicationInputProcessingConfigurationCommand extends $Comma DeleteApplicationInputProcessingConfigurationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteApplicationInputProcessingConfigurationCommand extends $Comma DeleteApplicationInputProcessingConfigurationCommandInput, DeleteApplicationInputProcessingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationOutputCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationOutputCommand.ts index a1aa42549bc68..494adcec4692d 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationOutputCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationOutputCommand.ts @@ -34,6 +34,7 @@ export class DeleteApplicationOutputCommand extends $Command< DeleteApplicationOutputCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteApplicationOutputCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationReferenceDataSourceCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationReferenceDataSourceCommand.ts index 452274bef1dff..a60027587bc95 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationReferenceDataSourceCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationReferenceDataSourceCommand.ts @@ -38,6 +38,7 @@ export class DeleteApplicationReferenceDataSourceCommand extends $Command< DeleteApplicationReferenceDataSourceCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteApplicationReferenceDataSourceCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationSnapshotCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationSnapshotCommand.ts index 35c700221eb58..343cc04b8fbfc 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationSnapshotCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationSnapshotCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationSnapshotCommand extends $Command< DeleteApplicationSnapshotCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationSnapshotCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationVpcConfigurationCommand.ts b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationVpcConfigurationCommand.ts index 35589a9268275..8416b9419e03c 100644 --- a/clients/client-kinesis-analytics-v2/commands/DeleteApplicationVpcConfigurationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DeleteApplicationVpcConfigurationCommand.ts @@ -36,6 +36,7 @@ export class DeleteApplicationVpcConfigurationCommand extends $Command< DeleteApplicationVpcConfigurationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteApplicationVpcConfigurationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DescribeApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/DescribeApplicationCommand.ts index 0c114cd3d941c..df0e1c209dfa1 100644 --- a/clients/client-kinesis-analytics-v2/commands/DescribeApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DescribeApplicationCommand.ts @@ -34,6 +34,7 @@ export class DescribeApplicationCommand extends $Command< DescribeApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DescribeApplicationSnapshotCommand.ts b/clients/client-kinesis-analytics-v2/commands/DescribeApplicationSnapshotCommand.ts index 7666bfce1686d..79dfdae0a1d37 100644 --- a/clients/client-kinesis-analytics-v2/commands/DescribeApplicationSnapshotCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DescribeApplicationSnapshotCommand.ts @@ -32,6 +32,7 @@ export class DescribeApplicationSnapshotCommand extends $Command< DescribeApplicationSnapshotCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeApplicationSnapshotCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/DiscoverInputSchemaCommand.ts b/clients/client-kinesis-analytics-v2/commands/DiscoverInputSchemaCommand.ts index 83d38a05af017..0c91ec917a037 100644 --- a/clients/client-kinesis-analytics-v2/commands/DiscoverInputSchemaCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/DiscoverInputSchemaCommand.ts @@ -38,6 +38,7 @@ export class DiscoverInputSchemaCommand extends $Command< DiscoverInputSchemaCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DiscoverInputSchemaCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/ListApplicationSnapshotsCommand.ts b/clients/client-kinesis-analytics-v2/commands/ListApplicationSnapshotsCommand.ts index 58016fb9d0bac..4ad35e901e62f 100644 --- a/clients/client-kinesis-analytics-v2/commands/ListApplicationSnapshotsCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/ListApplicationSnapshotsCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationSnapshotsCommand extends $Command< ListApplicationSnapshotsCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationSnapshotsCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/ListApplicationsCommand.ts b/clients/client-kinesis-analytics-v2/commands/ListApplicationsCommand.ts index 6313310ba134a..409e4f1508eec 100644 --- a/clients/client-kinesis-analytics-v2/commands/ListApplicationsCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/ListApplicationsCommand.ts @@ -36,6 +36,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListApplicationsCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/ListTagsForResourceCommand.ts b/clients/client-kinesis-analytics-v2/commands/ListTagsForResourceCommand.ts index 69b6e1419b5bf..808bea1941c3c 100644 --- a/clients/client-kinesis-analytics-v2/commands/ListTagsForResourceCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/ListTagsForResourceCommand.ts @@ -33,6 +33,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/StartApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/StartApplicationCommand.ts index 0894baf5005ec..36303e478e53b 100644 --- a/clients/client-kinesis-analytics-v2/commands/StartApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/StartApplicationCommand.ts @@ -33,6 +33,7 @@ export class StartApplicationCommand extends $Command< StartApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/StopApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/StopApplicationCommand.ts index 24c379683eae3..d0a5469a3c530 100644 --- a/clients/client-kinesis-analytics-v2/commands/StopApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/StopApplicationCommand.ts @@ -38,6 +38,7 @@ export class StopApplicationCommand extends $Command< StopApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StopApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/TagResourceCommand.ts b/clients/client-kinesis-analytics-v2/commands/TagResourceCommand.ts index f8a503c51ea31..2d31738e88515 100644 --- a/clients/client-kinesis-analytics-v2/commands/TagResourceCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/UntagResourceCommand.ts b/clients/client-kinesis-analytics-v2/commands/UntagResourceCommand.ts index 462a748056815..e6bb7d110745e 100644 --- a/clients/client-kinesis-analytics-v2/commands/UntagResourceCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/UntagResourceCommand.ts @@ -33,6 +33,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UntagResourceCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics-v2/commands/UpdateApplicationCommand.ts b/clients/client-kinesis-analytics-v2/commands/UpdateApplicationCommand.ts index 8f43e77fb42f7..31af0083be16f 100644 --- a/clients/client-kinesis-analytics-v2/commands/UpdateApplicationCommand.ts +++ b/clients/client-kinesis-analytics-v2/commands/UpdateApplicationCommand.ts @@ -40,6 +40,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, KinesisAnalyticsV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateApplicationCommand extends $Command< configuration: KinesisAnalyticsV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/AddApplicationCloudWatchLoggingOptionCommand.ts b/clients/client-kinesis-analytics/commands/AddApplicationCloudWatchLoggingOptionCommand.ts index 60841170d2191..0f0626e7c3692 100644 --- a/clients/client-kinesis-analytics/commands/AddApplicationCloudWatchLoggingOptionCommand.ts +++ b/clients/client-kinesis-analytics/commands/AddApplicationCloudWatchLoggingOptionCommand.ts @@ -38,6 +38,7 @@ export class AddApplicationCloudWatchLoggingOptionCommand extends $Command< AddApplicationCloudWatchLoggingOptionCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AddApplicationCloudWatchLoggingOptionCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/AddApplicationInputCommand.ts b/clients/client-kinesis-analytics/commands/AddApplicationInputCommand.ts index 11392490355d1..4d0a031ec4a86 100644 --- a/clients/client-kinesis-analytics/commands/AddApplicationInputCommand.ts +++ b/clients/client-kinesis-analytics/commands/AddApplicationInputCommand.ts @@ -44,6 +44,7 @@ export class AddApplicationInputCommand extends $Command< AddApplicationInputCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class AddApplicationInputCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/AddApplicationInputProcessingConfigurationCommand.ts b/clients/client-kinesis-analytics/commands/AddApplicationInputProcessingConfigurationCommand.ts index 1abd84cf66e76..0f33de16c10c8 100644 --- a/clients/client-kinesis-analytics/commands/AddApplicationInputProcessingConfigurationCommand.ts +++ b/clients/client-kinesis-analytics/commands/AddApplicationInputProcessingConfigurationCommand.ts @@ -37,6 +37,7 @@ export class AddApplicationInputProcessingConfigurationCommand extends $Command< AddApplicationInputProcessingConfigurationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AddApplicationInputProcessingConfigurationCommand extends $Command< AddApplicationInputProcessingConfigurationCommandInput, AddApplicationInputProcessingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/AddApplicationOutputCommand.ts b/clients/client-kinesis-analytics/commands/AddApplicationOutputCommand.ts index 3f5b395bfd099..509d1b4f49d65 100644 --- a/clients/client-kinesis-analytics/commands/AddApplicationOutputCommand.ts +++ b/clients/client-kinesis-analytics/commands/AddApplicationOutputCommand.ts @@ -47,6 +47,7 @@ export class AddApplicationOutputCommand extends $Command< AddApplicationOutputCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class AddApplicationOutputCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/AddApplicationReferenceDataSourceCommand.ts b/clients/client-kinesis-analytics/commands/AddApplicationReferenceDataSourceCommand.ts index c25b371fb9c69..994ed13b7866d 100644 --- a/clients/client-kinesis-analytics/commands/AddApplicationReferenceDataSourceCommand.ts +++ b/clients/client-kinesis-analytics/commands/AddApplicationReferenceDataSourceCommand.ts @@ -45,6 +45,7 @@ export class AddApplicationReferenceDataSourceCommand extends $Command< AddApplicationReferenceDataSourceCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AddApplicationReferenceDataSourceCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/CreateApplicationCommand.ts b/clients/client-kinesis-analytics/commands/CreateApplicationCommand.ts index 97c88a83f893f..7ea5f3330e346 100644 --- a/clients/client-kinesis-analytics/commands/CreateApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/CreateApplicationCommand.ts @@ -54,6 +54,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class CreateApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts b/clients/client-kinesis-analytics/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts index fcf1408e09289..6262e1f632655 100644 --- a/clients/client-kinesis-analytics/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts +++ b/clients/client-kinesis-analytics/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts @@ -37,6 +37,7 @@ export class DeleteApplicationCloudWatchLoggingOptionCommand extends $Command< DeleteApplicationCloudWatchLoggingOptionCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteApplicationCloudWatchLoggingOptionCommand extends $Command< DeleteApplicationCloudWatchLoggingOptionCommandInput, DeleteApplicationCloudWatchLoggingOptionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DeleteApplicationCommand.ts b/clients/client-kinesis-analytics/commands/DeleteApplicationCommand.ts index c74def74f4840..d6c7747e620bc 100644 --- a/clients/client-kinesis-analytics/commands/DeleteApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/DeleteApplicationCommand.ts @@ -33,6 +33,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DeleteApplicationInputProcessingConfigurationCommand.ts b/clients/client-kinesis-analytics/commands/DeleteApplicationInputProcessingConfigurationCommand.ts index 46ee3baf4eb0b..31dbcb97463c6 100644 --- a/clients/client-kinesis-analytics/commands/DeleteApplicationInputProcessingConfigurationCommand.ts +++ b/clients/client-kinesis-analytics/commands/DeleteApplicationInputProcessingConfigurationCommand.ts @@ -35,6 +35,7 @@ export class DeleteApplicationInputProcessingConfigurationCommand extends $Comma DeleteApplicationInputProcessingConfigurationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteApplicationInputProcessingConfigurationCommand extends $Comma DeleteApplicationInputProcessingConfigurationCommandInput, DeleteApplicationInputProcessingConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DeleteApplicationOutputCommand.ts b/clients/client-kinesis-analytics/commands/DeleteApplicationOutputCommand.ts index 4af64ad378e2d..23533e18d2a94 100644 --- a/clients/client-kinesis-analytics/commands/DeleteApplicationOutputCommand.ts +++ b/clients/client-kinesis-analytics/commands/DeleteApplicationOutputCommand.ts @@ -33,6 +33,7 @@ export class DeleteApplicationOutputCommand extends $Command< DeleteApplicationOutputCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteApplicationOutputCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DeleteApplicationReferenceDataSourceCommand.ts b/clients/client-kinesis-analytics/commands/DeleteApplicationReferenceDataSourceCommand.ts index f657b028ba1df..a8fbb7e479d67 100644 --- a/clients/client-kinesis-analytics/commands/DeleteApplicationReferenceDataSourceCommand.ts +++ b/clients/client-kinesis-analytics/commands/DeleteApplicationReferenceDataSourceCommand.ts @@ -40,6 +40,7 @@ export class DeleteApplicationReferenceDataSourceCommand extends $Command< DeleteApplicationReferenceDataSourceCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteApplicationReferenceDataSourceCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DescribeApplicationCommand.ts b/clients/client-kinesis-analytics/commands/DescribeApplicationCommand.ts index 84e8a1c22e4eb..daef1536fb832 100644 --- a/clients/client-kinesis-analytics/commands/DescribeApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/DescribeApplicationCommand.ts @@ -37,6 +37,7 @@ export class DescribeApplicationCommand extends $Command< DescribeApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/DiscoverInputSchemaCommand.ts b/clients/client-kinesis-analytics/commands/DiscoverInputSchemaCommand.ts index f8fa7665d1dcd..aff84ecb9e46f 100644 --- a/clients/client-kinesis-analytics/commands/DiscoverInputSchemaCommand.ts +++ b/clients/client-kinesis-analytics/commands/DiscoverInputSchemaCommand.ts @@ -42,6 +42,7 @@ export class DiscoverInputSchemaCommand extends $Command< DiscoverInputSchemaCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DiscoverInputSchemaCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/ListApplicationsCommand.ts b/clients/client-kinesis-analytics/commands/ListApplicationsCommand.ts index 81e91791eae63..3ebff7b2e68b8 100644 --- a/clients/client-kinesis-analytics/commands/ListApplicationsCommand.ts +++ b/clients/client-kinesis-analytics/commands/ListApplicationsCommand.ts @@ -44,6 +44,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class ListApplicationsCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/ListTagsForResourceCommand.ts b/clients/client-kinesis-analytics/commands/ListTagsForResourceCommand.ts index 46a66e52b8dec..ea70dc2211fa7 100644 --- a/clients/client-kinesis-analytics/commands/ListTagsForResourceCommand.ts +++ b/clients/client-kinesis-analytics/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/StartApplicationCommand.ts b/clients/client-kinesis-analytics/commands/StartApplicationCommand.ts index 4b48bb44e1a11..8a861c67ce3b3 100644 --- a/clients/client-kinesis-analytics/commands/StartApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/StartApplicationCommand.ts @@ -39,6 +39,7 @@ export class StartApplicationCommand extends $Command< StartApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class StartApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/StopApplicationCommand.ts b/clients/client-kinesis-analytics/commands/StopApplicationCommand.ts index 5c740efa4598a..7610af09d3a40 100644 --- a/clients/client-kinesis-analytics/commands/StopApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/StopApplicationCommand.ts @@ -38,6 +38,7 @@ export class StopApplicationCommand extends $Command< StopApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StopApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/TagResourceCommand.ts b/clients/client-kinesis-analytics/commands/TagResourceCommand.ts index 9a87a251c870d..683e41d4245e9 100644 --- a/clients/client-kinesis-analytics/commands/TagResourceCommand.ts +++ b/clients/client-kinesis-analytics/commands/TagResourceCommand.ts @@ -29,6 +29,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TagResourceCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/UntagResourceCommand.ts b/clients/client-kinesis-analytics/commands/UntagResourceCommand.ts index 7f101724018aa..32a1bdc0a0d57 100644 --- a/clients/client-kinesis-analytics/commands/UntagResourceCommand.ts +++ b/clients/client-kinesis-analytics/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-analytics/commands/UpdateApplicationCommand.ts b/clients/client-kinesis-analytics/commands/UpdateApplicationCommand.ts index b7de1f070225c..beaa188595342 100644 --- a/clients/client-kinesis-analytics/commands/UpdateApplicationCommand.ts +++ b/clients/client-kinesis-analytics/commands/UpdateApplicationCommand.ts @@ -37,6 +37,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, KinesisAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateApplicationCommand extends $Command< configuration: KinesisAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-archived-media/commands/GetClipCommand.ts b/clients/client-kinesis-video-archived-media/commands/GetClipCommand.ts index 37cf7429031f5..38b773bccbec5 100644 --- a/clients/client-kinesis-video-archived-media/commands/GetClipCommand.ts +++ b/clients/client-kinesis-video-archived-media/commands/GetClipCommand.ts @@ -74,6 +74,7 @@ export class GetClipCommand extends $Command< GetClipCommandOutput, KinesisVideoArchivedMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class GetClipCommand extends $Command< configuration: KinesisVideoArchivedMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-archived-media/commands/GetDASHStreamingSessionURLCommand.ts b/clients/client-kinesis-video-archived-media/commands/GetDASHStreamingSessionURLCommand.ts index 600aa857d0eb7..d9bccd0bb5c07 100644 --- a/clients/client-kinesis-video-archived-media/commands/GetDASHStreamingSessionURLCommand.ts +++ b/clients/client-kinesis-video-archived-media/commands/GetDASHStreamingSessionURLCommand.ts @@ -202,6 +202,7 @@ export class GetDASHStreamingSessionURLCommand extends $Command< GetDASHStreamingSessionURLCommandOutput, KinesisVideoArchivedMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -219,7 +220,10 @@ export class GetDASHStreamingSessionURLCommand extends $Command< configuration: KinesisVideoArchivedMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-archived-media/commands/GetHLSStreamingSessionURLCommand.ts b/clients/client-kinesis-video-archived-media/commands/GetHLSStreamingSessionURLCommand.ts index f2739643f7e02..e95eae4b77c10 100644 --- a/clients/client-kinesis-video-archived-media/commands/GetHLSStreamingSessionURLCommand.ts +++ b/clients/client-kinesis-video-archived-media/commands/GetHLSStreamingSessionURLCommand.ts @@ -233,6 +233,7 @@ export class GetHLSStreamingSessionURLCommand extends $Command< GetHLSStreamingSessionURLCommandOutput, KinesisVideoArchivedMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -250,7 +251,10 @@ export class GetHLSStreamingSessionURLCommand extends $Command< configuration: KinesisVideoArchivedMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-archived-media/commands/GetMediaForFragmentListCommand.ts b/clients/client-kinesis-video-archived-media/commands/GetMediaForFragmentListCommand.ts index 52e6ed7db9186..706a3bb8b37ec 100644 --- a/clients/client-kinesis-video-archived-media/commands/GetMediaForFragmentListCommand.ts +++ b/clients/client-kinesis-video-archived-media/commands/GetMediaForFragmentListCommand.ts @@ -80,6 +80,7 @@ export class GetMediaForFragmentListCommand extends $Command< GetMediaForFragmentListCommandOutput, KinesisVideoArchivedMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class GetMediaForFragmentListCommand extends $Command< configuration: KinesisVideoArchivedMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-archived-media/commands/ListFragmentsCommand.ts b/clients/client-kinesis-video-archived-media/commands/ListFragmentsCommand.ts index 7582436ecc50a..261c3813fa2b0 100644 --- a/clients/client-kinesis-video-archived-media/commands/ListFragmentsCommand.ts +++ b/clients/client-kinesis-video-archived-media/commands/ListFragmentsCommand.ts @@ -68,6 +68,7 @@ export class ListFragmentsCommand extends $Command< ListFragmentsCommandOutput, KinesisVideoArchivedMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class ListFragmentsCommand extends $Command< configuration: KinesisVideoArchivedMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-media/commands/GetMediaCommand.ts b/clients/client-kinesis-video-media/commands/GetMediaCommand.ts index 3e246e952b806..155f9832e0154 100644 --- a/clients/client-kinesis-video-media/commands/GetMediaCommand.ts +++ b/clients/client-kinesis-video-media/commands/GetMediaCommand.ts @@ -77,6 +77,7 @@ export class GetMediaCommand extends $Command< GetMediaCommandOutput, KinesisVideoMediaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class GetMediaCommand extends $Command< configuration: KinesisVideoMediaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-signaling/commands/GetIceServerConfigCommand.ts b/clients/client-kinesis-video-signaling/commands/GetIceServerConfigCommand.ts index 27928b9375d33..57819328fd972 100644 --- a/clients/client-kinesis-video-signaling/commands/GetIceServerConfigCommand.ts +++ b/clients/client-kinesis-video-signaling/commands/GetIceServerConfigCommand.ts @@ -45,6 +45,7 @@ export class GetIceServerConfigCommand extends $Command< GetIceServerConfigCommandOutput, KinesisVideoSignalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class GetIceServerConfigCommand extends $Command< configuration: KinesisVideoSignalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video-signaling/commands/SendAlexaOfferToMasterCommand.ts b/clients/client-kinesis-video-signaling/commands/SendAlexaOfferToMasterCommand.ts index 3a77d020b2590..9fc948f86803a 100644 --- a/clients/client-kinesis-video-signaling/commands/SendAlexaOfferToMasterCommand.ts +++ b/clients/client-kinesis-video-signaling/commands/SendAlexaOfferToMasterCommand.ts @@ -37,6 +37,7 @@ export class SendAlexaOfferToMasterCommand extends $Command< SendAlexaOfferToMasterCommandOutput, KinesisVideoSignalingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class SendAlexaOfferToMasterCommand extends $Command< configuration: KinesisVideoSignalingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/CreateSignalingChannelCommand.ts b/clients/client-kinesis-video/commands/CreateSignalingChannelCommand.ts index adf7b91511ba0..23312649c4fca 100644 --- a/clients/client-kinesis-video/commands/CreateSignalingChannelCommand.ts +++ b/clients/client-kinesis-video/commands/CreateSignalingChannelCommand.ts @@ -30,6 +30,7 @@ export class CreateSignalingChannelCommand extends $Command< CreateSignalingChannelCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateSignalingChannelCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/CreateStreamCommand.ts b/clients/client-kinesis-video/commands/CreateStreamCommand.ts index 0a47aa13d8454..ee627d5583c1d 100644 --- a/clients/client-kinesis-video/commands/CreateStreamCommand.ts +++ b/clients/client-kinesis-video/commands/CreateStreamCommand.ts @@ -36,6 +36,7 @@ export class CreateStreamCommand extends $Command< CreateStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/DeleteSignalingChannelCommand.ts b/clients/client-kinesis-video/commands/DeleteSignalingChannelCommand.ts index 39e3b124b9ce9..63d54e3651a7d 100644 --- a/clients/client-kinesis-video/commands/DeleteSignalingChannelCommand.ts +++ b/clients/client-kinesis-video/commands/DeleteSignalingChannelCommand.ts @@ -30,6 +30,7 @@ export class DeleteSignalingChannelCommand extends $Command< DeleteSignalingChannelCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteSignalingChannelCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/DeleteStreamCommand.ts b/clients/client-kinesis-video/commands/DeleteStreamCommand.ts index ac26d7f394752..5a51f4e91d9ec 100644 --- a/clients/client-kinesis-video/commands/DeleteStreamCommand.ts +++ b/clients/client-kinesis-video/commands/DeleteStreamCommand.ts @@ -37,6 +37,7 @@ export class DeleteStreamCommand extends $Command< DeleteStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/DescribeSignalingChannelCommand.ts b/clients/client-kinesis-video/commands/DescribeSignalingChannelCommand.ts index 68981d5ea37fa..cea24ce46769f 100644 --- a/clients/client-kinesis-video/commands/DescribeSignalingChannelCommand.ts +++ b/clients/client-kinesis-video/commands/DescribeSignalingChannelCommand.ts @@ -30,6 +30,7 @@ export class DescribeSignalingChannelCommand extends $Command< DescribeSignalingChannelCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeSignalingChannelCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/DescribeStreamCommand.ts b/clients/client-kinesis-video/commands/DescribeStreamCommand.ts index 1d96ed46c0d37..60ebf65c75516 100644 --- a/clients/client-kinesis-video/commands/DescribeStreamCommand.ts +++ b/clients/client-kinesis-video/commands/DescribeStreamCommand.ts @@ -29,6 +29,7 @@ export class DescribeStreamCommand extends $Command< DescribeStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/GetDataEndpointCommand.ts b/clients/client-kinesis-video/commands/GetDataEndpointCommand.ts index 1056045316efc..e97563b44c47a 100644 --- a/clients/client-kinesis-video/commands/GetDataEndpointCommand.ts +++ b/clients/client-kinesis-video/commands/GetDataEndpointCommand.ts @@ -39,6 +39,7 @@ export class GetDataEndpointCommand extends $Command< GetDataEndpointCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetDataEndpointCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/GetSignalingChannelEndpointCommand.ts b/clients/client-kinesis-video/commands/GetSignalingChannelEndpointCommand.ts index af7ceabbcfd22..683cb897103cc 100644 --- a/clients/client-kinesis-video/commands/GetSignalingChannelEndpointCommand.ts +++ b/clients/client-kinesis-video/commands/GetSignalingChannelEndpointCommand.ts @@ -41,6 +41,7 @@ export class GetSignalingChannelEndpointCommand extends $Command< GetSignalingChannelEndpointCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetSignalingChannelEndpointCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/ListSignalingChannelsCommand.ts b/clients/client-kinesis-video/commands/ListSignalingChannelsCommand.ts index 25ec1963612fb..57d2c6c800745 100644 --- a/clients/client-kinesis-video/commands/ListSignalingChannelsCommand.ts +++ b/clients/client-kinesis-video/commands/ListSignalingChannelsCommand.ts @@ -30,6 +30,7 @@ export class ListSignalingChannelsCommand extends $Command< ListSignalingChannelsCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListSignalingChannelsCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/ListStreamsCommand.ts b/clients/client-kinesis-video/commands/ListStreamsCommand.ts index a203122969e6a..fb95d4825595e 100644 --- a/clients/client-kinesis-video/commands/ListStreamsCommand.ts +++ b/clients/client-kinesis-video/commands/ListStreamsCommand.ts @@ -30,6 +30,7 @@ export class ListStreamsCommand extends $Command< ListStreamsCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListStreamsCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/ListTagsForResourceCommand.ts b/clients/client-kinesis-video/commands/ListTagsForResourceCommand.ts index 81903fb438b8c..73b07fe13f04d 100644 --- a/clients/client-kinesis-video/commands/ListTagsForResourceCommand.ts +++ b/clients/client-kinesis-video/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/ListTagsForStreamCommand.ts b/clients/client-kinesis-video/commands/ListTagsForStreamCommand.ts index e981322fcf915..e84a61a41876d 100644 --- a/clients/client-kinesis-video/commands/ListTagsForStreamCommand.ts +++ b/clients/client-kinesis-video/commands/ListTagsForStreamCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForStreamCommand extends $Command< ListTagsForStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/TagResourceCommand.ts b/clients/client-kinesis-video/commands/TagResourceCommand.ts index da22cf90391f9..a45754c38f068 100644 --- a/clients/client-kinesis-video/commands/TagResourceCommand.ts +++ b/clients/client-kinesis-video/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/TagStreamCommand.ts b/clients/client-kinesis-video/commands/TagStreamCommand.ts index 582bc43ac0efa..e612f4db6eb62 100644 --- a/clients/client-kinesis-video/commands/TagStreamCommand.ts +++ b/clients/client-kinesis-video/commands/TagStreamCommand.ts @@ -37,6 +37,7 @@ export class TagStreamCommand extends $Command< TagStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/UntagResourceCommand.ts b/clients/client-kinesis-video/commands/UntagResourceCommand.ts index a9cf2ddbeaece..052e8ae7aeaec 100644 --- a/clients/client-kinesis-video/commands/UntagResourceCommand.ts +++ b/clients/client-kinesis-video/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/UntagStreamCommand.ts b/clients/client-kinesis-video/commands/UntagStreamCommand.ts index 9ec029dfb8fb1..cf4153f35a1ab 100644 --- a/clients/client-kinesis-video/commands/UntagStreamCommand.ts +++ b/clients/client-kinesis-video/commands/UntagStreamCommand.ts @@ -32,6 +32,7 @@ export class UntagStreamCommand extends $Command< UntagStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/UpdateDataRetentionCommand.ts b/clients/client-kinesis-video/commands/UpdateDataRetentionCommand.ts index 5988cd5d1fbf6..ae42525425d83 100644 --- a/clients/client-kinesis-video/commands/UpdateDataRetentionCommand.ts +++ b/clients/client-kinesis-video/commands/UpdateDataRetentionCommand.ts @@ -54,6 +54,7 @@ export class UpdateDataRetentionCommand extends $Command< UpdateDataRetentionCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class UpdateDataRetentionCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/UpdateSignalingChannelCommand.ts b/clients/client-kinesis-video/commands/UpdateSignalingChannelCommand.ts index f0288af96c482..f5727f54df8d4 100644 --- a/clients/client-kinesis-video/commands/UpdateSignalingChannelCommand.ts +++ b/clients/client-kinesis-video/commands/UpdateSignalingChannelCommand.ts @@ -33,6 +33,7 @@ export class UpdateSignalingChannelCommand extends $Command< UpdateSignalingChannelCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateSignalingChannelCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis-video/commands/UpdateStreamCommand.ts b/clients/client-kinesis-video/commands/UpdateStreamCommand.ts index 50f44f2903be8..04054a56f9b4c 100644 --- a/clients/client-kinesis-video/commands/UpdateStreamCommand.ts +++ b/clients/client-kinesis-video/commands/UpdateStreamCommand.ts @@ -37,6 +37,7 @@ export class UpdateStreamCommand extends $Command< UpdateStreamCommandOutput, KinesisVideoClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateStreamCommand extends $Command< configuration: KinesisVideoClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/AddTagsToStreamCommand.ts b/clients/client-kinesis/commands/AddTagsToStreamCommand.ts index 8493bc0881d3b..ba1720ed2b4c2 100644 --- a/clients/client-kinesis/commands/AddTagsToStreamCommand.ts +++ b/clients/client-kinesis/commands/AddTagsToStreamCommand.ts @@ -36,6 +36,7 @@ export class AddTagsToStreamCommand extends $Command< AddTagsToStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AddTagsToStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/CreateStreamCommand.ts b/clients/client-kinesis/commands/CreateStreamCommand.ts index 736da98be8acc..cf628516073ba 100644 --- a/clients/client-kinesis/commands/CreateStreamCommand.ts +++ b/clients/client-kinesis/commands/CreateStreamCommand.ts @@ -68,6 +68,7 @@ export class CreateStreamCommand extends $Command< CreateStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class CreateStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DecreaseStreamRetentionPeriodCommand.ts b/clients/client-kinesis/commands/DecreaseStreamRetentionPeriodCommand.ts index 1d209521c2052..5ef25d882d6d9 100644 --- a/clients/client-kinesis/commands/DecreaseStreamRetentionPeriodCommand.ts +++ b/clients/client-kinesis/commands/DecreaseStreamRetentionPeriodCommand.ts @@ -33,6 +33,7 @@ export class DecreaseStreamRetentionPeriodCommand extends $Command< DecreaseStreamRetentionPeriodCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DecreaseStreamRetentionPeriodCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DeleteStreamCommand.ts b/clients/client-kinesis/commands/DeleteStreamCommand.ts index 7f2d95e9c93ed..f61356ca749bf 100644 --- a/clients/client-kinesis/commands/DeleteStreamCommand.ts +++ b/clients/client-kinesis/commands/DeleteStreamCommand.ts @@ -46,6 +46,7 @@ export class DeleteStreamCommand extends $Command< DeleteStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DeleteStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DeregisterStreamConsumerCommand.ts b/clients/client-kinesis/commands/DeregisterStreamConsumerCommand.ts index 70a2b06525f65..af20a73238b8d 100644 --- a/clients/client-kinesis/commands/DeregisterStreamConsumerCommand.ts +++ b/clients/client-kinesis/commands/DeregisterStreamConsumerCommand.ts @@ -35,6 +35,7 @@ export class DeregisterStreamConsumerCommand extends $Command< DeregisterStreamConsumerCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeregisterStreamConsumerCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DescribeLimitsCommand.ts b/clients/client-kinesis/commands/DescribeLimitsCommand.ts index 75b97c10a18dd..993f0a0958562 100644 --- a/clients/client-kinesis/commands/DescribeLimitsCommand.ts +++ b/clients/client-kinesis/commands/DescribeLimitsCommand.ts @@ -31,6 +31,7 @@ export class DescribeLimitsCommand extends $Command< DescribeLimitsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeLimitsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DescribeStreamCommand.ts b/clients/client-kinesis/commands/DescribeStreamCommand.ts index 2f255637cc8b8..b2a8d5e1fcd74 100644 --- a/clients/client-kinesis/commands/DescribeStreamCommand.ts +++ b/clients/client-kinesis/commands/DescribeStreamCommand.ts @@ -44,6 +44,7 @@ export class DescribeStreamCommand extends $Command< DescribeStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DescribeStreamConsumerCommand.ts b/clients/client-kinesis/commands/DescribeStreamConsumerCommand.ts index da4b3f3935d66..87314a5dddc59 100644 --- a/clients/client-kinesis/commands/DescribeStreamConsumerCommand.ts +++ b/clients/client-kinesis/commands/DescribeStreamConsumerCommand.ts @@ -35,6 +35,7 @@ export class DescribeStreamConsumerCommand extends $Command< DescribeStreamConsumerCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeStreamConsumerCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DescribeStreamSummaryCommand.ts b/clients/client-kinesis/commands/DescribeStreamSummaryCommand.ts index d08042c654943..082f0b3fab878 100644 --- a/clients/client-kinesis/commands/DescribeStreamSummaryCommand.ts +++ b/clients/client-kinesis/commands/DescribeStreamSummaryCommand.ts @@ -35,6 +35,7 @@ export class DescribeStreamSummaryCommand extends $Command< DescribeStreamSummaryCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeStreamSummaryCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/DisableEnhancedMonitoringCommand.ts b/clients/client-kinesis/commands/DisableEnhancedMonitoringCommand.ts index d648ca47b312e..4a03db8a4db05 100644 --- a/clients/client-kinesis/commands/DisableEnhancedMonitoringCommand.ts +++ b/clients/client-kinesis/commands/DisableEnhancedMonitoringCommand.ts @@ -28,6 +28,7 @@ export class DisableEnhancedMonitoringCommand extends $Command< DisableEnhancedMonitoringCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableEnhancedMonitoringCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/EnableEnhancedMonitoringCommand.ts b/clients/client-kinesis/commands/EnableEnhancedMonitoringCommand.ts index bc467ad103c29..56209d3a79235 100644 --- a/clients/client-kinesis/commands/EnableEnhancedMonitoringCommand.ts +++ b/clients/client-kinesis/commands/EnableEnhancedMonitoringCommand.ts @@ -28,6 +28,7 @@ export class EnableEnhancedMonitoringCommand extends $Command< EnableEnhancedMonitoringCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableEnhancedMonitoringCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/GetRecordsCommand.ts b/clients/client-kinesis/commands/GetRecordsCommand.ts index f9bca6848c45d..bdd12497b5274 100644 --- a/clients/client-kinesis/commands/GetRecordsCommand.ts +++ b/clients/client-kinesis/commands/GetRecordsCommand.ts @@ -74,6 +74,7 @@ export class GetRecordsCommand extends $Command< GetRecordsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class GetRecordsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/GetShardIteratorCommand.ts b/clients/client-kinesis/commands/GetShardIteratorCommand.ts index d9bd6a18f5790..1008975ba5bea 100644 --- a/clients/client-kinesis/commands/GetShardIteratorCommand.ts +++ b/clients/client-kinesis/commands/GetShardIteratorCommand.ts @@ -61,6 +61,7 @@ export class GetShardIteratorCommand extends $Command< GetShardIteratorCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class GetShardIteratorCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/IncreaseStreamRetentionPeriodCommand.ts b/clients/client-kinesis/commands/IncreaseStreamRetentionPeriodCommand.ts index eb1eae56bd546..b02d6854ea91c 100644 --- a/clients/client-kinesis/commands/IncreaseStreamRetentionPeriodCommand.ts +++ b/clients/client-kinesis/commands/IncreaseStreamRetentionPeriodCommand.ts @@ -36,6 +36,7 @@ export class IncreaseStreamRetentionPeriodCommand extends $Command< IncreaseStreamRetentionPeriodCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class IncreaseStreamRetentionPeriodCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/ListShardsCommand.ts b/clients/client-kinesis/commands/ListShardsCommand.ts index 342c40dc0773c..11270069f7535 100644 --- a/clients/client-kinesis/commands/ListShardsCommand.ts +++ b/clients/client-kinesis/commands/ListShardsCommand.ts @@ -36,6 +36,7 @@ export class ListShardsCommand extends $Command< ListShardsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListShardsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/ListStreamConsumersCommand.ts b/clients/client-kinesis/commands/ListStreamConsumersCommand.ts index 55e7986f2c34e..8b1d500556767 100644 --- a/clients/client-kinesis/commands/ListStreamConsumersCommand.ts +++ b/clients/client-kinesis/commands/ListStreamConsumersCommand.ts @@ -30,6 +30,7 @@ export class ListStreamConsumersCommand extends $Command< ListStreamConsumersCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListStreamConsumersCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/ListStreamsCommand.ts b/clients/client-kinesis/commands/ListStreamsCommand.ts index b793dc402eed5..72d37f2d3ef0b 100644 --- a/clients/client-kinesis/commands/ListStreamsCommand.ts +++ b/clients/client-kinesis/commands/ListStreamsCommand.ts @@ -43,6 +43,7 @@ export class ListStreamsCommand extends $Command< ListStreamsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class ListStreamsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/ListTagsForStreamCommand.ts b/clients/client-kinesis/commands/ListTagsForStreamCommand.ts index da3f616a1d5a5..fe1b1911529cd 100644 --- a/clients/client-kinesis/commands/ListTagsForStreamCommand.ts +++ b/clients/client-kinesis/commands/ListTagsForStreamCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForStreamCommand extends $Command< ListTagsForStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/MergeShardsCommand.ts b/clients/client-kinesis/commands/MergeShardsCommand.ts index 8055ea5981acb..e9a998002c51a 100644 --- a/clients/client-kinesis/commands/MergeShardsCommand.ts +++ b/clients/client-kinesis/commands/MergeShardsCommand.ts @@ -63,6 +63,7 @@ export class MergeShardsCommand extends $Command< MergeShardsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class MergeShardsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/PutRecordCommand.ts b/clients/client-kinesis/commands/PutRecordCommand.ts index a20ca4328f52d..0f550c3f58ee6 100644 --- a/clients/client-kinesis/commands/PutRecordCommand.ts +++ b/clients/client-kinesis/commands/PutRecordCommand.ts @@ -60,6 +60,7 @@ export class PutRecordCommand extends $Command< PutRecordCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class PutRecordCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/PutRecordsCommand.ts b/clients/client-kinesis/commands/PutRecordsCommand.ts index 679566750d6ec..21c2df4580ff7 100644 --- a/clients/client-kinesis/commands/PutRecordsCommand.ts +++ b/clients/client-kinesis/commands/PutRecordsCommand.ts @@ -83,6 +83,7 @@ export class PutRecordsCommand extends $Command< PutRecordsCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -100,7 +101,10 @@ export class PutRecordsCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/RegisterStreamConsumerCommand.ts b/clients/client-kinesis/commands/RegisterStreamConsumerCommand.ts index 5b6ef67b42202..2293255c6b8ff 100644 --- a/clients/client-kinesis/commands/RegisterStreamConsumerCommand.ts +++ b/clients/client-kinesis/commands/RegisterStreamConsumerCommand.ts @@ -41,6 +41,7 @@ export class RegisterStreamConsumerCommand extends $Command< RegisterStreamConsumerCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class RegisterStreamConsumerCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/RemoveTagsFromStreamCommand.ts b/clients/client-kinesis/commands/RemoveTagsFromStreamCommand.ts index e3035825b7681..94fabd321f93f 100644 --- a/clients/client-kinesis/commands/RemoveTagsFromStreamCommand.ts +++ b/clients/client-kinesis/commands/RemoveTagsFromStreamCommand.ts @@ -33,6 +33,7 @@ export class RemoveTagsFromStreamCommand extends $Command< RemoveTagsFromStreamCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RemoveTagsFromStreamCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/SplitShardCommand.ts b/clients/client-kinesis/commands/SplitShardCommand.ts index cf00f550976a5..a928f5795c2bf 100644 --- a/clients/client-kinesis/commands/SplitShardCommand.ts +++ b/clients/client-kinesis/commands/SplitShardCommand.ts @@ -69,6 +69,7 @@ export class SplitShardCommand extends $Command< SplitShardCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class SplitShardCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/StartStreamEncryptionCommand.ts b/clients/client-kinesis/commands/StartStreamEncryptionCommand.ts index e3245ead67e2a..73df9f299d01d 100644 --- a/clients/client-kinesis/commands/StartStreamEncryptionCommand.ts +++ b/clients/client-kinesis/commands/StartStreamEncryptionCommand.ts @@ -43,6 +43,7 @@ export class StartStreamEncryptionCommand extends $Command< StartStreamEncryptionCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class StartStreamEncryptionCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/StopStreamEncryptionCommand.ts b/clients/client-kinesis/commands/StopStreamEncryptionCommand.ts index 94a6869db2313..32c8a1d043429 100644 --- a/clients/client-kinesis/commands/StopStreamEncryptionCommand.ts +++ b/clients/client-kinesis/commands/StopStreamEncryptionCommand.ts @@ -43,6 +43,7 @@ export class StopStreamEncryptionCommand extends $Command< StopStreamEncryptionCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class StopStreamEncryptionCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/SubscribeToShardCommand.ts b/clients/client-kinesis/commands/SubscribeToShardCommand.ts index 4b1cfd6d6b611..f99c201a3dbf1 100644 --- a/clients/client-kinesis/commands/SubscribeToShardCommand.ts +++ b/clients/client-kinesis/commands/SubscribeToShardCommand.ts @@ -50,6 +50,7 @@ export class SubscribeToShardCommand extends $Command< SubscribeToShardCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class SubscribeToShardCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kinesis/commands/UpdateShardCountCommand.ts b/clients/client-kinesis/commands/UpdateShardCountCommand.ts index e68977d07691e..0b77b3b73fd63 100644 --- a/clients/client-kinesis/commands/UpdateShardCountCommand.ts +++ b/clients/client-kinesis/commands/UpdateShardCountCommand.ts @@ -71,6 +71,7 @@ export class UpdateShardCountCommand extends $Command< UpdateShardCountCommandOutput, KinesisClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class UpdateShardCountCommand extends $Command< configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/CancelKeyDeletionCommand.ts b/clients/client-kms/commands/CancelKeyDeletionCommand.ts index 0181e6e25a0e4..85a51b2b8905a 100644 --- a/clients/client-kms/commands/CancelKeyDeletionCommand.ts +++ b/clients/client-kms/commands/CancelKeyDeletionCommand.ts @@ -35,6 +35,7 @@ export class CancelKeyDeletionCommand extends $Command< CancelKeyDeletionCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CancelKeyDeletionCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ConnectCustomKeyStoreCommand.ts b/clients/client-kms/commands/ConnectCustomKeyStoreCommand.ts index ff70bde76a5d7..bd33e6a706e80 100644 --- a/clients/client-kms/commands/ConnectCustomKeyStoreCommand.ts +++ b/clients/client-kms/commands/ConnectCustomKeyStoreCommand.ts @@ -54,6 +54,7 @@ export class ConnectCustomKeyStoreCommand extends $Command< ConnectCustomKeyStoreCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class ConnectCustomKeyStoreCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/CreateAliasCommand.ts b/clients/client-kms/commands/CreateAliasCommand.ts index ae79b36f4174d..aa9efb5fb629e 100644 --- a/clients/client-kms/commands/CreateAliasCommand.ts +++ b/clients/client-kms/commands/CreateAliasCommand.ts @@ -91,6 +91,7 @@ export class CreateAliasCommand extends $Command< CreateAliasCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class CreateAliasCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/CreateCustomKeyStoreCommand.ts b/clients/client-kms/commands/CreateCustomKeyStoreCommand.ts index cee9bcdc457cd..887d4cc8904d6 100644 --- a/clients/client-kms/commands/CreateCustomKeyStoreCommand.ts +++ b/clients/client-kms/commands/CreateCustomKeyStoreCommand.ts @@ -43,6 +43,7 @@ export class CreateCustomKeyStoreCommand extends $Command< CreateCustomKeyStoreCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateCustomKeyStoreCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/CreateGrantCommand.ts b/clients/client-kms/commands/CreateGrantCommand.ts index 5a51cc671473f..e16763bc9dd9c 100644 --- a/clients/client-kms/commands/CreateGrantCommand.ts +++ b/clients/client-kms/commands/CreateGrantCommand.ts @@ -69,6 +69,7 @@ export class CreateGrantCommand extends $Command< CreateGrantCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class CreateGrantCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/CreateKeyCommand.ts b/clients/client-kms/commands/CreateKeyCommand.ts index aaca2297b566b..d023e2c39b237 100644 --- a/clients/client-kms/commands/CreateKeyCommand.ts +++ b/clients/client-kms/commands/CreateKeyCommand.ts @@ -96,6 +96,7 @@ export type CreateKeyCommandOutput = CreateKeyResponse & __MetadataBearer; * */ export class CreateKeyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -113,7 +114,10 @@ export class CreateKeyCommand 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-kms/commands/DecryptCommand.ts b/clients/client-kms/commands/DecryptCommand.ts index 83bcba530b7fe..6cb5346616b24 100644 --- a/clients/client-kms/commands/DecryptCommand.ts +++ b/clients/client-kms/commands/DecryptCommand.ts @@ -71,6 +71,7 @@ export type DecryptCommandOutput = DecryptResponse & __MetadataBearer; * of a Customer Master Key in the AWS Key Management Service Developer Guide.

*/ export class DecryptCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class DecryptCommand 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-kms/commands/DeleteAliasCommand.ts b/clients/client-kms/commands/DeleteAliasCommand.ts index 5d650645f45b4..5abb3c82b9120 100644 --- a/clients/client-kms/commands/DeleteAliasCommand.ts +++ b/clients/client-kms/commands/DeleteAliasCommand.ts @@ -33,6 +33,7 @@ export class DeleteAliasCommand extends $Command< DeleteAliasCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteAliasCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DeleteCustomKeyStoreCommand.ts b/clients/client-kms/commands/DeleteCustomKeyStoreCommand.ts index 8706c3d5dc942..d48910d270ec8 100644 --- a/clients/client-kms/commands/DeleteCustomKeyStoreCommand.ts +++ b/clients/client-kms/commands/DeleteCustomKeyStoreCommand.ts @@ -47,6 +47,7 @@ export class DeleteCustomKeyStoreCommand extends $Command< DeleteCustomKeyStoreCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DeleteCustomKeyStoreCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DeleteImportedKeyMaterialCommand.ts b/clients/client-kms/commands/DeleteImportedKeyMaterialCommand.ts index b7368eaecb2a2..cd74dea83cf17 100644 --- a/clients/client-kms/commands/DeleteImportedKeyMaterialCommand.ts +++ b/clients/client-kms/commands/DeleteImportedKeyMaterialCommand.ts @@ -39,6 +39,7 @@ export class DeleteImportedKeyMaterialCommand extends $Command< DeleteImportedKeyMaterialCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteImportedKeyMaterialCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DescribeCustomKeyStoresCommand.ts b/clients/client-kms/commands/DescribeCustomKeyStoresCommand.ts index eff1b18f432cf..6b95b5e22ee82 100644 --- a/clients/client-kms/commands/DescribeCustomKeyStoresCommand.ts +++ b/clients/client-kms/commands/DescribeCustomKeyStoresCommand.ts @@ -47,6 +47,7 @@ export class DescribeCustomKeyStoresCommand extends $Command< DescribeCustomKeyStoresCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeCustomKeyStoresCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DescribeKeyCommand.ts b/clients/client-kms/commands/DescribeKeyCommand.ts index 9452e5705965a..3adebe3f7163c 100644 --- a/clients/client-kms/commands/DescribeKeyCommand.ts +++ b/clients/client-kms/commands/DescribeKeyCommand.ts @@ -62,6 +62,7 @@ export class DescribeKeyCommand extends $Command< DescribeKeyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DescribeKeyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DisableKeyCommand.ts b/clients/client-kms/commands/DisableKeyCommand.ts index ba2420bbfe4a4..c4f2e4e02f5c6 100644 --- a/clients/client-kms/commands/DisableKeyCommand.ts +++ b/clients/client-kms/commands/DisableKeyCommand.ts @@ -36,6 +36,7 @@ export class DisableKeyCommand extends $Command< DisableKeyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisableKeyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DisableKeyRotationCommand.ts b/clients/client-kms/commands/DisableKeyRotationCommand.ts index d521869c92353..3d4f61bde08a2 100644 --- a/clients/client-kms/commands/DisableKeyRotationCommand.ts +++ b/clients/client-kms/commands/DisableKeyRotationCommand.ts @@ -34,6 +34,7 @@ export class DisableKeyRotationCommand extends $Command< DisableKeyRotationCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DisableKeyRotationCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/DisconnectCustomKeyStoreCommand.ts b/clients/client-kms/commands/DisconnectCustomKeyStoreCommand.ts index 976da275b1614..f56021dc80647 100644 --- a/clients/client-kms/commands/DisconnectCustomKeyStoreCommand.ts +++ b/clients/client-kms/commands/DisconnectCustomKeyStoreCommand.ts @@ -44,6 +44,7 @@ export class DisconnectCustomKeyStoreCommand extends $Command< DisconnectCustomKeyStoreCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DisconnectCustomKeyStoreCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/EnableKeyCommand.ts b/clients/client-kms/commands/EnableKeyCommand.ts index 0d5dee2389ffd..7b53cad876842 100644 --- a/clients/client-kms/commands/EnableKeyCommand.ts +++ b/clients/client-kms/commands/EnableKeyCommand.ts @@ -25,6 +25,7 @@ export type EnableKeyCommandOutput = __MetadataBearer; * of a Customer Master Key in the AWS Key Management Service Developer Guide.

*/ export class EnableKeyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class EnableKeyCommand 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-kms/commands/EnableKeyRotationCommand.ts b/clients/client-kms/commands/EnableKeyRotationCommand.ts index 8c85b8eec579b..9f052e3b91c74 100644 --- a/clients/client-kms/commands/EnableKeyRotationCommand.ts +++ b/clients/client-kms/commands/EnableKeyRotationCommand.ts @@ -34,6 +34,7 @@ export class EnableKeyRotationCommand extends $Command< EnableKeyRotationCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class EnableKeyRotationCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/EncryptCommand.ts b/clients/client-kms/commands/EncryptCommand.ts index 4f9e3f505fcd0..a30fe8877b505 100644 --- a/clients/client-kms/commands/EncryptCommand.ts +++ b/clients/client-kms/commands/EncryptCommand.ts @@ -121,6 +121,7 @@ export type EncryptCommandOutput = EncryptResponse & __MetadataBearer; * the key ARN or alias ARN in the value of the KeyId parameter.

*/ export class EncryptCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -138,7 +139,10 @@ export class EncryptCommand 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-kms/commands/GenerateDataKeyCommand.ts b/clients/client-kms/commands/GenerateDataKeyCommand.ts index 7328f0dbf7e27..a9d56822f1d11 100644 --- a/clients/client-kms/commands/GenerateDataKeyCommand.ts +++ b/clients/client-kms/commands/GenerateDataKeyCommand.ts @@ -86,6 +86,7 @@ export class GenerateDataKeyCommand extends $Command< GenerateDataKeyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class GenerateDataKeyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GenerateDataKeyPairCommand.ts b/clients/client-kms/commands/GenerateDataKeyPairCommand.ts index 6a06d6e87acd7..a5e12dcf8a768 100644 --- a/clients/client-kms/commands/GenerateDataKeyPairCommand.ts +++ b/clients/client-kms/commands/GenerateDataKeyPairCommand.ts @@ -61,6 +61,7 @@ export class GenerateDataKeyPairCommand extends $Command< GenerateDataKeyPairCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class GenerateDataKeyPairCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts b/clients/client-kms/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts index 8c017d11149d4..d35ef8e8616d4 100644 --- a/clients/client-kms/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +++ b/clients/client-kms/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts @@ -56,6 +56,7 @@ export class GenerateDataKeyPairWithoutPlaintextCommand extends $Command< GenerateDataKeyPairWithoutPlaintextCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class GenerateDataKeyPairWithoutPlaintextCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GenerateDataKeyWithoutPlaintextCommand.ts b/clients/client-kms/commands/GenerateDataKeyWithoutPlaintextCommand.ts index 4a3d9ba11a7da..3a9d84c581736 100644 --- a/clients/client-kms/commands/GenerateDataKeyWithoutPlaintextCommand.ts +++ b/clients/client-kms/commands/GenerateDataKeyWithoutPlaintextCommand.ts @@ -62,6 +62,7 @@ export class GenerateDataKeyWithoutPlaintextCommand extends $Command< GenerateDataKeyWithoutPlaintextCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class GenerateDataKeyWithoutPlaintextCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GenerateRandomCommand.ts b/clients/client-kms/commands/GenerateRandomCommand.ts index 44651c8e8f6c5..7f9ca0f0df1f9 100644 --- a/clients/client-kms/commands/GenerateRandomCommand.ts +++ b/clients/client-kms/commands/GenerateRandomCommand.ts @@ -33,6 +33,7 @@ export class GenerateRandomCommand extends $Command< GenerateRandomCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GenerateRandomCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GetKeyPolicyCommand.ts b/clients/client-kms/commands/GetKeyPolicyCommand.ts index 33a2ccd77ae24..3df968e99f788 100644 --- a/clients/client-kms/commands/GetKeyPolicyCommand.ts +++ b/clients/client-kms/commands/GetKeyPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetKeyPolicyCommand extends $Command< GetKeyPolicyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetKeyPolicyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GetKeyRotationStatusCommand.ts b/clients/client-kms/commands/GetKeyRotationStatusCommand.ts index a2f13846033e2..c157368e568af 100644 --- a/clients/client-kms/commands/GetKeyRotationStatusCommand.ts +++ b/clients/client-kms/commands/GetKeyRotationStatusCommand.ts @@ -46,6 +46,7 @@ export class GetKeyRotationStatusCommand extends $Command< GetKeyRotationStatusCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetKeyRotationStatusCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GetParametersForImportCommand.ts b/clients/client-kms/commands/GetParametersForImportCommand.ts index 46e59bdda5bd8..c59f3e5aeb638 100644 --- a/clients/client-kms/commands/GetParametersForImportCommand.ts +++ b/clients/client-kms/commands/GetParametersForImportCommand.ts @@ -44,6 +44,7 @@ export class GetParametersForImportCommand extends $Command< GetParametersForImportCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class GetParametersForImportCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/GetPublicKeyCommand.ts b/clients/client-kms/commands/GetPublicKeyCommand.ts index 3ee3145ab891a..9db33ada32bda 100644 --- a/clients/client-kms/commands/GetPublicKeyCommand.ts +++ b/clients/client-kms/commands/GetPublicKeyCommand.ts @@ -65,6 +65,7 @@ export class GetPublicKeyCommand extends $Command< GetPublicKeyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class GetPublicKeyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ImportKeyMaterialCommand.ts b/clients/client-kms/commands/ImportKeyMaterialCommand.ts index 7485e8e6cb0af..20e81175cfc7e 100644 --- a/clients/client-kms/commands/ImportKeyMaterialCommand.ts +++ b/clients/client-kms/commands/ImportKeyMaterialCommand.ts @@ -72,6 +72,7 @@ export class ImportKeyMaterialCommand extends $Command< ImportKeyMaterialCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class ImportKeyMaterialCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ListAliasesCommand.ts b/clients/client-kms/commands/ListAliasesCommand.ts index 32621e8802df2..9b34146d9a878 100644 --- a/clients/client-kms/commands/ListAliasesCommand.ts +++ b/clients/client-kms/commands/ListAliasesCommand.ts @@ -41,6 +41,7 @@ export class ListAliasesCommand extends $Command< ListAliasesCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListAliasesCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ListGrantsCommand.ts b/clients/client-kms/commands/ListGrantsCommand.ts index f60145c8820bb..3936a64310439 100644 --- a/clients/client-kms/commands/ListGrantsCommand.ts +++ b/clients/client-kms/commands/ListGrantsCommand.ts @@ -37,6 +37,7 @@ export class ListGrantsCommand extends $Command< ListGrantsCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListGrantsCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ListKeyPoliciesCommand.ts b/clients/client-kms/commands/ListKeyPoliciesCommand.ts index 226de9bfcd284..b8c25aa7c113a 100644 --- a/clients/client-kms/commands/ListKeyPoliciesCommand.ts +++ b/clients/client-kms/commands/ListKeyPoliciesCommand.ts @@ -31,6 +31,7 @@ export class ListKeyPoliciesCommand extends $Command< ListKeyPoliciesCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListKeyPoliciesCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ListKeysCommand.ts b/clients/client-kms/commands/ListKeysCommand.ts index 34bef56977f3b..daa66fdcda6a1 100644 --- a/clients/client-kms/commands/ListKeysCommand.ts +++ b/clients/client-kms/commands/ListKeysCommand.ts @@ -22,6 +22,7 @@ export type ListKeysCommandOutput = ListKeysResponse & __MetadataBearer; * Region.

*/ export class ListKeysCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class ListKeysCommand 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-kms/commands/ListResourceTagsCommand.ts b/clients/client-kms/commands/ListResourceTagsCommand.ts index 2dcafe5d32c56..d62acfdc026ba 100644 --- a/clients/client-kms/commands/ListResourceTagsCommand.ts +++ b/clients/client-kms/commands/ListResourceTagsCommand.ts @@ -29,6 +29,7 @@ export class ListResourceTagsCommand extends $Command< ListResourceTagsCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListResourceTagsCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ListRetirableGrantsCommand.ts b/clients/client-kms/commands/ListRetirableGrantsCommand.ts index 0368a3fda00ff..813d1d3c143ba 100644 --- a/clients/client-kms/commands/ListRetirableGrantsCommand.ts +++ b/clients/client-kms/commands/ListRetirableGrantsCommand.ts @@ -31,6 +31,7 @@ export class ListRetirableGrantsCommand extends $Command< ListRetirableGrantsCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListRetirableGrantsCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/PutKeyPolicyCommand.ts b/clients/client-kms/commands/PutKeyPolicyCommand.ts index 282a6f74ab5c1..d71fff152b79d 100644 --- a/clients/client-kms/commands/PutKeyPolicyCommand.ts +++ b/clients/client-kms/commands/PutKeyPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutKeyPolicyCommand extends $Command< PutKeyPolicyCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutKeyPolicyCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ReEncryptCommand.ts b/clients/client-kms/commands/ReEncryptCommand.ts index ff257f81d94b6..7a5f1115d08e1 100644 --- a/clients/client-kms/commands/ReEncryptCommand.ts +++ b/clients/client-kms/commands/ReEncryptCommand.ts @@ -79,6 +79,7 @@ export type ReEncryptCommandOutput = ReEncryptResponse & __MetadataBearer; * of a Customer Master Key in the AWS Key Management Service Developer Guide.

*/ export class ReEncryptCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class ReEncryptCommand 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-kms/commands/RetireGrantCommand.ts b/clients/client-kms/commands/RetireGrantCommand.ts index 194338cf9567c..6e9a9b45c9672 100644 --- a/clients/client-kms/commands/RetireGrantCommand.ts +++ b/clients/client-kms/commands/RetireGrantCommand.ts @@ -46,6 +46,7 @@ export class RetireGrantCommand extends $Command< RetireGrantCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class RetireGrantCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/RevokeGrantCommand.ts b/clients/client-kms/commands/RevokeGrantCommand.ts index 0d141b792bd80..6d85256a6c225 100644 --- a/clients/client-kms/commands/RevokeGrantCommand.ts +++ b/clients/client-kms/commands/RevokeGrantCommand.ts @@ -31,6 +31,7 @@ export class RevokeGrantCommand extends $Command< RevokeGrantCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RevokeGrantCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/ScheduleKeyDeletionCommand.ts b/clients/client-kms/commands/ScheduleKeyDeletionCommand.ts index 98e32242cf314..ef87f53c8695a 100644 --- a/clients/client-kms/commands/ScheduleKeyDeletionCommand.ts +++ b/clients/client-kms/commands/ScheduleKeyDeletionCommand.ts @@ -49,6 +49,7 @@ export class ScheduleKeyDeletionCommand extends $Command< ScheduleKeyDeletionCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class ScheduleKeyDeletionCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/SignCommand.ts b/clients/client-kms/commands/SignCommand.ts index bf778b97bbf25..679b9691e61e2 100644 --- a/clients/client-kms/commands/SignCommand.ts +++ b/clients/client-kms/commands/SignCommand.ts @@ -58,6 +58,7 @@ export type SignCommandOutput = SignResponse & __MetadataBearer; * of a Customer Master Key in the AWS Key Management Service Developer Guide.

*/ export class SignCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class SignCommand 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-kms/commands/TagResourceCommand.ts b/clients/client-kms/commands/TagResourceCommand.ts index 45da98d5a79b1..dbfa7a4da7310 100644 --- a/clients/client-kms/commands/TagResourceCommand.ts +++ b/clients/client-kms/commands/TagResourceCommand.ts @@ -37,6 +37,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagResourceCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/UntagResourceCommand.ts b/clients/client-kms/commands/UntagResourceCommand.ts index 8c2a83467a3f8..5a01ac51d4fbe 100644 --- a/clients/client-kms/commands/UntagResourceCommand.ts +++ b/clients/client-kms/commands/UntagResourceCommand.ts @@ -34,6 +34,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UntagResourceCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/UpdateAliasCommand.ts b/clients/client-kms/commands/UpdateAliasCommand.ts index d780bcfaa4940..87a20cabceb91 100644 --- a/clients/client-kms/commands/UpdateAliasCommand.ts +++ b/clients/client-kms/commands/UpdateAliasCommand.ts @@ -44,6 +44,7 @@ export class UpdateAliasCommand extends $Command< UpdateAliasCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class UpdateAliasCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/UpdateCustomKeyStoreCommand.ts b/clients/client-kms/commands/UpdateCustomKeyStoreCommand.ts index 4b3f4d0a2d27a..d4312ea5c8dc1 100644 --- a/clients/client-kms/commands/UpdateCustomKeyStoreCommand.ts +++ b/clients/client-kms/commands/UpdateCustomKeyStoreCommand.ts @@ -65,6 +65,7 @@ export class UpdateCustomKeyStoreCommand extends $Command< UpdateCustomKeyStoreCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class UpdateCustomKeyStoreCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/UpdateKeyDescriptionCommand.ts b/clients/client-kms/commands/UpdateKeyDescriptionCommand.ts index d4c1eaef67ec0..e1d85397dcfda 100644 --- a/clients/client-kms/commands/UpdateKeyDescriptionCommand.ts +++ b/clients/client-kms/commands/UpdateKeyDescriptionCommand.ts @@ -33,6 +33,7 @@ export class UpdateKeyDescriptionCommand extends $Command< UpdateKeyDescriptionCommandOutput, KMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateKeyDescriptionCommand extends $Command< configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-kms/commands/VerifyCommand.ts b/clients/client-kms/commands/VerifyCommand.ts index 2d231ebc3af7b..9cb58934dc674 100644 --- a/clients/client-kms/commands/VerifyCommand.ts +++ b/clients/client-kms/commands/VerifyCommand.ts @@ -43,6 +43,7 @@ export type VerifyCommandOutput = VerifyResponse & __MetadataBearer; * of a Customer Master Key in the AWS Key Management Service Developer Guide.

*/ export class VerifyCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class VerifyCommand 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-lakeformation/commands/BatchGrantPermissionsCommand.ts b/clients/client-lakeformation/commands/BatchGrantPermissionsCommand.ts index 07e5e86f7b572..90e83abe3f563 100644 --- a/clients/client-lakeformation/commands/BatchGrantPermissionsCommand.ts +++ b/clients/client-lakeformation/commands/BatchGrantPermissionsCommand.ts @@ -28,6 +28,7 @@ export class BatchGrantPermissionsCommand extends $Command< BatchGrantPermissionsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGrantPermissionsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/BatchRevokePermissionsCommand.ts b/clients/client-lakeformation/commands/BatchRevokePermissionsCommand.ts index a95a704822ce9..d4ced2cec1c2a 100644 --- a/clients/client-lakeformation/commands/BatchRevokePermissionsCommand.ts +++ b/clients/client-lakeformation/commands/BatchRevokePermissionsCommand.ts @@ -28,6 +28,7 @@ export class BatchRevokePermissionsCommand extends $Command< BatchRevokePermissionsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchRevokePermissionsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/DeregisterResourceCommand.ts b/clients/client-lakeformation/commands/DeregisterResourceCommand.ts index ce9c27a6e431a..e932b73f9cc5b 100644 --- a/clients/client-lakeformation/commands/DeregisterResourceCommand.ts +++ b/clients/client-lakeformation/commands/DeregisterResourceCommand.ts @@ -30,6 +30,7 @@ export class DeregisterResourceCommand extends $Command< DeregisterResourceCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeregisterResourceCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/DescribeResourceCommand.ts b/clients/client-lakeformation/commands/DescribeResourceCommand.ts index 954a7eacfdd69..d4cb239d34eb8 100644 --- a/clients/client-lakeformation/commands/DescribeResourceCommand.ts +++ b/clients/client-lakeformation/commands/DescribeResourceCommand.ts @@ -28,6 +28,7 @@ export class DescribeResourceCommand extends $Command< DescribeResourceCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeResourceCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/GetDataLakeSettingsCommand.ts b/clients/client-lakeformation/commands/GetDataLakeSettingsCommand.ts index 86ff344cebbb0..dc7089729c1bf 100644 --- a/clients/client-lakeformation/commands/GetDataLakeSettingsCommand.ts +++ b/clients/client-lakeformation/commands/GetDataLakeSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetDataLakeSettingsCommand extends $Command< GetDataLakeSettingsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDataLakeSettingsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/GetEffectivePermissionsForPathCommand.ts b/clients/client-lakeformation/commands/GetEffectivePermissionsForPathCommand.ts index 9661a2602b85b..5ab2b435cea0d 100644 --- a/clients/client-lakeformation/commands/GetEffectivePermissionsForPathCommand.ts +++ b/clients/client-lakeformation/commands/GetEffectivePermissionsForPathCommand.ts @@ -29,6 +29,7 @@ export class GetEffectivePermissionsForPathCommand extends $Command< GetEffectivePermissionsForPathCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetEffectivePermissionsForPathCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/GrantPermissionsCommand.ts b/clients/client-lakeformation/commands/GrantPermissionsCommand.ts index 2681abb0bab5b..bfb69e2a31fa7 100644 --- a/clients/client-lakeformation/commands/GrantPermissionsCommand.ts +++ b/clients/client-lakeformation/commands/GrantPermissionsCommand.ts @@ -29,6 +29,7 @@ export class GrantPermissionsCommand extends $Command< GrantPermissionsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GrantPermissionsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/ListPermissionsCommand.ts b/clients/client-lakeformation/commands/ListPermissionsCommand.ts index ecc51bc4a1458..b06caaaf1a5de 100644 --- a/clients/client-lakeformation/commands/ListPermissionsCommand.ts +++ b/clients/client-lakeformation/commands/ListPermissionsCommand.ts @@ -30,6 +30,7 @@ export class ListPermissionsCommand extends $Command< ListPermissionsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListPermissionsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/ListResourcesCommand.ts b/clients/client-lakeformation/commands/ListResourcesCommand.ts index 5afb7430c080c..c6e815dcc0378 100644 --- a/clients/client-lakeformation/commands/ListResourcesCommand.ts +++ b/clients/client-lakeformation/commands/ListResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesCommand extends $Command< ListResourcesCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/PutDataLakeSettingsCommand.ts b/clients/client-lakeformation/commands/PutDataLakeSettingsCommand.ts index fa4bf5bf652b8..337188d748f44 100644 --- a/clients/client-lakeformation/commands/PutDataLakeSettingsCommand.ts +++ b/clients/client-lakeformation/commands/PutDataLakeSettingsCommand.ts @@ -30,6 +30,7 @@ export class PutDataLakeSettingsCommand extends $Command< PutDataLakeSettingsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutDataLakeSettingsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/RegisterResourceCommand.ts b/clients/client-lakeformation/commands/RegisterResourceCommand.ts index c5f8c23004cd0..314f58b29b1d3 100644 --- a/clients/client-lakeformation/commands/RegisterResourceCommand.ts +++ b/clients/client-lakeformation/commands/RegisterResourceCommand.ts @@ -43,6 +43,7 @@ export class RegisterResourceCommand extends $Command< RegisterResourceCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class RegisterResourceCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/RevokePermissionsCommand.ts b/clients/client-lakeformation/commands/RevokePermissionsCommand.ts index dbdd9675c1ec7..b11e37d1d3c1f 100644 --- a/clients/client-lakeformation/commands/RevokePermissionsCommand.ts +++ b/clients/client-lakeformation/commands/RevokePermissionsCommand.ts @@ -28,6 +28,7 @@ export class RevokePermissionsCommand extends $Command< RevokePermissionsCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokePermissionsCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lakeformation/commands/UpdateResourceCommand.ts b/clients/client-lakeformation/commands/UpdateResourceCommand.ts index f39379dae535c..00052287494c6 100644 --- a/clients/client-lakeformation/commands/UpdateResourceCommand.ts +++ b/clients/client-lakeformation/commands/UpdateResourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateResourceCommand extends $Command< UpdateResourceCommandOutput, LakeFormationClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResourceCommand extends $Command< configuration: LakeFormationClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/AddLayerVersionPermissionCommand.ts b/clients/client-lambda/commands/AddLayerVersionPermissionCommand.ts index 00db1f1d0229a..210e74b26eda6 100644 --- a/clients/client-lambda/commands/AddLayerVersionPermissionCommand.ts +++ b/clients/client-lambda/commands/AddLayerVersionPermissionCommand.ts @@ -33,6 +33,7 @@ export class AddLayerVersionPermissionCommand extends $Command< AddLayerVersionPermissionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AddLayerVersionPermissionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/AddPermissionCommand.ts b/clients/client-lambda/commands/AddPermissionCommand.ts index 44686eb7980f6..424da096230b7 100644 --- a/clients/client-lambda/commands/AddPermissionCommand.ts +++ b/clients/client-lambda/commands/AddPermissionCommand.ts @@ -39,6 +39,7 @@ export class AddPermissionCommand extends $Command< AddPermissionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AddPermissionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/CreateAliasCommand.ts b/clients/client-lambda/commands/CreateAliasCommand.ts index cdf29509d4c42..befb128bec8fd 100644 --- a/clients/client-lambda/commands/CreateAliasCommand.ts +++ b/clients/client-lambda/commands/CreateAliasCommand.ts @@ -33,6 +33,7 @@ export class CreateAliasCommand extends $Command< CreateAliasCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAliasCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/CreateCodeSigningConfigCommand.ts b/clients/client-lambda/commands/CreateCodeSigningConfigCommand.ts index 49b4e1274ed91..8493455908202 100644 --- a/clients/client-lambda/commands/CreateCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/CreateCodeSigningConfigCommand.ts @@ -30,6 +30,7 @@ export class CreateCodeSigningConfigCommand extends $Command< CreateCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/CreateEventSourceMappingCommand.ts b/clients/client-lambda/commands/CreateEventSourceMappingCommand.ts index c03ef6929104f..fe15eb88a96eb 100644 --- a/clients/client-lambda/commands/CreateEventSourceMappingCommand.ts +++ b/clients/client-lambda/commands/CreateEventSourceMappingCommand.ts @@ -85,6 +85,7 @@ export class CreateEventSourceMappingCommand extends $Command< CreateEventSourceMappingCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -102,7 +103,10 @@ export class CreateEventSourceMappingCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/CreateFunctionCommand.ts b/clients/client-lambda/commands/CreateFunctionCommand.ts index 763af6d1bcb32..886aeb4acb9ce 100644 --- a/clients/client-lambda/commands/CreateFunctionCommand.ts +++ b/clients/client-lambda/commands/CreateFunctionCommand.ts @@ -62,6 +62,7 @@ export class CreateFunctionCommand extends $Command< CreateFunctionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class CreateFunctionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteAliasCommand.ts b/clients/client-lambda/commands/DeleteAliasCommand.ts index 7c08f35b0ef75..2f456c39fe867 100644 --- a/clients/client-lambda/commands/DeleteAliasCommand.ts +++ b/clients/client-lambda/commands/DeleteAliasCommand.ts @@ -28,6 +28,7 @@ export class DeleteAliasCommand extends $Command< DeleteAliasCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAliasCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteCodeSigningConfigCommand.ts b/clients/client-lambda/commands/DeleteCodeSigningConfigCommand.ts index 7f76e746f5c93..2268d61631f99 100644 --- a/clients/client-lambda/commands/DeleteCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/DeleteCodeSigningConfigCommand.ts @@ -29,6 +29,7 @@ export class DeleteCodeSigningConfigCommand extends $Command< DeleteCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteEventSourceMappingCommand.ts b/clients/client-lambda/commands/DeleteEventSourceMappingCommand.ts index ce9f1090bae2c..9efdfb53903cf 100644 --- a/clients/client-lambda/commands/DeleteEventSourceMappingCommand.ts +++ b/clients/client-lambda/commands/DeleteEventSourceMappingCommand.ts @@ -31,6 +31,7 @@ export class DeleteEventSourceMappingCommand extends $Command< DeleteEventSourceMappingCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteEventSourceMappingCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteFunctionCodeSigningConfigCommand.ts b/clients/client-lambda/commands/DeleteFunctionCodeSigningConfigCommand.ts index e5c0c94b07084..a545cc981b5ef 100644 --- a/clients/client-lambda/commands/DeleteFunctionCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/DeleteFunctionCodeSigningConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteFunctionCodeSigningConfigCommand extends $Command< DeleteFunctionCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFunctionCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteFunctionCommand.ts b/clients/client-lambda/commands/DeleteFunctionCommand.ts index 2c54c96eed55c..e6016be2a7b86 100644 --- a/clients/client-lambda/commands/DeleteFunctionCommand.ts +++ b/clients/client-lambda/commands/DeleteFunctionCommand.ts @@ -33,6 +33,7 @@ export class DeleteFunctionCommand extends $Command< DeleteFunctionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteFunctionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteFunctionConcurrencyCommand.ts b/clients/client-lambda/commands/DeleteFunctionConcurrencyCommand.ts index 2d47607a1341f..cea986e57225f 100644 --- a/clients/client-lambda/commands/DeleteFunctionConcurrencyCommand.ts +++ b/clients/client-lambda/commands/DeleteFunctionConcurrencyCommand.ts @@ -28,6 +28,7 @@ export class DeleteFunctionConcurrencyCommand extends $Command< DeleteFunctionConcurrencyCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFunctionConcurrencyCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteFunctionEventInvokeConfigCommand.ts b/clients/client-lambda/commands/DeleteFunctionEventInvokeConfigCommand.ts index eecb4d05d2980..cfe545067cf18 100644 --- a/clients/client-lambda/commands/DeleteFunctionEventInvokeConfigCommand.ts +++ b/clients/client-lambda/commands/DeleteFunctionEventInvokeConfigCommand.ts @@ -29,6 +29,7 @@ export class DeleteFunctionEventInvokeConfigCommand extends $Command< DeleteFunctionEventInvokeConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteFunctionEventInvokeConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteLayerVersionCommand.ts b/clients/client-lambda/commands/DeleteLayerVersionCommand.ts index e034a55123880..5184e13753890 100644 --- a/clients/client-lambda/commands/DeleteLayerVersionCommand.ts +++ b/clients/client-lambda/commands/DeleteLayerVersionCommand.ts @@ -30,6 +30,7 @@ export class DeleteLayerVersionCommand extends $Command< DeleteLayerVersionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteLayerVersionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/DeleteProvisionedConcurrencyConfigCommand.ts b/clients/client-lambda/commands/DeleteProvisionedConcurrencyConfigCommand.ts index 749567e6470db..266744f8b1c65 100644 --- a/clients/client-lambda/commands/DeleteProvisionedConcurrencyConfigCommand.ts +++ b/clients/client-lambda/commands/DeleteProvisionedConcurrencyConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteProvisionedConcurrencyConfigCommand extends $Command< DeleteProvisionedConcurrencyConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProvisionedConcurrencyConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetAccountSettingsCommand.ts b/clients/client-lambda/commands/GetAccountSettingsCommand.ts index a99b7f9b50c78..9807d521b6b90 100644 --- a/clients/client-lambda/commands/GetAccountSettingsCommand.ts +++ b/clients/client-lambda/commands/GetAccountSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetAccountSettingsCommand extends $Command< GetAccountSettingsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAccountSettingsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetAliasCommand.ts b/clients/client-lambda/commands/GetAliasCommand.ts index 70bdf3e1d2a48..036a79714a648 100644 --- a/clients/client-lambda/commands/GetAliasCommand.ts +++ b/clients/client-lambda/commands/GetAliasCommand.ts @@ -24,6 +24,7 @@ export type GetAliasCommandOutput = AliasConfiguration & __MetadataBearer; *

Returns details about a Lambda function alias.

*/ export class GetAliasCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetAliasCommand 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-lambda/commands/GetCodeSigningConfigCommand.ts b/clients/client-lambda/commands/GetCodeSigningConfigCommand.ts index 277f3376f5fac..bd748400420da 100644 --- a/clients/client-lambda/commands/GetCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/GetCodeSigningConfigCommand.ts @@ -28,6 +28,7 @@ export class GetCodeSigningConfigCommand extends $Command< GetCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetEventSourceMappingCommand.ts b/clients/client-lambda/commands/GetEventSourceMappingCommand.ts index 58526cfcb7844..c98b98e250f4f 100644 --- a/clients/client-lambda/commands/GetEventSourceMappingCommand.ts +++ b/clients/client-lambda/commands/GetEventSourceMappingCommand.ts @@ -29,6 +29,7 @@ export class GetEventSourceMappingCommand extends $Command< GetEventSourceMappingCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetEventSourceMappingCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetFunctionCodeSigningConfigCommand.ts b/clients/client-lambda/commands/GetFunctionCodeSigningConfigCommand.ts index 5f73224a6e98b..86756c1a473ce 100644 --- a/clients/client-lambda/commands/GetFunctionCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/GetFunctionCodeSigningConfigCommand.ts @@ -28,6 +28,7 @@ export class GetFunctionCodeSigningConfigCommand extends $Command< GetFunctionCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFunctionCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetFunctionCommand.ts b/clients/client-lambda/commands/GetFunctionCommand.ts index 0515c523d8692..b3c527c0be2c3 100644 --- a/clients/client-lambda/commands/GetFunctionCommand.ts +++ b/clients/client-lambda/commands/GetFunctionCommand.ts @@ -30,6 +30,7 @@ export class GetFunctionCommand extends $Command< GetFunctionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetFunctionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetFunctionConcurrencyCommand.ts b/clients/client-lambda/commands/GetFunctionConcurrencyCommand.ts index 7315ea0d6f9a2..45d0a0a1f584e 100644 --- a/clients/client-lambda/commands/GetFunctionConcurrencyCommand.ts +++ b/clients/client-lambda/commands/GetFunctionConcurrencyCommand.ts @@ -29,6 +29,7 @@ export class GetFunctionConcurrencyCommand extends $Command< GetFunctionConcurrencyCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetFunctionConcurrencyCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetFunctionConfigurationCommand.ts b/clients/client-lambda/commands/GetFunctionConfigurationCommand.ts index 1d351e5905cfb..3a2885214df74 100644 --- a/clients/client-lambda/commands/GetFunctionConfigurationCommand.ts +++ b/clients/client-lambda/commands/GetFunctionConfigurationCommand.ts @@ -30,6 +30,7 @@ export class GetFunctionConfigurationCommand extends $Command< GetFunctionConfigurationCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetFunctionConfigurationCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetFunctionEventInvokeConfigCommand.ts b/clients/client-lambda/commands/GetFunctionEventInvokeConfigCommand.ts index 34b52d21ce46a..2fc912f424f76 100644 --- a/clients/client-lambda/commands/GetFunctionEventInvokeConfigCommand.ts +++ b/clients/client-lambda/commands/GetFunctionEventInvokeConfigCommand.ts @@ -29,6 +29,7 @@ export class GetFunctionEventInvokeConfigCommand extends $Command< GetFunctionEventInvokeConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetFunctionEventInvokeConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetLayerVersionByArnCommand.ts b/clients/client-lambda/commands/GetLayerVersionByArnCommand.ts index ec86c3b66f450..4a83163c877eb 100644 --- a/clients/client-lambda/commands/GetLayerVersionByArnCommand.ts +++ b/clients/client-lambda/commands/GetLayerVersionByArnCommand.ts @@ -30,6 +30,7 @@ export class GetLayerVersionByArnCommand extends $Command< GetLayerVersionByArnCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLayerVersionByArnCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetLayerVersionCommand.ts b/clients/client-lambda/commands/GetLayerVersionCommand.ts index c88fe85208d10..cdc0cb09c6ebe 100644 --- a/clients/client-lambda/commands/GetLayerVersionCommand.ts +++ b/clients/client-lambda/commands/GetLayerVersionCommand.ts @@ -30,6 +30,7 @@ export class GetLayerVersionCommand extends $Command< GetLayerVersionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLayerVersionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetLayerVersionPolicyCommand.ts b/clients/client-lambda/commands/GetLayerVersionPolicyCommand.ts index bbaff126a414d..993768357e4f8 100644 --- a/clients/client-lambda/commands/GetLayerVersionPolicyCommand.ts +++ b/clients/client-lambda/commands/GetLayerVersionPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetLayerVersionPolicyCommand extends $Command< GetLayerVersionPolicyCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetLayerVersionPolicyCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetPolicyCommand.ts b/clients/client-lambda/commands/GetPolicyCommand.ts index b5f8807d886fe..cf66b6894a77b 100644 --- a/clients/client-lambda/commands/GetPolicyCommand.ts +++ b/clients/client-lambda/commands/GetPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetPolicyCommand extends $Command< GetPolicyCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPolicyCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/GetProvisionedConcurrencyConfigCommand.ts b/clients/client-lambda/commands/GetProvisionedConcurrencyConfigCommand.ts index 669af3f180e4f..4da640066caf3 100644 --- a/clients/client-lambda/commands/GetProvisionedConcurrencyConfigCommand.ts +++ b/clients/client-lambda/commands/GetProvisionedConcurrencyConfigCommand.ts @@ -28,6 +28,7 @@ export class GetProvisionedConcurrencyConfigCommand extends $Command< GetProvisionedConcurrencyConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProvisionedConcurrencyConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/InvokeAsyncCommand.ts b/clients/client-lambda/commands/InvokeAsyncCommand.ts index be6609af350ec..a7fe57549fed1 100644 --- a/clients/client-lambda/commands/InvokeAsyncCommand.ts +++ b/clients/client-lambda/commands/InvokeAsyncCommand.ts @@ -33,6 +33,7 @@ export class InvokeAsyncCommand extends $Command< InvokeAsyncCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class InvokeAsyncCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/InvokeCommand.ts b/clients/client-lambda/commands/InvokeCommand.ts index 61542efe685a5..17fe1e7dcc153 100644 --- a/clients/client-lambda/commands/InvokeCommand.ts +++ b/clients/client-lambda/commands/InvokeCommand.ts @@ -47,6 +47,7 @@ export type InvokeCommandOutput = InvocationResponse & __MetadataBearer; *

This operation requires permission for the lambda:InvokeFunction action.

*/ export class InvokeCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class InvokeCommand 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-lambda/commands/ListAliasesCommand.ts b/clients/client-lambda/commands/ListAliasesCommand.ts index 7953e58d67510..543c7fe2876d5 100644 --- a/clients/client-lambda/commands/ListAliasesCommand.ts +++ b/clients/client-lambda/commands/ListAliasesCommand.ts @@ -29,6 +29,7 @@ export class ListAliasesCommand extends $Command< ListAliasesCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAliasesCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListCodeSigningConfigsCommand.ts b/clients/client-lambda/commands/ListCodeSigningConfigsCommand.ts index 7534f9a063d7d..f463af8ef53de 100644 --- a/clients/client-lambda/commands/ListCodeSigningConfigsCommand.ts +++ b/clients/client-lambda/commands/ListCodeSigningConfigsCommand.ts @@ -30,6 +30,7 @@ export class ListCodeSigningConfigsCommand extends $Command< ListCodeSigningConfigsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListCodeSigningConfigsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListEventSourceMappingsCommand.ts b/clients/client-lambda/commands/ListEventSourceMappingsCommand.ts index b74f3f3d449da..ed4660f2aae35 100644 --- a/clients/client-lambda/commands/ListEventSourceMappingsCommand.ts +++ b/clients/client-lambda/commands/ListEventSourceMappingsCommand.ts @@ -29,6 +29,7 @@ export class ListEventSourceMappingsCommand extends $Command< ListEventSourceMappingsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEventSourceMappingsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListFunctionEventInvokeConfigsCommand.ts b/clients/client-lambda/commands/ListFunctionEventInvokeConfigsCommand.ts index b1321f1cb7fcd..9218e99db93c7 100644 --- a/clients/client-lambda/commands/ListFunctionEventInvokeConfigsCommand.ts +++ b/clients/client-lambda/commands/ListFunctionEventInvokeConfigsCommand.ts @@ -29,6 +29,7 @@ export class ListFunctionEventInvokeConfigsCommand extends $Command< ListFunctionEventInvokeConfigsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFunctionEventInvokeConfigsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListFunctionsByCodeSigningConfigCommand.ts b/clients/client-lambda/commands/ListFunctionsByCodeSigningConfigCommand.ts index f98e25c0f3da9..857d506c246d6 100644 --- a/clients/client-lambda/commands/ListFunctionsByCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/ListFunctionsByCodeSigningConfigCommand.ts @@ -29,6 +29,7 @@ export class ListFunctionsByCodeSigningConfigCommand extends $Command< ListFunctionsByCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFunctionsByCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListFunctionsCommand.ts b/clients/client-lambda/commands/ListFunctionsCommand.ts index 631b209503e1d..030b33fe3c7c1 100644 --- a/clients/client-lambda/commands/ListFunctionsCommand.ts +++ b/clients/client-lambda/commands/ListFunctionsCommand.ts @@ -31,6 +31,7 @@ export class ListFunctionsCommand extends $Command< ListFunctionsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListFunctionsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListLayerVersionsCommand.ts b/clients/client-lambda/commands/ListLayerVersionsCommand.ts index 0af4d55d9680f..d908aa2ac4d40 100644 --- a/clients/client-lambda/commands/ListLayerVersionsCommand.ts +++ b/clients/client-lambda/commands/ListLayerVersionsCommand.ts @@ -30,6 +30,7 @@ export class ListLayerVersionsCommand extends $Command< ListLayerVersionsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListLayerVersionsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListLayersCommand.ts b/clients/client-lambda/commands/ListLayersCommand.ts index db19951a71b6c..6a3c8186908a0 100644 --- a/clients/client-lambda/commands/ListLayersCommand.ts +++ b/clients/client-lambda/commands/ListLayersCommand.ts @@ -30,6 +30,7 @@ export class ListLayersCommand extends $Command< ListLayersCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListLayersCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListProvisionedConcurrencyConfigsCommand.ts b/clients/client-lambda/commands/ListProvisionedConcurrencyConfigsCommand.ts index e9b46d9f5ebdb..c3f1eb6ef3842 100644 --- a/clients/client-lambda/commands/ListProvisionedConcurrencyConfigsCommand.ts +++ b/clients/client-lambda/commands/ListProvisionedConcurrencyConfigsCommand.ts @@ -32,6 +32,7 @@ export class ListProvisionedConcurrencyConfigsCommand extends $Command< ListProvisionedConcurrencyConfigsCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListProvisionedConcurrencyConfigsCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/ListTagsCommand.ts b/clients/client-lambda/commands/ListTagsCommand.ts index db8db229aba30..51d730e11b683 100644 --- a/clients/client-lambda/commands/ListTagsCommand.ts +++ b/clients/client-lambda/commands/ListTagsCommand.ts @@ -25,6 +25,7 @@ export type ListTagsCommandOutput = ListTagsResponse & __MetadataBearer; * also view tags with GetFunction.

*/ export class ListTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,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-lambda/commands/ListVersionsByFunctionCommand.ts b/clients/client-lambda/commands/ListVersionsByFunctionCommand.ts index d3637fb8bed61..5b18d7f373ca8 100644 --- a/clients/client-lambda/commands/ListVersionsByFunctionCommand.ts +++ b/clients/client-lambda/commands/ListVersionsByFunctionCommand.ts @@ -29,6 +29,7 @@ export class ListVersionsByFunctionCommand extends $Command< ListVersionsByFunctionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListVersionsByFunctionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PublishLayerVersionCommand.ts b/clients/client-lambda/commands/PublishLayerVersionCommand.ts index 4078f1df85399..a9ea9923124d6 100644 --- a/clients/client-lambda/commands/PublishLayerVersionCommand.ts +++ b/clients/client-lambda/commands/PublishLayerVersionCommand.ts @@ -31,6 +31,7 @@ export class PublishLayerVersionCommand extends $Command< PublishLayerVersionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PublishLayerVersionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PublishVersionCommand.ts b/clients/client-lambda/commands/PublishVersionCommand.ts index d11225c5d8b70..f05e4be2f83b7 100644 --- a/clients/client-lambda/commands/PublishVersionCommand.ts +++ b/clients/client-lambda/commands/PublishVersionCommand.ts @@ -36,6 +36,7 @@ export class PublishVersionCommand extends $Command< PublishVersionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PublishVersionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PutFunctionCodeSigningConfigCommand.ts b/clients/client-lambda/commands/PutFunctionCodeSigningConfigCommand.ts index f44dc3a3a3e2f..61ddd4a236ff7 100644 --- a/clients/client-lambda/commands/PutFunctionCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/PutFunctionCodeSigningConfigCommand.ts @@ -29,6 +29,7 @@ export class PutFunctionCodeSigningConfigCommand extends $Command< PutFunctionCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutFunctionCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PutFunctionConcurrencyCommand.ts b/clients/client-lambda/commands/PutFunctionConcurrencyCommand.ts index 3e1f94a91e1c8..9cc4434b67b41 100644 --- a/clients/client-lambda/commands/PutFunctionConcurrencyCommand.ts +++ b/clients/client-lambda/commands/PutFunctionConcurrencyCommand.ts @@ -36,6 +36,7 @@ export class PutFunctionConcurrencyCommand extends $Command< PutFunctionConcurrencyCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PutFunctionConcurrencyCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PutFunctionEventInvokeConfigCommand.ts b/clients/client-lambda/commands/PutFunctionEventInvokeConfigCommand.ts index 09c014d51f5e4..99350021572bb 100644 --- a/clients/client-lambda/commands/PutFunctionEventInvokeConfigCommand.ts +++ b/clients/client-lambda/commands/PutFunctionEventInvokeConfigCommand.ts @@ -38,6 +38,7 @@ export class PutFunctionEventInvokeConfigCommand extends $Command< PutFunctionEventInvokeConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutFunctionEventInvokeConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/PutProvisionedConcurrencyConfigCommand.ts b/clients/client-lambda/commands/PutProvisionedConcurrencyConfigCommand.ts index fc3d0373b8f08..d52cae864955c 100644 --- a/clients/client-lambda/commands/PutProvisionedConcurrencyConfigCommand.ts +++ b/clients/client-lambda/commands/PutProvisionedConcurrencyConfigCommand.ts @@ -28,6 +28,7 @@ export class PutProvisionedConcurrencyConfigCommand extends $Command< PutProvisionedConcurrencyConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutProvisionedConcurrencyConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/RemoveLayerVersionPermissionCommand.ts b/clients/client-lambda/commands/RemoveLayerVersionPermissionCommand.ts index c0b693e117246..73cf327e32b86 100644 --- a/clients/client-lambda/commands/RemoveLayerVersionPermissionCommand.ts +++ b/clients/client-lambda/commands/RemoveLayerVersionPermissionCommand.ts @@ -30,6 +30,7 @@ export class RemoveLayerVersionPermissionCommand extends $Command< RemoveLayerVersionPermissionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RemoveLayerVersionPermissionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/RemovePermissionCommand.ts b/clients/client-lambda/commands/RemovePermissionCommand.ts index a94c9c1b736a7..4eda6fbd47beb 100644 --- a/clients/client-lambda/commands/RemovePermissionCommand.ts +++ b/clients/client-lambda/commands/RemovePermissionCommand.ts @@ -29,6 +29,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemovePermissionCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/TagResourceCommand.ts b/clients/client-lambda/commands/TagResourceCommand.ts index c8a1696c6e97d..77e3cb1df29ac 100644 --- a/clients/client-lambda/commands/TagResourceCommand.ts +++ b/clients/client-lambda/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UntagResourceCommand.ts b/clients/client-lambda/commands/UntagResourceCommand.ts index c3f8af643ce6c..95370e0b49afc 100644 --- a/clients/client-lambda/commands/UntagResourceCommand.ts +++ b/clients/client-lambda/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateAliasCommand.ts b/clients/client-lambda/commands/UpdateAliasCommand.ts index b05184e667dda..e9ffe2f031305 100644 --- a/clients/client-lambda/commands/UpdateAliasCommand.ts +++ b/clients/client-lambda/commands/UpdateAliasCommand.ts @@ -28,6 +28,7 @@ export class UpdateAliasCommand extends $Command< UpdateAliasCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAliasCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateCodeSigningConfigCommand.ts b/clients/client-lambda/commands/UpdateCodeSigningConfigCommand.ts index 6537dd0d3d012..fd7d0bb7211f7 100644 --- a/clients/client-lambda/commands/UpdateCodeSigningConfigCommand.ts +++ b/clients/client-lambda/commands/UpdateCodeSigningConfigCommand.ts @@ -29,6 +29,7 @@ export class UpdateCodeSigningConfigCommand extends $Command< UpdateCodeSigningConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateCodeSigningConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateEventSourceMappingCommand.ts b/clients/client-lambda/commands/UpdateEventSourceMappingCommand.ts index 67c31c2d37b11..37fcdc1368356 100644 --- a/clients/client-lambda/commands/UpdateEventSourceMappingCommand.ts +++ b/clients/client-lambda/commands/UpdateEventSourceMappingCommand.ts @@ -52,6 +52,7 @@ export class UpdateEventSourceMappingCommand extends $Command< UpdateEventSourceMappingCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class UpdateEventSourceMappingCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateFunctionCodeCommand.ts b/clients/client-lambda/commands/UpdateFunctionCodeCommand.ts index 8c45d265c89aa..67e7a52952c83 100644 --- a/clients/client-lambda/commands/UpdateFunctionCodeCommand.ts +++ b/clients/client-lambda/commands/UpdateFunctionCodeCommand.ts @@ -36,6 +36,7 @@ export class UpdateFunctionCodeCommand extends $Command< UpdateFunctionCodeCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateFunctionCodeCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateFunctionConfigurationCommand.ts b/clients/client-lambda/commands/UpdateFunctionConfigurationCommand.ts index 0a25f502e5f57..ac574642d2e08 100644 --- a/clients/client-lambda/commands/UpdateFunctionConfigurationCommand.ts +++ b/clients/client-lambda/commands/UpdateFunctionConfigurationCommand.ts @@ -42,6 +42,7 @@ export class UpdateFunctionConfigurationCommand extends $Command< UpdateFunctionConfigurationCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class UpdateFunctionConfigurationCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lambda/commands/UpdateFunctionEventInvokeConfigCommand.ts b/clients/client-lambda/commands/UpdateFunctionEventInvokeConfigCommand.ts index 9315016d93f4f..2de6d22f11403 100644 --- a/clients/client-lambda/commands/UpdateFunctionEventInvokeConfigCommand.ts +++ b/clients/client-lambda/commands/UpdateFunctionEventInvokeConfigCommand.ts @@ -29,6 +29,7 @@ export class UpdateFunctionEventInvokeConfigCommand extends $Command< UpdateFunctionEventInvokeConfigCommandOutput, LambdaClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateFunctionEventInvokeConfigCommand extends $Command< configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/CreateBotVersionCommand.ts b/clients/client-lex-model-building-service/commands/CreateBotVersionCommand.ts index e049a14ce00e7..4d6778db4e0e0 100644 --- a/clients/client-lex-model-building-service/commands/CreateBotVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/CreateBotVersionCommand.ts @@ -44,6 +44,7 @@ export class CreateBotVersionCommand extends $Command< CreateBotVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateBotVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/CreateIntentVersionCommand.ts b/clients/client-lex-model-building-service/commands/CreateIntentVersionCommand.ts index d411196af4f7f..28591f2afce9b 100644 --- a/clients/client-lex-model-building-service/commands/CreateIntentVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/CreateIntentVersionCommand.ts @@ -45,6 +45,7 @@ export class CreateIntentVersionCommand extends $Command< CreateIntentVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateIntentVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/CreateSlotTypeVersionCommand.ts b/clients/client-lex-model-building-service/commands/CreateSlotTypeVersionCommand.ts index 5fb281312c999..e3c9d9725ab5e 100644 --- a/clients/client-lex-model-building-service/commands/CreateSlotTypeVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/CreateSlotTypeVersionCommand.ts @@ -47,6 +47,7 @@ export class CreateSlotTypeVersionCommand extends $Command< CreateSlotTypeVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateSlotTypeVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteBotAliasCommand.ts b/clients/client-lex-model-building-service/commands/DeleteBotAliasCommand.ts index 117be3493dc65..22593fdf3f581 100644 --- a/clients/client-lex-model-building-service/commands/DeleteBotAliasCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteBotAliasCommand.ts @@ -40,6 +40,7 @@ export class DeleteBotAliasCommand extends $Command< DeleteBotAliasCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteBotAliasCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteBotChannelAssociationCommand.ts b/clients/client-lex-model-building-service/commands/DeleteBotChannelAssociationCommand.ts index 4433db46f2714..a5d6cb34f2711 100644 --- a/clients/client-lex-model-building-service/commands/DeleteBotChannelAssociationCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteBotChannelAssociationCommand.ts @@ -35,6 +35,7 @@ export class DeleteBotChannelAssociationCommand extends $Command< DeleteBotChannelAssociationCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteBotChannelAssociationCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteBotCommand.ts b/clients/client-lex-model-building-service/commands/DeleteBotCommand.ts index 6ea063d173339..4053221e05c40 100644 --- a/clients/client-lex-model-building-service/commands/DeleteBotCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteBotCommand.ts @@ -48,6 +48,7 @@ export class DeleteBotCommand extends $Command< DeleteBotCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DeleteBotCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteBotVersionCommand.ts b/clients/client-lex-model-building-service/commands/DeleteBotVersionCommand.ts index 99a6973cd6344..db824cba87d5f 100644 --- a/clients/client-lex-model-building-service/commands/DeleteBotVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteBotVersionCommand.ts @@ -35,6 +35,7 @@ export class DeleteBotVersionCommand extends $Command< DeleteBotVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteBotVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteIntentCommand.ts b/clients/client-lex-model-building-service/commands/DeleteIntentCommand.ts index c5934ef69546b..2bcaa3d285f2e 100644 --- a/clients/client-lex-model-building-service/commands/DeleteIntentCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteIntentCommand.ts @@ -49,6 +49,7 @@ export class DeleteIntentCommand extends $Command< DeleteIntentCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DeleteIntentCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteIntentVersionCommand.ts b/clients/client-lex-model-building-service/commands/DeleteIntentVersionCommand.ts index 75534df2b90d0..61bfe46969608 100644 --- a/clients/client-lex-model-building-service/commands/DeleteIntentVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteIntentVersionCommand.ts @@ -35,6 +35,7 @@ export class DeleteIntentVersionCommand extends $Command< DeleteIntentVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteIntentVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteSlotTypeCommand.ts b/clients/client-lex-model-building-service/commands/DeleteSlotTypeCommand.ts index 105f138986e7b..de82aae3910c4 100644 --- a/clients/client-lex-model-building-service/commands/DeleteSlotTypeCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteSlotTypeCommand.ts @@ -48,6 +48,7 @@ export class DeleteSlotTypeCommand extends $Command< DeleteSlotTypeCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class DeleteSlotTypeCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteSlotTypeVersionCommand.ts b/clients/client-lex-model-building-service/commands/DeleteSlotTypeVersionCommand.ts index efacb59da176e..154054d41cc0e 100644 --- a/clients/client-lex-model-building-service/commands/DeleteSlotTypeVersionCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteSlotTypeVersionCommand.ts @@ -35,6 +35,7 @@ export class DeleteSlotTypeVersionCommand extends $Command< DeleteSlotTypeVersionCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteSlotTypeVersionCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/DeleteUtterancesCommand.ts b/clients/client-lex-model-building-service/commands/DeleteUtterancesCommand.ts index 6badc19202240..1711d7c96805e 100644 --- a/clients/client-lex-model-building-service/commands/DeleteUtterancesCommand.ts +++ b/clients/client-lex-model-building-service/commands/DeleteUtterancesCommand.ts @@ -43,6 +43,7 @@ export class DeleteUtterancesCommand extends $Command< DeleteUtterancesCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DeleteUtterancesCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts b/clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts index 1082caba563d1..791a77005a3bd 100644 --- a/clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts @@ -35,6 +35,7 @@ export class GetBotAliasCommand extends $Command< GetBotAliasCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetBotAliasCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotAliasesCommand.ts b/clients/client-lex-model-building-service/commands/GetBotAliasesCommand.ts index a118db2247879..78ebe724f91a6 100644 --- a/clients/client-lex-model-building-service/commands/GetBotAliasesCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotAliasesCommand.ts @@ -34,6 +34,7 @@ export class GetBotAliasesCommand extends $Command< GetBotAliasesCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetBotAliasesCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotChannelAssociationCommand.ts b/clients/client-lex-model-building-service/commands/GetBotChannelAssociationCommand.ts index 60028815bf69f..a1da132f330de 100644 --- a/clients/client-lex-model-building-service/commands/GetBotChannelAssociationCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotChannelAssociationCommand.ts @@ -35,6 +35,7 @@ export class GetBotChannelAssociationCommand extends $Command< GetBotChannelAssociationCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetBotChannelAssociationCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotChannelAssociationsCommand.ts b/clients/client-lex-model-building-service/commands/GetBotChannelAssociationsCommand.ts index 8a349b36bd265..28c08f29d6b1f 100644 --- a/clients/client-lex-model-building-service/commands/GetBotChannelAssociationsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotChannelAssociationsCommand.ts @@ -36,6 +36,7 @@ export class GetBotChannelAssociationsCommand extends $Command< GetBotChannelAssociationsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetBotChannelAssociationsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotCommand.ts b/clients/client-lex-model-building-service/commands/GetBotCommand.ts index 59fce20daf2f5..193f2b44d520d 100644 --- a/clients/client-lex-model-building-service/commands/GetBotCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotCommand.ts @@ -32,6 +32,7 @@ export class GetBotCommand extends $Command< GetBotCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetBotCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotVersionsCommand.ts b/clients/client-lex-model-building-service/commands/GetBotVersionsCommand.ts index 855ccfecd2717..d8e2e299cc3dd 100644 --- a/clients/client-lex-model-building-service/commands/GetBotVersionsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotVersionsCommand.ts @@ -42,6 +42,7 @@ export class GetBotVersionsCommand extends $Command< GetBotVersionsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetBotVersionsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBotsCommand.ts b/clients/client-lex-model-building-service/commands/GetBotsCommand.ts index defe3a8f2e995..ff82d3bc4e51c 100644 --- a/clients/client-lex-model-building-service/commands/GetBotsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBotsCommand.ts @@ -46,6 +46,7 @@ export class GetBotsCommand extends $Command< GetBotsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetBotsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBuiltinIntentCommand.ts b/clients/client-lex-model-building-service/commands/GetBuiltinIntentCommand.ts index fac1756847642..e0659ad9f3b4d 100644 --- a/clients/client-lex-model-building-service/commands/GetBuiltinIntentCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBuiltinIntentCommand.ts @@ -34,6 +34,7 @@ export class GetBuiltinIntentCommand extends $Command< GetBuiltinIntentCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetBuiltinIntentCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBuiltinIntentsCommand.ts b/clients/client-lex-model-building-service/commands/GetBuiltinIntentsCommand.ts index b907e9dafcad1..12c1aadcd1aae 100644 --- a/clients/client-lex-model-building-service/commands/GetBuiltinIntentsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBuiltinIntentsCommand.ts @@ -35,6 +35,7 @@ export class GetBuiltinIntentsCommand extends $Command< GetBuiltinIntentsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetBuiltinIntentsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetBuiltinSlotTypesCommand.ts b/clients/client-lex-model-building-service/commands/GetBuiltinSlotTypesCommand.ts index 0d5be3e163c0e..9b2b3e71de04b 100644 --- a/clients/client-lex-model-building-service/commands/GetBuiltinSlotTypesCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetBuiltinSlotTypesCommand.ts @@ -38,6 +38,7 @@ export class GetBuiltinSlotTypesCommand extends $Command< GetBuiltinSlotTypesCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetBuiltinSlotTypesCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetExportCommand.ts b/clients/client-lex-model-building-service/commands/GetExportCommand.ts index 6782e0048f251..c46bcc70e044d 100644 --- a/clients/client-lex-model-building-service/commands/GetExportCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetExportCommand.ts @@ -33,6 +33,7 @@ export class GetExportCommand extends $Command< GetExportCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetExportCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetImportCommand.ts b/clients/client-lex-model-building-service/commands/GetImportCommand.ts index 9cdb1ad351989..f3ec6dbfc9dc1 100644 --- a/clients/client-lex-model-building-service/commands/GetImportCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetImportCommand.ts @@ -33,6 +33,7 @@ export class GetImportCommand extends $Command< GetImportCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetImportCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetIntentCommand.ts b/clients/client-lex-model-building-service/commands/GetIntentCommand.ts index dead988e9575f..4ba68c9aff641 100644 --- a/clients/client-lex-model-building-service/commands/GetIntentCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetIntentCommand.ts @@ -35,6 +35,7 @@ export class GetIntentCommand extends $Command< GetIntentCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetIntentCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetIntentVersionsCommand.ts b/clients/client-lex-model-building-service/commands/GetIntentVersionsCommand.ts index 0ec0b2b52138c..7de677ee22bca 100644 --- a/clients/client-lex-model-building-service/commands/GetIntentVersionsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetIntentVersionsCommand.ts @@ -42,6 +42,7 @@ export class GetIntentVersionsCommand extends $Command< GetIntentVersionsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetIntentVersionsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetIntentsCommand.ts b/clients/client-lex-model-building-service/commands/GetIntentsCommand.ts index ac0fe55248256..737cd305930e9 100644 --- a/clients/client-lex-model-building-service/commands/GetIntentsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetIntentsCommand.ts @@ -46,6 +46,7 @@ export class GetIntentsCommand extends $Command< GetIntentsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetIntentsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetSlotTypeCommand.ts b/clients/client-lex-model-building-service/commands/GetSlotTypeCommand.ts index 0f77af78186d2..f9630a326f1d0 100644 --- a/clients/client-lex-model-building-service/commands/GetSlotTypeCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetSlotTypeCommand.ts @@ -36,6 +36,7 @@ export class GetSlotTypeCommand extends $Command< GetSlotTypeCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSlotTypeCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetSlotTypeVersionsCommand.ts b/clients/client-lex-model-building-service/commands/GetSlotTypeVersionsCommand.ts index 3ff3b32d9d71e..22f010ec4c3ee 100644 --- a/clients/client-lex-model-building-service/commands/GetSlotTypeVersionsCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetSlotTypeVersionsCommand.ts @@ -42,6 +42,7 @@ export class GetSlotTypeVersionsCommand extends $Command< GetSlotTypeVersionsCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetSlotTypeVersionsCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetSlotTypesCommand.ts b/clients/client-lex-model-building-service/commands/GetSlotTypesCommand.ts index f5e9a728d672f..c5e2c4026a389 100644 --- a/clients/client-lex-model-building-service/commands/GetSlotTypesCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetSlotTypesCommand.ts @@ -46,6 +46,7 @@ export class GetSlotTypesCommand extends $Command< GetSlotTypesCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetSlotTypesCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/GetUtterancesViewCommand.ts b/clients/client-lex-model-building-service/commands/GetUtterancesViewCommand.ts index 05d4b8b9d3f10..4416e9755452c 100644 --- a/clients/client-lex-model-building-service/commands/GetUtterancesViewCommand.ts +++ b/clients/client-lex-model-building-service/commands/GetUtterancesViewCommand.ts @@ -54,6 +54,7 @@ export class GetUtterancesViewCommand extends $Command< GetUtterancesViewCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class GetUtterancesViewCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/ListTagsForResourceCommand.ts b/clients/client-lex-model-building-service/commands/ListTagsForResourceCommand.ts index 353e9dcbdce94..86e066de978a8 100644 --- a/clients/client-lex-model-building-service/commands/ListTagsForResourceCommand.ts +++ b/clients/client-lex-model-building-service/commands/ListTagsForResourceCommand.ts @@ -33,6 +33,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/PutBotAliasCommand.ts b/clients/client-lex-model-building-service/commands/PutBotAliasCommand.ts index 5e757e2aa8490..4a982e99166c9 100644 --- a/clients/client-lex-model-building-service/commands/PutBotAliasCommand.ts +++ b/clients/client-lex-model-building-service/commands/PutBotAliasCommand.ts @@ -37,6 +37,7 @@ export class PutBotAliasCommand extends $Command< PutBotAliasCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutBotAliasCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/PutBotCommand.ts b/clients/client-lex-model-building-service/commands/PutBotCommand.ts index 7b97c88317f31..aece86fbbe0d7 100644 --- a/clients/client-lex-model-building-service/commands/PutBotCommand.ts +++ b/clients/client-lex-model-building-service/commands/PutBotCommand.ts @@ -46,6 +46,7 @@ export class PutBotCommand extends $Command< PutBotCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class PutBotCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/PutIntentCommand.ts b/clients/client-lex-model-building-service/commands/PutIntentCommand.ts index f12378cf30326..48ef7ab3c2482 100644 --- a/clients/client-lex-model-building-service/commands/PutIntentCommand.ts +++ b/clients/client-lex-model-building-service/commands/PutIntentCommand.ts @@ -89,6 +89,7 @@ export class PutIntentCommand extends $Command< PutIntentCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class PutIntentCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/PutSlotTypeCommand.ts b/clients/client-lex-model-building-service/commands/PutSlotTypeCommand.ts index dbe78917213cc..3f04caed3fac0 100644 --- a/clients/client-lex-model-building-service/commands/PutSlotTypeCommand.ts +++ b/clients/client-lex-model-building-service/commands/PutSlotTypeCommand.ts @@ -47,6 +47,7 @@ export class PutSlotTypeCommand extends $Command< PutSlotTypeCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class PutSlotTypeCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/StartImportCommand.ts b/clients/client-lex-model-building-service/commands/StartImportCommand.ts index 1fc602ec43b17..a303d0358d939 100644 --- a/clients/client-lex-model-building-service/commands/StartImportCommand.ts +++ b/clients/client-lex-model-building-service/commands/StartImportCommand.ts @@ -32,6 +32,7 @@ export class StartImportCommand extends $Command< StartImportCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartImportCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/TagResourceCommand.ts b/clients/client-lex-model-building-service/commands/TagResourceCommand.ts index c6e0e546c3838..01e6f97dabb80 100644 --- a/clients/client-lex-model-building-service/commands/TagResourceCommand.ts +++ b/clients/client-lex-model-building-service/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-model-building-service/commands/UntagResourceCommand.ts b/clients/client-lex-model-building-service/commands/UntagResourceCommand.ts index 31982b16c912c..5436ae1d1b351 100644 --- a/clients/client-lex-model-building-service/commands/UntagResourceCommand.ts +++ b/clients/client-lex-model-building-service/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, LexModelBuildingServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-runtime-service/commands/DeleteSessionCommand.ts b/clients/client-lex-runtime-service/commands/DeleteSessionCommand.ts index 6fa46690b8c7f..4c7f7936af2df 100644 --- a/clients/client-lex-runtime-service/commands/DeleteSessionCommand.ts +++ b/clients/client-lex-runtime-service/commands/DeleteSessionCommand.ts @@ -32,6 +32,7 @@ export class DeleteSessionCommand extends $Command< DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteSessionCommand extends $Command< configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-runtime-service/commands/GetSessionCommand.ts b/clients/client-lex-runtime-service/commands/GetSessionCommand.ts index 5ed5fe4ab2ae3..3d8e62366886d 100644 --- a/clients/client-lex-runtime-service/commands/GetSessionCommand.ts +++ b/clients/client-lex-runtime-service/commands/GetSessionCommand.ts @@ -32,6 +32,7 @@ export class GetSessionCommand extends $Command< GetSessionCommandOutput, LexRuntimeServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetSessionCommand extends $Command< configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-runtime-service/commands/PostContentCommand.ts b/clients/client-lex-runtime-service/commands/PostContentCommand.ts index 6227f42efcda6..77e1a73d16f80 100644 --- a/clients/client-lex-runtime-service/commands/PostContentCommand.ts +++ b/clients/client-lex-runtime-service/commands/PostContentCommand.ts @@ -101,6 +101,7 @@ export class PostContentCommand extends $Command< PostContentCommandOutput, LexRuntimeServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -118,7 +119,10 @@ export class PostContentCommand extends $Command< configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-runtime-service/commands/PostTextCommand.ts b/clients/client-lex-runtime-service/commands/PostTextCommand.ts index 6d89a52f260a3..6d85c98a7812c 100644 --- a/clients/client-lex-runtime-service/commands/PostTextCommand.ts +++ b/clients/client-lex-runtime-service/commands/PostTextCommand.ts @@ -99,6 +99,7 @@ export class PostTextCommand extends $Command< PostTextCommandOutput, LexRuntimeServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -116,7 +117,10 @@ export class PostTextCommand extends $Command< configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lex-runtime-service/commands/PutSessionCommand.ts b/clients/client-lex-runtime-service/commands/PutSessionCommand.ts index e7097585e673b..75709bc11fb53 100644 --- a/clients/client-lex-runtime-service/commands/PutSessionCommand.ts +++ b/clients/client-lex-runtime-service/commands/PutSessionCommand.ts @@ -34,6 +34,7 @@ export class PutSessionCommand extends $Command< PutSessionCommandOutput, LexRuntimeServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutSessionCommand extends $Command< configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/AcceptGrantCommand.ts b/clients/client-license-manager/commands/AcceptGrantCommand.ts index 9806ffb022b80..6e09c8129cfb5 100644 --- a/clients/client-license-manager/commands/AcceptGrantCommand.ts +++ b/clients/client-license-manager/commands/AcceptGrantCommand.ts @@ -28,6 +28,7 @@ export class AcceptGrantCommand extends $Command< AcceptGrantCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptGrantCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CheckInLicenseCommand.ts b/clients/client-license-manager/commands/CheckInLicenseCommand.ts index d5cb8d102de31..f8b4f57130363 100644 --- a/clients/client-license-manager/commands/CheckInLicenseCommand.ts +++ b/clients/client-license-manager/commands/CheckInLicenseCommand.ts @@ -28,6 +28,7 @@ export class CheckInLicenseCommand extends $Command< CheckInLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckInLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CheckoutBorrowLicenseCommand.ts b/clients/client-license-manager/commands/CheckoutBorrowLicenseCommand.ts index 41354e6727ae5..d039685dc6817 100644 --- a/clients/client-license-manager/commands/CheckoutBorrowLicenseCommand.ts +++ b/clients/client-license-manager/commands/CheckoutBorrowLicenseCommand.ts @@ -28,6 +28,7 @@ export class CheckoutBorrowLicenseCommand extends $Command< CheckoutBorrowLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckoutBorrowLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CheckoutLicenseCommand.ts b/clients/client-license-manager/commands/CheckoutLicenseCommand.ts index 28067ac5a36c2..091b5b070e811 100644 --- a/clients/client-license-manager/commands/CheckoutLicenseCommand.ts +++ b/clients/client-license-manager/commands/CheckoutLicenseCommand.ts @@ -28,6 +28,7 @@ export class CheckoutLicenseCommand extends $Command< CheckoutLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckoutLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateGrantCommand.ts b/clients/client-license-manager/commands/CreateGrantCommand.ts index 76ab10e819999..d12a31a2fc549 100644 --- a/clients/client-license-manager/commands/CreateGrantCommand.ts +++ b/clients/client-license-manager/commands/CreateGrantCommand.ts @@ -28,6 +28,7 @@ export class CreateGrantCommand extends $Command< CreateGrantCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGrantCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateGrantVersionCommand.ts b/clients/client-license-manager/commands/CreateGrantVersionCommand.ts index efca7d46c1b9a..b168009e37952 100644 --- a/clients/client-license-manager/commands/CreateGrantVersionCommand.ts +++ b/clients/client-license-manager/commands/CreateGrantVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateGrantVersionCommand extends $Command< CreateGrantVersionCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGrantVersionCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateLicenseCommand.ts b/clients/client-license-manager/commands/CreateLicenseCommand.ts index 61f78f841089e..93d7bb2c8f02d 100644 --- a/clients/client-license-manager/commands/CreateLicenseCommand.ts +++ b/clients/client-license-manager/commands/CreateLicenseCommand.ts @@ -28,6 +28,7 @@ export class CreateLicenseCommand extends $Command< CreateLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/CreateLicenseConfigurationCommand.ts index cdca30722e83d..3b131821049c8 100644 --- a/clients/client-license-manager/commands/CreateLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/CreateLicenseConfigurationCommand.ts @@ -33,6 +33,7 @@ export class CreateLicenseConfigurationCommand extends $Command< CreateLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateLicenseConfigurationCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateLicenseVersionCommand.ts b/clients/client-license-manager/commands/CreateLicenseVersionCommand.ts index a16d747842837..7656ae258707e 100644 --- a/clients/client-license-manager/commands/CreateLicenseVersionCommand.ts +++ b/clients/client-license-manager/commands/CreateLicenseVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateLicenseVersionCommand extends $Command< CreateLicenseVersionCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLicenseVersionCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/CreateTokenCommand.ts b/clients/client-license-manager/commands/CreateTokenCommand.ts index 188a7f8e6f0e5..df04d99e4f244 100644 --- a/clients/client-license-manager/commands/CreateTokenCommand.ts +++ b/clients/client-license-manager/commands/CreateTokenCommand.ts @@ -31,6 +31,7 @@ export class CreateTokenCommand extends $Command< CreateTokenCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTokenCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/DeleteGrantCommand.ts b/clients/client-license-manager/commands/DeleteGrantCommand.ts index 8bb2a6e791ade..53a6483e8d04b 100644 --- a/clients/client-license-manager/commands/DeleteGrantCommand.ts +++ b/clients/client-license-manager/commands/DeleteGrantCommand.ts @@ -28,6 +28,7 @@ export class DeleteGrantCommand extends $Command< DeleteGrantCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGrantCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/DeleteLicenseCommand.ts b/clients/client-license-manager/commands/DeleteLicenseCommand.ts index a05bc61b64c41..99d0f50ad7d36 100644 --- a/clients/client-license-manager/commands/DeleteLicenseCommand.ts +++ b/clients/client-license-manager/commands/DeleteLicenseCommand.ts @@ -28,6 +28,7 @@ export class DeleteLicenseCommand extends $Command< DeleteLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/DeleteLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/DeleteLicenseConfigurationCommand.ts index a9680d57c7cbf..410c6ce6f2ece 100644 --- a/clients/client-license-manager/commands/DeleteLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/DeleteLicenseConfigurationCommand.ts @@ -29,6 +29,7 @@ export class DeleteLicenseConfigurationCommand extends $Command< DeleteLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteLicenseConfigurationCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/DeleteTokenCommand.ts b/clients/client-license-manager/commands/DeleteTokenCommand.ts index 8f7c0f3dccae8..d243ef16d9770 100644 --- a/clients/client-license-manager/commands/DeleteTokenCommand.ts +++ b/clients/client-license-manager/commands/DeleteTokenCommand.ts @@ -28,6 +28,7 @@ export class DeleteTokenCommand extends $Command< DeleteTokenCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTokenCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ExtendLicenseConsumptionCommand.ts b/clients/client-license-manager/commands/ExtendLicenseConsumptionCommand.ts index 077f75b65f29a..3e5a124554c7b 100644 --- a/clients/client-license-manager/commands/ExtendLicenseConsumptionCommand.ts +++ b/clients/client-license-manager/commands/ExtendLicenseConsumptionCommand.ts @@ -28,6 +28,7 @@ export class ExtendLicenseConsumptionCommand extends $Command< ExtendLicenseConsumptionCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ExtendLicenseConsumptionCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetAccessTokenCommand.ts b/clients/client-license-manager/commands/GetAccessTokenCommand.ts index 95e4fc94349cd..b40395403aeb5 100644 --- a/clients/client-license-manager/commands/GetAccessTokenCommand.ts +++ b/clients/client-license-manager/commands/GetAccessTokenCommand.ts @@ -29,6 +29,7 @@ export class GetAccessTokenCommand extends $Command< GetAccessTokenCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccessTokenCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetGrantCommand.ts b/clients/client-license-manager/commands/GetGrantCommand.ts index 68414bf58cc68..d9fb0b41a71a9 100644 --- a/clients/client-license-manager/commands/GetGrantCommand.ts +++ b/clients/client-license-manager/commands/GetGrantCommand.ts @@ -25,6 +25,7 @@ export class GetGrantCommand extends $Command< GetGrantCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetGrantCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetLicenseCommand.ts b/clients/client-license-manager/commands/GetLicenseCommand.ts index e1f4630ee45f6..d79f31baa5355 100644 --- a/clients/client-license-manager/commands/GetLicenseCommand.ts +++ b/clients/client-license-manager/commands/GetLicenseCommand.ts @@ -28,6 +28,7 @@ export class GetLicenseCommand extends $Command< GetLicenseCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLicenseCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/GetLicenseConfigurationCommand.ts index f0e9e5cb93e71..4d9d4959d554a 100644 --- a/clients/client-license-manager/commands/GetLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/GetLicenseConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetLicenseConfigurationCommand extends $Command< GetLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLicenseConfigurationCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetLicenseUsageCommand.ts b/clients/client-license-manager/commands/GetLicenseUsageCommand.ts index beffd54143bcc..e8ca2fd5813c6 100644 --- a/clients/client-license-manager/commands/GetLicenseUsageCommand.ts +++ b/clients/client-license-manager/commands/GetLicenseUsageCommand.ts @@ -28,6 +28,7 @@ export class GetLicenseUsageCommand extends $Command< GetLicenseUsageCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLicenseUsageCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/GetServiceSettingsCommand.ts b/clients/client-license-manager/commands/GetServiceSettingsCommand.ts index a7712775982f3..248343a351dff 100644 --- a/clients/client-license-manager/commands/GetServiceSettingsCommand.ts +++ b/clients/client-license-manager/commands/GetServiceSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetServiceSettingsCommand extends $Command< GetServiceSettingsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetServiceSettingsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListAssociationsForLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/ListAssociationsForLicenseConfigurationCommand.ts index 65492aa7585fd..23e219273f3b5 100644 --- a/clients/client-license-manager/commands/ListAssociationsForLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/ListAssociationsForLicenseConfigurationCommand.ts @@ -35,6 +35,7 @@ export class ListAssociationsForLicenseConfigurationCommand extends $Command< ListAssociationsForLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListAssociationsForLicenseConfigurationCommand extends $Command< ListAssociationsForLicenseConfigurationCommandInput, ListAssociationsForLicenseConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListDistributedGrantsCommand.ts b/clients/client-license-manager/commands/ListDistributedGrantsCommand.ts index fa284ababb307..6ce05e3d63e62 100644 --- a/clients/client-license-manager/commands/ListDistributedGrantsCommand.ts +++ b/clients/client-license-manager/commands/ListDistributedGrantsCommand.ts @@ -28,6 +28,7 @@ export class ListDistributedGrantsCommand extends $Command< ListDistributedGrantsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDistributedGrantsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListFailuresForLicenseConfigurationOperationsCommand.ts b/clients/client-license-manager/commands/ListFailuresForLicenseConfigurationOperationsCommand.ts index 512d386b6405f..c1419ca49650c 100644 --- a/clients/client-license-manager/commands/ListFailuresForLicenseConfigurationOperationsCommand.ts +++ b/clients/client-license-manager/commands/ListFailuresForLicenseConfigurationOperationsCommand.ts @@ -32,6 +32,7 @@ export class ListFailuresForLicenseConfigurationOperationsCommand extends $Comma ListFailuresForLicenseConfigurationOperationsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListFailuresForLicenseConfigurationOperationsCommand extends $Comma ListFailuresForLicenseConfigurationOperationsCommandInput, ListFailuresForLicenseConfigurationOperationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListLicenseConfigurationsCommand.ts b/clients/client-license-manager/commands/ListLicenseConfigurationsCommand.ts index d72e55038e66d..404db98de8645 100644 --- a/clients/client-license-manager/commands/ListLicenseConfigurationsCommand.ts +++ b/clients/client-license-manager/commands/ListLicenseConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListLicenseConfigurationsCommand extends $Command< ListLicenseConfigurationsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLicenseConfigurationsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListLicenseSpecificationsForResourceCommand.ts b/clients/client-license-manager/commands/ListLicenseSpecificationsForResourceCommand.ts index b9ff782addb47..01570631a2a2e 100644 --- a/clients/client-license-manager/commands/ListLicenseSpecificationsForResourceCommand.ts +++ b/clients/client-license-manager/commands/ListLicenseSpecificationsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListLicenseSpecificationsForResourceCommand extends $Command< ListLicenseSpecificationsForResourceCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListLicenseSpecificationsForResourceCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListLicenseVersionsCommand.ts b/clients/client-license-manager/commands/ListLicenseVersionsCommand.ts index 955757efcbe77..1b155a8b6e7bf 100644 --- a/clients/client-license-manager/commands/ListLicenseVersionsCommand.ts +++ b/clients/client-license-manager/commands/ListLicenseVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListLicenseVersionsCommand extends $Command< ListLicenseVersionsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLicenseVersionsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListLicensesCommand.ts b/clients/client-license-manager/commands/ListLicensesCommand.ts index b0ff972c911a0..d8a2417a9d15f 100644 --- a/clients/client-license-manager/commands/ListLicensesCommand.ts +++ b/clients/client-license-manager/commands/ListLicensesCommand.ts @@ -28,6 +28,7 @@ export class ListLicensesCommand extends $Command< ListLicensesCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLicensesCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListReceivedGrantsCommand.ts b/clients/client-license-manager/commands/ListReceivedGrantsCommand.ts index ccfe578def9f1..4a077a982c7bf 100644 --- a/clients/client-license-manager/commands/ListReceivedGrantsCommand.ts +++ b/clients/client-license-manager/commands/ListReceivedGrantsCommand.ts @@ -28,6 +28,7 @@ export class ListReceivedGrantsCommand extends $Command< ListReceivedGrantsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListReceivedGrantsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListReceivedLicensesCommand.ts b/clients/client-license-manager/commands/ListReceivedLicensesCommand.ts index 42c3a7b6d728c..aff211f2f6ebe 100644 --- a/clients/client-license-manager/commands/ListReceivedLicensesCommand.ts +++ b/clients/client-license-manager/commands/ListReceivedLicensesCommand.ts @@ -28,6 +28,7 @@ export class ListReceivedLicensesCommand extends $Command< ListReceivedLicensesCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListReceivedLicensesCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListResourceInventoryCommand.ts b/clients/client-license-manager/commands/ListResourceInventoryCommand.ts index 3987d3c54b984..bde349638e90e 100644 --- a/clients/client-license-manager/commands/ListResourceInventoryCommand.ts +++ b/clients/client-license-manager/commands/ListResourceInventoryCommand.ts @@ -28,6 +28,7 @@ export class ListResourceInventoryCommand extends $Command< ListResourceInventoryCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourceInventoryCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListTagsForResourceCommand.ts b/clients/client-license-manager/commands/ListTagsForResourceCommand.ts index 5f5600a01ff1f..8ff8aee183865 100644 --- a/clients/client-license-manager/commands/ListTagsForResourceCommand.ts +++ b/clients/client-license-manager/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListTokensCommand.ts b/clients/client-license-manager/commands/ListTokensCommand.ts index 82c02e3510df3..1fecd3160d804 100644 --- a/clients/client-license-manager/commands/ListTokensCommand.ts +++ b/clients/client-license-manager/commands/ListTokensCommand.ts @@ -28,6 +28,7 @@ export class ListTokensCommand extends $Command< ListTokensCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTokensCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/ListUsageForLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/ListUsageForLicenseConfigurationCommand.ts index 69133bbe0daeb..569076627de4e 100644 --- a/clients/client-license-manager/commands/ListUsageForLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/ListUsageForLicenseConfigurationCommand.ts @@ -30,6 +30,7 @@ export class ListUsageForLicenseConfigurationCommand extends $Command< ListUsageForLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListUsageForLicenseConfigurationCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/RejectGrantCommand.ts b/clients/client-license-manager/commands/RejectGrantCommand.ts index 50d1bf9cf375e..5df1d5d08087f 100644 --- a/clients/client-license-manager/commands/RejectGrantCommand.ts +++ b/clients/client-license-manager/commands/RejectGrantCommand.ts @@ -28,6 +28,7 @@ export class RejectGrantCommand extends $Command< RejectGrantCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RejectGrantCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/TagResourceCommand.ts b/clients/client-license-manager/commands/TagResourceCommand.ts index 14cab6e14a7aa..a836673a93990 100644 --- a/clients/client-license-manager/commands/TagResourceCommand.ts +++ b/clients/client-license-manager/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/UntagResourceCommand.ts b/clients/client-license-manager/commands/UntagResourceCommand.ts index 64fd98b7376d7..2aa56c3989e4b 100644 --- a/clients/client-license-manager/commands/UntagResourceCommand.ts +++ b/clients/client-license-manager/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/UpdateLicenseConfigurationCommand.ts b/clients/client-license-manager/commands/UpdateLicenseConfigurationCommand.ts index 89e28bce59af5..a051e2c10c87f 100644 --- a/clients/client-license-manager/commands/UpdateLicenseConfigurationCommand.ts +++ b/clients/client-license-manager/commands/UpdateLicenseConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateLicenseConfigurationCommand extends $Command< UpdateLicenseConfigurationCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateLicenseConfigurationCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/UpdateLicenseSpecificationsForResourceCommand.ts b/clients/client-license-manager/commands/UpdateLicenseSpecificationsForResourceCommand.ts index 039abe6beb000..6528e315a1b55 100644 --- a/clients/client-license-manager/commands/UpdateLicenseSpecificationsForResourceCommand.ts +++ b/clients/client-license-manager/commands/UpdateLicenseSpecificationsForResourceCommand.ts @@ -35,6 +35,7 @@ export class UpdateLicenseSpecificationsForResourceCommand extends $Command< UpdateLicenseSpecificationsForResourceCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateLicenseSpecificationsForResourceCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-license-manager/commands/UpdateServiceSettingsCommand.ts b/clients/client-license-manager/commands/UpdateServiceSettingsCommand.ts index ac35e1b60000b..a3430f0bdd55a 100644 --- a/clients/client-license-manager/commands/UpdateServiceSettingsCommand.ts +++ b/clients/client-license-manager/commands/UpdateServiceSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateServiceSettingsCommand extends $Command< UpdateServiceSettingsCommandOutput, LicenseManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateServiceSettingsCommand extends $Command< configuration: LicenseManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AllocateStaticIpCommand.ts b/clients/client-lightsail/commands/AllocateStaticIpCommand.ts index 77b81491c400f..f1ccee9137b08 100644 --- a/clients/client-lightsail/commands/AllocateStaticIpCommand.ts +++ b/clients/client-lightsail/commands/AllocateStaticIpCommand.ts @@ -28,6 +28,7 @@ export class AllocateStaticIpCommand extends $Command< AllocateStaticIpCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AllocateStaticIpCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts b/clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts index 025df70eb367d..f9b911d0b9b1f 100644 --- a/clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts +++ b/clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts @@ -39,6 +39,7 @@ export class AttachCertificateToDistributionCommand extends $Command< AttachCertificateToDistributionCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AttachCertificateToDistributionCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AttachDiskCommand.ts b/clients/client-lightsail/commands/AttachDiskCommand.ts index 35eb9328d6112..def21b0f71614 100644 --- a/clients/client-lightsail/commands/AttachDiskCommand.ts +++ b/clients/client-lightsail/commands/AttachDiskCommand.ts @@ -32,6 +32,7 @@ export class AttachDiskCommand extends $Command< AttachDiskCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AttachDiskCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AttachInstancesToLoadBalancerCommand.ts b/clients/client-lightsail/commands/AttachInstancesToLoadBalancerCommand.ts index 60ba714a41536..898be0cd17f9d 100644 --- a/clients/client-lightsail/commands/AttachInstancesToLoadBalancerCommand.ts +++ b/clients/client-lightsail/commands/AttachInstancesToLoadBalancerCommand.ts @@ -33,6 +33,7 @@ export class AttachInstancesToLoadBalancerCommand extends $Command< AttachInstancesToLoadBalancerCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AttachInstancesToLoadBalancerCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AttachLoadBalancerTlsCertificateCommand.ts b/clients/client-lightsail/commands/AttachLoadBalancerTlsCertificateCommand.ts index bc409ccf27256..0036999c9372a 100644 --- a/clients/client-lightsail/commands/AttachLoadBalancerTlsCertificateCommand.ts +++ b/clients/client-lightsail/commands/AttachLoadBalancerTlsCertificateCommand.ts @@ -36,6 +36,7 @@ export class AttachLoadBalancerTlsCertificateCommand extends $Command< AttachLoadBalancerTlsCertificateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AttachLoadBalancerTlsCertificateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/AttachStaticIpCommand.ts b/clients/client-lightsail/commands/AttachStaticIpCommand.ts index c8e03656f6ca7..4bc87d19f13f7 100644 --- a/clients/client-lightsail/commands/AttachStaticIpCommand.ts +++ b/clients/client-lightsail/commands/AttachStaticIpCommand.ts @@ -28,6 +28,7 @@ export class AttachStaticIpCommand extends $Command< AttachStaticIpCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AttachStaticIpCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CloseInstancePublicPortsCommand.ts b/clients/client-lightsail/commands/CloseInstancePublicPortsCommand.ts index e6ece1cb23fba..5b5422641521d 100644 --- a/clients/client-lightsail/commands/CloseInstancePublicPortsCommand.ts +++ b/clients/client-lightsail/commands/CloseInstancePublicPortsCommand.ts @@ -31,6 +31,7 @@ export class CloseInstancePublicPortsCommand extends $Command< CloseInstancePublicPortsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CloseInstancePublicPortsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CopySnapshotCommand.ts b/clients/client-lightsail/commands/CopySnapshotCommand.ts index a80b2dcf35385..7aa44883522bf 100644 --- a/clients/client-lightsail/commands/CopySnapshotCommand.ts +++ b/clients/client-lightsail/commands/CopySnapshotCommand.ts @@ -38,6 +38,7 @@ export class CopySnapshotCommand extends $Command< CopySnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CopySnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateCertificateCommand.ts b/clients/client-lightsail/commands/CreateCertificateCommand.ts index 7d341ebe97001..15b32d1e425d9 100644 --- a/clients/client-lightsail/commands/CreateCertificateCommand.ts +++ b/clients/client-lightsail/commands/CreateCertificateCommand.ts @@ -37,6 +37,7 @@ export class CreateCertificateCommand extends $Command< CreateCertificateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateCertificateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateCloudFormationStackCommand.ts b/clients/client-lightsail/commands/CreateCloudFormationStackCommand.ts index 1f6256226e352..4ebb640ecc5ef 100644 --- a/clients/client-lightsail/commands/CreateCloudFormationStackCommand.ts +++ b/clients/client-lightsail/commands/CreateCloudFormationStackCommand.ts @@ -35,6 +35,7 @@ export class CreateCloudFormationStackCommand extends $Command< CreateCloudFormationStackCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateCloudFormationStackCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateContactMethodCommand.ts b/clients/client-lightsail/commands/CreateContactMethodCommand.ts index 6ecfd6ff1760d..4e3cb0929378d 100644 --- a/clients/client-lightsail/commands/CreateContactMethodCommand.ts +++ b/clients/client-lightsail/commands/CreateContactMethodCommand.ts @@ -32,6 +32,7 @@ export class CreateContactMethodCommand extends $Command< CreateContactMethodCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateContactMethodCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateContainerServiceCommand.ts b/clients/client-lightsail/commands/CreateContainerServiceCommand.ts index d0bb5d4679174..84c27065c2c02 100644 --- a/clients/client-lightsail/commands/CreateContainerServiceCommand.ts +++ b/clients/client-lightsail/commands/CreateContainerServiceCommand.ts @@ -32,6 +32,7 @@ export class CreateContainerServiceCommand extends $Command< CreateContainerServiceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateContainerServiceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateContainerServiceDeploymentCommand.ts b/clients/client-lightsail/commands/CreateContainerServiceDeploymentCommand.ts index d8619e9efe18b..322c60c438955 100644 --- a/clients/client-lightsail/commands/CreateContainerServiceDeploymentCommand.ts +++ b/clients/client-lightsail/commands/CreateContainerServiceDeploymentCommand.ts @@ -38,6 +38,7 @@ export class CreateContainerServiceDeploymentCommand extends $Command< CreateContainerServiceDeploymentCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateContainerServiceDeploymentCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateContainerServiceRegistryLoginCommand.ts b/clients/client-lightsail/commands/CreateContainerServiceRegistryLoginCommand.ts index c849e136aa602..8ca096cb12acc 100644 --- a/clients/client-lightsail/commands/CreateContainerServiceRegistryLoginCommand.ts +++ b/clients/client-lightsail/commands/CreateContainerServiceRegistryLoginCommand.ts @@ -55,6 +55,7 @@ export class CreateContainerServiceRegistryLoginCommand extends $Command< CreateContainerServiceRegistryLoginCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateContainerServiceRegistryLoginCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDiskCommand.ts b/clients/client-lightsail/commands/CreateDiskCommand.ts index 0734a39230efc..40405ba39a551 100644 --- a/clients/client-lightsail/commands/CreateDiskCommand.ts +++ b/clients/client-lightsail/commands/CreateDiskCommand.ts @@ -31,6 +31,7 @@ export class CreateDiskCommand extends $Command< CreateDiskCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDiskCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDiskFromSnapshotCommand.ts b/clients/client-lightsail/commands/CreateDiskFromSnapshotCommand.ts index 49243fd399746..8b752cf098787 100644 --- a/clients/client-lightsail/commands/CreateDiskFromSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateDiskFromSnapshotCommand.ts @@ -33,6 +33,7 @@ export class CreateDiskFromSnapshotCommand extends $Command< CreateDiskFromSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateDiskFromSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDiskSnapshotCommand.ts b/clients/client-lightsail/commands/CreateDiskSnapshotCommand.ts index b4535e40af952..2b3dfa6550f8e 100644 --- a/clients/client-lightsail/commands/CreateDiskSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateDiskSnapshotCommand.ts @@ -47,6 +47,7 @@ export class CreateDiskSnapshotCommand extends $Command< CreateDiskSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateDiskSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDistributionCommand.ts b/clients/client-lightsail/commands/CreateDistributionCommand.ts index 848a98786da1b..8e42408bd422a 100644 --- a/clients/client-lightsail/commands/CreateDistributionCommand.ts +++ b/clients/client-lightsail/commands/CreateDistributionCommand.ts @@ -31,6 +31,7 @@ export class CreateDistributionCommand extends $Command< CreateDistributionCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDistributionCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDomainCommand.ts b/clients/client-lightsail/commands/CreateDomainCommand.ts index 7cba0a09ddaa2..ecb11266af284 100644 --- a/clients/client-lightsail/commands/CreateDomainCommand.ts +++ b/clients/client-lightsail/commands/CreateDomainCommand.ts @@ -30,6 +30,7 @@ export class CreateDomainCommand extends $Command< CreateDomainCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateDomainCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateDomainEntryCommand.ts b/clients/client-lightsail/commands/CreateDomainEntryCommand.ts index d476f9ff2ee8b..88a0c4ce2cebe 100644 --- a/clients/client-lightsail/commands/CreateDomainEntryCommand.ts +++ b/clients/client-lightsail/commands/CreateDomainEntryCommand.ts @@ -36,6 +36,7 @@ export class CreateDomainEntryCommand extends $Command< CreateDomainEntryCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateDomainEntryCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateInstanceSnapshotCommand.ts b/clients/client-lightsail/commands/CreateInstanceSnapshotCommand.ts index aff93582af5d5..58ec9d6551cc4 100644 --- a/clients/client-lightsail/commands/CreateInstanceSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateInstanceSnapshotCommand.ts @@ -31,6 +31,7 @@ export class CreateInstanceSnapshotCommand extends $Command< CreateInstanceSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateInstanceSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateInstancesCommand.ts b/clients/client-lightsail/commands/CreateInstancesCommand.ts index 2350d43de105f..27bfa7c42d5ba 100644 --- a/clients/client-lightsail/commands/CreateInstancesCommand.ts +++ b/clients/client-lightsail/commands/CreateInstancesCommand.ts @@ -30,6 +30,7 @@ export class CreateInstancesCommand extends $Command< CreateInstancesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateInstancesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateInstancesFromSnapshotCommand.ts b/clients/client-lightsail/commands/CreateInstancesFromSnapshotCommand.ts index 3cb70173ccebd..0e4c86a0ab274 100644 --- a/clients/client-lightsail/commands/CreateInstancesFromSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateInstancesFromSnapshotCommand.ts @@ -32,6 +32,7 @@ export class CreateInstancesFromSnapshotCommand extends $Command< CreateInstancesFromSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateInstancesFromSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateKeyPairCommand.ts b/clients/client-lightsail/commands/CreateKeyPairCommand.ts index fffa93e8c8ec4..ec1a5625b5675 100644 --- a/clients/client-lightsail/commands/CreateKeyPairCommand.ts +++ b/clients/client-lightsail/commands/CreateKeyPairCommand.ts @@ -30,6 +30,7 @@ export class CreateKeyPairCommand extends $Command< CreateKeyPairCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateKeyPairCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateLoadBalancerCommand.ts b/clients/client-lightsail/commands/CreateLoadBalancerCommand.ts index 378aff7d1f21b..8fb9f9e581f58 100644 --- a/clients/client-lightsail/commands/CreateLoadBalancerCommand.ts +++ b/clients/client-lightsail/commands/CreateLoadBalancerCommand.ts @@ -35,6 +35,7 @@ export class CreateLoadBalancerCommand extends $Command< CreateLoadBalancerCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateLoadBalancerCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateLoadBalancerTlsCertificateCommand.ts b/clients/client-lightsail/commands/CreateLoadBalancerTlsCertificateCommand.ts index 6355f398a2b41..3b9ab82461b5d 100644 --- a/clients/client-lightsail/commands/CreateLoadBalancerTlsCertificateCommand.ts +++ b/clients/client-lightsail/commands/CreateLoadBalancerTlsCertificateCommand.ts @@ -32,6 +32,7 @@ export class CreateLoadBalancerTlsCertificateCommand extends $Command< CreateLoadBalancerTlsCertificateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateLoadBalancerTlsCertificateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/CreateRelationalDatabaseCommand.ts index 63c4bff8b0e19..d12db4236b6c0 100644 --- a/clients/client-lightsail/commands/CreateRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/CreateRelationalDatabaseCommand.ts @@ -30,6 +30,7 @@ export class CreateRelationalDatabaseCommand extends $Command< CreateRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateRelationalDatabaseFromSnapshotCommand.ts b/clients/client-lightsail/commands/CreateRelationalDatabaseFromSnapshotCommand.ts index a41a3cc527630..a38a578986953 100644 --- a/clients/client-lightsail/commands/CreateRelationalDatabaseFromSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateRelationalDatabaseFromSnapshotCommand.ts @@ -38,6 +38,7 @@ export class CreateRelationalDatabaseFromSnapshotCommand extends $Command< CreateRelationalDatabaseFromSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateRelationalDatabaseFromSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/CreateRelationalDatabaseSnapshotCommand.ts b/clients/client-lightsail/commands/CreateRelationalDatabaseSnapshotCommand.ts index 2951030435249..8e3f6b78d971f 100644 --- a/clients/client-lightsail/commands/CreateRelationalDatabaseSnapshotCommand.ts +++ b/clients/client-lightsail/commands/CreateRelationalDatabaseSnapshotCommand.ts @@ -31,6 +31,7 @@ export class CreateRelationalDatabaseSnapshotCommand extends $Command< CreateRelationalDatabaseSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateRelationalDatabaseSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteAlarmCommand.ts b/clients/client-lightsail/commands/DeleteAlarmCommand.ts index 1e639d735a4bd..15cd62f6c9c9d 100644 --- a/clients/client-lightsail/commands/DeleteAlarmCommand.ts +++ b/clients/client-lightsail/commands/DeleteAlarmCommand.ts @@ -32,6 +32,7 @@ export class DeleteAlarmCommand extends $Command< DeleteAlarmCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAlarmCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteAutoSnapshotCommand.ts b/clients/client-lightsail/commands/DeleteAutoSnapshotCommand.ts index fab05607846f9..4583ac0284a54 100644 --- a/clients/client-lightsail/commands/DeleteAutoSnapshotCommand.ts +++ b/clients/client-lightsail/commands/DeleteAutoSnapshotCommand.ts @@ -28,6 +28,7 @@ export class DeleteAutoSnapshotCommand extends $Command< DeleteAutoSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAutoSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteCertificateCommand.ts b/clients/client-lightsail/commands/DeleteCertificateCommand.ts index 1a132b2ea927d..e2f3231fe2b53 100644 --- a/clients/client-lightsail/commands/DeleteCertificateCommand.ts +++ b/clients/client-lightsail/commands/DeleteCertificateCommand.ts @@ -32,6 +32,7 @@ export class DeleteCertificateCommand extends $Command< DeleteCertificateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCertificateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteContactMethodCommand.ts b/clients/client-lightsail/commands/DeleteContactMethodCommand.ts index 26ced4d1a5bc1..46da7e00b0d87 100644 --- a/clients/client-lightsail/commands/DeleteContactMethodCommand.ts +++ b/clients/client-lightsail/commands/DeleteContactMethodCommand.ts @@ -32,6 +32,7 @@ export class DeleteContactMethodCommand extends $Command< DeleteContactMethodCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteContactMethodCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteContainerImageCommand.ts b/clients/client-lightsail/commands/DeleteContainerImageCommand.ts index 2e161e34235fb..4273c038ec609 100644 --- a/clients/client-lightsail/commands/DeleteContainerImageCommand.ts +++ b/clients/client-lightsail/commands/DeleteContainerImageCommand.ts @@ -29,6 +29,7 @@ export class DeleteContainerImageCommand extends $Command< DeleteContainerImageCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteContainerImageCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteContainerServiceCommand.ts b/clients/client-lightsail/commands/DeleteContainerServiceCommand.ts index ec9bce64fad1b..f8682337882db 100644 --- a/clients/client-lightsail/commands/DeleteContainerServiceCommand.ts +++ b/clients/client-lightsail/commands/DeleteContainerServiceCommand.ts @@ -28,6 +28,7 @@ export class DeleteContainerServiceCommand extends $Command< DeleteContainerServiceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteContainerServiceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteDiskCommand.ts b/clients/client-lightsail/commands/DeleteDiskCommand.ts index e8b2383128341..a5b399ce8b4b8 100644 --- a/clients/client-lightsail/commands/DeleteDiskCommand.ts +++ b/clients/client-lightsail/commands/DeleteDiskCommand.ts @@ -35,6 +35,7 @@ export class DeleteDiskCommand extends $Command< DeleteDiskCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteDiskCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteDiskSnapshotCommand.ts b/clients/client-lightsail/commands/DeleteDiskSnapshotCommand.ts index 9c30bbabd6870..02f0416d1602d 100644 --- a/clients/client-lightsail/commands/DeleteDiskSnapshotCommand.ts +++ b/clients/client-lightsail/commands/DeleteDiskSnapshotCommand.ts @@ -36,6 +36,7 @@ export class DeleteDiskSnapshotCommand extends $Command< DeleteDiskSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteDiskSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteDistributionCommand.ts b/clients/client-lightsail/commands/DeleteDistributionCommand.ts index 6b07be245a0ed..4dc57e21c2c2b 100644 --- a/clients/client-lightsail/commands/DeleteDistributionCommand.ts +++ b/clients/client-lightsail/commands/DeleteDistributionCommand.ts @@ -28,6 +28,7 @@ export class DeleteDistributionCommand extends $Command< DeleteDistributionCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDistributionCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteDomainCommand.ts b/clients/client-lightsail/commands/DeleteDomainCommand.ts index f9d153b428683..42c70efaeadfd 100644 --- a/clients/client-lightsail/commands/DeleteDomainCommand.ts +++ b/clients/client-lightsail/commands/DeleteDomainCommand.ts @@ -31,6 +31,7 @@ export class DeleteDomainCommand extends $Command< DeleteDomainCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDomainCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteDomainEntryCommand.ts b/clients/client-lightsail/commands/DeleteDomainEntryCommand.ts index b31cfbff23fef..ef8f81af09097 100644 --- a/clients/client-lightsail/commands/DeleteDomainEntryCommand.ts +++ b/clients/client-lightsail/commands/DeleteDomainEntryCommand.ts @@ -31,6 +31,7 @@ export class DeleteDomainEntryCommand extends $Command< DeleteDomainEntryCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDomainEntryCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteInstanceCommand.ts b/clients/client-lightsail/commands/DeleteInstanceCommand.ts index bbe05d4a2527b..5e7c21f0024a8 100644 --- a/clients/client-lightsail/commands/DeleteInstanceCommand.ts +++ b/clients/client-lightsail/commands/DeleteInstanceCommand.ts @@ -31,6 +31,7 @@ export class DeleteInstanceCommand extends $Command< DeleteInstanceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteInstanceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteInstanceSnapshotCommand.ts b/clients/client-lightsail/commands/DeleteInstanceSnapshotCommand.ts index fe61ccddfdb10..ab954e4a8e901 100644 --- a/clients/client-lightsail/commands/DeleteInstanceSnapshotCommand.ts +++ b/clients/client-lightsail/commands/DeleteInstanceSnapshotCommand.ts @@ -32,6 +32,7 @@ export class DeleteInstanceSnapshotCommand extends $Command< DeleteInstanceSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteInstanceSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteKeyPairCommand.ts b/clients/client-lightsail/commands/DeleteKeyPairCommand.ts index 9d2aa00e96759..c1de9ea504e7f 100644 --- a/clients/client-lightsail/commands/DeleteKeyPairCommand.ts +++ b/clients/client-lightsail/commands/DeleteKeyPairCommand.ts @@ -31,6 +31,7 @@ export class DeleteKeyPairCommand extends $Command< DeleteKeyPairCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteKeyPairCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteKnownHostKeysCommand.ts b/clients/client-lightsail/commands/DeleteKnownHostKeysCommand.ts index 1c8df6de9e05d..fe94ee0af7f51 100644 --- a/clients/client-lightsail/commands/DeleteKnownHostKeysCommand.ts +++ b/clients/client-lightsail/commands/DeleteKnownHostKeysCommand.ts @@ -36,6 +36,7 @@ export class DeleteKnownHostKeysCommand extends $Command< DeleteKnownHostKeysCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteKnownHostKeysCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteLoadBalancerCommand.ts b/clients/client-lightsail/commands/DeleteLoadBalancerCommand.ts index 08e4d4cd973ec..85f9da6e27c30 100644 --- a/clients/client-lightsail/commands/DeleteLoadBalancerCommand.ts +++ b/clients/client-lightsail/commands/DeleteLoadBalancerCommand.ts @@ -33,6 +33,7 @@ export class DeleteLoadBalancerCommand extends $Command< DeleteLoadBalancerCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteLoadBalancerCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteLoadBalancerTlsCertificateCommand.ts b/clients/client-lightsail/commands/DeleteLoadBalancerTlsCertificateCommand.ts index 1929891a40e46..e1256ffa94808 100644 --- a/clients/client-lightsail/commands/DeleteLoadBalancerTlsCertificateCommand.ts +++ b/clients/client-lightsail/commands/DeleteLoadBalancerTlsCertificateCommand.ts @@ -31,6 +31,7 @@ export class DeleteLoadBalancerTlsCertificateCommand extends $Command< DeleteLoadBalancerTlsCertificateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteLoadBalancerTlsCertificateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/DeleteRelationalDatabaseCommand.ts index add2697c9277b..36ed49ccf4caa 100644 --- a/clients/client-lightsail/commands/DeleteRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/DeleteRelationalDatabaseCommand.ts @@ -31,6 +31,7 @@ export class DeleteRelationalDatabaseCommand extends $Command< DeleteRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DeleteRelationalDatabaseSnapshotCommand.ts b/clients/client-lightsail/commands/DeleteRelationalDatabaseSnapshotCommand.ts index 2fe46145c21f1..dc81802b74218 100644 --- a/clients/client-lightsail/commands/DeleteRelationalDatabaseSnapshotCommand.ts +++ b/clients/client-lightsail/commands/DeleteRelationalDatabaseSnapshotCommand.ts @@ -31,6 +31,7 @@ export class DeleteRelationalDatabaseSnapshotCommand extends $Command< DeleteRelationalDatabaseSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteRelationalDatabaseSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DetachCertificateFromDistributionCommand.ts b/clients/client-lightsail/commands/DetachCertificateFromDistributionCommand.ts index cddbf5245b708..5d90d370f3f66 100644 --- a/clients/client-lightsail/commands/DetachCertificateFromDistributionCommand.ts +++ b/clients/client-lightsail/commands/DetachCertificateFromDistributionCommand.ts @@ -31,6 +31,7 @@ export class DetachCertificateFromDistributionCommand extends $Command< DetachCertificateFromDistributionCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DetachCertificateFromDistributionCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DetachDiskCommand.ts b/clients/client-lightsail/commands/DetachDiskCommand.ts index 297ccdef91b5d..a4b5eebbc05ed 100644 --- a/clients/client-lightsail/commands/DetachDiskCommand.ts +++ b/clients/client-lightsail/commands/DetachDiskCommand.ts @@ -33,6 +33,7 @@ export class DetachDiskCommand extends $Command< DetachDiskCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DetachDiskCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DetachInstancesFromLoadBalancerCommand.ts b/clients/client-lightsail/commands/DetachInstancesFromLoadBalancerCommand.ts index e9113076fd98b..24faf947ff8a3 100644 --- a/clients/client-lightsail/commands/DetachInstancesFromLoadBalancerCommand.ts +++ b/clients/client-lightsail/commands/DetachInstancesFromLoadBalancerCommand.ts @@ -33,6 +33,7 @@ export class DetachInstancesFromLoadBalancerCommand extends $Command< DetachInstancesFromLoadBalancerCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DetachInstancesFromLoadBalancerCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DetachStaticIpCommand.ts b/clients/client-lightsail/commands/DetachStaticIpCommand.ts index a425564040bf2..fbabaac2084a1 100644 --- a/clients/client-lightsail/commands/DetachStaticIpCommand.ts +++ b/clients/client-lightsail/commands/DetachStaticIpCommand.ts @@ -28,6 +28,7 @@ export class DetachStaticIpCommand extends $Command< DetachStaticIpCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DetachStaticIpCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DisableAddOnCommand.ts b/clients/client-lightsail/commands/DisableAddOnCommand.ts index f9ac17fc9b4d2..254c00f36d13e 100644 --- a/clients/client-lightsail/commands/DisableAddOnCommand.ts +++ b/clients/client-lightsail/commands/DisableAddOnCommand.ts @@ -28,6 +28,7 @@ export class DisableAddOnCommand extends $Command< DisableAddOnCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableAddOnCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/DownloadDefaultKeyPairCommand.ts b/clients/client-lightsail/commands/DownloadDefaultKeyPairCommand.ts index b41f22e200df1..41a75c47947ef 100644 --- a/clients/client-lightsail/commands/DownloadDefaultKeyPairCommand.ts +++ b/clients/client-lightsail/commands/DownloadDefaultKeyPairCommand.ts @@ -28,6 +28,7 @@ export class DownloadDefaultKeyPairCommand extends $Command< DownloadDefaultKeyPairCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DownloadDefaultKeyPairCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/EnableAddOnCommand.ts b/clients/client-lightsail/commands/EnableAddOnCommand.ts index 9570597c3e9b9..d9c9e4c228a1c 100644 --- a/clients/client-lightsail/commands/EnableAddOnCommand.ts +++ b/clients/client-lightsail/commands/EnableAddOnCommand.ts @@ -29,6 +29,7 @@ export class EnableAddOnCommand extends $Command< EnableAddOnCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableAddOnCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/ExportSnapshotCommand.ts b/clients/client-lightsail/commands/ExportSnapshotCommand.ts index f4629aca41127..920b832c09569 100644 --- a/clients/client-lightsail/commands/ExportSnapshotCommand.ts +++ b/clients/client-lightsail/commands/ExportSnapshotCommand.ts @@ -42,6 +42,7 @@ export class ExportSnapshotCommand extends $Command< ExportSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ExportSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetActiveNamesCommand.ts b/clients/client-lightsail/commands/GetActiveNamesCommand.ts index f09c1ab3e7d2d..e8547871c28db 100644 --- a/clients/client-lightsail/commands/GetActiveNamesCommand.ts +++ b/clients/client-lightsail/commands/GetActiveNamesCommand.ts @@ -28,6 +28,7 @@ export class GetActiveNamesCommand extends $Command< GetActiveNamesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetActiveNamesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetAlarmsCommand.ts b/clients/client-lightsail/commands/GetAlarmsCommand.ts index c956df64c6f3c..662d36233ad6a 100644 --- a/clients/client-lightsail/commands/GetAlarmsCommand.ts +++ b/clients/client-lightsail/commands/GetAlarmsCommand.ts @@ -31,6 +31,7 @@ export class GetAlarmsCommand extends $Command< GetAlarmsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetAlarmsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetAutoSnapshotsCommand.ts b/clients/client-lightsail/commands/GetAutoSnapshotsCommand.ts index c87e12edec905..77f6b23c3abe4 100644 --- a/clients/client-lightsail/commands/GetAutoSnapshotsCommand.ts +++ b/clients/client-lightsail/commands/GetAutoSnapshotsCommand.ts @@ -29,6 +29,7 @@ export class GetAutoSnapshotsCommand extends $Command< GetAutoSnapshotsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAutoSnapshotsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetBlueprintsCommand.ts b/clients/client-lightsail/commands/GetBlueprintsCommand.ts index 6fbbab5c4b4ea..777f86a835eb3 100644 --- a/clients/client-lightsail/commands/GetBlueprintsCommand.ts +++ b/clients/client-lightsail/commands/GetBlueprintsCommand.ts @@ -37,6 +37,7 @@ export class GetBlueprintsCommand extends $Command< GetBlueprintsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetBlueprintsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetBundlesCommand.ts b/clients/client-lightsail/commands/GetBundlesCommand.ts index ee9c20d5ebd3b..5d4a21d36a7fc 100644 --- a/clients/client-lightsail/commands/GetBundlesCommand.ts +++ b/clients/client-lightsail/commands/GetBundlesCommand.ts @@ -29,6 +29,7 @@ export class GetBundlesCommand extends $Command< GetBundlesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetBundlesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetCertificatesCommand.ts b/clients/client-lightsail/commands/GetCertificatesCommand.ts index 96b6434898f85..559be32266704 100644 --- a/clients/client-lightsail/commands/GetCertificatesCommand.ts +++ b/clients/client-lightsail/commands/GetCertificatesCommand.ts @@ -33,6 +33,7 @@ export class GetCertificatesCommand extends $Command< GetCertificatesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetCertificatesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetCloudFormationStackRecordsCommand.ts b/clients/client-lightsail/commands/GetCloudFormationStackRecordsCommand.ts index 28df75e10123d..9b4a6e45a995a 100644 --- a/clients/client-lightsail/commands/GetCloudFormationStackRecordsCommand.ts +++ b/clients/client-lightsail/commands/GetCloudFormationStackRecordsCommand.ts @@ -31,6 +31,7 @@ export class GetCloudFormationStackRecordsCommand extends $Command< GetCloudFormationStackRecordsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetCloudFormationStackRecordsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContactMethodsCommand.ts b/clients/client-lightsail/commands/GetContactMethodsCommand.ts index f267be5b98961..727e6df1ea0af 100644 --- a/clients/client-lightsail/commands/GetContactMethodsCommand.ts +++ b/clients/client-lightsail/commands/GetContactMethodsCommand.ts @@ -33,6 +33,7 @@ export class GetContactMethodsCommand extends $Command< GetContactMethodsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetContactMethodsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerAPIMetadataCommand.ts b/clients/client-lightsail/commands/GetContainerAPIMetadataCommand.ts index 09055f5d7f3bb..62ca1f27ca4c8 100644 --- a/clients/client-lightsail/commands/GetContainerAPIMetadataCommand.ts +++ b/clients/client-lightsail/commands/GetContainerAPIMetadataCommand.ts @@ -29,6 +29,7 @@ export class GetContainerAPIMetadataCommand extends $Command< GetContainerAPIMetadataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetContainerAPIMetadataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerImagesCommand.ts b/clients/client-lightsail/commands/GetContainerImagesCommand.ts index 88e4d4c1be58f..71e3224f468dc 100644 --- a/clients/client-lightsail/commands/GetContainerImagesCommand.ts +++ b/clients/client-lightsail/commands/GetContainerImagesCommand.ts @@ -35,6 +35,7 @@ export class GetContainerImagesCommand extends $Command< GetContainerImagesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetContainerImagesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerLogCommand.ts b/clients/client-lightsail/commands/GetContainerLogCommand.ts index 7e1741865ab4a..e4a0e00ad88f4 100644 --- a/clients/client-lightsail/commands/GetContainerLogCommand.ts +++ b/clients/client-lightsail/commands/GetContainerLogCommand.ts @@ -38,6 +38,7 @@ export class GetContainerLogCommand extends $Command< GetContainerLogCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetContainerLogCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerServiceDeploymentsCommand.ts b/clients/client-lightsail/commands/GetContainerServiceDeploymentsCommand.ts index 8cc0ff1c278db..3c2a8056d8f75 100644 --- a/clients/client-lightsail/commands/GetContainerServiceDeploymentsCommand.ts +++ b/clients/client-lightsail/commands/GetContainerServiceDeploymentsCommand.ts @@ -40,6 +40,7 @@ export class GetContainerServiceDeploymentsCommand extends $Command< GetContainerServiceDeploymentsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetContainerServiceDeploymentsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerServiceMetricDataCommand.ts b/clients/client-lightsail/commands/GetContainerServiceMetricDataCommand.ts index 7b299c2ff8034..7d03e51344df7 100644 --- a/clients/client-lightsail/commands/GetContainerServiceMetricDataCommand.ts +++ b/clients/client-lightsail/commands/GetContainerServiceMetricDataCommand.ts @@ -32,6 +32,7 @@ export class GetContainerServiceMetricDataCommand extends $Command< GetContainerServiceMetricDataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetContainerServiceMetricDataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerServicePowersCommand.ts b/clients/client-lightsail/commands/GetContainerServicePowersCommand.ts index 17d0a039be0c4..4e3ba82d4ae28 100644 --- a/clients/client-lightsail/commands/GetContainerServicePowersCommand.ts +++ b/clients/client-lightsail/commands/GetContainerServicePowersCommand.ts @@ -32,6 +32,7 @@ export class GetContainerServicePowersCommand extends $Command< GetContainerServicePowersCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetContainerServicePowersCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetContainerServicesCommand.ts b/clients/client-lightsail/commands/GetContainerServicesCommand.ts index 19e4a739fc3ee..a8c940abd3e88 100644 --- a/clients/client-lightsail/commands/GetContainerServicesCommand.ts +++ b/clients/client-lightsail/commands/GetContainerServicesCommand.ts @@ -28,6 +28,7 @@ export class GetContainerServicesCommand extends $Command< GetContainerServicesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetContainerServicesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDiskCommand.ts b/clients/client-lightsail/commands/GetDiskCommand.ts index 657bacbd5572e..0cd3926c67f1b 100644 --- a/clients/client-lightsail/commands/GetDiskCommand.ts +++ b/clients/client-lightsail/commands/GetDiskCommand.ts @@ -21,6 +21,7 @@ export type GetDiskCommandOutput = GetDiskResult & __MetadataBearer; *

Returns information about a specific block storage disk.

*/ export class GetDiskCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class GetDiskCommand 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-lightsail/commands/GetDiskSnapshotCommand.ts b/clients/client-lightsail/commands/GetDiskSnapshotCommand.ts index 6a7ae24cbc9be..33aeb39fe6b8b 100644 --- a/clients/client-lightsail/commands/GetDiskSnapshotCommand.ts +++ b/clients/client-lightsail/commands/GetDiskSnapshotCommand.ts @@ -28,6 +28,7 @@ export class GetDiskSnapshotCommand extends $Command< GetDiskSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDiskSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDiskSnapshotsCommand.ts b/clients/client-lightsail/commands/GetDiskSnapshotsCommand.ts index 6f30bb21ec4b7..9e8a910be9999 100644 --- a/clients/client-lightsail/commands/GetDiskSnapshotsCommand.ts +++ b/clients/client-lightsail/commands/GetDiskSnapshotsCommand.ts @@ -29,6 +29,7 @@ export class GetDiskSnapshotsCommand extends $Command< GetDiskSnapshotsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDiskSnapshotsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDisksCommand.ts b/clients/client-lightsail/commands/GetDisksCommand.ts index 6a3fc5ba88637..4b10eee760aa5 100644 --- a/clients/client-lightsail/commands/GetDisksCommand.ts +++ b/clients/client-lightsail/commands/GetDisksCommand.ts @@ -25,6 +25,7 @@ export class GetDisksCommand extends $Command< GetDisksCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetDisksCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDistributionBundlesCommand.ts b/clients/client-lightsail/commands/GetDistributionBundlesCommand.ts index f5ff7d0602cf0..1e3de882af4d5 100644 --- a/clients/client-lightsail/commands/GetDistributionBundlesCommand.ts +++ b/clients/client-lightsail/commands/GetDistributionBundlesCommand.ts @@ -31,6 +31,7 @@ export class GetDistributionBundlesCommand extends $Command< GetDistributionBundlesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetDistributionBundlesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDistributionLatestCacheResetCommand.ts b/clients/client-lightsail/commands/GetDistributionLatestCacheResetCommand.ts index 38cf6e1b21a48..bb19600ca301d 100644 --- a/clients/client-lightsail/commands/GetDistributionLatestCacheResetCommand.ts +++ b/clients/client-lightsail/commands/GetDistributionLatestCacheResetCommand.ts @@ -29,6 +29,7 @@ export class GetDistributionLatestCacheResetCommand extends $Command< GetDistributionLatestCacheResetCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDistributionLatestCacheResetCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDistributionMetricDataCommand.ts b/clients/client-lightsail/commands/GetDistributionMetricDataCommand.ts index 8fb6ca45ea6be..f68abecc51bc3 100644 --- a/clients/client-lightsail/commands/GetDistributionMetricDataCommand.ts +++ b/clients/client-lightsail/commands/GetDistributionMetricDataCommand.ts @@ -32,6 +32,7 @@ export class GetDistributionMetricDataCommand extends $Command< GetDistributionMetricDataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetDistributionMetricDataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDistributionsCommand.ts b/clients/client-lightsail/commands/GetDistributionsCommand.ts index 71d0aae316f4f..e3907932d4fb3 100644 --- a/clients/client-lightsail/commands/GetDistributionsCommand.ts +++ b/clients/client-lightsail/commands/GetDistributionsCommand.ts @@ -29,6 +29,7 @@ export class GetDistributionsCommand extends $Command< GetDistributionsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDistributionsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDomainCommand.ts b/clients/client-lightsail/commands/GetDomainCommand.ts index 75cfa30d32f88..e567185ac5c40 100644 --- a/clients/client-lightsail/commands/GetDomainCommand.ts +++ b/clients/client-lightsail/commands/GetDomainCommand.ts @@ -25,6 +25,7 @@ export class GetDomainCommand extends $Command< GetDomainCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class GetDomainCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetDomainsCommand.ts b/clients/client-lightsail/commands/GetDomainsCommand.ts index 52c01d33a7020..03b47392a2085 100644 --- a/clients/client-lightsail/commands/GetDomainsCommand.ts +++ b/clients/client-lightsail/commands/GetDomainsCommand.ts @@ -28,6 +28,7 @@ export class GetDomainsCommand extends $Command< GetDomainsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDomainsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetExportSnapshotRecordsCommand.ts b/clients/client-lightsail/commands/GetExportSnapshotRecordsCommand.ts index 71268e9878cc2..81bdf4de08195 100644 --- a/clients/client-lightsail/commands/GetExportSnapshotRecordsCommand.ts +++ b/clients/client-lightsail/commands/GetExportSnapshotRecordsCommand.ts @@ -31,6 +31,7 @@ export class GetExportSnapshotRecordsCommand extends $Command< GetExportSnapshotRecordsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetExportSnapshotRecordsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceAccessDetailsCommand.ts b/clients/client-lightsail/commands/GetInstanceAccessDetailsCommand.ts index 22923df27d330..9e8c8f2378017 100644 --- a/clients/client-lightsail/commands/GetInstanceAccessDetailsCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceAccessDetailsCommand.ts @@ -32,6 +32,7 @@ export class GetInstanceAccessDetailsCommand extends $Command< GetInstanceAccessDetailsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetInstanceAccessDetailsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceCommand.ts b/clients/client-lightsail/commands/GetInstanceCommand.ts index 4814b0bf37f7f..40d77d8e5e749 100644 --- a/clients/client-lightsail/commands/GetInstanceCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceCommand.ts @@ -29,6 +29,7 @@ export class GetInstanceCommand extends $Command< GetInstanceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInstanceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceMetricDataCommand.ts b/clients/client-lightsail/commands/GetInstanceMetricDataCommand.ts index 17c61b5d9cd4d..81f07ac80e6e8 100644 --- a/clients/client-lightsail/commands/GetInstanceMetricDataCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceMetricDataCommand.ts @@ -32,6 +32,7 @@ export class GetInstanceMetricDataCommand extends $Command< GetInstanceMetricDataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetInstanceMetricDataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstancePortStatesCommand.ts b/clients/client-lightsail/commands/GetInstancePortStatesCommand.ts index 30fa435404f16..da8f829a3aaff 100644 --- a/clients/client-lightsail/commands/GetInstancePortStatesCommand.ts +++ b/clients/client-lightsail/commands/GetInstancePortStatesCommand.ts @@ -29,6 +29,7 @@ export class GetInstancePortStatesCommand extends $Command< GetInstancePortStatesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInstancePortStatesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceSnapshotCommand.ts b/clients/client-lightsail/commands/GetInstanceSnapshotCommand.ts index 330bf90eeb812..d236b84e15951 100644 --- a/clients/client-lightsail/commands/GetInstanceSnapshotCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceSnapshotCommand.ts @@ -28,6 +28,7 @@ export class GetInstanceSnapshotCommand extends $Command< GetInstanceSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInstanceSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceSnapshotsCommand.ts b/clients/client-lightsail/commands/GetInstanceSnapshotsCommand.ts index ecb1cc74247ee..b187af9530ada 100644 --- a/clients/client-lightsail/commands/GetInstanceSnapshotsCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class GetInstanceSnapshotsCommand extends $Command< GetInstanceSnapshotsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInstanceSnapshotsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstanceStateCommand.ts b/clients/client-lightsail/commands/GetInstanceStateCommand.ts index a507a45b3ac49..ebf8805aa2fb3 100644 --- a/clients/client-lightsail/commands/GetInstanceStateCommand.ts +++ b/clients/client-lightsail/commands/GetInstanceStateCommand.ts @@ -28,6 +28,7 @@ export class GetInstanceStateCommand extends $Command< GetInstanceStateCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInstanceStateCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetInstancesCommand.ts b/clients/client-lightsail/commands/GetInstancesCommand.ts index c3bc0eaf53659..e141b5739f1be 100644 --- a/clients/client-lightsail/commands/GetInstancesCommand.ts +++ b/clients/client-lightsail/commands/GetInstancesCommand.ts @@ -29,6 +29,7 @@ export class GetInstancesCommand extends $Command< GetInstancesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInstancesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetKeyPairCommand.ts b/clients/client-lightsail/commands/GetKeyPairCommand.ts index 4411616a2e0f7..28a27eb20b5a6 100644 --- a/clients/client-lightsail/commands/GetKeyPairCommand.ts +++ b/clients/client-lightsail/commands/GetKeyPairCommand.ts @@ -28,6 +28,7 @@ export class GetKeyPairCommand extends $Command< GetKeyPairCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetKeyPairCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetKeyPairsCommand.ts b/clients/client-lightsail/commands/GetKeyPairsCommand.ts index 20e45a1b57769..b1a8a084260c1 100644 --- a/clients/client-lightsail/commands/GetKeyPairsCommand.ts +++ b/clients/client-lightsail/commands/GetKeyPairsCommand.ts @@ -29,6 +29,7 @@ export class GetKeyPairsCommand extends $Command< GetKeyPairsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetKeyPairsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetLoadBalancerCommand.ts b/clients/client-lightsail/commands/GetLoadBalancerCommand.ts index bbdc27958f363..103c5fc454e8d 100644 --- a/clients/client-lightsail/commands/GetLoadBalancerCommand.ts +++ b/clients/client-lightsail/commands/GetLoadBalancerCommand.ts @@ -28,6 +28,7 @@ export class GetLoadBalancerCommand extends $Command< GetLoadBalancerCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLoadBalancerCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetLoadBalancerMetricDataCommand.ts b/clients/client-lightsail/commands/GetLoadBalancerMetricDataCommand.ts index 28b4e005a9af0..ce9c971cc6030 100644 --- a/clients/client-lightsail/commands/GetLoadBalancerMetricDataCommand.ts +++ b/clients/client-lightsail/commands/GetLoadBalancerMetricDataCommand.ts @@ -31,6 +31,7 @@ export class GetLoadBalancerMetricDataCommand extends $Command< GetLoadBalancerMetricDataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetLoadBalancerMetricDataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetLoadBalancerTlsCertificatesCommand.ts b/clients/client-lightsail/commands/GetLoadBalancerTlsCertificatesCommand.ts index 10d61bf5b99d1..7f2bf38e978a3 100644 --- a/clients/client-lightsail/commands/GetLoadBalancerTlsCertificatesCommand.ts +++ b/clients/client-lightsail/commands/GetLoadBalancerTlsCertificatesCommand.ts @@ -32,6 +32,7 @@ export class GetLoadBalancerTlsCertificatesCommand extends $Command< GetLoadBalancerTlsCertificatesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetLoadBalancerTlsCertificatesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetLoadBalancersCommand.ts b/clients/client-lightsail/commands/GetLoadBalancersCommand.ts index e5129998ea4a4..f8e2af85a26de 100644 --- a/clients/client-lightsail/commands/GetLoadBalancersCommand.ts +++ b/clients/client-lightsail/commands/GetLoadBalancersCommand.ts @@ -28,6 +28,7 @@ export class GetLoadBalancersCommand extends $Command< GetLoadBalancersCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLoadBalancersCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetOperationCommand.ts b/clients/client-lightsail/commands/GetOperationCommand.ts index b970ae51c6c46..adf2587cca7e8 100644 --- a/clients/client-lightsail/commands/GetOperationCommand.ts +++ b/clients/client-lightsail/commands/GetOperationCommand.ts @@ -29,6 +29,7 @@ export class GetOperationCommand extends $Command< GetOperationCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetOperationCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetOperationsCommand.ts b/clients/client-lightsail/commands/GetOperationsCommand.ts index 0f0a01c4be6d4..8ec3076cba64f 100644 --- a/clients/client-lightsail/commands/GetOperationsCommand.ts +++ b/clients/client-lightsail/commands/GetOperationsCommand.ts @@ -31,6 +31,7 @@ export class GetOperationsCommand extends $Command< GetOperationsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetOperationsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetOperationsForResourceCommand.ts b/clients/client-lightsail/commands/GetOperationsForResourceCommand.ts index 15855df52b15c..9744b2e79e15e 100644 --- a/clients/client-lightsail/commands/GetOperationsForResourceCommand.ts +++ b/clients/client-lightsail/commands/GetOperationsForResourceCommand.ts @@ -28,6 +28,7 @@ export class GetOperationsForResourceCommand extends $Command< GetOperationsForResourceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOperationsForResourceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRegionsCommand.ts b/clients/client-lightsail/commands/GetRegionsCommand.ts index e046a434e8608..ae5a925fe9896 100644 --- a/clients/client-lightsail/commands/GetRegionsCommand.ts +++ b/clients/client-lightsail/commands/GetRegionsCommand.ts @@ -30,6 +30,7 @@ export class GetRegionsCommand extends $Command< GetRegionsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetRegionsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseBlueprintsCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseBlueprintsCommand.ts index b6420fc0e1cb3..96087d39dca69 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseBlueprintsCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseBlueprintsCommand.ts @@ -31,6 +31,7 @@ export class GetRelationalDatabaseBlueprintsCommand extends $Command< GetRelationalDatabaseBlueprintsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRelationalDatabaseBlueprintsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseBundlesCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseBundlesCommand.ts index 5bf25b780f7dd..f99fa307c80d8 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseBundlesCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseBundlesCommand.ts @@ -31,6 +31,7 @@ export class GetRelationalDatabaseBundlesCommand extends $Command< GetRelationalDatabaseBundlesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRelationalDatabaseBundlesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseCommand.ts index 94554a75bea91..035f0132dc426 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseCommand extends $Command< GetRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseEventsCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseEventsCommand.ts index 37a591dea8bdb..c082208b15d39 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseEventsCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseEventsCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseEventsCommand extends $Command< GetRelationalDatabaseEventsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseEventsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseLogEventsCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseLogEventsCommand.ts index 19ee4a225eaa2..b8bb4174dbffa 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseLogEventsCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseLogEventsCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseLogEventsCommand extends $Command< GetRelationalDatabaseLogEventsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseLogEventsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseLogStreamsCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseLogStreamsCommand.ts index 6157dd6f6e755..3923ffc2903ec 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseLogStreamsCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseLogStreamsCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseLogStreamsCommand extends $Command< GetRelationalDatabaseLogStreamsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseLogStreamsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseMasterUserPasswordCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseMasterUserPasswordCommand.ts index 1e3463c6ab4a7..5686edd5f79bd 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseMasterUserPasswordCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseMasterUserPasswordCommand.ts @@ -36,6 +36,7 @@ export class GetRelationalDatabaseMasterUserPasswordCommand extends $Command< GetRelationalDatabaseMasterUserPasswordCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetRelationalDatabaseMasterUserPasswordCommand extends $Command< GetRelationalDatabaseMasterUserPasswordCommandInput, GetRelationalDatabaseMasterUserPasswordCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseMetricDataCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseMetricDataCommand.ts index 1b7cb3d2615ef..46cbdfcc602a0 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseMetricDataCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseMetricDataCommand.ts @@ -31,6 +31,7 @@ export class GetRelationalDatabaseMetricDataCommand extends $Command< GetRelationalDatabaseMetricDataCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRelationalDatabaseMetricDataCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseParametersCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseParametersCommand.ts index 63325ed8e7f85..304680cfdb637 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseParametersCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseParametersCommand.ts @@ -32,6 +32,7 @@ export class GetRelationalDatabaseParametersCommand extends $Command< GetRelationalDatabaseParametersCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetRelationalDatabaseParametersCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotCommand.ts index 3cd6f0e7b5848..dc3faa0e2bc5b 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseSnapshotCommand extends $Command< GetRelationalDatabaseSnapshotCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseSnapshotCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotsCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotsCommand.ts index ad3083f9f556e..d736fbcbb661e 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotsCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabaseSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabaseSnapshotsCommand extends $Command< GetRelationalDatabaseSnapshotsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabaseSnapshotsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetRelationalDatabasesCommand.ts b/clients/client-lightsail/commands/GetRelationalDatabasesCommand.ts index c56e5a08086e4..42998c2f1004e 100644 --- a/clients/client-lightsail/commands/GetRelationalDatabasesCommand.ts +++ b/clients/client-lightsail/commands/GetRelationalDatabasesCommand.ts @@ -28,6 +28,7 @@ export class GetRelationalDatabasesCommand extends $Command< GetRelationalDatabasesCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRelationalDatabasesCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetStaticIpCommand.ts b/clients/client-lightsail/commands/GetStaticIpCommand.ts index 18b5dc8aa7608..40abe7da68510 100644 --- a/clients/client-lightsail/commands/GetStaticIpCommand.ts +++ b/clients/client-lightsail/commands/GetStaticIpCommand.ts @@ -28,6 +28,7 @@ export class GetStaticIpCommand extends $Command< GetStaticIpCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStaticIpCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/GetStaticIpsCommand.ts b/clients/client-lightsail/commands/GetStaticIpsCommand.ts index 0fab5473793be..3644648d25445 100644 --- a/clients/client-lightsail/commands/GetStaticIpsCommand.ts +++ b/clients/client-lightsail/commands/GetStaticIpsCommand.ts @@ -28,6 +28,7 @@ export class GetStaticIpsCommand extends $Command< GetStaticIpsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetStaticIpsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/ImportKeyPairCommand.ts b/clients/client-lightsail/commands/ImportKeyPairCommand.ts index 37c742d429fa1..8dee3d2286db3 100644 --- a/clients/client-lightsail/commands/ImportKeyPairCommand.ts +++ b/clients/client-lightsail/commands/ImportKeyPairCommand.ts @@ -28,6 +28,7 @@ export class ImportKeyPairCommand extends $Command< ImportKeyPairCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportKeyPairCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/IsVpcPeeredCommand.ts b/clients/client-lightsail/commands/IsVpcPeeredCommand.ts index 59805d55bbe49..1b909945cc792 100644 --- a/clients/client-lightsail/commands/IsVpcPeeredCommand.ts +++ b/clients/client-lightsail/commands/IsVpcPeeredCommand.ts @@ -28,6 +28,7 @@ export class IsVpcPeeredCommand extends $Command< IsVpcPeeredCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class IsVpcPeeredCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/OpenInstancePublicPortsCommand.ts b/clients/client-lightsail/commands/OpenInstancePublicPortsCommand.ts index 8de8bb77951be..dad443e5cbe6e 100644 --- a/clients/client-lightsail/commands/OpenInstancePublicPortsCommand.ts +++ b/clients/client-lightsail/commands/OpenInstancePublicPortsCommand.ts @@ -32,6 +32,7 @@ export class OpenInstancePublicPortsCommand extends $Command< OpenInstancePublicPortsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class OpenInstancePublicPortsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/PeerVpcCommand.ts b/clients/client-lightsail/commands/PeerVpcCommand.ts index 7de7f556f8267..2b27c541786e7 100644 --- a/clients/client-lightsail/commands/PeerVpcCommand.ts +++ b/clients/client-lightsail/commands/PeerVpcCommand.ts @@ -21,6 +21,7 @@ export type PeerVpcCommandOutput = PeerVpcResult & __MetadataBearer; *

Tries to peer the Lightsail VPC with the user's default VPC.

*/ export class PeerVpcCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class PeerVpcCommand 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-lightsail/commands/PutAlarmCommand.ts b/clients/client-lightsail/commands/PutAlarmCommand.ts index 772b10d141245..1f51192767f1c 100644 --- a/clients/client-lightsail/commands/PutAlarmCommand.ts +++ b/clients/client-lightsail/commands/PutAlarmCommand.ts @@ -35,6 +35,7 @@ export class PutAlarmCommand extends $Command< PutAlarmCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutAlarmCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/PutInstancePublicPortsCommand.ts b/clients/client-lightsail/commands/PutInstancePublicPortsCommand.ts index 9f149cb00aebd..ace061fb31573 100644 --- a/clients/client-lightsail/commands/PutInstancePublicPortsCommand.ts +++ b/clients/client-lightsail/commands/PutInstancePublicPortsCommand.ts @@ -36,6 +36,7 @@ export class PutInstancePublicPortsCommand extends $Command< PutInstancePublicPortsCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PutInstancePublicPortsCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/RebootInstanceCommand.ts b/clients/client-lightsail/commands/RebootInstanceCommand.ts index 800d3f850c819..0e1a2c061ed69 100644 --- a/clients/client-lightsail/commands/RebootInstanceCommand.ts +++ b/clients/client-lightsail/commands/RebootInstanceCommand.ts @@ -31,6 +31,7 @@ export class RebootInstanceCommand extends $Command< RebootInstanceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RebootInstanceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/RebootRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/RebootRelationalDatabaseCommand.ts index f208967693be6..c7ae9a473b459 100644 --- a/clients/client-lightsail/commands/RebootRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/RebootRelationalDatabaseCommand.ts @@ -31,6 +31,7 @@ export class RebootRelationalDatabaseCommand extends $Command< RebootRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RebootRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/RegisterContainerImageCommand.ts b/clients/client-lightsail/commands/RegisterContainerImageCommand.ts index 42b2a1fb1ca2f..f7afa848c93d7 100644 --- a/clients/client-lightsail/commands/RegisterContainerImageCommand.ts +++ b/clients/client-lightsail/commands/RegisterContainerImageCommand.ts @@ -36,6 +36,7 @@ export class RegisterContainerImageCommand extends $Command< RegisterContainerImageCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class RegisterContainerImageCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/ReleaseStaticIpCommand.ts b/clients/client-lightsail/commands/ReleaseStaticIpCommand.ts index a1f30437c941f..ef91865d42784 100644 --- a/clients/client-lightsail/commands/ReleaseStaticIpCommand.ts +++ b/clients/client-lightsail/commands/ReleaseStaticIpCommand.ts @@ -28,6 +28,7 @@ export class ReleaseStaticIpCommand extends $Command< ReleaseStaticIpCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ReleaseStaticIpCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/ResetDistributionCacheCommand.ts b/clients/client-lightsail/commands/ResetDistributionCacheCommand.ts index a83fe883b4c53..b66586fc434d2 100644 --- a/clients/client-lightsail/commands/ResetDistributionCacheCommand.ts +++ b/clients/client-lightsail/commands/ResetDistributionCacheCommand.ts @@ -31,6 +31,7 @@ export class ResetDistributionCacheCommand extends $Command< ResetDistributionCacheCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ResetDistributionCacheCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/SendContactMethodVerificationCommand.ts b/clients/client-lightsail/commands/SendContactMethodVerificationCommand.ts index 18248e683ff16..918e6a0128714 100644 --- a/clients/client-lightsail/commands/SendContactMethodVerificationCommand.ts +++ b/clients/client-lightsail/commands/SendContactMethodVerificationCommand.ts @@ -40,6 +40,7 @@ export class SendContactMethodVerificationCommand extends $Command< SendContactMethodVerificationCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class SendContactMethodVerificationCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/StartInstanceCommand.ts b/clients/client-lightsail/commands/StartInstanceCommand.ts index 6c173da545931..b2c4c2dfb94dd 100644 --- a/clients/client-lightsail/commands/StartInstanceCommand.ts +++ b/clients/client-lightsail/commands/StartInstanceCommand.ts @@ -37,6 +37,7 @@ export class StartInstanceCommand extends $Command< StartInstanceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StartInstanceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/StartRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/StartRelationalDatabaseCommand.ts index f1fe77c13cf5f..f36258cf4ac51 100644 --- a/clients/client-lightsail/commands/StartRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/StartRelationalDatabaseCommand.ts @@ -32,6 +32,7 @@ export class StartRelationalDatabaseCommand extends $Command< StartRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/StopInstanceCommand.ts b/clients/client-lightsail/commands/StopInstanceCommand.ts index 78e5f9fd5c744..d221720a54e66 100644 --- a/clients/client-lightsail/commands/StopInstanceCommand.ts +++ b/clients/client-lightsail/commands/StopInstanceCommand.ts @@ -36,6 +36,7 @@ export class StopInstanceCommand extends $Command< StopInstanceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StopInstanceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/StopRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/StopRelationalDatabaseCommand.ts index 95797530b02e6..085b3e2981c2f 100644 --- a/clients/client-lightsail/commands/StopRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/StopRelationalDatabaseCommand.ts @@ -31,6 +31,7 @@ export class StopRelationalDatabaseCommand extends $Command< StopRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StopRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/TagResourceCommand.ts b/clients/client-lightsail/commands/TagResourceCommand.ts index 4ccd3beef263d..0c90b7c1b009b 100644 --- a/clients/client-lightsail/commands/TagResourceCommand.ts +++ b/clients/client-lightsail/commands/TagResourceCommand.ts @@ -34,6 +34,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class TagResourceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/TestAlarmCommand.ts b/clients/client-lightsail/commands/TestAlarmCommand.ts index b8fbbd5ca0c06..407efd85906e8 100644 --- a/clients/client-lightsail/commands/TestAlarmCommand.ts +++ b/clients/client-lightsail/commands/TestAlarmCommand.ts @@ -32,6 +32,7 @@ export class TestAlarmCommand extends $Command< TestAlarmCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestAlarmCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UnpeerVpcCommand.ts b/clients/client-lightsail/commands/UnpeerVpcCommand.ts index 97064f5b24ba8..c07a86e210f82 100644 --- a/clients/client-lightsail/commands/UnpeerVpcCommand.ts +++ b/clients/client-lightsail/commands/UnpeerVpcCommand.ts @@ -25,6 +25,7 @@ export class UnpeerVpcCommand extends $Command< UnpeerVpcCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UnpeerVpcCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UntagResourceCommand.ts b/clients/client-lightsail/commands/UntagResourceCommand.ts index 1e9b9b49546fd..00bce07eec629 100644 --- a/clients/client-lightsail/commands/UntagResourceCommand.ts +++ b/clients/client-lightsail/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateContainerServiceCommand.ts b/clients/client-lightsail/commands/UpdateContainerServiceCommand.ts index 702f850168ecf..455715de16e19 100644 --- a/clients/client-lightsail/commands/UpdateContainerServiceCommand.ts +++ b/clients/client-lightsail/commands/UpdateContainerServiceCommand.ts @@ -29,6 +29,7 @@ export class UpdateContainerServiceCommand extends $Command< UpdateContainerServiceCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateContainerServiceCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateDistributionBundleCommand.ts b/clients/client-lightsail/commands/UpdateDistributionBundleCommand.ts index d8f1b71bf850f..7da1c9b4dc7e5 100644 --- a/clients/client-lightsail/commands/UpdateDistributionBundleCommand.ts +++ b/clients/client-lightsail/commands/UpdateDistributionBundleCommand.ts @@ -37,6 +37,7 @@ export class UpdateDistributionBundleCommand extends $Command< UpdateDistributionBundleCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateDistributionBundleCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateDistributionCommand.ts b/clients/client-lightsail/commands/UpdateDistributionCommand.ts index 56ff14a80beec..96e575d881662 100644 --- a/clients/client-lightsail/commands/UpdateDistributionCommand.ts +++ b/clients/client-lightsail/commands/UpdateDistributionCommand.ts @@ -29,6 +29,7 @@ export class UpdateDistributionCommand extends $Command< UpdateDistributionCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDistributionCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateDomainEntryCommand.ts b/clients/client-lightsail/commands/UpdateDomainEntryCommand.ts index 90268e135a564..ba8bd33b9a183 100644 --- a/clients/client-lightsail/commands/UpdateDomainEntryCommand.ts +++ b/clients/client-lightsail/commands/UpdateDomainEntryCommand.ts @@ -31,6 +31,7 @@ export class UpdateDomainEntryCommand extends $Command< UpdateDomainEntryCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDomainEntryCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateLoadBalancerAttributeCommand.ts b/clients/client-lightsail/commands/UpdateLoadBalancerAttributeCommand.ts index b33252816a751..6d505fa9aad09 100644 --- a/clients/client-lightsail/commands/UpdateLoadBalancerAttributeCommand.ts +++ b/clients/client-lightsail/commands/UpdateLoadBalancerAttributeCommand.ts @@ -32,6 +32,7 @@ export class UpdateLoadBalancerAttributeCommand extends $Command< UpdateLoadBalancerAttributeCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateLoadBalancerAttributeCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateRelationalDatabaseCommand.ts b/clients/client-lightsail/commands/UpdateRelationalDatabaseCommand.ts index 34c6fe651ea8a..753f67b7a42bd 100644 --- a/clients/client-lightsail/commands/UpdateRelationalDatabaseCommand.ts +++ b/clients/client-lightsail/commands/UpdateRelationalDatabaseCommand.ts @@ -33,6 +33,7 @@ export class UpdateRelationalDatabaseCommand extends $Command< UpdateRelationalDatabaseCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateRelationalDatabaseCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lightsail/commands/UpdateRelationalDatabaseParametersCommand.ts b/clients/client-lightsail/commands/UpdateRelationalDatabaseParametersCommand.ts index 754c451566656..baa4e7b62d56d 100644 --- a/clients/client-lightsail/commands/UpdateRelationalDatabaseParametersCommand.ts +++ b/clients/client-lightsail/commands/UpdateRelationalDatabaseParametersCommand.ts @@ -41,6 +41,7 @@ export class UpdateRelationalDatabaseParametersCommand extends $Command< UpdateRelationalDatabaseParametersCommandOutput, LightsailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateRelationalDatabaseParametersCommand extends $Command< configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/CreateDatasetCommand.ts b/clients/client-lookoutvision/commands/CreateDatasetCommand.ts index d8dd93d84f00d..33f0b7ebc46d1 100644 --- a/clients/client-lookoutvision/commands/CreateDatasetCommand.ts +++ b/clients/client-lookoutvision/commands/CreateDatasetCommand.ts @@ -37,6 +37,7 @@ export class CreateDatasetCommand extends $Command< CreateDatasetCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateDatasetCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/CreateModelCommand.ts b/clients/client-lookoutvision/commands/CreateModelCommand.ts index 875e2780b57f4..267fa4134273d 100644 --- a/clients/client-lookoutvision/commands/CreateModelCommand.ts +++ b/clients/client-lookoutvision/commands/CreateModelCommand.ts @@ -38,6 +38,7 @@ export class CreateModelCommand extends $Command< CreateModelCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateModelCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/CreateProjectCommand.ts b/clients/client-lookoutvision/commands/CreateProjectCommand.ts index e5d5d8d32061f..e8ef13f33d928 100644 --- a/clients/client-lookoutvision/commands/CreateProjectCommand.ts +++ b/clients/client-lookoutvision/commands/CreateProjectCommand.ts @@ -29,6 +29,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateProjectCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DeleteDatasetCommand.ts b/clients/client-lookoutvision/commands/DeleteDatasetCommand.ts index 46901f54ec5db..553311912361a 100644 --- a/clients/client-lookoutvision/commands/DeleteDatasetCommand.ts +++ b/clients/client-lookoutvision/commands/DeleteDatasetCommand.ts @@ -42,6 +42,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DeleteDatasetCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DeleteModelCommand.ts b/clients/client-lookoutvision/commands/DeleteModelCommand.ts index 542bb6bfa7aa7..62c2d9d87046f 100644 --- a/clients/client-lookoutvision/commands/DeleteModelCommand.ts +++ b/clients/client-lookoutvision/commands/DeleteModelCommand.ts @@ -29,6 +29,7 @@ export class DeleteModelCommand extends $Command< DeleteModelCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteModelCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DeleteProjectCommand.ts b/clients/client-lookoutvision/commands/DeleteProjectCommand.ts index f126364e8a421..421dfb7deb71e 100644 --- a/clients/client-lookoutvision/commands/DeleteProjectCommand.ts +++ b/clients/client-lookoutvision/commands/DeleteProjectCommand.ts @@ -32,6 +32,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteProjectCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DescribeDatasetCommand.ts b/clients/client-lookoutvision/commands/DescribeDatasetCommand.ts index b73ef52d35bf2..85ba326c63186 100644 --- a/clients/client-lookoutvision/commands/DescribeDatasetCommand.ts +++ b/clients/client-lookoutvision/commands/DescribeDatasetCommand.ts @@ -28,6 +28,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDatasetCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DescribeModelCommand.ts b/clients/client-lookoutvision/commands/DescribeModelCommand.ts index 6f0864af74db7..60bcf7e32c9af 100644 --- a/clients/client-lookoutvision/commands/DescribeModelCommand.ts +++ b/clients/client-lookoutvision/commands/DescribeModelCommand.ts @@ -28,6 +28,7 @@ export class DescribeModelCommand extends $Command< DescribeModelCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeModelCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DescribeProjectCommand.ts b/clients/client-lookoutvision/commands/DescribeProjectCommand.ts index 28ec7cb111fad..02ad2bd735bb9 100644 --- a/clients/client-lookoutvision/commands/DescribeProjectCommand.ts +++ b/clients/client-lookoutvision/commands/DescribeProjectCommand.ts @@ -28,6 +28,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProjectCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/DetectAnomaliesCommand.ts b/clients/client-lookoutvision/commands/DetectAnomaliesCommand.ts index d30521b67495f..ceb1d60d456b7 100644 --- a/clients/client-lookoutvision/commands/DetectAnomaliesCommand.ts +++ b/clients/client-lookoutvision/commands/DetectAnomaliesCommand.ts @@ -37,6 +37,7 @@ export class DetectAnomaliesCommand extends $Command< DetectAnomaliesCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DetectAnomaliesCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/ListDatasetEntriesCommand.ts b/clients/client-lookoutvision/commands/ListDatasetEntriesCommand.ts index 76c69ed7c9d8d..28b5611f57d96 100644 --- a/clients/client-lookoutvision/commands/ListDatasetEntriesCommand.ts +++ b/clients/client-lookoutvision/commands/ListDatasetEntriesCommand.ts @@ -29,6 +29,7 @@ export class ListDatasetEntriesCommand extends $Command< ListDatasetEntriesCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDatasetEntriesCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/ListModelsCommand.ts b/clients/client-lookoutvision/commands/ListModelsCommand.ts index 4047f1eb0faca..6a7039f62e66d 100644 --- a/clients/client-lookoutvision/commands/ListModelsCommand.ts +++ b/clients/client-lookoutvision/commands/ListModelsCommand.ts @@ -28,6 +28,7 @@ export class ListModelsCommand extends $Command< ListModelsCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelsCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/ListProjectsCommand.ts b/clients/client-lookoutvision/commands/ListProjectsCommand.ts index 1edf0cbbce101..6fda2c8257518 100644 --- a/clients/client-lookoutvision/commands/ListProjectsCommand.ts +++ b/clients/client-lookoutvision/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/StartModelCommand.ts b/clients/client-lookoutvision/commands/StartModelCommand.ts index 492ebc71aef6c..706f8198a8176 100644 --- a/clients/client-lookoutvision/commands/StartModelCommand.ts +++ b/clients/client-lookoutvision/commands/StartModelCommand.ts @@ -35,6 +35,7 @@ export class StartModelCommand extends $Command< StartModelCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartModelCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/StopModelCommand.ts b/clients/client-lookoutvision/commands/StopModelCommand.ts index 24decd9afa190..768010419a968 100644 --- a/clients/client-lookoutvision/commands/StopModelCommand.ts +++ b/clients/client-lookoutvision/commands/StopModelCommand.ts @@ -29,6 +29,7 @@ export class StopModelCommand extends $Command< StopModelCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopModelCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-lookoutvision/commands/UpdateDatasetEntriesCommand.ts b/clients/client-lookoutvision/commands/UpdateDatasetEntriesCommand.ts index bfbcdec416a2d..f70e1067bafd5 100644 --- a/clients/client-lookoutvision/commands/UpdateDatasetEntriesCommand.ts +++ b/clients/client-lookoutvision/commands/UpdateDatasetEntriesCommand.ts @@ -33,6 +33,7 @@ export class UpdateDatasetEntriesCommand extends $Command< UpdateDatasetEntriesCommandOutput, LookoutVisionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateDatasetEntriesCommand extends $Command< configuration: LookoutVisionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/AddTagsCommand.ts b/clients/client-machine-learning/commands/AddTagsCommand.ts index 69322fc49a16e..0633427343a29 100644 --- a/clients/client-machine-learning/commands/AddTagsCommand.ts +++ b/clients/client-machine-learning/commands/AddTagsCommand.ts @@ -27,6 +27,7 @@ export class AddTagsCommand extends $Command< AddTagsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class AddTagsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateBatchPredictionCommand.ts b/clients/client-machine-learning/commands/CreateBatchPredictionCommand.ts index 61bd543b656b3..9d446b90ea5d4 100644 --- a/clients/client-machine-learning/commands/CreateBatchPredictionCommand.ts +++ b/clients/client-machine-learning/commands/CreateBatchPredictionCommand.ts @@ -39,6 +39,7 @@ export class CreateBatchPredictionCommand extends $Command< CreateBatchPredictionCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateBatchPredictionCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateDataSourceFromRDSCommand.ts b/clients/client-machine-learning/commands/CreateDataSourceFromRDSCommand.ts index eca7abdac415c..93298aec6a9ab 100644 --- a/clients/client-machine-learning/commands/CreateDataSourceFromRDSCommand.ts +++ b/clients/client-machine-learning/commands/CreateDataSourceFromRDSCommand.ts @@ -39,6 +39,7 @@ export class CreateDataSourceFromRDSCommand extends $Command< CreateDataSourceFromRDSCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateDataSourceFromRDSCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateDataSourceFromRedshiftCommand.ts b/clients/client-machine-learning/commands/CreateDataSourceFromRedshiftCommand.ts index a71ad24ba2916..b9ba0b3b3992a 100644 --- a/clients/client-machine-learning/commands/CreateDataSourceFromRedshiftCommand.ts +++ b/clients/client-machine-learning/commands/CreateDataSourceFromRedshiftCommand.ts @@ -60,6 +60,7 @@ export class CreateDataSourceFromRedshiftCommand extends $Command< CreateDataSourceFromRedshiftCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class CreateDataSourceFromRedshiftCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateDataSourceFromS3Command.ts b/clients/client-machine-learning/commands/CreateDataSourceFromS3Command.ts index 01424ddd0c44e..1f1dddeff04fc 100644 --- a/clients/client-machine-learning/commands/CreateDataSourceFromS3Command.ts +++ b/clients/client-machine-learning/commands/CreateDataSourceFromS3Command.ts @@ -58,6 +58,7 @@ export class CreateDataSourceFromS3Command extends $Command< CreateDataSourceFromS3CommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class CreateDataSourceFromS3Command extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateEvaluationCommand.ts b/clients/client-machine-learning/commands/CreateEvaluationCommand.ts index 4834cb6a516a9..045db06166c33 100644 --- a/clients/client-machine-learning/commands/CreateEvaluationCommand.ts +++ b/clients/client-machine-learning/commands/CreateEvaluationCommand.ts @@ -39,6 +39,7 @@ export class CreateEvaluationCommand extends $Command< CreateEvaluationCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateEvaluationCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateMLModelCommand.ts b/clients/client-machine-learning/commands/CreateMLModelCommand.ts index ad0c1e2fcfbe4..09a561ea1a03a 100644 --- a/clients/client-machine-learning/commands/CreateMLModelCommand.ts +++ b/clients/client-machine-learning/commands/CreateMLModelCommand.ts @@ -47,6 +47,7 @@ export class CreateMLModelCommand extends $Command< CreateMLModelCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateMLModelCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/CreateRealtimeEndpointCommand.ts b/clients/client-machine-learning/commands/CreateRealtimeEndpointCommand.ts index 87680c950e0fb..f0c3cf7002980 100644 --- a/clients/client-machine-learning/commands/CreateRealtimeEndpointCommand.ts +++ b/clients/client-machine-learning/commands/CreateRealtimeEndpointCommand.ts @@ -28,6 +28,7 @@ export class CreateRealtimeEndpointCommand extends $Command< CreateRealtimeEndpointCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRealtimeEndpointCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteBatchPredictionCommand.ts b/clients/client-machine-learning/commands/DeleteBatchPredictionCommand.ts index 71d58d2acaabe..ceaffdb4e01c8 100644 --- a/clients/client-machine-learning/commands/DeleteBatchPredictionCommand.ts +++ b/clients/client-machine-learning/commands/DeleteBatchPredictionCommand.ts @@ -33,6 +33,7 @@ export class DeleteBatchPredictionCommand extends $Command< DeleteBatchPredictionCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteBatchPredictionCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteDataSourceCommand.ts b/clients/client-machine-learning/commands/DeleteDataSourceCommand.ts index 9fd6b74ce95c4..91ab7abf086ad 100644 --- a/clients/client-machine-learning/commands/DeleteDataSourceCommand.ts +++ b/clients/client-machine-learning/commands/DeleteDataSourceCommand.ts @@ -31,6 +31,7 @@ export class DeleteDataSourceCommand extends $Command< DeleteDataSourceCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDataSourceCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteEvaluationCommand.ts b/clients/client-machine-learning/commands/DeleteEvaluationCommand.ts index e86f4f868d5f0..7386e92edec72 100644 --- a/clients/client-machine-learning/commands/DeleteEvaluationCommand.ts +++ b/clients/client-machine-learning/commands/DeleteEvaluationCommand.ts @@ -33,6 +33,7 @@ export class DeleteEvaluationCommand extends $Command< DeleteEvaluationCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteEvaluationCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteMLModelCommand.ts b/clients/client-machine-learning/commands/DeleteMLModelCommand.ts index 0b03ed3a59887..90db9b88742fa 100644 --- a/clients/client-machine-learning/commands/DeleteMLModelCommand.ts +++ b/clients/client-machine-learning/commands/DeleteMLModelCommand.ts @@ -33,6 +33,7 @@ export class DeleteMLModelCommand extends $Command< DeleteMLModelCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteMLModelCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteRealtimeEndpointCommand.ts b/clients/client-machine-learning/commands/DeleteRealtimeEndpointCommand.ts index bf018c164f1f0..776e66f4d8a8a 100644 --- a/clients/client-machine-learning/commands/DeleteRealtimeEndpointCommand.ts +++ b/clients/client-machine-learning/commands/DeleteRealtimeEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteRealtimeEndpointCommand extends $Command< DeleteRealtimeEndpointCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRealtimeEndpointCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DeleteTagsCommand.ts b/clients/client-machine-learning/commands/DeleteTagsCommand.ts index 6300aeb98f20a..225bef962e505 100644 --- a/clients/client-machine-learning/commands/DeleteTagsCommand.ts +++ b/clients/client-machine-learning/commands/DeleteTagsCommand.ts @@ -29,6 +29,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTagsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DescribeBatchPredictionsCommand.ts b/clients/client-machine-learning/commands/DescribeBatchPredictionsCommand.ts index 8dcec5efe3553..926bdd59ffd91 100644 --- a/clients/client-machine-learning/commands/DescribeBatchPredictionsCommand.ts +++ b/clients/client-machine-learning/commands/DescribeBatchPredictionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeBatchPredictionsCommand extends $Command< DescribeBatchPredictionsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBatchPredictionsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DescribeDataSourcesCommand.ts b/clients/client-machine-learning/commands/DescribeDataSourcesCommand.ts index c87679a2ca38a..cc8c5b4f7d95a 100644 --- a/clients/client-machine-learning/commands/DescribeDataSourcesCommand.ts +++ b/clients/client-machine-learning/commands/DescribeDataSourcesCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataSourcesCommand extends $Command< DescribeDataSourcesCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataSourcesCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DescribeEvaluationsCommand.ts b/clients/client-machine-learning/commands/DescribeEvaluationsCommand.ts index 2c757b567d7f5..c24164fe040fc 100644 --- a/clients/client-machine-learning/commands/DescribeEvaluationsCommand.ts +++ b/clients/client-machine-learning/commands/DescribeEvaluationsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEvaluationsCommand extends $Command< DescribeEvaluationsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEvaluationsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DescribeMLModelsCommand.ts b/clients/client-machine-learning/commands/DescribeMLModelsCommand.ts index 730b790a36675..700f9feb56a8b 100644 --- a/clients/client-machine-learning/commands/DescribeMLModelsCommand.ts +++ b/clients/client-machine-learning/commands/DescribeMLModelsCommand.ts @@ -28,6 +28,7 @@ export class DescribeMLModelsCommand extends $Command< DescribeMLModelsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMLModelsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/DescribeTagsCommand.ts b/clients/client-machine-learning/commands/DescribeTagsCommand.ts index 5b47dc5d53876..9c12695756e02 100644 --- a/clients/client-machine-learning/commands/DescribeTagsCommand.ts +++ b/clients/client-machine-learning/commands/DescribeTagsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTagsCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/GetBatchPredictionCommand.ts b/clients/client-machine-learning/commands/GetBatchPredictionCommand.ts index d962017c012b0..761ad0a7cebb8 100644 --- a/clients/client-machine-learning/commands/GetBatchPredictionCommand.ts +++ b/clients/client-machine-learning/commands/GetBatchPredictionCommand.ts @@ -29,6 +29,7 @@ export class GetBatchPredictionCommand extends $Command< GetBatchPredictionCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetBatchPredictionCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/GetDataSourceCommand.ts b/clients/client-machine-learning/commands/GetDataSourceCommand.ts index 4b81b4b5af219..386b4546139e4 100644 --- a/clients/client-machine-learning/commands/GetDataSourceCommand.ts +++ b/clients/client-machine-learning/commands/GetDataSourceCommand.ts @@ -31,6 +31,7 @@ export class GetDataSourceCommand extends $Command< GetDataSourceCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetDataSourceCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/GetEvaluationCommand.ts b/clients/client-machine-learning/commands/GetEvaluationCommand.ts index 7db99055d2fb2..641b48e3786c8 100644 --- a/clients/client-machine-learning/commands/GetEvaluationCommand.ts +++ b/clients/client-machine-learning/commands/GetEvaluationCommand.ts @@ -28,6 +28,7 @@ export class GetEvaluationCommand extends $Command< GetEvaluationCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEvaluationCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/GetMLModelCommand.ts b/clients/client-machine-learning/commands/GetMLModelCommand.ts index 934b041f4ecb7..a372e2dedf88b 100644 --- a/clients/client-machine-learning/commands/GetMLModelCommand.ts +++ b/clients/client-machine-learning/commands/GetMLModelCommand.ts @@ -30,6 +30,7 @@ export class GetMLModelCommand extends $Command< GetMLModelCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetMLModelCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/PredictCommand.ts b/clients/client-machine-learning/commands/PredictCommand.ts index 323669c2b2b73..945a8df972188 100644 --- a/clients/client-machine-learning/commands/PredictCommand.ts +++ b/clients/client-machine-learning/commands/PredictCommand.ts @@ -29,6 +29,7 @@ export class PredictCommand extends $Command< PredictCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,8 +47,11 @@ export class PredictCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getPredictEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getPredictEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/UpdateBatchPredictionCommand.ts b/clients/client-machine-learning/commands/UpdateBatchPredictionCommand.ts index 04bdaf1889922..1b570b5706049 100644 --- a/clients/client-machine-learning/commands/UpdateBatchPredictionCommand.ts +++ b/clients/client-machine-learning/commands/UpdateBatchPredictionCommand.ts @@ -29,6 +29,7 @@ export class UpdateBatchPredictionCommand extends $Command< UpdateBatchPredictionCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateBatchPredictionCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/UpdateDataSourceCommand.ts b/clients/client-machine-learning/commands/UpdateDataSourceCommand.ts index 34cdc011e7fab..80c5e3244e522 100644 --- a/clients/client-machine-learning/commands/UpdateDataSourceCommand.ts +++ b/clients/client-machine-learning/commands/UpdateDataSourceCommand.ts @@ -29,6 +29,7 @@ export class UpdateDataSourceCommand extends $Command< UpdateDataSourceCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDataSourceCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/UpdateEvaluationCommand.ts b/clients/client-machine-learning/commands/UpdateEvaluationCommand.ts index c56cbdf8ae4da..8e135dfeb62bd 100644 --- a/clients/client-machine-learning/commands/UpdateEvaluationCommand.ts +++ b/clients/client-machine-learning/commands/UpdateEvaluationCommand.ts @@ -29,6 +29,7 @@ export class UpdateEvaluationCommand extends $Command< UpdateEvaluationCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateEvaluationCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-machine-learning/commands/UpdateMLModelCommand.ts b/clients/client-machine-learning/commands/UpdateMLModelCommand.ts index 0cc956cef1b6c..6e94054025845 100644 --- a/clients/client-machine-learning/commands/UpdateMLModelCommand.ts +++ b/clients/client-machine-learning/commands/UpdateMLModelCommand.ts @@ -29,6 +29,7 @@ export class UpdateMLModelCommand extends $Command< UpdateMLModelCommandOutput, MachineLearningClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateMLModelCommand extends $Command< configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/AssociateMemberAccountCommand.ts b/clients/client-macie/commands/AssociateMemberAccountCommand.ts index cbaed270eb5cd..f6e08f215ee91 100644 --- a/clients/client-macie/commands/AssociateMemberAccountCommand.ts +++ b/clients/client-macie/commands/AssociateMemberAccountCommand.ts @@ -29,6 +29,7 @@ export class AssociateMemberAccountCommand extends $Command< AssociateMemberAccountCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateMemberAccountCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/AssociateS3ResourcesCommand.ts b/clients/client-macie/commands/AssociateS3ResourcesCommand.ts index acb61946aa83c..5c2c4763acfe8 100644 --- a/clients/client-macie/commands/AssociateS3ResourcesCommand.ts +++ b/clients/client-macie/commands/AssociateS3ResourcesCommand.ts @@ -32,6 +32,7 @@ export class AssociateS3ResourcesCommand extends $Command< AssociateS3ResourcesCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateS3ResourcesCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/DisassociateMemberAccountCommand.ts b/clients/client-macie/commands/DisassociateMemberAccountCommand.ts index 2045caf320a2c..67d5c817758d6 100644 --- a/clients/client-macie/commands/DisassociateMemberAccountCommand.ts +++ b/clients/client-macie/commands/DisassociateMemberAccountCommand.ts @@ -28,6 +28,7 @@ export class DisassociateMemberAccountCommand extends $Command< DisassociateMemberAccountCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateMemberAccountCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/DisassociateS3ResourcesCommand.ts b/clients/client-macie/commands/DisassociateS3ResourcesCommand.ts index 08abc616abe42..a8a261ed96e03 100644 --- a/clients/client-macie/commands/DisassociateS3ResourcesCommand.ts +++ b/clients/client-macie/commands/DisassociateS3ResourcesCommand.ts @@ -31,6 +31,7 @@ export class DisassociateS3ResourcesCommand extends $Command< DisassociateS3ResourcesCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DisassociateS3ResourcesCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/ListMemberAccountsCommand.ts b/clients/client-macie/commands/ListMemberAccountsCommand.ts index 9d1faaabda1b6..60d25cb54aecc 100644 --- a/clients/client-macie/commands/ListMemberAccountsCommand.ts +++ b/clients/client-macie/commands/ListMemberAccountsCommand.ts @@ -29,6 +29,7 @@ export class ListMemberAccountsCommand extends $Command< ListMemberAccountsCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListMemberAccountsCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/ListS3ResourcesCommand.ts b/clients/client-macie/commands/ListS3ResourcesCommand.ts index 0cc925134863d..1c3cf5a6d00cf 100644 --- a/clients/client-macie/commands/ListS3ResourcesCommand.ts +++ b/clients/client-macie/commands/ListS3ResourcesCommand.ts @@ -31,6 +31,7 @@ export class ListS3ResourcesCommand extends $Command< ListS3ResourcesCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListS3ResourcesCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie/commands/UpdateS3ResourcesCommand.ts b/clients/client-macie/commands/UpdateS3ResourcesCommand.ts index 916c1237e7a32..22ced6e9ab539 100644 --- a/clients/client-macie/commands/UpdateS3ResourcesCommand.ts +++ b/clients/client-macie/commands/UpdateS3ResourcesCommand.ts @@ -32,6 +32,7 @@ export class UpdateS3ResourcesCommand extends $Command< UpdateS3ResourcesCommandOutput, MacieClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateS3ResourcesCommand extends $Command< configuration: MacieClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/AcceptInvitationCommand.ts b/clients/client-macie2/commands/AcceptInvitationCommand.ts index 39fd441607e04..edad9300cd314 100644 --- a/clients/client-macie2/commands/AcceptInvitationCommand.ts +++ b/clients/client-macie2/commands/AcceptInvitationCommand.ts @@ -28,6 +28,7 @@ export class AcceptInvitationCommand extends $Command< AcceptInvitationCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptInvitationCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/BatchGetCustomDataIdentifiersCommand.ts b/clients/client-macie2/commands/BatchGetCustomDataIdentifiersCommand.ts index 0a11513f0c2ca..c4fa5da88a800 100644 --- a/clients/client-macie2/commands/BatchGetCustomDataIdentifiersCommand.ts +++ b/clients/client-macie2/commands/BatchGetCustomDataIdentifiersCommand.ts @@ -28,6 +28,7 @@ export class BatchGetCustomDataIdentifiersCommand extends $Command< BatchGetCustomDataIdentifiersCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchGetCustomDataIdentifiersCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateClassificationJobCommand.ts b/clients/client-macie2/commands/CreateClassificationJobCommand.ts index 93061619e7eeb..e7a8ee75a7be1 100644 --- a/clients/client-macie2/commands/CreateClassificationJobCommand.ts +++ b/clients/client-macie2/commands/CreateClassificationJobCommand.ts @@ -28,6 +28,7 @@ export class CreateClassificationJobCommand extends $Command< CreateClassificationJobCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateClassificationJobCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateCustomDataIdentifierCommand.ts b/clients/client-macie2/commands/CreateCustomDataIdentifierCommand.ts index d022bd5d31c22..36cad729a7a0e 100644 --- a/clients/client-macie2/commands/CreateCustomDataIdentifierCommand.ts +++ b/clients/client-macie2/commands/CreateCustomDataIdentifierCommand.ts @@ -28,6 +28,7 @@ export class CreateCustomDataIdentifierCommand extends $Command< CreateCustomDataIdentifierCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCustomDataIdentifierCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateFindingsFilterCommand.ts b/clients/client-macie2/commands/CreateFindingsFilterCommand.ts index b93aba283bc4e..a119439198666 100644 --- a/clients/client-macie2/commands/CreateFindingsFilterCommand.ts +++ b/clients/client-macie2/commands/CreateFindingsFilterCommand.ts @@ -28,6 +28,7 @@ export class CreateFindingsFilterCommand extends $Command< CreateFindingsFilterCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFindingsFilterCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateInvitationsCommand.ts b/clients/client-macie2/commands/CreateInvitationsCommand.ts index 542f18bbf3178..aeb72fe21a74b 100644 --- a/clients/client-macie2/commands/CreateInvitationsCommand.ts +++ b/clients/client-macie2/commands/CreateInvitationsCommand.ts @@ -28,6 +28,7 @@ export class CreateInvitationsCommand extends $Command< CreateInvitationsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateInvitationsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateMemberCommand.ts b/clients/client-macie2/commands/CreateMemberCommand.ts index b72ef3d5d389e..6448d5d77f1b3 100644 --- a/clients/client-macie2/commands/CreateMemberCommand.ts +++ b/clients/client-macie2/commands/CreateMemberCommand.ts @@ -28,6 +28,7 @@ export class CreateMemberCommand extends $Command< CreateMemberCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateMemberCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/CreateSampleFindingsCommand.ts b/clients/client-macie2/commands/CreateSampleFindingsCommand.ts index 1fa49980c0847..aa589ed7ce8d4 100644 --- a/clients/client-macie2/commands/CreateSampleFindingsCommand.ts +++ b/clients/client-macie2/commands/CreateSampleFindingsCommand.ts @@ -28,6 +28,7 @@ export class CreateSampleFindingsCommand extends $Command< CreateSampleFindingsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSampleFindingsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DeclineInvitationsCommand.ts b/clients/client-macie2/commands/DeclineInvitationsCommand.ts index e26cdaa55bbde..5b2dcedc1f1c1 100644 --- a/clients/client-macie2/commands/DeclineInvitationsCommand.ts +++ b/clients/client-macie2/commands/DeclineInvitationsCommand.ts @@ -28,6 +28,7 @@ export class DeclineInvitationsCommand extends $Command< DeclineInvitationsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeclineInvitationsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DeleteCustomDataIdentifierCommand.ts b/clients/client-macie2/commands/DeleteCustomDataIdentifierCommand.ts index 8a53af7427a1a..e8ad7276cecb8 100644 --- a/clients/client-macie2/commands/DeleteCustomDataIdentifierCommand.ts +++ b/clients/client-macie2/commands/DeleteCustomDataIdentifierCommand.ts @@ -28,6 +28,7 @@ export class DeleteCustomDataIdentifierCommand extends $Command< DeleteCustomDataIdentifierCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCustomDataIdentifierCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DeleteFindingsFilterCommand.ts b/clients/client-macie2/commands/DeleteFindingsFilterCommand.ts index 3c4924a31d59b..fe9a3741d5a50 100644 --- a/clients/client-macie2/commands/DeleteFindingsFilterCommand.ts +++ b/clients/client-macie2/commands/DeleteFindingsFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteFindingsFilterCommand extends $Command< DeleteFindingsFilterCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFindingsFilterCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DeleteInvitationsCommand.ts b/clients/client-macie2/commands/DeleteInvitationsCommand.ts index 848408a99795b..b7074041b8500 100644 --- a/clients/client-macie2/commands/DeleteInvitationsCommand.ts +++ b/clients/client-macie2/commands/DeleteInvitationsCommand.ts @@ -28,6 +28,7 @@ export class DeleteInvitationsCommand extends $Command< DeleteInvitationsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInvitationsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DeleteMemberCommand.ts b/clients/client-macie2/commands/DeleteMemberCommand.ts index 7bc1b8942bc6c..578dd90f64bd6 100644 --- a/clients/client-macie2/commands/DeleteMemberCommand.ts +++ b/clients/client-macie2/commands/DeleteMemberCommand.ts @@ -28,6 +28,7 @@ export class DeleteMemberCommand extends $Command< DeleteMemberCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMemberCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DescribeBucketsCommand.ts b/clients/client-macie2/commands/DescribeBucketsCommand.ts index cd51b2320d9fa..051c5d7c8f8cd 100644 --- a/clients/client-macie2/commands/DescribeBucketsCommand.ts +++ b/clients/client-macie2/commands/DescribeBucketsCommand.ts @@ -28,6 +28,7 @@ export class DescribeBucketsCommand extends $Command< DescribeBucketsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBucketsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DescribeClassificationJobCommand.ts b/clients/client-macie2/commands/DescribeClassificationJobCommand.ts index d85bcd411322a..de88f9f08fc0e 100644 --- a/clients/client-macie2/commands/DescribeClassificationJobCommand.ts +++ b/clients/client-macie2/commands/DescribeClassificationJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeClassificationJobCommand extends $Command< DescribeClassificationJobCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClassificationJobCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DescribeOrganizationConfigurationCommand.ts b/clients/client-macie2/commands/DescribeOrganizationConfigurationCommand.ts index ec6cc3c8814d3..768305b1e0f48 100644 --- a/clients/client-macie2/commands/DescribeOrganizationConfigurationCommand.ts +++ b/clients/client-macie2/commands/DescribeOrganizationConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DescribeOrganizationConfigurationCommand extends $Command< DescribeOrganizationConfigurationCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeOrganizationConfigurationCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DisableMacieCommand.ts b/clients/client-macie2/commands/DisableMacieCommand.ts index 250b5ecb90d00..6a6ab8637a89a 100644 --- a/clients/client-macie2/commands/DisableMacieCommand.ts +++ b/clients/client-macie2/commands/DisableMacieCommand.ts @@ -28,6 +28,7 @@ export class DisableMacieCommand extends $Command< DisableMacieCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableMacieCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DisableOrganizationAdminAccountCommand.ts b/clients/client-macie2/commands/DisableOrganizationAdminAccountCommand.ts index ace968013faa2..936751c452921 100644 --- a/clients/client-macie2/commands/DisableOrganizationAdminAccountCommand.ts +++ b/clients/client-macie2/commands/DisableOrganizationAdminAccountCommand.ts @@ -28,6 +28,7 @@ export class DisableOrganizationAdminAccountCommand extends $Command< DisableOrganizationAdminAccountCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableOrganizationAdminAccountCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DisassociateFromMasterAccountCommand.ts b/clients/client-macie2/commands/DisassociateFromMasterAccountCommand.ts index fd670cdfc0047..1eba2261da225 100644 --- a/clients/client-macie2/commands/DisassociateFromMasterAccountCommand.ts +++ b/clients/client-macie2/commands/DisassociateFromMasterAccountCommand.ts @@ -28,6 +28,7 @@ export class DisassociateFromMasterAccountCommand extends $Command< DisassociateFromMasterAccountCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateFromMasterAccountCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/DisassociateMemberCommand.ts b/clients/client-macie2/commands/DisassociateMemberCommand.ts index 98637a0d319d3..700c11504fdc9 100644 --- a/clients/client-macie2/commands/DisassociateMemberCommand.ts +++ b/clients/client-macie2/commands/DisassociateMemberCommand.ts @@ -28,6 +28,7 @@ export class DisassociateMemberCommand extends $Command< DisassociateMemberCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateMemberCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/EnableMacieCommand.ts b/clients/client-macie2/commands/EnableMacieCommand.ts index 7d1c8c944b6aa..a6b5954b18230 100644 --- a/clients/client-macie2/commands/EnableMacieCommand.ts +++ b/clients/client-macie2/commands/EnableMacieCommand.ts @@ -28,6 +28,7 @@ export class EnableMacieCommand extends $Command< EnableMacieCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableMacieCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/EnableOrganizationAdminAccountCommand.ts b/clients/client-macie2/commands/EnableOrganizationAdminAccountCommand.ts index d1870fc82726e..02e614bb5c4eb 100644 --- a/clients/client-macie2/commands/EnableOrganizationAdminAccountCommand.ts +++ b/clients/client-macie2/commands/EnableOrganizationAdminAccountCommand.ts @@ -28,6 +28,7 @@ export class EnableOrganizationAdminAccountCommand extends $Command< EnableOrganizationAdminAccountCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableOrganizationAdminAccountCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetBucketStatisticsCommand.ts b/clients/client-macie2/commands/GetBucketStatisticsCommand.ts index 97c9a7791ba22..936a950c8597e 100644 --- a/clients/client-macie2/commands/GetBucketStatisticsCommand.ts +++ b/clients/client-macie2/commands/GetBucketStatisticsCommand.ts @@ -28,6 +28,7 @@ export class GetBucketStatisticsCommand extends $Command< GetBucketStatisticsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBucketStatisticsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetClassificationExportConfigurationCommand.ts b/clients/client-macie2/commands/GetClassificationExportConfigurationCommand.ts index c783be5357cf9..c3d1f4041db8d 100644 --- a/clients/client-macie2/commands/GetClassificationExportConfigurationCommand.ts +++ b/clients/client-macie2/commands/GetClassificationExportConfigurationCommand.ts @@ -32,6 +32,7 @@ export class GetClassificationExportConfigurationCommand extends $Command< GetClassificationExportConfigurationCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetClassificationExportConfigurationCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetCustomDataIdentifierCommand.ts b/clients/client-macie2/commands/GetCustomDataIdentifierCommand.ts index dfa3775ac5f5b..4870c89cdc5f0 100644 --- a/clients/client-macie2/commands/GetCustomDataIdentifierCommand.ts +++ b/clients/client-macie2/commands/GetCustomDataIdentifierCommand.ts @@ -28,6 +28,7 @@ export class GetCustomDataIdentifierCommand extends $Command< GetCustomDataIdentifierCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCustomDataIdentifierCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetFindingStatisticsCommand.ts b/clients/client-macie2/commands/GetFindingStatisticsCommand.ts index 1d724b5af202d..c7aec0d3185e9 100644 --- a/clients/client-macie2/commands/GetFindingStatisticsCommand.ts +++ b/clients/client-macie2/commands/GetFindingStatisticsCommand.ts @@ -28,6 +28,7 @@ export class GetFindingStatisticsCommand extends $Command< GetFindingStatisticsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFindingStatisticsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetFindingsCommand.ts b/clients/client-macie2/commands/GetFindingsCommand.ts index 030dd30f07329..4e9b661343b98 100644 --- a/clients/client-macie2/commands/GetFindingsCommand.ts +++ b/clients/client-macie2/commands/GetFindingsCommand.ts @@ -28,6 +28,7 @@ export class GetFindingsCommand extends $Command< GetFindingsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFindingsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetFindingsFilterCommand.ts b/clients/client-macie2/commands/GetFindingsFilterCommand.ts index 537bd774d2e3b..ed99dfdede0c5 100644 --- a/clients/client-macie2/commands/GetFindingsFilterCommand.ts +++ b/clients/client-macie2/commands/GetFindingsFilterCommand.ts @@ -28,6 +28,7 @@ export class GetFindingsFilterCommand extends $Command< GetFindingsFilterCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFindingsFilterCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetInvitationsCountCommand.ts b/clients/client-macie2/commands/GetInvitationsCountCommand.ts index 57963dbc18f51..5f5e04abd67cf 100644 --- a/clients/client-macie2/commands/GetInvitationsCountCommand.ts +++ b/clients/client-macie2/commands/GetInvitationsCountCommand.ts @@ -28,6 +28,7 @@ export class GetInvitationsCountCommand extends $Command< GetInvitationsCountCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInvitationsCountCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetMacieSessionCommand.ts b/clients/client-macie2/commands/GetMacieSessionCommand.ts index 3d2ed3d94ebb6..10abe2c495a3b 100644 --- a/clients/client-macie2/commands/GetMacieSessionCommand.ts +++ b/clients/client-macie2/commands/GetMacieSessionCommand.ts @@ -28,6 +28,7 @@ export class GetMacieSessionCommand extends $Command< GetMacieSessionCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMacieSessionCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetMasterAccountCommand.ts b/clients/client-macie2/commands/GetMasterAccountCommand.ts index 2da78700826f9..be7e3e3f1b2cb 100644 --- a/clients/client-macie2/commands/GetMasterAccountCommand.ts +++ b/clients/client-macie2/commands/GetMasterAccountCommand.ts @@ -28,6 +28,7 @@ export class GetMasterAccountCommand extends $Command< GetMasterAccountCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMasterAccountCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetMemberCommand.ts b/clients/client-macie2/commands/GetMemberCommand.ts index 90e4a452f9da8..1239d7e458d32 100644 --- a/clients/client-macie2/commands/GetMemberCommand.ts +++ b/clients/client-macie2/commands/GetMemberCommand.ts @@ -28,6 +28,7 @@ export class GetMemberCommand extends $Command< GetMemberCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMemberCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetUsageStatisticsCommand.ts b/clients/client-macie2/commands/GetUsageStatisticsCommand.ts index 8a6a1b783eb1f..d7901f8ec8c0e 100644 --- a/clients/client-macie2/commands/GetUsageStatisticsCommand.ts +++ b/clients/client-macie2/commands/GetUsageStatisticsCommand.ts @@ -28,6 +28,7 @@ export class GetUsageStatisticsCommand extends $Command< GetUsageStatisticsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsageStatisticsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/GetUsageTotalsCommand.ts b/clients/client-macie2/commands/GetUsageTotalsCommand.ts index c9acfc2ced7ba..408818ef95cb0 100644 --- a/clients/client-macie2/commands/GetUsageTotalsCommand.ts +++ b/clients/client-macie2/commands/GetUsageTotalsCommand.ts @@ -28,6 +28,7 @@ export class GetUsageTotalsCommand extends $Command< GetUsageTotalsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUsageTotalsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListClassificationJobsCommand.ts b/clients/client-macie2/commands/ListClassificationJobsCommand.ts index a3edc9569f5dd..d6ae7d3eab3b6 100644 --- a/clients/client-macie2/commands/ListClassificationJobsCommand.ts +++ b/clients/client-macie2/commands/ListClassificationJobsCommand.ts @@ -28,6 +28,7 @@ export class ListClassificationJobsCommand extends $Command< ListClassificationJobsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListClassificationJobsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListCustomDataIdentifiersCommand.ts b/clients/client-macie2/commands/ListCustomDataIdentifiersCommand.ts index b5f753f9ee246..86f20b9e04ffb 100644 --- a/clients/client-macie2/commands/ListCustomDataIdentifiersCommand.ts +++ b/clients/client-macie2/commands/ListCustomDataIdentifiersCommand.ts @@ -28,6 +28,7 @@ export class ListCustomDataIdentifiersCommand extends $Command< ListCustomDataIdentifiersCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCustomDataIdentifiersCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListFindingsCommand.ts b/clients/client-macie2/commands/ListFindingsCommand.ts index 6ed5020f40a65..31f41632a082d 100644 --- a/clients/client-macie2/commands/ListFindingsCommand.ts +++ b/clients/client-macie2/commands/ListFindingsCommand.ts @@ -28,6 +28,7 @@ export class ListFindingsCommand extends $Command< ListFindingsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFindingsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListFindingsFiltersCommand.ts b/clients/client-macie2/commands/ListFindingsFiltersCommand.ts index d56c3fe2c80a8..732ba26c00370 100644 --- a/clients/client-macie2/commands/ListFindingsFiltersCommand.ts +++ b/clients/client-macie2/commands/ListFindingsFiltersCommand.ts @@ -28,6 +28,7 @@ export class ListFindingsFiltersCommand extends $Command< ListFindingsFiltersCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFindingsFiltersCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListInvitationsCommand.ts b/clients/client-macie2/commands/ListInvitationsCommand.ts index 419fdadd7338d..ffd1fa9a74f79 100644 --- a/clients/client-macie2/commands/ListInvitationsCommand.ts +++ b/clients/client-macie2/commands/ListInvitationsCommand.ts @@ -28,6 +28,7 @@ export class ListInvitationsCommand extends $Command< ListInvitationsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInvitationsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListMembersCommand.ts b/clients/client-macie2/commands/ListMembersCommand.ts index 2278e50b504c8..4122066ba31e8 100644 --- a/clients/client-macie2/commands/ListMembersCommand.ts +++ b/clients/client-macie2/commands/ListMembersCommand.ts @@ -28,6 +28,7 @@ export class ListMembersCommand extends $Command< ListMembersCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMembersCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListOrganizationAdminAccountsCommand.ts b/clients/client-macie2/commands/ListOrganizationAdminAccountsCommand.ts index 0c3719986d462..26b7f84b88a98 100644 --- a/clients/client-macie2/commands/ListOrganizationAdminAccountsCommand.ts +++ b/clients/client-macie2/commands/ListOrganizationAdminAccountsCommand.ts @@ -28,6 +28,7 @@ export class ListOrganizationAdminAccountsCommand extends $Command< ListOrganizationAdminAccountsCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOrganizationAdminAccountsCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/ListTagsForResourceCommand.ts b/clients/client-macie2/commands/ListTagsForResourceCommand.ts index 25d333a99c1e5..c2aac0e3aa0b3 100644 --- a/clients/client-macie2/commands/ListTagsForResourceCommand.ts +++ b/clients/client-macie2/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/PutClassificationExportConfigurationCommand.ts b/clients/client-macie2/commands/PutClassificationExportConfigurationCommand.ts index a5b4caf0eeb79..d1a56d2c7bc49 100644 --- a/clients/client-macie2/commands/PutClassificationExportConfigurationCommand.ts +++ b/clients/client-macie2/commands/PutClassificationExportConfigurationCommand.ts @@ -32,6 +32,7 @@ export class PutClassificationExportConfigurationCommand extends $Command< PutClassificationExportConfigurationCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutClassificationExportConfigurationCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/TagResourceCommand.ts b/clients/client-macie2/commands/TagResourceCommand.ts index 5bde197f5d022..3c47975468469 100644 --- a/clients/client-macie2/commands/TagResourceCommand.ts +++ b/clients/client-macie2/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/TestCustomDataIdentifierCommand.ts b/clients/client-macie2/commands/TestCustomDataIdentifierCommand.ts index c2b7d83545c59..11928d073676b 100644 --- a/clients/client-macie2/commands/TestCustomDataIdentifierCommand.ts +++ b/clients/client-macie2/commands/TestCustomDataIdentifierCommand.ts @@ -28,6 +28,7 @@ export class TestCustomDataIdentifierCommand extends $Command< TestCustomDataIdentifierCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TestCustomDataIdentifierCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UntagResourceCommand.ts b/clients/client-macie2/commands/UntagResourceCommand.ts index 3654c9794feb8..c0eace6682eaa 100644 --- a/clients/client-macie2/commands/UntagResourceCommand.ts +++ b/clients/client-macie2/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UpdateClassificationJobCommand.ts b/clients/client-macie2/commands/UpdateClassificationJobCommand.ts index d1012e11ef866..acf303de1e8f7 100644 --- a/clients/client-macie2/commands/UpdateClassificationJobCommand.ts +++ b/clients/client-macie2/commands/UpdateClassificationJobCommand.ts @@ -28,6 +28,7 @@ export class UpdateClassificationJobCommand extends $Command< UpdateClassificationJobCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateClassificationJobCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UpdateFindingsFilterCommand.ts b/clients/client-macie2/commands/UpdateFindingsFilterCommand.ts index 3e758e0534f32..3705249d5f840 100644 --- a/clients/client-macie2/commands/UpdateFindingsFilterCommand.ts +++ b/clients/client-macie2/commands/UpdateFindingsFilterCommand.ts @@ -28,6 +28,7 @@ export class UpdateFindingsFilterCommand extends $Command< UpdateFindingsFilterCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFindingsFilterCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UpdateMacieSessionCommand.ts b/clients/client-macie2/commands/UpdateMacieSessionCommand.ts index 3886fadb89baa..ec81d65bea61a 100644 --- a/clients/client-macie2/commands/UpdateMacieSessionCommand.ts +++ b/clients/client-macie2/commands/UpdateMacieSessionCommand.ts @@ -28,6 +28,7 @@ export class UpdateMacieSessionCommand extends $Command< UpdateMacieSessionCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMacieSessionCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UpdateMemberSessionCommand.ts b/clients/client-macie2/commands/UpdateMemberSessionCommand.ts index cab7d635d467f..9abd037358881 100644 --- a/clients/client-macie2/commands/UpdateMemberSessionCommand.ts +++ b/clients/client-macie2/commands/UpdateMemberSessionCommand.ts @@ -28,6 +28,7 @@ export class UpdateMemberSessionCommand extends $Command< UpdateMemberSessionCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMemberSessionCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-macie2/commands/UpdateOrganizationConfigurationCommand.ts b/clients/client-macie2/commands/UpdateOrganizationConfigurationCommand.ts index 266fa4e4d904e..d3ee2701644ab 100644 --- a/clients/client-macie2/commands/UpdateOrganizationConfigurationCommand.ts +++ b/clients/client-macie2/commands/UpdateOrganizationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateOrganizationConfigurationCommand extends $Command< UpdateOrganizationConfigurationCommandOutput, Macie2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateOrganizationConfigurationCommand extends $Command< configuration: Macie2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/CreateMemberCommand.ts b/clients/client-managedblockchain/commands/CreateMemberCommand.ts index 0feaec104bb79..d246a780b3f0b 100644 --- a/clients/client-managedblockchain/commands/CreateMemberCommand.ts +++ b/clients/client-managedblockchain/commands/CreateMemberCommand.ts @@ -32,6 +32,7 @@ export class CreateMemberCommand extends $Command< CreateMemberCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateMemberCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/CreateNetworkCommand.ts b/clients/client-managedblockchain/commands/CreateNetworkCommand.ts index 0fdb46e0ea51b..5ecc1acfdf839 100644 --- a/clients/client-managedblockchain/commands/CreateNetworkCommand.ts +++ b/clients/client-managedblockchain/commands/CreateNetworkCommand.ts @@ -32,6 +32,7 @@ export class CreateNetworkCommand extends $Command< CreateNetworkCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateNetworkCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/CreateNodeCommand.ts b/clients/client-managedblockchain/commands/CreateNodeCommand.ts index d9bcd97c04b00..c0c2544518872 100644 --- a/clients/client-managedblockchain/commands/CreateNodeCommand.ts +++ b/clients/client-managedblockchain/commands/CreateNodeCommand.ts @@ -32,6 +32,7 @@ export class CreateNodeCommand extends $Command< CreateNodeCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateNodeCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/CreateProposalCommand.ts b/clients/client-managedblockchain/commands/CreateProposalCommand.ts index 71822e9247e34..76b39d8d883bc 100644 --- a/clients/client-managedblockchain/commands/CreateProposalCommand.ts +++ b/clients/client-managedblockchain/commands/CreateProposalCommand.ts @@ -32,6 +32,7 @@ export class CreateProposalCommand extends $Command< CreateProposalCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateProposalCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/DeleteMemberCommand.ts b/clients/client-managedblockchain/commands/DeleteMemberCommand.ts index ef7ec4a01f48d..13bed16ead1d6 100644 --- a/clients/client-managedblockchain/commands/DeleteMemberCommand.ts +++ b/clients/client-managedblockchain/commands/DeleteMemberCommand.ts @@ -32,6 +32,7 @@ export class DeleteMemberCommand extends $Command< DeleteMemberCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteMemberCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/DeleteNodeCommand.ts b/clients/client-managedblockchain/commands/DeleteNodeCommand.ts index d4f039f8ffd2a..40a9043a67135 100644 --- a/clients/client-managedblockchain/commands/DeleteNodeCommand.ts +++ b/clients/client-managedblockchain/commands/DeleteNodeCommand.ts @@ -32,6 +32,7 @@ export class DeleteNodeCommand extends $Command< DeleteNodeCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteNodeCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/GetMemberCommand.ts b/clients/client-managedblockchain/commands/GetMemberCommand.ts index f6d31d7faf520..753ff1b4656bd 100644 --- a/clients/client-managedblockchain/commands/GetMemberCommand.ts +++ b/clients/client-managedblockchain/commands/GetMemberCommand.ts @@ -32,6 +32,7 @@ export class GetMemberCommand extends $Command< GetMemberCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetMemberCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/GetNetworkCommand.ts b/clients/client-managedblockchain/commands/GetNetworkCommand.ts index c014ff12c1e9f..0d755e9629aac 100644 --- a/clients/client-managedblockchain/commands/GetNetworkCommand.ts +++ b/clients/client-managedblockchain/commands/GetNetworkCommand.ts @@ -32,6 +32,7 @@ export class GetNetworkCommand extends $Command< GetNetworkCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetNetworkCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/GetNodeCommand.ts b/clients/client-managedblockchain/commands/GetNodeCommand.ts index 52a3b2d8a650c..56a80fc6d1afb 100644 --- a/clients/client-managedblockchain/commands/GetNodeCommand.ts +++ b/clients/client-managedblockchain/commands/GetNodeCommand.ts @@ -32,6 +32,7 @@ export class GetNodeCommand extends $Command< GetNodeCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetNodeCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/GetProposalCommand.ts b/clients/client-managedblockchain/commands/GetProposalCommand.ts index a2560beba6fcc..03d5de3454e2f 100644 --- a/clients/client-managedblockchain/commands/GetProposalCommand.ts +++ b/clients/client-managedblockchain/commands/GetProposalCommand.ts @@ -32,6 +32,7 @@ export class GetProposalCommand extends $Command< GetProposalCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetProposalCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListInvitationsCommand.ts b/clients/client-managedblockchain/commands/ListInvitationsCommand.ts index 66cbe14fe0681..5796f424d2b41 100644 --- a/clients/client-managedblockchain/commands/ListInvitationsCommand.ts +++ b/clients/client-managedblockchain/commands/ListInvitationsCommand.ts @@ -32,6 +32,7 @@ export class ListInvitationsCommand extends $Command< ListInvitationsCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListInvitationsCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListMembersCommand.ts b/clients/client-managedblockchain/commands/ListMembersCommand.ts index 2b1d9cc364ceb..18a70cf200ff1 100644 --- a/clients/client-managedblockchain/commands/ListMembersCommand.ts +++ b/clients/client-managedblockchain/commands/ListMembersCommand.ts @@ -32,6 +32,7 @@ export class ListMembersCommand extends $Command< ListMembersCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListMembersCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListNetworksCommand.ts b/clients/client-managedblockchain/commands/ListNetworksCommand.ts index 6b60d40f4e187..7b715ec8b70b4 100644 --- a/clients/client-managedblockchain/commands/ListNetworksCommand.ts +++ b/clients/client-managedblockchain/commands/ListNetworksCommand.ts @@ -32,6 +32,7 @@ export class ListNetworksCommand extends $Command< ListNetworksCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListNetworksCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListNodesCommand.ts b/clients/client-managedblockchain/commands/ListNodesCommand.ts index 3e236b823b505..c28686d0f026e 100644 --- a/clients/client-managedblockchain/commands/ListNodesCommand.ts +++ b/clients/client-managedblockchain/commands/ListNodesCommand.ts @@ -32,6 +32,7 @@ export class ListNodesCommand extends $Command< ListNodesCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListNodesCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListProposalVotesCommand.ts b/clients/client-managedblockchain/commands/ListProposalVotesCommand.ts index 1773c8205018c..43b5ce81c9602 100644 --- a/clients/client-managedblockchain/commands/ListProposalVotesCommand.ts +++ b/clients/client-managedblockchain/commands/ListProposalVotesCommand.ts @@ -32,6 +32,7 @@ export class ListProposalVotesCommand extends $Command< ListProposalVotesCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListProposalVotesCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/ListProposalsCommand.ts b/clients/client-managedblockchain/commands/ListProposalsCommand.ts index 8935a7d231eca..80ccc45653b5f 100644 --- a/clients/client-managedblockchain/commands/ListProposalsCommand.ts +++ b/clients/client-managedblockchain/commands/ListProposalsCommand.ts @@ -32,6 +32,7 @@ export class ListProposalsCommand extends $Command< ListProposalsCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListProposalsCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/RejectInvitationCommand.ts b/clients/client-managedblockchain/commands/RejectInvitationCommand.ts index 2bc41995b2037..2c55ad481c02b 100644 --- a/clients/client-managedblockchain/commands/RejectInvitationCommand.ts +++ b/clients/client-managedblockchain/commands/RejectInvitationCommand.ts @@ -32,6 +32,7 @@ export class RejectInvitationCommand extends $Command< RejectInvitationCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RejectInvitationCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/UpdateMemberCommand.ts b/clients/client-managedblockchain/commands/UpdateMemberCommand.ts index dbae52ee91f7f..376a9f43ffc80 100644 --- a/clients/client-managedblockchain/commands/UpdateMemberCommand.ts +++ b/clients/client-managedblockchain/commands/UpdateMemberCommand.ts @@ -32,6 +32,7 @@ export class UpdateMemberCommand extends $Command< UpdateMemberCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateMemberCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/UpdateNodeCommand.ts b/clients/client-managedblockchain/commands/UpdateNodeCommand.ts index 0efdfb73954a9..98c7d808a0400 100644 --- a/clients/client-managedblockchain/commands/UpdateNodeCommand.ts +++ b/clients/client-managedblockchain/commands/UpdateNodeCommand.ts @@ -32,6 +32,7 @@ export class UpdateNodeCommand extends $Command< UpdateNodeCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateNodeCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-managedblockchain/commands/VoteOnProposalCommand.ts b/clients/client-managedblockchain/commands/VoteOnProposalCommand.ts index 16c296e2b98d6..ca55746a9d044 100644 --- a/clients/client-managedblockchain/commands/VoteOnProposalCommand.ts +++ b/clients/client-managedblockchain/commands/VoteOnProposalCommand.ts @@ -32,6 +32,7 @@ export class VoteOnProposalCommand extends $Command< VoteOnProposalCommandOutput, ManagedBlockchainClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class VoteOnProposalCommand extends $Command< configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/CancelChangeSetCommand.ts b/clients/client-marketplace-catalog/commands/CancelChangeSetCommand.ts index 7cd412ccf9048..766df56c780c7 100644 --- a/clients/client-marketplace-catalog/commands/CancelChangeSetCommand.ts +++ b/clients/client-marketplace-catalog/commands/CancelChangeSetCommand.ts @@ -35,6 +35,7 @@ export class CancelChangeSetCommand extends $Command< CancelChangeSetCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CancelChangeSetCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/DescribeChangeSetCommand.ts b/clients/client-marketplace-catalog/commands/DescribeChangeSetCommand.ts index cda8504eae2aa..86d8e90b0a910 100644 --- a/clients/client-marketplace-catalog/commands/DescribeChangeSetCommand.ts +++ b/clients/client-marketplace-catalog/commands/DescribeChangeSetCommand.ts @@ -32,6 +32,7 @@ export class DescribeChangeSetCommand extends $Command< DescribeChangeSetCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeChangeSetCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/DescribeEntityCommand.ts b/clients/client-marketplace-catalog/commands/DescribeEntityCommand.ts index 53f185943e131..a3e9ff1e12faf 100644 --- a/clients/client-marketplace-catalog/commands/DescribeEntityCommand.ts +++ b/clients/client-marketplace-catalog/commands/DescribeEntityCommand.ts @@ -32,6 +32,7 @@ export class DescribeEntityCommand extends $Command< DescribeEntityCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEntityCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/ListChangeSetsCommand.ts b/clients/client-marketplace-catalog/commands/ListChangeSetsCommand.ts index 7f7a73f20a5c5..031337ad193c5 100644 --- a/clients/client-marketplace-catalog/commands/ListChangeSetsCommand.ts +++ b/clients/client-marketplace-catalog/commands/ListChangeSetsCommand.ts @@ -38,6 +38,7 @@ export class ListChangeSetsCommand extends $Command< ListChangeSetsCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListChangeSetsCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/ListEntitiesCommand.ts b/clients/client-marketplace-catalog/commands/ListEntitiesCommand.ts index 6ef4ca1fde0cd..edc045a8466df 100644 --- a/clients/client-marketplace-catalog/commands/ListEntitiesCommand.ts +++ b/clients/client-marketplace-catalog/commands/ListEntitiesCommand.ts @@ -32,6 +32,7 @@ export class ListEntitiesCommand extends $Command< ListEntitiesCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListEntitiesCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-catalog/commands/StartChangeSetCommand.ts b/clients/client-marketplace-catalog/commands/StartChangeSetCommand.ts index 697d9dd2be2c1..ec17821a2ccf6 100644 --- a/clients/client-marketplace-catalog/commands/StartChangeSetCommand.ts +++ b/clients/client-marketplace-catalog/commands/StartChangeSetCommand.ts @@ -42,6 +42,7 @@ export class StartChangeSetCommand extends $Command< StartChangeSetCommandOutput, MarketplaceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class StartChangeSetCommand extends $Command< configuration: MarketplaceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-commerce-analytics/commands/GenerateDataSetCommand.ts b/clients/client-marketplace-commerce-analytics/commands/GenerateDataSetCommand.ts index 4e567324cd128..0069af963578c 100644 --- a/clients/client-marketplace-commerce-analytics/commands/GenerateDataSetCommand.ts +++ b/clients/client-marketplace-commerce-analytics/commands/GenerateDataSetCommand.ts @@ -39,6 +39,7 @@ export class GenerateDataSetCommand extends $Command< GenerateDataSetCommandOutput, MarketplaceCommerceAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GenerateDataSetCommand extends $Command< configuration: MarketplaceCommerceAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-commerce-analytics/commands/StartSupportDataExportCommand.ts b/clients/client-marketplace-commerce-analytics/commands/StartSupportDataExportCommand.ts index 7f4b42ecc10cf..32448ecae50b4 100644 --- a/clients/client-marketplace-commerce-analytics/commands/StartSupportDataExportCommand.ts +++ b/clients/client-marketplace-commerce-analytics/commands/StartSupportDataExportCommand.ts @@ -39,6 +39,7 @@ export class StartSupportDataExportCommand extends $Command< StartSupportDataExportCommandOutput, MarketplaceCommerceAnalyticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class StartSupportDataExportCommand extends $Command< configuration: MarketplaceCommerceAnalyticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-entitlement-service/commands/GetEntitlementsCommand.ts b/clients/client-marketplace-entitlement-service/commands/GetEntitlementsCommand.ts index 32ac654ed48b6..de3894ac5c265 100644 --- a/clients/client-marketplace-entitlement-service/commands/GetEntitlementsCommand.ts +++ b/clients/client-marketplace-entitlement-service/commands/GetEntitlementsCommand.ts @@ -33,6 +33,7 @@ export class GetEntitlementsCommand extends $Command< GetEntitlementsCommandOutput, MarketplaceEntitlementServiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetEntitlementsCommand extends $Command< configuration: MarketplaceEntitlementServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-metering/commands/BatchMeterUsageCommand.ts b/clients/client-marketplace-metering/commands/BatchMeterUsageCommand.ts index 781a0d1b85955..551abe014beb2 100644 --- a/clients/client-marketplace-metering/commands/BatchMeterUsageCommand.ts +++ b/clients/client-marketplace-metering/commands/BatchMeterUsageCommand.ts @@ -42,6 +42,7 @@ export class BatchMeterUsageCommand extends $Command< BatchMeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class BatchMeterUsageCommand extends $Command< configuration: MarketplaceMeteringClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-metering/commands/MeterUsageCommand.ts b/clients/client-marketplace-metering/commands/MeterUsageCommand.ts index 34035faccc318..926ea58986f54 100644 --- a/clients/client-marketplace-metering/commands/MeterUsageCommand.ts +++ b/clients/client-marketplace-metering/commands/MeterUsageCommand.ts @@ -38,6 +38,7 @@ export class MeterUsageCommand extends $Command< MeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class MeterUsageCommand extends $Command< configuration: MarketplaceMeteringClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-metering/commands/RegisterUsageCommand.ts b/clients/client-marketplace-metering/commands/RegisterUsageCommand.ts index b2d9029ecd435..06fb0ba0c58f7 100644 --- a/clients/client-marketplace-metering/commands/RegisterUsageCommand.ts +++ b/clients/client-marketplace-metering/commands/RegisterUsageCommand.ts @@ -70,6 +70,7 @@ export class RegisterUsageCommand extends $Command< RegisterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class RegisterUsageCommand extends $Command< configuration: MarketplaceMeteringClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-marketplace-metering/commands/ResolveCustomerCommand.ts b/clients/client-marketplace-metering/commands/ResolveCustomerCommand.ts index 5dc93040820d3..a7dfb5c029c71 100644 --- a/clients/client-marketplace-metering/commands/ResolveCustomerCommand.ts +++ b/clients/client-marketplace-metering/commands/ResolveCustomerCommand.ts @@ -35,6 +35,7 @@ export class ResolveCustomerCommand extends $Command< ResolveCustomerCommandOutput, MarketplaceMeteringClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ResolveCustomerCommand extends $Command< configuration: MarketplaceMeteringClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/AddFlowOutputsCommand.ts b/clients/client-mediaconnect/commands/AddFlowOutputsCommand.ts index 6a1058e60fbed..ae48c3498c877 100644 --- a/clients/client-mediaconnect/commands/AddFlowOutputsCommand.ts +++ b/clients/client-mediaconnect/commands/AddFlowOutputsCommand.ts @@ -28,6 +28,7 @@ export class AddFlowOutputsCommand extends $Command< AddFlowOutputsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddFlowOutputsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/AddFlowSourcesCommand.ts b/clients/client-mediaconnect/commands/AddFlowSourcesCommand.ts index 9d4b7ccaecf20..c60ae7a7f4e90 100644 --- a/clients/client-mediaconnect/commands/AddFlowSourcesCommand.ts +++ b/clients/client-mediaconnect/commands/AddFlowSourcesCommand.ts @@ -28,6 +28,7 @@ export class AddFlowSourcesCommand extends $Command< AddFlowSourcesCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddFlowSourcesCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/AddFlowVpcInterfacesCommand.ts b/clients/client-mediaconnect/commands/AddFlowVpcInterfacesCommand.ts index 1ee2bb8c7a2d5..2f12d103cf7fd 100644 --- a/clients/client-mediaconnect/commands/AddFlowVpcInterfacesCommand.ts +++ b/clients/client-mediaconnect/commands/AddFlowVpcInterfacesCommand.ts @@ -28,6 +28,7 @@ export class AddFlowVpcInterfacesCommand extends $Command< AddFlowVpcInterfacesCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddFlowVpcInterfacesCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/CreateFlowCommand.ts b/clients/client-mediaconnect/commands/CreateFlowCommand.ts index f6d6d4dbe09a9..79eed5e938166 100644 --- a/clients/client-mediaconnect/commands/CreateFlowCommand.ts +++ b/clients/client-mediaconnect/commands/CreateFlowCommand.ts @@ -28,6 +28,7 @@ export class CreateFlowCommand extends $Command< CreateFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/DeleteFlowCommand.ts b/clients/client-mediaconnect/commands/DeleteFlowCommand.ts index f1b3e35313fb3..ca0a46637f1a5 100644 --- a/clients/client-mediaconnect/commands/DeleteFlowCommand.ts +++ b/clients/client-mediaconnect/commands/DeleteFlowCommand.ts @@ -28,6 +28,7 @@ export class DeleteFlowCommand extends $Command< DeleteFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/DescribeFlowCommand.ts b/clients/client-mediaconnect/commands/DescribeFlowCommand.ts index a510f245fb9bb..5cb3791cee3a3 100644 --- a/clients/client-mediaconnect/commands/DescribeFlowCommand.ts +++ b/clients/client-mediaconnect/commands/DescribeFlowCommand.ts @@ -28,6 +28,7 @@ export class DescribeFlowCommand extends $Command< DescribeFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/DescribeOfferingCommand.ts b/clients/client-mediaconnect/commands/DescribeOfferingCommand.ts index 40d225dd02e28..518c9d0640f06 100644 --- a/clients/client-mediaconnect/commands/DescribeOfferingCommand.ts +++ b/clients/client-mediaconnect/commands/DescribeOfferingCommand.ts @@ -28,6 +28,7 @@ export class DescribeOfferingCommand extends $Command< DescribeOfferingCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOfferingCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/DescribeReservationCommand.ts b/clients/client-mediaconnect/commands/DescribeReservationCommand.ts index 9e97bbc1dfaeb..0845631fb23e3 100644 --- a/clients/client-mediaconnect/commands/DescribeReservationCommand.ts +++ b/clients/client-mediaconnect/commands/DescribeReservationCommand.ts @@ -28,6 +28,7 @@ export class DescribeReservationCommand extends $Command< DescribeReservationCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReservationCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/GrantFlowEntitlementsCommand.ts b/clients/client-mediaconnect/commands/GrantFlowEntitlementsCommand.ts index 0fd727d34efdb..71214191500d6 100644 --- a/clients/client-mediaconnect/commands/GrantFlowEntitlementsCommand.ts +++ b/clients/client-mediaconnect/commands/GrantFlowEntitlementsCommand.ts @@ -28,6 +28,7 @@ export class GrantFlowEntitlementsCommand extends $Command< GrantFlowEntitlementsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GrantFlowEntitlementsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/ListEntitlementsCommand.ts b/clients/client-mediaconnect/commands/ListEntitlementsCommand.ts index 2859a14b624ce..1870a38c7253e 100644 --- a/clients/client-mediaconnect/commands/ListEntitlementsCommand.ts +++ b/clients/client-mediaconnect/commands/ListEntitlementsCommand.ts @@ -28,6 +28,7 @@ export class ListEntitlementsCommand extends $Command< ListEntitlementsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEntitlementsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/ListFlowsCommand.ts b/clients/client-mediaconnect/commands/ListFlowsCommand.ts index a55e3dfef7c6c..a5710edca3453 100644 --- a/clients/client-mediaconnect/commands/ListFlowsCommand.ts +++ b/clients/client-mediaconnect/commands/ListFlowsCommand.ts @@ -28,6 +28,7 @@ export class ListFlowsCommand extends $Command< ListFlowsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFlowsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/ListOfferingsCommand.ts b/clients/client-mediaconnect/commands/ListOfferingsCommand.ts index 7765ba61992c0..8e48757e3bb45 100644 --- a/clients/client-mediaconnect/commands/ListOfferingsCommand.ts +++ b/clients/client-mediaconnect/commands/ListOfferingsCommand.ts @@ -28,6 +28,7 @@ export class ListOfferingsCommand extends $Command< ListOfferingsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOfferingsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/ListReservationsCommand.ts b/clients/client-mediaconnect/commands/ListReservationsCommand.ts index 87a29a5f8d89c..1877e45e9ea22 100644 --- a/clients/client-mediaconnect/commands/ListReservationsCommand.ts +++ b/clients/client-mediaconnect/commands/ListReservationsCommand.ts @@ -28,6 +28,7 @@ export class ListReservationsCommand extends $Command< ListReservationsCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListReservationsCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/ListTagsForResourceCommand.ts b/clients/client-mediaconnect/commands/ListTagsForResourceCommand.ts index 249a624f38f05..fe1dc237696c3 100644 --- a/clients/client-mediaconnect/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediaconnect/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/PurchaseOfferingCommand.ts b/clients/client-mediaconnect/commands/PurchaseOfferingCommand.ts index 33483d6658c6f..cea418c2216a6 100644 --- a/clients/client-mediaconnect/commands/PurchaseOfferingCommand.ts +++ b/clients/client-mediaconnect/commands/PurchaseOfferingCommand.ts @@ -28,6 +28,7 @@ export class PurchaseOfferingCommand extends $Command< PurchaseOfferingCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PurchaseOfferingCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/RemoveFlowOutputCommand.ts b/clients/client-mediaconnect/commands/RemoveFlowOutputCommand.ts index 9cd64738d2e16..9ad291b0a888a 100644 --- a/clients/client-mediaconnect/commands/RemoveFlowOutputCommand.ts +++ b/clients/client-mediaconnect/commands/RemoveFlowOutputCommand.ts @@ -28,6 +28,7 @@ export class RemoveFlowOutputCommand extends $Command< RemoveFlowOutputCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveFlowOutputCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/RemoveFlowSourceCommand.ts b/clients/client-mediaconnect/commands/RemoveFlowSourceCommand.ts index 7eda6a546629a..0dc144c519b4c 100644 --- a/clients/client-mediaconnect/commands/RemoveFlowSourceCommand.ts +++ b/clients/client-mediaconnect/commands/RemoveFlowSourceCommand.ts @@ -28,6 +28,7 @@ export class RemoveFlowSourceCommand extends $Command< RemoveFlowSourceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveFlowSourceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/RemoveFlowVpcInterfaceCommand.ts b/clients/client-mediaconnect/commands/RemoveFlowVpcInterfaceCommand.ts index 9cb535c3651dd..32e7ce1d08a17 100644 --- a/clients/client-mediaconnect/commands/RemoveFlowVpcInterfaceCommand.ts +++ b/clients/client-mediaconnect/commands/RemoveFlowVpcInterfaceCommand.ts @@ -28,6 +28,7 @@ export class RemoveFlowVpcInterfaceCommand extends $Command< RemoveFlowVpcInterfaceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveFlowVpcInterfaceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/RevokeFlowEntitlementCommand.ts b/clients/client-mediaconnect/commands/RevokeFlowEntitlementCommand.ts index c8414d6c5d829..c66f8b299c322 100644 --- a/clients/client-mediaconnect/commands/RevokeFlowEntitlementCommand.ts +++ b/clients/client-mediaconnect/commands/RevokeFlowEntitlementCommand.ts @@ -28,6 +28,7 @@ export class RevokeFlowEntitlementCommand extends $Command< RevokeFlowEntitlementCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokeFlowEntitlementCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/StartFlowCommand.ts b/clients/client-mediaconnect/commands/StartFlowCommand.ts index 20f42fcbd2c98..175fb63a63c00 100644 --- a/clients/client-mediaconnect/commands/StartFlowCommand.ts +++ b/clients/client-mediaconnect/commands/StartFlowCommand.ts @@ -28,6 +28,7 @@ export class StartFlowCommand extends $Command< StartFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/StopFlowCommand.ts b/clients/client-mediaconnect/commands/StopFlowCommand.ts index b07d01967046b..a3f5b6513d4fc 100644 --- a/clients/client-mediaconnect/commands/StopFlowCommand.ts +++ b/clients/client-mediaconnect/commands/StopFlowCommand.ts @@ -28,6 +28,7 @@ export class StopFlowCommand extends $Command< StopFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/TagResourceCommand.ts b/clients/client-mediaconnect/commands/TagResourceCommand.ts index 66ae6c6793086..4968de59a846b 100644 --- a/clients/client-mediaconnect/commands/TagResourceCommand.ts +++ b/clients/client-mediaconnect/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/UntagResourceCommand.ts b/clients/client-mediaconnect/commands/UntagResourceCommand.ts index c7548d31b10f6..3cf280b7f6859 100644 --- a/clients/client-mediaconnect/commands/UntagResourceCommand.ts +++ b/clients/client-mediaconnect/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/UpdateFlowCommand.ts b/clients/client-mediaconnect/commands/UpdateFlowCommand.ts index ad811817e516b..34b6cb019f60a 100644 --- a/clients/client-mediaconnect/commands/UpdateFlowCommand.ts +++ b/clients/client-mediaconnect/commands/UpdateFlowCommand.ts @@ -28,6 +28,7 @@ export class UpdateFlowCommand extends $Command< UpdateFlowCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFlowCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/UpdateFlowEntitlementCommand.ts b/clients/client-mediaconnect/commands/UpdateFlowEntitlementCommand.ts index dd9ecf8d1ca53..3c3ab2227cadd 100644 --- a/clients/client-mediaconnect/commands/UpdateFlowEntitlementCommand.ts +++ b/clients/client-mediaconnect/commands/UpdateFlowEntitlementCommand.ts @@ -28,6 +28,7 @@ export class UpdateFlowEntitlementCommand extends $Command< UpdateFlowEntitlementCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFlowEntitlementCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/UpdateFlowOutputCommand.ts b/clients/client-mediaconnect/commands/UpdateFlowOutputCommand.ts index 0333edb3efb9b..84c411dd61fad 100644 --- a/clients/client-mediaconnect/commands/UpdateFlowOutputCommand.ts +++ b/clients/client-mediaconnect/commands/UpdateFlowOutputCommand.ts @@ -28,6 +28,7 @@ export class UpdateFlowOutputCommand extends $Command< UpdateFlowOutputCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFlowOutputCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconnect/commands/UpdateFlowSourceCommand.ts b/clients/client-mediaconnect/commands/UpdateFlowSourceCommand.ts index a4108517a6f22..d3c67750c270f 100644 --- a/clients/client-mediaconnect/commands/UpdateFlowSourceCommand.ts +++ b/clients/client-mediaconnect/commands/UpdateFlowSourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateFlowSourceCommand extends $Command< UpdateFlowSourceCommandOutput, MediaConnectClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFlowSourceCommand extends $Command< configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/AssociateCertificateCommand.ts b/clients/client-mediaconvert/commands/AssociateCertificateCommand.ts index a053be32d2f41..436e7771de491 100644 --- a/clients/client-mediaconvert/commands/AssociateCertificateCommand.ts +++ b/clients/client-mediaconvert/commands/AssociateCertificateCommand.ts @@ -28,6 +28,7 @@ export class AssociateCertificateCommand extends $Command< AssociateCertificateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateCertificateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/CancelJobCommand.ts b/clients/client-mediaconvert/commands/CancelJobCommand.ts index 77eb270331370..db387d499b7ce 100644 --- a/clients/client-mediaconvert/commands/CancelJobCommand.ts +++ b/clients/client-mediaconvert/commands/CancelJobCommand.ts @@ -28,6 +28,7 @@ export class CancelJobCommand extends $Command< CancelJobCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelJobCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/CreateJobCommand.ts b/clients/client-mediaconvert/commands/CreateJobCommand.ts index 96cf121f5ebd9..0b919290e4291 100644 --- a/clients/client-mediaconvert/commands/CreateJobCommand.ts +++ b/clients/client-mediaconvert/commands/CreateJobCommand.ts @@ -28,6 +28,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateJobCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/CreateJobTemplateCommand.ts b/clients/client-mediaconvert/commands/CreateJobTemplateCommand.ts index d1f3c9b7acc9c..85a8e8937c948 100644 --- a/clients/client-mediaconvert/commands/CreateJobTemplateCommand.ts +++ b/clients/client-mediaconvert/commands/CreateJobTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateJobTemplateCommand extends $Command< CreateJobTemplateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateJobTemplateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/CreatePresetCommand.ts b/clients/client-mediaconvert/commands/CreatePresetCommand.ts index 12210701c2943..d037077b352ea 100644 --- a/clients/client-mediaconvert/commands/CreatePresetCommand.ts +++ b/clients/client-mediaconvert/commands/CreatePresetCommand.ts @@ -28,6 +28,7 @@ export class CreatePresetCommand extends $Command< CreatePresetCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePresetCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/CreateQueueCommand.ts b/clients/client-mediaconvert/commands/CreateQueueCommand.ts index 789a9c644d689..6fd5c8a4e4ed0 100644 --- a/clients/client-mediaconvert/commands/CreateQueueCommand.ts +++ b/clients/client-mediaconvert/commands/CreateQueueCommand.ts @@ -28,6 +28,7 @@ export class CreateQueueCommand extends $Command< CreateQueueCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateQueueCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/DeleteJobTemplateCommand.ts b/clients/client-mediaconvert/commands/DeleteJobTemplateCommand.ts index cb97189fbd43b..fd9b928707132 100644 --- a/clients/client-mediaconvert/commands/DeleteJobTemplateCommand.ts +++ b/clients/client-mediaconvert/commands/DeleteJobTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteJobTemplateCommand extends $Command< DeleteJobTemplateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteJobTemplateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/DeletePresetCommand.ts b/clients/client-mediaconvert/commands/DeletePresetCommand.ts index 50c04073ef47a..a5d20f088843d 100644 --- a/clients/client-mediaconvert/commands/DeletePresetCommand.ts +++ b/clients/client-mediaconvert/commands/DeletePresetCommand.ts @@ -28,6 +28,7 @@ export class DeletePresetCommand extends $Command< DeletePresetCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePresetCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/DeleteQueueCommand.ts b/clients/client-mediaconvert/commands/DeleteQueueCommand.ts index 40fca511080c2..3f9083ec199bb 100644 --- a/clients/client-mediaconvert/commands/DeleteQueueCommand.ts +++ b/clients/client-mediaconvert/commands/DeleteQueueCommand.ts @@ -28,6 +28,7 @@ export class DeleteQueueCommand extends $Command< DeleteQueueCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteQueueCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/DescribeEndpointsCommand.ts b/clients/client-mediaconvert/commands/DescribeEndpointsCommand.ts index 8ba1e094af4aa..ee74571a83626 100644 --- a/clients/client-mediaconvert/commands/DescribeEndpointsCommand.ts +++ b/clients/client-mediaconvert/commands/DescribeEndpointsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEndpointsCommand extends $Command< DescribeEndpointsCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEndpointsCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/DisassociateCertificateCommand.ts b/clients/client-mediaconvert/commands/DisassociateCertificateCommand.ts index 9a05975ce1c5a..5cc59b7f9ba8d 100644 --- a/clients/client-mediaconvert/commands/DisassociateCertificateCommand.ts +++ b/clients/client-mediaconvert/commands/DisassociateCertificateCommand.ts @@ -28,6 +28,7 @@ export class DisassociateCertificateCommand extends $Command< DisassociateCertificateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateCertificateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/GetJobCommand.ts b/clients/client-mediaconvert/commands/GetJobCommand.ts index bdef0c438953c..7ebd31eb778a5 100644 --- a/clients/client-mediaconvert/commands/GetJobCommand.ts +++ b/clients/client-mediaconvert/commands/GetJobCommand.ts @@ -21,6 +21,7 @@ export type GetJobCommandOutput = GetJobResponse & __MetadataBearer; * Retrieve the JSON for a specific completed transcoding job. */ 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-mediaconvert/commands/GetJobTemplateCommand.ts b/clients/client-mediaconvert/commands/GetJobTemplateCommand.ts index c619c48bbd5bb..d89fd000a0485 100644 --- a/clients/client-mediaconvert/commands/GetJobTemplateCommand.ts +++ b/clients/client-mediaconvert/commands/GetJobTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetJobTemplateCommand extends $Command< GetJobTemplateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJobTemplateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/GetPresetCommand.ts b/clients/client-mediaconvert/commands/GetPresetCommand.ts index befc09a1068a8..60e0e39ff96b8 100644 --- a/clients/client-mediaconvert/commands/GetPresetCommand.ts +++ b/clients/client-mediaconvert/commands/GetPresetCommand.ts @@ -28,6 +28,7 @@ export class GetPresetCommand extends $Command< GetPresetCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPresetCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/GetQueueCommand.ts b/clients/client-mediaconvert/commands/GetQueueCommand.ts index 4105bdc4594b7..c677b823e2ae9 100644 --- a/clients/client-mediaconvert/commands/GetQueueCommand.ts +++ b/clients/client-mediaconvert/commands/GetQueueCommand.ts @@ -28,6 +28,7 @@ export class GetQueueCommand extends $Command< GetQueueCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetQueueCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/ListJobTemplatesCommand.ts b/clients/client-mediaconvert/commands/ListJobTemplatesCommand.ts index fc49517e946b3..b79ab1414a794 100644 --- a/clients/client-mediaconvert/commands/ListJobTemplatesCommand.ts +++ b/clients/client-mediaconvert/commands/ListJobTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListJobTemplatesCommand extends $Command< ListJobTemplatesCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobTemplatesCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/ListJobsCommand.ts b/clients/client-mediaconvert/commands/ListJobsCommand.ts index 48eb48b2c7c2a..9bd389bfe6b29 100644 --- a/clients/client-mediaconvert/commands/ListJobsCommand.ts +++ b/clients/client-mediaconvert/commands/ListJobsCommand.ts @@ -28,6 +28,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJobsCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/ListPresetsCommand.ts b/clients/client-mediaconvert/commands/ListPresetsCommand.ts index baa5026db4d42..64ffe58da42a7 100644 --- a/clients/client-mediaconvert/commands/ListPresetsCommand.ts +++ b/clients/client-mediaconvert/commands/ListPresetsCommand.ts @@ -28,6 +28,7 @@ export class ListPresetsCommand extends $Command< ListPresetsCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPresetsCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/ListQueuesCommand.ts b/clients/client-mediaconvert/commands/ListQueuesCommand.ts index 7d4618b3954f4..50ef68ce01351 100644 --- a/clients/client-mediaconvert/commands/ListQueuesCommand.ts +++ b/clients/client-mediaconvert/commands/ListQueuesCommand.ts @@ -28,6 +28,7 @@ export class ListQueuesCommand extends $Command< ListQueuesCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListQueuesCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/ListTagsForResourceCommand.ts b/clients/client-mediaconvert/commands/ListTagsForResourceCommand.ts index a9eabde0b9bec..10a9106439a0d 100644 --- a/clients/client-mediaconvert/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediaconvert/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/TagResourceCommand.ts b/clients/client-mediaconvert/commands/TagResourceCommand.ts index c10a199caa841..c122429345964 100644 --- a/clients/client-mediaconvert/commands/TagResourceCommand.ts +++ b/clients/client-mediaconvert/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/UntagResourceCommand.ts b/clients/client-mediaconvert/commands/UntagResourceCommand.ts index ad30251c377a0..b09e45ddbae92 100644 --- a/clients/client-mediaconvert/commands/UntagResourceCommand.ts +++ b/clients/client-mediaconvert/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/UpdateJobTemplateCommand.ts b/clients/client-mediaconvert/commands/UpdateJobTemplateCommand.ts index f571e16854088..19918b4efc4a1 100644 --- a/clients/client-mediaconvert/commands/UpdateJobTemplateCommand.ts +++ b/clients/client-mediaconvert/commands/UpdateJobTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateJobTemplateCommand extends $Command< UpdateJobTemplateCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJobTemplateCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/UpdatePresetCommand.ts b/clients/client-mediaconvert/commands/UpdatePresetCommand.ts index 32ec601fda541..0a9daaa8696a9 100644 --- a/clients/client-mediaconvert/commands/UpdatePresetCommand.ts +++ b/clients/client-mediaconvert/commands/UpdatePresetCommand.ts @@ -28,6 +28,7 @@ export class UpdatePresetCommand extends $Command< UpdatePresetCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePresetCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediaconvert/commands/UpdateQueueCommand.ts b/clients/client-mediaconvert/commands/UpdateQueueCommand.ts index 787d3ef9577a9..6a48c07ebe12f 100644 --- a/clients/client-mediaconvert/commands/UpdateQueueCommand.ts +++ b/clients/client-mediaconvert/commands/UpdateQueueCommand.ts @@ -28,6 +28,7 @@ export class UpdateQueueCommand extends $Command< UpdateQueueCommandOutput, MediaConvertClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateQueueCommand extends $Command< configuration: MediaConvertClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/AcceptInputDeviceTransferCommand.ts b/clients/client-medialive/commands/AcceptInputDeviceTransferCommand.ts index 4eae10ac143d4..97da4a0158b29 100644 --- a/clients/client-medialive/commands/AcceptInputDeviceTransferCommand.ts +++ b/clients/client-medialive/commands/AcceptInputDeviceTransferCommand.ts @@ -28,6 +28,7 @@ export class AcceptInputDeviceTransferCommand extends $Command< AcceptInputDeviceTransferCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptInputDeviceTransferCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/BatchDeleteCommand.ts b/clients/client-medialive/commands/BatchDeleteCommand.ts index 0be9b32f5db5a..3343dc6cf4947 100644 --- a/clients/client-medialive/commands/BatchDeleteCommand.ts +++ b/clients/client-medialive/commands/BatchDeleteCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteCommand extends $Command< BatchDeleteCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/BatchStartCommand.ts b/clients/client-medialive/commands/BatchStartCommand.ts index 8e91f757d832d..750bec767f023 100644 --- a/clients/client-medialive/commands/BatchStartCommand.ts +++ b/clients/client-medialive/commands/BatchStartCommand.ts @@ -28,6 +28,7 @@ export class BatchStartCommand extends $Command< BatchStartCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchStartCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/BatchStopCommand.ts b/clients/client-medialive/commands/BatchStopCommand.ts index 30d4339132cb1..2d90419b8e814 100644 --- a/clients/client-medialive/commands/BatchStopCommand.ts +++ b/clients/client-medialive/commands/BatchStopCommand.ts @@ -28,6 +28,7 @@ export class BatchStopCommand extends $Command< BatchStopCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchStopCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/BatchUpdateScheduleCommand.ts b/clients/client-medialive/commands/BatchUpdateScheduleCommand.ts index 5311151e99ca9..c5930c124f31e 100644 --- a/clients/client-medialive/commands/BatchUpdateScheduleCommand.ts +++ b/clients/client-medialive/commands/BatchUpdateScheduleCommand.ts @@ -28,6 +28,7 @@ export class BatchUpdateScheduleCommand extends $Command< BatchUpdateScheduleCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchUpdateScheduleCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CancelInputDeviceTransferCommand.ts b/clients/client-medialive/commands/CancelInputDeviceTransferCommand.ts index 1555d0c0e78cd..197225a945ecc 100644 --- a/clients/client-medialive/commands/CancelInputDeviceTransferCommand.ts +++ b/clients/client-medialive/commands/CancelInputDeviceTransferCommand.ts @@ -28,6 +28,7 @@ export class CancelInputDeviceTransferCommand extends $Command< CancelInputDeviceTransferCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelInputDeviceTransferCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateChannelCommand.ts b/clients/client-medialive/commands/CreateChannelCommand.ts index ddf1c5e0a662b..d607c74feb341 100644 --- a/clients/client-medialive/commands/CreateChannelCommand.ts +++ b/clients/client-medialive/commands/CreateChannelCommand.ts @@ -28,6 +28,7 @@ export class CreateChannelCommand extends $Command< CreateChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateInputCommand.ts b/clients/client-medialive/commands/CreateInputCommand.ts index 4b1ea0dff7b94..7f4debff81bf5 100644 --- a/clients/client-medialive/commands/CreateInputCommand.ts +++ b/clients/client-medialive/commands/CreateInputCommand.ts @@ -28,6 +28,7 @@ export class CreateInputCommand extends $Command< CreateInputCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateInputCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateInputSecurityGroupCommand.ts b/clients/client-medialive/commands/CreateInputSecurityGroupCommand.ts index cfbdfad089456..0704449a61ff6 100644 --- a/clients/client-medialive/commands/CreateInputSecurityGroupCommand.ts +++ b/clients/client-medialive/commands/CreateInputSecurityGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateInputSecurityGroupCommand extends $Command< CreateInputSecurityGroupCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateInputSecurityGroupCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateMultiplexCommand.ts b/clients/client-medialive/commands/CreateMultiplexCommand.ts index dd7cd490c4496..e38f53bdac20e 100644 --- a/clients/client-medialive/commands/CreateMultiplexCommand.ts +++ b/clients/client-medialive/commands/CreateMultiplexCommand.ts @@ -28,6 +28,7 @@ export class CreateMultiplexCommand extends $Command< CreateMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateMultiplexProgramCommand.ts b/clients/client-medialive/commands/CreateMultiplexProgramCommand.ts index 19a8be1eb62b5..87626a3b99f62 100644 --- a/clients/client-medialive/commands/CreateMultiplexProgramCommand.ts +++ b/clients/client-medialive/commands/CreateMultiplexProgramCommand.ts @@ -28,6 +28,7 @@ export class CreateMultiplexProgramCommand extends $Command< CreateMultiplexProgramCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateMultiplexProgramCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/CreateTagsCommand.ts b/clients/client-medialive/commands/CreateTagsCommand.ts index 2d7f78f3914b8..6c85c0b85f529 100644 --- a/clients/client-medialive/commands/CreateTagsCommand.ts +++ b/clients/client-medialive/commands/CreateTagsCommand.ts @@ -28,6 +28,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTagsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteChannelCommand.ts b/clients/client-medialive/commands/DeleteChannelCommand.ts index 1557b0fc471c5..f5a9e3a771e09 100644 --- a/clients/client-medialive/commands/DeleteChannelCommand.ts +++ b/clients/client-medialive/commands/DeleteChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelCommand extends $Command< DeleteChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteInputCommand.ts b/clients/client-medialive/commands/DeleteInputCommand.ts index 41900579d2ce8..91c56743b63d5 100644 --- a/clients/client-medialive/commands/DeleteInputCommand.ts +++ b/clients/client-medialive/commands/DeleteInputCommand.ts @@ -28,6 +28,7 @@ export class DeleteInputCommand extends $Command< DeleteInputCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInputCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteInputSecurityGroupCommand.ts b/clients/client-medialive/commands/DeleteInputSecurityGroupCommand.ts index fb02ff839a961..4e7ecc32a98ce 100644 --- a/clients/client-medialive/commands/DeleteInputSecurityGroupCommand.ts +++ b/clients/client-medialive/commands/DeleteInputSecurityGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteInputSecurityGroupCommand extends $Command< DeleteInputSecurityGroupCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInputSecurityGroupCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteMultiplexCommand.ts b/clients/client-medialive/commands/DeleteMultiplexCommand.ts index 40e9cc48794e5..b1a460acd00b3 100644 --- a/clients/client-medialive/commands/DeleteMultiplexCommand.ts +++ b/clients/client-medialive/commands/DeleteMultiplexCommand.ts @@ -28,6 +28,7 @@ export class DeleteMultiplexCommand extends $Command< DeleteMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteMultiplexProgramCommand.ts b/clients/client-medialive/commands/DeleteMultiplexProgramCommand.ts index bcf432b59e9b7..65df05bc547c6 100644 --- a/clients/client-medialive/commands/DeleteMultiplexProgramCommand.ts +++ b/clients/client-medialive/commands/DeleteMultiplexProgramCommand.ts @@ -28,6 +28,7 @@ export class DeleteMultiplexProgramCommand extends $Command< DeleteMultiplexProgramCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMultiplexProgramCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteReservationCommand.ts b/clients/client-medialive/commands/DeleteReservationCommand.ts index 920aa500cdcfb..11a30a22b0530 100644 --- a/clients/client-medialive/commands/DeleteReservationCommand.ts +++ b/clients/client-medialive/commands/DeleteReservationCommand.ts @@ -28,6 +28,7 @@ export class DeleteReservationCommand extends $Command< DeleteReservationCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteReservationCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteScheduleCommand.ts b/clients/client-medialive/commands/DeleteScheduleCommand.ts index a21158918415d..73855c980e40a 100644 --- a/clients/client-medialive/commands/DeleteScheduleCommand.ts +++ b/clients/client-medialive/commands/DeleteScheduleCommand.ts @@ -28,6 +28,7 @@ export class DeleteScheduleCommand extends $Command< DeleteScheduleCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteScheduleCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DeleteTagsCommand.ts b/clients/client-medialive/commands/DeleteTagsCommand.ts index 7051f9471d431..83cb20f28805f 100644 --- a/clients/client-medialive/commands/DeleteTagsCommand.ts +++ b/clients/client-medialive/commands/DeleteTagsCommand.ts @@ -28,6 +28,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTagsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeChannelCommand.ts b/clients/client-medialive/commands/DescribeChannelCommand.ts index 5934d1cef3415..0e57ba46f55ef 100644 --- a/clients/client-medialive/commands/DescribeChannelCommand.ts +++ b/clients/client-medialive/commands/DescribeChannelCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelCommand extends $Command< DescribeChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeInputCommand.ts b/clients/client-medialive/commands/DescribeInputCommand.ts index 18d38317d6bf0..1791e9e475d35 100644 --- a/clients/client-medialive/commands/DescribeInputCommand.ts +++ b/clients/client-medialive/commands/DescribeInputCommand.ts @@ -28,6 +28,7 @@ export class DescribeInputCommand extends $Command< DescribeInputCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInputCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeInputDeviceCommand.ts b/clients/client-medialive/commands/DescribeInputDeviceCommand.ts index c0e57acaeb37b..da4962f7fbbf7 100644 --- a/clients/client-medialive/commands/DescribeInputDeviceCommand.ts +++ b/clients/client-medialive/commands/DescribeInputDeviceCommand.ts @@ -28,6 +28,7 @@ export class DescribeInputDeviceCommand extends $Command< DescribeInputDeviceCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInputDeviceCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeInputDeviceThumbnailCommand.ts b/clients/client-medialive/commands/DescribeInputDeviceThumbnailCommand.ts index 60ffba3215fdf..da99f5337c38d 100644 --- a/clients/client-medialive/commands/DescribeInputDeviceThumbnailCommand.ts +++ b/clients/client-medialive/commands/DescribeInputDeviceThumbnailCommand.ts @@ -28,6 +28,7 @@ export class DescribeInputDeviceThumbnailCommand extends $Command< DescribeInputDeviceThumbnailCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInputDeviceThumbnailCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeInputSecurityGroupCommand.ts b/clients/client-medialive/commands/DescribeInputSecurityGroupCommand.ts index 5563d023e85da..38ceb67bd86d3 100644 --- a/clients/client-medialive/commands/DescribeInputSecurityGroupCommand.ts +++ b/clients/client-medialive/commands/DescribeInputSecurityGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeInputSecurityGroupCommand extends $Command< DescribeInputSecurityGroupCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInputSecurityGroupCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeMultiplexCommand.ts b/clients/client-medialive/commands/DescribeMultiplexCommand.ts index 57278c3dd717e..1902ed0c7180b 100644 --- a/clients/client-medialive/commands/DescribeMultiplexCommand.ts +++ b/clients/client-medialive/commands/DescribeMultiplexCommand.ts @@ -28,6 +28,7 @@ export class DescribeMultiplexCommand extends $Command< DescribeMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeMultiplexProgramCommand.ts b/clients/client-medialive/commands/DescribeMultiplexProgramCommand.ts index fcf14346384ea..8652bbd197fff 100644 --- a/clients/client-medialive/commands/DescribeMultiplexProgramCommand.ts +++ b/clients/client-medialive/commands/DescribeMultiplexProgramCommand.ts @@ -28,6 +28,7 @@ export class DescribeMultiplexProgramCommand extends $Command< DescribeMultiplexProgramCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMultiplexProgramCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeOfferingCommand.ts b/clients/client-medialive/commands/DescribeOfferingCommand.ts index 31bf48beb1a2d..617c6d351f5c5 100644 --- a/clients/client-medialive/commands/DescribeOfferingCommand.ts +++ b/clients/client-medialive/commands/DescribeOfferingCommand.ts @@ -28,6 +28,7 @@ export class DescribeOfferingCommand extends $Command< DescribeOfferingCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOfferingCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeReservationCommand.ts b/clients/client-medialive/commands/DescribeReservationCommand.ts index 48be212a38a72..89bac1779aaab 100644 --- a/clients/client-medialive/commands/DescribeReservationCommand.ts +++ b/clients/client-medialive/commands/DescribeReservationCommand.ts @@ -28,6 +28,7 @@ export class DescribeReservationCommand extends $Command< DescribeReservationCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReservationCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/DescribeScheduleCommand.ts b/clients/client-medialive/commands/DescribeScheduleCommand.ts index 9addec32f8843..109f87c79b0af 100644 --- a/clients/client-medialive/commands/DescribeScheduleCommand.ts +++ b/clients/client-medialive/commands/DescribeScheduleCommand.ts @@ -28,6 +28,7 @@ export class DescribeScheduleCommand extends $Command< DescribeScheduleCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeScheduleCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListChannelsCommand.ts b/clients/client-medialive/commands/ListChannelsCommand.ts index b90235982ea3f..d3267a9a0c117 100644 --- a/clients/client-medialive/commands/ListChannelsCommand.ts +++ b/clients/client-medialive/commands/ListChannelsCommand.ts @@ -28,6 +28,7 @@ export class ListChannelsCommand extends $Command< ListChannelsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListInputDeviceTransfersCommand.ts b/clients/client-medialive/commands/ListInputDeviceTransfersCommand.ts index da78bb9790a40..69f9de3516946 100644 --- a/clients/client-medialive/commands/ListInputDeviceTransfersCommand.ts +++ b/clients/client-medialive/commands/ListInputDeviceTransfersCommand.ts @@ -28,6 +28,7 @@ export class ListInputDeviceTransfersCommand extends $Command< ListInputDeviceTransfersCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInputDeviceTransfersCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListInputDevicesCommand.ts b/clients/client-medialive/commands/ListInputDevicesCommand.ts index 9ee770b6ec111..ad0b120aaa478 100644 --- a/clients/client-medialive/commands/ListInputDevicesCommand.ts +++ b/clients/client-medialive/commands/ListInputDevicesCommand.ts @@ -28,6 +28,7 @@ export class ListInputDevicesCommand extends $Command< ListInputDevicesCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInputDevicesCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListInputSecurityGroupsCommand.ts b/clients/client-medialive/commands/ListInputSecurityGroupsCommand.ts index 668488f8fcc61..b8dde266d1675 100644 --- a/clients/client-medialive/commands/ListInputSecurityGroupsCommand.ts +++ b/clients/client-medialive/commands/ListInputSecurityGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListInputSecurityGroupsCommand extends $Command< ListInputSecurityGroupsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInputSecurityGroupsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListInputsCommand.ts b/clients/client-medialive/commands/ListInputsCommand.ts index b6445b24511aa..5c9c1cb660445 100644 --- a/clients/client-medialive/commands/ListInputsCommand.ts +++ b/clients/client-medialive/commands/ListInputsCommand.ts @@ -28,6 +28,7 @@ export class ListInputsCommand extends $Command< ListInputsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInputsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListMultiplexProgramsCommand.ts b/clients/client-medialive/commands/ListMultiplexProgramsCommand.ts index 5ef33d154804a..e062e083599d1 100644 --- a/clients/client-medialive/commands/ListMultiplexProgramsCommand.ts +++ b/clients/client-medialive/commands/ListMultiplexProgramsCommand.ts @@ -28,6 +28,7 @@ export class ListMultiplexProgramsCommand extends $Command< ListMultiplexProgramsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMultiplexProgramsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListMultiplexesCommand.ts b/clients/client-medialive/commands/ListMultiplexesCommand.ts index 4fb444ea01d96..cd53511d0eb38 100644 --- a/clients/client-medialive/commands/ListMultiplexesCommand.ts +++ b/clients/client-medialive/commands/ListMultiplexesCommand.ts @@ -28,6 +28,7 @@ export class ListMultiplexesCommand extends $Command< ListMultiplexesCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMultiplexesCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListOfferingsCommand.ts b/clients/client-medialive/commands/ListOfferingsCommand.ts index 0ad4c3189a7ab..e67b674d88233 100644 --- a/clients/client-medialive/commands/ListOfferingsCommand.ts +++ b/clients/client-medialive/commands/ListOfferingsCommand.ts @@ -28,6 +28,7 @@ export class ListOfferingsCommand extends $Command< ListOfferingsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOfferingsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListReservationsCommand.ts b/clients/client-medialive/commands/ListReservationsCommand.ts index 0ae71209c134e..0523b04151f74 100644 --- a/clients/client-medialive/commands/ListReservationsCommand.ts +++ b/clients/client-medialive/commands/ListReservationsCommand.ts @@ -28,6 +28,7 @@ export class ListReservationsCommand extends $Command< ListReservationsCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListReservationsCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/ListTagsForResourceCommand.ts b/clients/client-medialive/commands/ListTagsForResourceCommand.ts index b62fc7863f987..14fbbfd75491f 100644 --- a/clients/client-medialive/commands/ListTagsForResourceCommand.ts +++ b/clients/client-medialive/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/PurchaseOfferingCommand.ts b/clients/client-medialive/commands/PurchaseOfferingCommand.ts index 2c9a0e82fb69a..8af1a49206d15 100644 --- a/clients/client-medialive/commands/PurchaseOfferingCommand.ts +++ b/clients/client-medialive/commands/PurchaseOfferingCommand.ts @@ -28,6 +28,7 @@ export class PurchaseOfferingCommand extends $Command< PurchaseOfferingCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PurchaseOfferingCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/RejectInputDeviceTransferCommand.ts b/clients/client-medialive/commands/RejectInputDeviceTransferCommand.ts index 6630060e02005..298ff4b4550cb 100644 --- a/clients/client-medialive/commands/RejectInputDeviceTransferCommand.ts +++ b/clients/client-medialive/commands/RejectInputDeviceTransferCommand.ts @@ -28,6 +28,7 @@ export class RejectInputDeviceTransferCommand extends $Command< RejectInputDeviceTransferCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RejectInputDeviceTransferCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/StartChannelCommand.ts b/clients/client-medialive/commands/StartChannelCommand.ts index 5ba1507ee0135..9bdd9396150c7 100644 --- a/clients/client-medialive/commands/StartChannelCommand.ts +++ b/clients/client-medialive/commands/StartChannelCommand.ts @@ -28,6 +28,7 @@ export class StartChannelCommand extends $Command< StartChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/StartMultiplexCommand.ts b/clients/client-medialive/commands/StartMultiplexCommand.ts index aa44566c90a31..4b38b80ade191 100644 --- a/clients/client-medialive/commands/StartMultiplexCommand.ts +++ b/clients/client-medialive/commands/StartMultiplexCommand.ts @@ -28,6 +28,7 @@ export class StartMultiplexCommand extends $Command< StartMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/StopChannelCommand.ts b/clients/client-medialive/commands/StopChannelCommand.ts index a1826326fe94a..149c2597365bd 100644 --- a/clients/client-medialive/commands/StopChannelCommand.ts +++ b/clients/client-medialive/commands/StopChannelCommand.ts @@ -28,6 +28,7 @@ export class StopChannelCommand extends $Command< StopChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/StopMultiplexCommand.ts b/clients/client-medialive/commands/StopMultiplexCommand.ts index a9cf6f7817e0a..2d49579645a0f 100644 --- a/clients/client-medialive/commands/StopMultiplexCommand.ts +++ b/clients/client-medialive/commands/StopMultiplexCommand.ts @@ -28,6 +28,7 @@ export class StopMultiplexCommand extends $Command< StopMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/TransferInputDeviceCommand.ts b/clients/client-medialive/commands/TransferInputDeviceCommand.ts index a848cb06f38a6..7b6394e753ccd 100644 --- a/clients/client-medialive/commands/TransferInputDeviceCommand.ts +++ b/clients/client-medialive/commands/TransferInputDeviceCommand.ts @@ -28,6 +28,7 @@ export class TransferInputDeviceCommand extends $Command< TransferInputDeviceCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TransferInputDeviceCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateChannelClassCommand.ts b/clients/client-medialive/commands/UpdateChannelClassCommand.ts index f7072bf80a848..0d9d0e43553e7 100644 --- a/clients/client-medialive/commands/UpdateChannelClassCommand.ts +++ b/clients/client-medialive/commands/UpdateChannelClassCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelClassCommand extends $Command< UpdateChannelClassCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelClassCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateChannelCommand.ts b/clients/client-medialive/commands/UpdateChannelCommand.ts index af40de9bbcb42..a3507a4c458fc 100644 --- a/clients/client-medialive/commands/UpdateChannelCommand.ts +++ b/clients/client-medialive/commands/UpdateChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelCommand extends $Command< UpdateChannelCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateInputCommand.ts b/clients/client-medialive/commands/UpdateInputCommand.ts index fed7cc6820f4f..8f2da1e85378e 100644 --- a/clients/client-medialive/commands/UpdateInputCommand.ts +++ b/clients/client-medialive/commands/UpdateInputCommand.ts @@ -28,6 +28,7 @@ export class UpdateInputCommand extends $Command< UpdateInputCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInputCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateInputDeviceCommand.ts b/clients/client-medialive/commands/UpdateInputDeviceCommand.ts index df39319780680..134d3d4d41bdb 100644 --- a/clients/client-medialive/commands/UpdateInputDeviceCommand.ts +++ b/clients/client-medialive/commands/UpdateInputDeviceCommand.ts @@ -28,6 +28,7 @@ export class UpdateInputDeviceCommand extends $Command< UpdateInputDeviceCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInputDeviceCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateInputSecurityGroupCommand.ts b/clients/client-medialive/commands/UpdateInputSecurityGroupCommand.ts index e86c9fa8a54be..277a136430ed6 100644 --- a/clients/client-medialive/commands/UpdateInputSecurityGroupCommand.ts +++ b/clients/client-medialive/commands/UpdateInputSecurityGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateInputSecurityGroupCommand extends $Command< UpdateInputSecurityGroupCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInputSecurityGroupCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateMultiplexCommand.ts b/clients/client-medialive/commands/UpdateMultiplexCommand.ts index 22649156693f9..6fd2213a0029c 100644 --- a/clients/client-medialive/commands/UpdateMultiplexCommand.ts +++ b/clients/client-medialive/commands/UpdateMultiplexCommand.ts @@ -28,6 +28,7 @@ export class UpdateMultiplexCommand extends $Command< UpdateMultiplexCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMultiplexCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateMultiplexProgramCommand.ts b/clients/client-medialive/commands/UpdateMultiplexProgramCommand.ts index 1db5fa857801f..c0d3fdd93b74e 100644 --- a/clients/client-medialive/commands/UpdateMultiplexProgramCommand.ts +++ b/clients/client-medialive/commands/UpdateMultiplexProgramCommand.ts @@ -28,6 +28,7 @@ export class UpdateMultiplexProgramCommand extends $Command< UpdateMultiplexProgramCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMultiplexProgramCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-medialive/commands/UpdateReservationCommand.ts b/clients/client-medialive/commands/UpdateReservationCommand.ts index 55b05693692d8..cea0bc8a20a72 100644 --- a/clients/client-medialive/commands/UpdateReservationCommand.ts +++ b/clients/client-medialive/commands/UpdateReservationCommand.ts @@ -28,6 +28,7 @@ export class UpdateReservationCommand extends $Command< UpdateReservationCommandOutput, MediaLiveClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateReservationCommand extends $Command< configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/CreateAssetCommand.ts b/clients/client-mediapackage-vod/commands/CreateAssetCommand.ts index 391f9a16315c1..82fbac7fe98e2 100644 --- a/clients/client-mediapackage-vod/commands/CreateAssetCommand.ts +++ b/clients/client-mediapackage-vod/commands/CreateAssetCommand.ts @@ -28,6 +28,7 @@ export class CreateAssetCommand extends $Command< CreateAssetCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAssetCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/CreatePackagingConfigurationCommand.ts b/clients/client-mediapackage-vod/commands/CreatePackagingConfigurationCommand.ts index 063a5181321be..b2971b0bbd408 100644 --- a/clients/client-mediapackage-vod/commands/CreatePackagingConfigurationCommand.ts +++ b/clients/client-mediapackage-vod/commands/CreatePackagingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreatePackagingConfigurationCommand extends $Command< CreatePackagingConfigurationCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePackagingConfigurationCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/CreatePackagingGroupCommand.ts b/clients/client-mediapackage-vod/commands/CreatePackagingGroupCommand.ts index bfc3ec35e0dd9..d65d22ad33d61 100644 --- a/clients/client-mediapackage-vod/commands/CreatePackagingGroupCommand.ts +++ b/clients/client-mediapackage-vod/commands/CreatePackagingGroupCommand.ts @@ -28,6 +28,7 @@ export class CreatePackagingGroupCommand extends $Command< CreatePackagingGroupCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePackagingGroupCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DeleteAssetCommand.ts b/clients/client-mediapackage-vod/commands/DeleteAssetCommand.ts index 0ad7ed66c3cab..3fe6c371a2101 100644 --- a/clients/client-mediapackage-vod/commands/DeleteAssetCommand.ts +++ b/clients/client-mediapackage-vod/commands/DeleteAssetCommand.ts @@ -28,6 +28,7 @@ export class DeleteAssetCommand extends $Command< DeleteAssetCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAssetCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DeletePackagingConfigurationCommand.ts b/clients/client-mediapackage-vod/commands/DeletePackagingConfigurationCommand.ts index c0e936d5caa26..6374b0205bc4e 100644 --- a/clients/client-mediapackage-vod/commands/DeletePackagingConfigurationCommand.ts +++ b/clients/client-mediapackage-vod/commands/DeletePackagingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeletePackagingConfigurationCommand extends $Command< DeletePackagingConfigurationCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePackagingConfigurationCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DeletePackagingGroupCommand.ts b/clients/client-mediapackage-vod/commands/DeletePackagingGroupCommand.ts index 1a48b62705a69..066c9ec553b53 100644 --- a/clients/client-mediapackage-vod/commands/DeletePackagingGroupCommand.ts +++ b/clients/client-mediapackage-vod/commands/DeletePackagingGroupCommand.ts @@ -28,6 +28,7 @@ export class DeletePackagingGroupCommand extends $Command< DeletePackagingGroupCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePackagingGroupCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DescribeAssetCommand.ts b/clients/client-mediapackage-vod/commands/DescribeAssetCommand.ts index e4ea396d6f055..f5dcdb8909b77 100644 --- a/clients/client-mediapackage-vod/commands/DescribeAssetCommand.ts +++ b/clients/client-mediapackage-vod/commands/DescribeAssetCommand.ts @@ -28,6 +28,7 @@ export class DescribeAssetCommand extends $Command< DescribeAssetCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAssetCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DescribePackagingConfigurationCommand.ts b/clients/client-mediapackage-vod/commands/DescribePackagingConfigurationCommand.ts index 1b88561fdf2a5..d225f64ac5da4 100644 --- a/clients/client-mediapackage-vod/commands/DescribePackagingConfigurationCommand.ts +++ b/clients/client-mediapackage-vod/commands/DescribePackagingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DescribePackagingConfigurationCommand extends $Command< DescribePackagingConfigurationCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePackagingConfigurationCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/DescribePackagingGroupCommand.ts b/clients/client-mediapackage-vod/commands/DescribePackagingGroupCommand.ts index e12c676bac533..43f7788bce035 100644 --- a/clients/client-mediapackage-vod/commands/DescribePackagingGroupCommand.ts +++ b/clients/client-mediapackage-vod/commands/DescribePackagingGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribePackagingGroupCommand extends $Command< DescribePackagingGroupCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePackagingGroupCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/ListAssetsCommand.ts b/clients/client-mediapackage-vod/commands/ListAssetsCommand.ts index d6d14b3b840af..fef6f8ac6583d 100644 --- a/clients/client-mediapackage-vod/commands/ListAssetsCommand.ts +++ b/clients/client-mediapackage-vod/commands/ListAssetsCommand.ts @@ -28,6 +28,7 @@ export class ListAssetsCommand extends $Command< ListAssetsCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssetsCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/ListPackagingConfigurationsCommand.ts b/clients/client-mediapackage-vod/commands/ListPackagingConfigurationsCommand.ts index d6a2cf172cd29..8e3e963a33c37 100644 --- a/clients/client-mediapackage-vod/commands/ListPackagingConfigurationsCommand.ts +++ b/clients/client-mediapackage-vod/commands/ListPackagingConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListPackagingConfigurationsCommand extends $Command< ListPackagingConfigurationsCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPackagingConfigurationsCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/ListPackagingGroupsCommand.ts b/clients/client-mediapackage-vod/commands/ListPackagingGroupsCommand.ts index eae3f6443775a..d7cdf754a35be 100644 --- a/clients/client-mediapackage-vod/commands/ListPackagingGroupsCommand.ts +++ b/clients/client-mediapackage-vod/commands/ListPackagingGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListPackagingGroupsCommand extends $Command< ListPackagingGroupsCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPackagingGroupsCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/ListTagsForResourceCommand.ts b/clients/client-mediapackage-vod/commands/ListTagsForResourceCommand.ts index 124d78fd69f33..91338a911e328 100644 --- a/clients/client-mediapackage-vod/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediapackage-vod/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/TagResourceCommand.ts b/clients/client-mediapackage-vod/commands/TagResourceCommand.ts index a684ad51bf18b..580b8dbf1979b 100644 --- a/clients/client-mediapackage-vod/commands/TagResourceCommand.ts +++ b/clients/client-mediapackage-vod/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/UntagResourceCommand.ts b/clients/client-mediapackage-vod/commands/UntagResourceCommand.ts index 050bf0b12e461..a877b6c3dd66f 100644 --- a/clients/client-mediapackage-vod/commands/UntagResourceCommand.ts +++ b/clients/client-mediapackage-vod/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage-vod/commands/UpdatePackagingGroupCommand.ts b/clients/client-mediapackage-vod/commands/UpdatePackagingGroupCommand.ts index 5a0e50ca3b2be..39f4867059b44 100644 --- a/clients/client-mediapackage-vod/commands/UpdatePackagingGroupCommand.ts +++ b/clients/client-mediapackage-vod/commands/UpdatePackagingGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdatePackagingGroupCommand extends $Command< UpdatePackagingGroupCommandOutput, MediaPackageVodClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePackagingGroupCommand extends $Command< configuration: MediaPackageVodClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/ConfigureLogsCommand.ts b/clients/client-mediapackage/commands/ConfigureLogsCommand.ts index fc5d4c669c81d..b609b8878870d 100644 --- a/clients/client-mediapackage/commands/ConfigureLogsCommand.ts +++ b/clients/client-mediapackage/commands/ConfigureLogsCommand.ts @@ -28,6 +28,7 @@ export class ConfigureLogsCommand extends $Command< ConfigureLogsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ConfigureLogsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/CreateChannelCommand.ts b/clients/client-mediapackage/commands/CreateChannelCommand.ts index 0c1c3da4ffef7..bfe12980376e1 100644 --- a/clients/client-mediapackage/commands/CreateChannelCommand.ts +++ b/clients/client-mediapackage/commands/CreateChannelCommand.ts @@ -28,6 +28,7 @@ export class CreateChannelCommand extends $Command< CreateChannelCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateChannelCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/CreateHarvestJobCommand.ts b/clients/client-mediapackage/commands/CreateHarvestJobCommand.ts index c0b7b93d91c58..2bbfd2e3b73a6 100644 --- a/clients/client-mediapackage/commands/CreateHarvestJobCommand.ts +++ b/clients/client-mediapackage/commands/CreateHarvestJobCommand.ts @@ -28,6 +28,7 @@ export class CreateHarvestJobCommand extends $Command< CreateHarvestJobCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateHarvestJobCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/CreateOriginEndpointCommand.ts b/clients/client-mediapackage/commands/CreateOriginEndpointCommand.ts index e793616d84608..db4e6b4de8421 100644 --- a/clients/client-mediapackage/commands/CreateOriginEndpointCommand.ts +++ b/clients/client-mediapackage/commands/CreateOriginEndpointCommand.ts @@ -28,6 +28,7 @@ export class CreateOriginEndpointCommand extends $Command< CreateOriginEndpointCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateOriginEndpointCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/DeleteChannelCommand.ts b/clients/client-mediapackage/commands/DeleteChannelCommand.ts index 6bb21bf72dfcb..747461a42260a 100644 --- a/clients/client-mediapackage/commands/DeleteChannelCommand.ts +++ b/clients/client-mediapackage/commands/DeleteChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteChannelCommand extends $Command< DeleteChannelCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteChannelCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/DeleteOriginEndpointCommand.ts b/clients/client-mediapackage/commands/DeleteOriginEndpointCommand.ts index db701fb5fc3cb..8d3edea5b42b5 100644 --- a/clients/client-mediapackage/commands/DeleteOriginEndpointCommand.ts +++ b/clients/client-mediapackage/commands/DeleteOriginEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteOriginEndpointCommand extends $Command< DeleteOriginEndpointCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOriginEndpointCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/DescribeChannelCommand.ts b/clients/client-mediapackage/commands/DescribeChannelCommand.ts index c7e2827648aa5..2e23449da65b0 100644 --- a/clients/client-mediapackage/commands/DescribeChannelCommand.ts +++ b/clients/client-mediapackage/commands/DescribeChannelCommand.ts @@ -28,6 +28,7 @@ export class DescribeChannelCommand extends $Command< DescribeChannelCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeChannelCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/DescribeHarvestJobCommand.ts b/clients/client-mediapackage/commands/DescribeHarvestJobCommand.ts index 3bae85e0bfee7..2a89ce65d0ca5 100644 --- a/clients/client-mediapackage/commands/DescribeHarvestJobCommand.ts +++ b/clients/client-mediapackage/commands/DescribeHarvestJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeHarvestJobCommand extends $Command< DescribeHarvestJobCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeHarvestJobCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/DescribeOriginEndpointCommand.ts b/clients/client-mediapackage/commands/DescribeOriginEndpointCommand.ts index f73ed3530bf92..2a2dbbf2ab436 100644 --- a/clients/client-mediapackage/commands/DescribeOriginEndpointCommand.ts +++ b/clients/client-mediapackage/commands/DescribeOriginEndpointCommand.ts @@ -28,6 +28,7 @@ export class DescribeOriginEndpointCommand extends $Command< DescribeOriginEndpointCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOriginEndpointCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/ListChannelsCommand.ts b/clients/client-mediapackage/commands/ListChannelsCommand.ts index 4e35f3ffdd880..7491af7868d55 100644 --- a/clients/client-mediapackage/commands/ListChannelsCommand.ts +++ b/clients/client-mediapackage/commands/ListChannelsCommand.ts @@ -28,6 +28,7 @@ export class ListChannelsCommand extends $Command< ListChannelsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListChannelsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/ListHarvestJobsCommand.ts b/clients/client-mediapackage/commands/ListHarvestJobsCommand.ts index b9fc069039c9a..20899e72fa94b 100644 --- a/clients/client-mediapackage/commands/ListHarvestJobsCommand.ts +++ b/clients/client-mediapackage/commands/ListHarvestJobsCommand.ts @@ -28,6 +28,7 @@ export class ListHarvestJobsCommand extends $Command< ListHarvestJobsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListHarvestJobsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/ListOriginEndpointsCommand.ts b/clients/client-mediapackage/commands/ListOriginEndpointsCommand.ts index 66717cf019b4a..d24b723dc8b60 100644 --- a/clients/client-mediapackage/commands/ListOriginEndpointsCommand.ts +++ b/clients/client-mediapackage/commands/ListOriginEndpointsCommand.ts @@ -28,6 +28,7 @@ export class ListOriginEndpointsCommand extends $Command< ListOriginEndpointsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOriginEndpointsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/ListTagsForResourceCommand.ts b/clients/client-mediapackage/commands/ListTagsForResourceCommand.ts index eb841258ec0df..5735b6f79a466 100644 --- a/clients/client-mediapackage/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediapackage/commands/ListTagsForResourceCommand.ts @@ -25,6 +25,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/RotateChannelCredentialsCommand.ts b/clients/client-mediapackage/commands/RotateChannelCredentialsCommand.ts index 78d6d43c52eed..a4917845a8b51 100644 --- a/clients/client-mediapackage/commands/RotateChannelCredentialsCommand.ts +++ b/clients/client-mediapackage/commands/RotateChannelCredentialsCommand.ts @@ -28,6 +28,7 @@ export class RotateChannelCredentialsCommand extends $Command< RotateChannelCredentialsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RotateChannelCredentialsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/RotateIngestEndpointCredentialsCommand.ts b/clients/client-mediapackage/commands/RotateIngestEndpointCredentialsCommand.ts index ec40acfdef39a..50afd4d46ab42 100644 --- a/clients/client-mediapackage/commands/RotateIngestEndpointCredentialsCommand.ts +++ b/clients/client-mediapackage/commands/RotateIngestEndpointCredentialsCommand.ts @@ -28,6 +28,7 @@ export class RotateIngestEndpointCredentialsCommand extends $Command< RotateIngestEndpointCredentialsCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RotateIngestEndpointCredentialsCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/TagResourceCommand.ts b/clients/client-mediapackage/commands/TagResourceCommand.ts index 71088acc1ece6..788ad818248d8 100644 --- a/clients/client-mediapackage/commands/TagResourceCommand.ts +++ b/clients/client-mediapackage/commands/TagResourceCommand.ts @@ -25,6 +25,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class TagResourceCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/UntagResourceCommand.ts b/clients/client-mediapackage/commands/UntagResourceCommand.ts index 4c965b58558b0..35333065012a7 100644 --- a/clients/client-mediapackage/commands/UntagResourceCommand.ts +++ b/clients/client-mediapackage/commands/UntagResourceCommand.ts @@ -25,6 +25,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/UpdateChannelCommand.ts b/clients/client-mediapackage/commands/UpdateChannelCommand.ts index 52c7bc8c801a8..afe7e78ccc3d6 100644 --- a/clients/client-mediapackage/commands/UpdateChannelCommand.ts +++ b/clients/client-mediapackage/commands/UpdateChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateChannelCommand extends $Command< UpdateChannelCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateChannelCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediapackage/commands/UpdateOriginEndpointCommand.ts b/clients/client-mediapackage/commands/UpdateOriginEndpointCommand.ts index c27756dca777a..f2fb06184e2e0 100644 --- a/clients/client-mediapackage/commands/UpdateOriginEndpointCommand.ts +++ b/clients/client-mediapackage/commands/UpdateOriginEndpointCommand.ts @@ -28,6 +28,7 @@ export class UpdateOriginEndpointCommand extends $Command< UpdateOriginEndpointCommandOutput, MediaPackageClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateOriginEndpointCommand extends $Command< configuration: MediaPackageClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore-data/commands/DeleteObjectCommand.ts b/clients/client-mediastore-data/commands/DeleteObjectCommand.ts index 94a3fa1c34f54..e3ee68aec8859 100644 --- a/clients/client-mediastore-data/commands/DeleteObjectCommand.ts +++ b/clients/client-mediastore-data/commands/DeleteObjectCommand.ts @@ -28,6 +28,7 @@ export class DeleteObjectCommand extends $Command< DeleteObjectCommandOutput, MediaStoreDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteObjectCommand extends $Command< configuration: MediaStoreDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore-data/commands/DescribeObjectCommand.ts b/clients/client-mediastore-data/commands/DescribeObjectCommand.ts index 116e9c3f29942..3398cb9bfd948 100644 --- a/clients/client-mediastore-data/commands/DescribeObjectCommand.ts +++ b/clients/client-mediastore-data/commands/DescribeObjectCommand.ts @@ -28,6 +28,7 @@ export class DescribeObjectCommand extends $Command< DescribeObjectCommandOutput, MediaStoreDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeObjectCommand extends $Command< configuration: MediaStoreDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore-data/commands/GetObjectCommand.ts b/clients/client-mediastore-data/commands/GetObjectCommand.ts index 6cb4ed452ac8d..24cd2d3e34dbe 100644 --- a/clients/client-mediastore-data/commands/GetObjectCommand.ts +++ b/clients/client-mediastore-data/commands/GetObjectCommand.ts @@ -28,6 +28,7 @@ export class GetObjectCommand extends $Command< GetObjectCommandOutput, MediaStoreDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetObjectCommand extends $Command< configuration: MediaStoreDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore-data/commands/ListItemsCommand.ts b/clients/client-mediastore-data/commands/ListItemsCommand.ts index 641c623a34a97..34776d129ab7d 100644 --- a/clients/client-mediastore-data/commands/ListItemsCommand.ts +++ b/clients/client-mediastore-data/commands/ListItemsCommand.ts @@ -29,6 +29,7 @@ export class ListItemsCommand extends $Command< ListItemsCommandOutput, MediaStoreDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListItemsCommand extends $Command< configuration: MediaStoreDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore-data/commands/PutObjectCommand.ts b/clients/client-mediastore-data/commands/PutObjectCommand.ts index b66f353b125a3..c3abc2edb1ef2 100644 --- a/clients/client-mediastore-data/commands/PutObjectCommand.ts +++ b/clients/client-mediastore-data/commands/PutObjectCommand.ts @@ -30,6 +30,7 @@ export class PutObjectCommand extends $Command< PutObjectCommandOutput, MediaStoreDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutObjectCommand extends $Command< configuration: MediaStoreDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/CreateContainerCommand.ts b/clients/client-mediastore/commands/CreateContainerCommand.ts index 1dfe0f76cf0d1..d09e32aba3f08 100644 --- a/clients/client-mediastore/commands/CreateContainerCommand.ts +++ b/clients/client-mediastore/commands/CreateContainerCommand.ts @@ -29,6 +29,7 @@ export class CreateContainerCommand extends $Command< CreateContainerCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateContainerCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DeleteContainerCommand.ts b/clients/client-mediastore/commands/DeleteContainerCommand.ts index a9f5999c030f8..0322667a0f550 100644 --- a/clients/client-mediastore/commands/DeleteContainerCommand.ts +++ b/clients/client-mediastore/commands/DeleteContainerCommand.ts @@ -30,6 +30,7 @@ export class DeleteContainerCommand extends $Command< DeleteContainerCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteContainerCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DeleteContainerPolicyCommand.ts b/clients/client-mediastore/commands/DeleteContainerPolicyCommand.ts index ea0cf951d7091..0ca4065862322 100644 --- a/clients/client-mediastore/commands/DeleteContainerPolicyCommand.ts +++ b/clients/client-mediastore/commands/DeleteContainerPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteContainerPolicyCommand extends $Command< DeleteContainerPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteContainerPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DeleteCorsPolicyCommand.ts b/clients/client-mediastore/commands/DeleteCorsPolicyCommand.ts index 94a569b258c6a..3725ff0f04024 100644 --- a/clients/client-mediastore/commands/DeleteCorsPolicyCommand.ts +++ b/clients/client-mediastore/commands/DeleteCorsPolicyCommand.ts @@ -32,6 +32,7 @@ export class DeleteCorsPolicyCommand extends $Command< DeleteCorsPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCorsPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DeleteLifecyclePolicyCommand.ts b/clients/client-mediastore/commands/DeleteLifecyclePolicyCommand.ts index 32da7b5b7fbfb..3c28bf88987a5 100644 --- a/clients/client-mediastore/commands/DeleteLifecyclePolicyCommand.ts +++ b/clients/client-mediastore/commands/DeleteLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteLifecyclePolicyCommand extends $Command< DeleteLifecyclePolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLifecyclePolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DeleteMetricPolicyCommand.ts b/clients/client-mediastore/commands/DeleteMetricPolicyCommand.ts index 21679b7f53d31..b908bf038befc 100644 --- a/clients/client-mediastore/commands/DeleteMetricPolicyCommand.ts +++ b/clients/client-mediastore/commands/DeleteMetricPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteMetricPolicyCommand extends $Command< DeleteMetricPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMetricPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/DescribeContainerCommand.ts b/clients/client-mediastore/commands/DescribeContainerCommand.ts index 6a8fc60cf3442..0eb5c445165a9 100644 --- a/clients/client-mediastore/commands/DescribeContainerCommand.ts +++ b/clients/client-mediastore/commands/DescribeContainerCommand.ts @@ -34,6 +34,7 @@ export class DescribeContainerCommand extends $Command< DescribeContainerCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeContainerCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/GetContainerPolicyCommand.ts b/clients/client-mediastore/commands/GetContainerPolicyCommand.ts index f184a2f00fbbd..8191f4ff367a1 100644 --- a/clients/client-mediastore/commands/GetContainerPolicyCommand.ts +++ b/clients/client-mediastore/commands/GetContainerPolicyCommand.ts @@ -30,6 +30,7 @@ export class GetContainerPolicyCommand extends $Command< GetContainerPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetContainerPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/GetCorsPolicyCommand.ts b/clients/client-mediastore/commands/GetCorsPolicyCommand.ts index 21b6a85e17546..3d79a1501d4ff 100644 --- a/clients/client-mediastore/commands/GetCorsPolicyCommand.ts +++ b/clients/client-mediastore/commands/GetCorsPolicyCommand.ts @@ -32,6 +32,7 @@ export class GetCorsPolicyCommand extends $Command< GetCorsPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCorsPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/GetLifecyclePolicyCommand.ts b/clients/client-mediastore/commands/GetLifecyclePolicyCommand.ts index e2b4f27ccd260..530386e2f096b 100644 --- a/clients/client-mediastore/commands/GetLifecyclePolicyCommand.ts +++ b/clients/client-mediastore/commands/GetLifecyclePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetLifecyclePolicyCommand extends $Command< GetLifecyclePolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetLifecyclePolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/GetMetricPolicyCommand.ts b/clients/client-mediastore/commands/GetMetricPolicyCommand.ts index f2342b6f89fd7..29a1cb042a1a7 100644 --- a/clients/client-mediastore/commands/GetMetricPolicyCommand.ts +++ b/clients/client-mediastore/commands/GetMetricPolicyCommand.ts @@ -28,6 +28,7 @@ export class GetMetricPolicyCommand extends $Command< GetMetricPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMetricPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/ListContainersCommand.ts b/clients/client-mediastore/commands/ListContainersCommand.ts index 720893d635fee..d0e5313adc7e0 100644 --- a/clients/client-mediastore/commands/ListContainersCommand.ts +++ b/clients/client-mediastore/commands/ListContainersCommand.ts @@ -36,6 +36,7 @@ export class ListContainersCommand extends $Command< ListContainersCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListContainersCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/ListTagsForResourceCommand.ts b/clients/client-mediastore/commands/ListTagsForResourceCommand.ts index d3ee95ecc810a..4c2ec23871e31 100644 --- a/clients/client-mediastore/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediastore/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/PutContainerPolicyCommand.ts b/clients/client-mediastore/commands/PutContainerPolicyCommand.ts index b0750df0b3940..1b9f0b0b0d330 100644 --- a/clients/client-mediastore/commands/PutContainerPolicyCommand.ts +++ b/clients/client-mediastore/commands/PutContainerPolicyCommand.ts @@ -34,6 +34,7 @@ export class PutContainerPolicyCommand extends $Command< PutContainerPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutContainerPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/PutCorsPolicyCommand.ts b/clients/client-mediastore/commands/PutCorsPolicyCommand.ts index 3023de8fbe11a..059fb0df7f8ba 100644 --- a/clients/client-mediastore/commands/PutCorsPolicyCommand.ts +++ b/clients/client-mediastore/commands/PutCorsPolicyCommand.ts @@ -38,6 +38,7 @@ export class PutCorsPolicyCommand extends $Command< PutCorsPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutCorsPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/PutLifecyclePolicyCommand.ts b/clients/client-mediastore/commands/PutLifecyclePolicyCommand.ts index 91b88403271e8..bb48d097ad6e4 100644 --- a/clients/client-mediastore/commands/PutLifecyclePolicyCommand.ts +++ b/clients/client-mediastore/commands/PutLifecyclePolicyCommand.ts @@ -29,6 +29,7 @@ export class PutLifecyclePolicyCommand extends $Command< PutLifecyclePolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutLifecyclePolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/PutMetricPolicyCommand.ts b/clients/client-mediastore/commands/PutMetricPolicyCommand.ts index 47950e9301e1f..5c402c58d1b39 100644 --- a/clients/client-mediastore/commands/PutMetricPolicyCommand.ts +++ b/clients/client-mediastore/commands/PutMetricPolicyCommand.ts @@ -28,6 +28,7 @@ export class PutMetricPolicyCommand extends $Command< PutMetricPolicyCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutMetricPolicyCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/StartAccessLoggingCommand.ts b/clients/client-mediastore/commands/StartAccessLoggingCommand.ts index 1c19f1706b845..eb437a81c8720 100644 --- a/clients/client-mediastore/commands/StartAccessLoggingCommand.ts +++ b/clients/client-mediastore/commands/StartAccessLoggingCommand.ts @@ -28,6 +28,7 @@ export class StartAccessLoggingCommand extends $Command< StartAccessLoggingCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartAccessLoggingCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/StopAccessLoggingCommand.ts b/clients/client-mediastore/commands/StopAccessLoggingCommand.ts index 272f6b85310ca..fc57932f3bcba 100644 --- a/clients/client-mediastore/commands/StopAccessLoggingCommand.ts +++ b/clients/client-mediastore/commands/StopAccessLoggingCommand.ts @@ -28,6 +28,7 @@ export class StopAccessLoggingCommand extends $Command< StopAccessLoggingCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopAccessLoggingCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/TagResourceCommand.ts b/clients/client-mediastore/commands/TagResourceCommand.ts index ec65e11d071d9..8aae519e766ef 100644 --- a/clients/client-mediastore/commands/TagResourceCommand.ts +++ b/clients/client-mediastore/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediastore/commands/UntagResourceCommand.ts b/clients/client-mediastore/commands/UntagResourceCommand.ts index 2dc952ce46707..b70aa085c1ca5 100644 --- a/clients/client-mediastore/commands/UntagResourceCommand.ts +++ b/clients/client-mediastore/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaStoreClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/DeletePlaybackConfigurationCommand.ts b/clients/client-mediatailor/commands/DeletePlaybackConfigurationCommand.ts index 41727511807fb..483cc06541db3 100644 --- a/clients/client-mediatailor/commands/DeletePlaybackConfigurationCommand.ts +++ b/clients/client-mediatailor/commands/DeletePlaybackConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeletePlaybackConfigurationCommand extends $Command< DeletePlaybackConfigurationCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePlaybackConfigurationCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/GetPlaybackConfigurationCommand.ts b/clients/client-mediatailor/commands/GetPlaybackConfigurationCommand.ts index 667aba36fdb37..e3239328a3fec 100644 --- a/clients/client-mediatailor/commands/GetPlaybackConfigurationCommand.ts +++ b/clients/client-mediatailor/commands/GetPlaybackConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetPlaybackConfigurationCommand extends $Command< GetPlaybackConfigurationCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPlaybackConfigurationCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/ListPlaybackConfigurationsCommand.ts b/clients/client-mediatailor/commands/ListPlaybackConfigurationsCommand.ts index 452186470dfd9..bd4262701a1ba 100644 --- a/clients/client-mediatailor/commands/ListPlaybackConfigurationsCommand.ts +++ b/clients/client-mediatailor/commands/ListPlaybackConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListPlaybackConfigurationsCommand extends $Command< ListPlaybackConfigurationsCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPlaybackConfigurationsCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/ListTagsForResourceCommand.ts b/clients/client-mediatailor/commands/ListTagsForResourceCommand.ts index 2f86341e110a0..ab5e6da5ceff4 100644 --- a/clients/client-mediatailor/commands/ListTagsForResourceCommand.ts +++ b/clients/client-mediatailor/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/PutPlaybackConfigurationCommand.ts b/clients/client-mediatailor/commands/PutPlaybackConfigurationCommand.ts index 9b9d299f4c4f4..d67cf6e11f7af 100644 --- a/clients/client-mediatailor/commands/PutPlaybackConfigurationCommand.ts +++ b/clients/client-mediatailor/commands/PutPlaybackConfigurationCommand.ts @@ -28,6 +28,7 @@ export class PutPlaybackConfigurationCommand extends $Command< PutPlaybackConfigurationCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutPlaybackConfigurationCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/TagResourceCommand.ts b/clients/client-mediatailor/commands/TagResourceCommand.ts index 37b7853703537..b3fd646a9f4e7 100644 --- a/clients/client-mediatailor/commands/TagResourceCommand.ts +++ b/clients/client-mediatailor/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mediatailor/commands/UntagResourceCommand.ts b/clients/client-mediatailor/commands/UntagResourceCommand.ts index ae480442f399d..f9d75ed234c80 100644 --- a/clients/client-mediatailor/commands/UntagResourceCommand.ts +++ b/clients/client-mediatailor/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, MediaTailorClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/AssociateCreatedArtifactCommand.ts b/clients/client-migration-hub/commands/AssociateCreatedArtifactCommand.ts index 58bc7a00b8376..d2244d34e01f9 100644 --- a/clients/client-migration-hub/commands/AssociateCreatedArtifactCommand.ts +++ b/clients/client-migration-hub/commands/AssociateCreatedArtifactCommand.ts @@ -45,6 +45,7 @@ export class AssociateCreatedArtifactCommand extends $Command< AssociateCreatedArtifactCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AssociateCreatedArtifactCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/AssociateDiscoveredResourceCommand.ts b/clients/client-migration-hub/commands/AssociateDiscoveredResourceCommand.ts index f79260b68cfaa..1f728b5234f10 100644 --- a/clients/client-migration-hub/commands/AssociateDiscoveredResourceCommand.ts +++ b/clients/client-migration-hub/commands/AssociateDiscoveredResourceCommand.ts @@ -29,6 +29,7 @@ export class AssociateDiscoveredResourceCommand extends $Command< AssociateDiscoveredResourceCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateDiscoveredResourceCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/CreateProgressUpdateStreamCommand.ts b/clients/client-migration-hub/commands/CreateProgressUpdateStreamCommand.ts index 4f112b27893b8..99cea34e7216e 100644 --- a/clients/client-migration-hub/commands/CreateProgressUpdateStreamCommand.ts +++ b/clients/client-migration-hub/commands/CreateProgressUpdateStreamCommand.ts @@ -32,6 +32,7 @@ export class CreateProgressUpdateStreamCommand extends $Command< CreateProgressUpdateStreamCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateProgressUpdateStreamCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/DeleteProgressUpdateStreamCommand.ts b/clients/client-migration-hub/commands/DeleteProgressUpdateStreamCommand.ts index eb517d8436b35..bc0361068bd09 100644 --- a/clients/client-migration-hub/commands/DeleteProgressUpdateStreamCommand.ts +++ b/clients/client-migration-hub/commands/DeleteProgressUpdateStreamCommand.ts @@ -58,6 +58,7 @@ export class DeleteProgressUpdateStreamCommand extends $Command< DeleteProgressUpdateStreamCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class DeleteProgressUpdateStreamCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/DescribeApplicationStateCommand.ts b/clients/client-migration-hub/commands/DescribeApplicationStateCommand.ts index 03b9ef9d3b481..cf06ae7c6ee0d 100644 --- a/clients/client-migration-hub/commands/DescribeApplicationStateCommand.ts +++ b/clients/client-migration-hub/commands/DescribeApplicationStateCommand.ts @@ -28,6 +28,7 @@ export class DescribeApplicationStateCommand extends $Command< DescribeApplicationStateCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeApplicationStateCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/DescribeMigrationTaskCommand.ts b/clients/client-migration-hub/commands/DescribeMigrationTaskCommand.ts index 55469e7d72365..533bc7ca304c0 100644 --- a/clients/client-migration-hub/commands/DescribeMigrationTaskCommand.ts +++ b/clients/client-migration-hub/commands/DescribeMigrationTaskCommand.ts @@ -28,6 +28,7 @@ export class DescribeMigrationTaskCommand extends $Command< DescribeMigrationTaskCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMigrationTaskCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/DisassociateCreatedArtifactCommand.ts b/clients/client-migration-hub/commands/DisassociateCreatedArtifactCommand.ts index e98178e2bcfb4..41cba5c3e6379 100644 --- a/clients/client-migration-hub/commands/DisassociateCreatedArtifactCommand.ts +++ b/clients/client-migration-hub/commands/DisassociateCreatedArtifactCommand.ts @@ -44,6 +44,7 @@ export class DisassociateCreatedArtifactCommand extends $Command< DisassociateCreatedArtifactCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DisassociateCreatedArtifactCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/DisassociateDiscoveredResourceCommand.ts b/clients/client-migration-hub/commands/DisassociateDiscoveredResourceCommand.ts index b4048defdd3d5..beb7ebf02ec3b 100644 --- a/clients/client-migration-hub/commands/DisassociateDiscoveredResourceCommand.ts +++ b/clients/client-migration-hub/commands/DisassociateDiscoveredResourceCommand.ts @@ -29,6 +29,7 @@ export class DisassociateDiscoveredResourceCommand extends $Command< DisassociateDiscoveredResourceCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateDiscoveredResourceCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ImportMigrationTaskCommand.ts b/clients/client-migration-hub/commands/ImportMigrationTaskCommand.ts index 019730dbcdc1b..1e59b82737356 100644 --- a/clients/client-migration-hub/commands/ImportMigrationTaskCommand.ts +++ b/clients/client-migration-hub/commands/ImportMigrationTaskCommand.ts @@ -31,6 +31,7 @@ export class ImportMigrationTaskCommand extends $Command< ImportMigrationTaskCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ImportMigrationTaskCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ListApplicationStatesCommand.ts b/clients/client-migration-hub/commands/ListApplicationStatesCommand.ts index d88df3b7aad36..9f4480f2867d1 100644 --- a/clients/client-migration-hub/commands/ListApplicationStatesCommand.ts +++ b/clients/client-migration-hub/commands/ListApplicationStatesCommand.ts @@ -30,6 +30,7 @@ export class ListApplicationStatesCommand extends $Command< ListApplicationStatesCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListApplicationStatesCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ListCreatedArtifactsCommand.ts b/clients/client-migration-hub/commands/ListCreatedArtifactsCommand.ts index 09ec6c4f3609a..bd7cd9ae25467 100644 --- a/clients/client-migration-hub/commands/ListCreatedArtifactsCommand.ts +++ b/clients/client-migration-hub/commands/ListCreatedArtifactsCommand.ts @@ -42,6 +42,7 @@ export class ListCreatedArtifactsCommand extends $Command< ListCreatedArtifactsCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListCreatedArtifactsCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ListDiscoveredResourcesCommand.ts b/clients/client-migration-hub/commands/ListDiscoveredResourcesCommand.ts index 7e41ec7de22bd..b7cc179938799 100644 --- a/clients/client-migration-hub/commands/ListDiscoveredResourcesCommand.ts +++ b/clients/client-migration-hub/commands/ListDiscoveredResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListDiscoveredResourcesCommand extends $Command< ListDiscoveredResourcesCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDiscoveredResourcesCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ListMigrationTasksCommand.ts b/clients/client-migration-hub/commands/ListMigrationTasksCommand.ts index cb7ef719f0a20..21e569d86c6ae 100644 --- a/clients/client-migration-hub/commands/ListMigrationTasksCommand.ts +++ b/clients/client-migration-hub/commands/ListMigrationTasksCommand.ts @@ -41,6 +41,7 @@ export class ListMigrationTasksCommand extends $Command< ListMigrationTasksCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListMigrationTasksCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/ListProgressUpdateStreamsCommand.ts b/clients/client-migration-hub/commands/ListProgressUpdateStreamsCommand.ts index 9a0eddf7d0d9b..8fe149bbbf729 100644 --- a/clients/client-migration-hub/commands/ListProgressUpdateStreamsCommand.ts +++ b/clients/client-migration-hub/commands/ListProgressUpdateStreamsCommand.ts @@ -28,6 +28,7 @@ export class ListProgressUpdateStreamsCommand extends $Command< ListProgressUpdateStreamsCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProgressUpdateStreamsCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/NotifyApplicationStateCommand.ts b/clients/client-migration-hub/commands/NotifyApplicationStateCommand.ts index fad31289c6bd9..f6b60194f6cc6 100644 --- a/clients/client-migration-hub/commands/NotifyApplicationStateCommand.ts +++ b/clients/client-migration-hub/commands/NotifyApplicationStateCommand.ts @@ -31,6 +31,7 @@ export class NotifyApplicationStateCommand extends $Command< NotifyApplicationStateCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class NotifyApplicationStateCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/NotifyMigrationTaskStateCommand.ts b/clients/client-migration-hub/commands/NotifyMigrationTaskStateCommand.ts index b0b547a153c8b..83f38cfccdd6e 100644 --- a/clients/client-migration-hub/commands/NotifyMigrationTaskStateCommand.ts +++ b/clients/client-migration-hub/commands/NotifyMigrationTaskStateCommand.ts @@ -45,6 +45,7 @@ export class NotifyMigrationTaskStateCommand extends $Command< NotifyMigrationTaskStateCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class NotifyMigrationTaskStateCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migration-hub/commands/PutResourceAttributesCommand.ts b/clients/client-migration-hub/commands/PutResourceAttributesCommand.ts index 8901dc1a7cac1..cc9cc57e4ae40 100644 --- a/clients/client-migration-hub/commands/PutResourceAttributesCommand.ts +++ b/clients/client-migration-hub/commands/PutResourceAttributesCommand.ts @@ -53,6 +53,7 @@ export class PutResourceAttributesCommand extends $Command< PutResourceAttributesCommandOutput, MigrationHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class PutResourceAttributesCommand extends $Command< configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migrationhub-config/commands/CreateHomeRegionControlCommand.ts b/clients/client-migrationhub-config/commands/CreateHomeRegionControlCommand.ts index 9c3b341da8638..f587c946a3c86 100644 --- a/clients/client-migrationhub-config/commands/CreateHomeRegionControlCommand.ts +++ b/clients/client-migrationhub-config/commands/CreateHomeRegionControlCommand.ts @@ -32,6 +32,7 @@ export class CreateHomeRegionControlCommand extends $Command< CreateHomeRegionControlCommandOutput, MigrationHubConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateHomeRegionControlCommand extends $Command< configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migrationhub-config/commands/DescribeHomeRegionControlsCommand.ts b/clients/client-migrationhub-config/commands/DescribeHomeRegionControlsCommand.ts index 245d2f38500e2..5a73856c594fb 100644 --- a/clients/client-migrationhub-config/commands/DescribeHomeRegionControlsCommand.ts +++ b/clients/client-migrationhub-config/commands/DescribeHomeRegionControlsCommand.ts @@ -33,6 +33,7 @@ export class DescribeHomeRegionControlsCommand extends $Command< DescribeHomeRegionControlsCommandOutput, MigrationHubConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeHomeRegionControlsCommand extends $Command< configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-migrationhub-config/commands/GetHomeRegionCommand.ts b/clients/client-migrationhub-config/commands/GetHomeRegionCommand.ts index c34f7b607b73c..b05a20a6c3880 100644 --- a/clients/client-migrationhub-config/commands/GetHomeRegionCommand.ts +++ b/clients/client-migrationhub-config/commands/GetHomeRegionCommand.ts @@ -36,6 +36,7 @@ export class GetHomeRegionCommand extends $Command< GetHomeRegionCommandOutput, MigrationHubConfigClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetHomeRegionCommand extends $Command< configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/CreateProjectCommand.ts b/clients/client-mobile/commands/CreateProjectCommand.ts index 35107f11410f9..b4417abd8c78b 100644 --- a/clients/client-mobile/commands/CreateProjectCommand.ts +++ b/clients/client-mobile/commands/CreateProjectCommand.ts @@ -30,6 +30,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateProjectCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/DeleteProjectCommand.ts b/clients/client-mobile/commands/DeleteProjectCommand.ts index 7c9de9c8e9248..ff4acbf14575f 100644 --- a/clients/client-mobile/commands/DeleteProjectCommand.ts +++ b/clients/client-mobile/commands/DeleteProjectCommand.ts @@ -30,6 +30,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteProjectCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/DescribeBundleCommand.ts b/clients/client-mobile/commands/DescribeBundleCommand.ts index 55d7a5fcbd6b9..67004b5be23ea 100644 --- a/clients/client-mobile/commands/DescribeBundleCommand.ts +++ b/clients/client-mobile/commands/DescribeBundleCommand.ts @@ -30,6 +30,7 @@ export class DescribeBundleCommand extends $Command< DescribeBundleCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBundleCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/DescribeProjectCommand.ts b/clients/client-mobile/commands/DescribeProjectCommand.ts index fc3c7bc579733..2ccfed123711f 100644 --- a/clients/client-mobile/commands/DescribeProjectCommand.ts +++ b/clients/client-mobile/commands/DescribeProjectCommand.ts @@ -30,6 +30,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeProjectCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/ExportBundleCommand.ts b/clients/client-mobile/commands/ExportBundleCommand.ts index 94fbf8d4cf57a..77bcb72bf65c5 100644 --- a/clients/client-mobile/commands/ExportBundleCommand.ts +++ b/clients/client-mobile/commands/ExportBundleCommand.ts @@ -31,6 +31,7 @@ export class ExportBundleCommand extends $Command< ExportBundleCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ExportBundleCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/ExportProjectCommand.ts b/clients/client-mobile/commands/ExportProjectCommand.ts index 1c814f75a0fd0..6a4dca784b0ce 100644 --- a/clients/client-mobile/commands/ExportProjectCommand.ts +++ b/clients/client-mobile/commands/ExportProjectCommand.ts @@ -32,6 +32,7 @@ export class ExportProjectCommand extends $Command< ExportProjectCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ExportProjectCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/ListBundlesCommand.ts b/clients/client-mobile/commands/ListBundlesCommand.ts index 1457fe0be842f..8f4ff4592c642 100644 --- a/clients/client-mobile/commands/ListBundlesCommand.ts +++ b/clients/client-mobile/commands/ListBundlesCommand.ts @@ -30,6 +30,7 @@ export class ListBundlesCommand extends $Command< ListBundlesCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListBundlesCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/ListProjectsCommand.ts b/clients/client-mobile/commands/ListProjectsCommand.ts index 2f60a3c5dfcd8..b13b9132fce45 100644 --- a/clients/client-mobile/commands/ListProjectsCommand.ts +++ b/clients/client-mobile/commands/ListProjectsCommand.ts @@ -30,6 +30,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListProjectsCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mobile/commands/UpdateProjectCommand.ts b/clients/client-mobile/commands/UpdateProjectCommand.ts index 3ccfcc4e86208..60d847917ff49 100644 --- a/clients/client-mobile/commands/UpdateProjectCommand.ts +++ b/clients/client-mobile/commands/UpdateProjectCommand.ts @@ -30,6 +30,7 @@ export class UpdateProjectCommand extends $Command< UpdateProjectCommandOutput, MobileClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateProjectCommand extends $Command< configuration: MobileClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/CreateBrokerCommand.ts b/clients/client-mq/commands/CreateBrokerCommand.ts index dea67eed37544..cae5558a6bcf7 100644 --- a/clients/client-mq/commands/CreateBrokerCommand.ts +++ b/clients/client-mq/commands/CreateBrokerCommand.ts @@ -28,6 +28,7 @@ export class CreateBrokerCommand extends $Command< CreateBrokerCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateBrokerCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/CreateConfigurationCommand.ts b/clients/client-mq/commands/CreateConfigurationCommand.ts index 4069cf99b5f0c..63034452514b7 100644 --- a/clients/client-mq/commands/CreateConfigurationCommand.ts +++ b/clients/client-mq/commands/CreateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreateConfigurationCommand extends $Command< CreateConfigurationCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConfigurationCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/CreateTagsCommand.ts b/clients/client-mq/commands/CreateTagsCommand.ts index 7214701b99ae2..76ccf8076261a 100644 --- a/clients/client-mq/commands/CreateTagsCommand.ts +++ b/clients/client-mq/commands/CreateTagsCommand.ts @@ -28,6 +28,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTagsCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/CreateUserCommand.ts b/clients/client-mq/commands/CreateUserCommand.ts index f5c2bdceee953..db69db2deffef 100644 --- a/clients/client-mq/commands/CreateUserCommand.ts +++ b/clients/client-mq/commands/CreateUserCommand.ts @@ -28,6 +28,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateUserCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DeleteBrokerCommand.ts b/clients/client-mq/commands/DeleteBrokerCommand.ts index e0115f1ef0c0a..7cd78dfb56486 100644 --- a/clients/client-mq/commands/DeleteBrokerCommand.ts +++ b/clients/client-mq/commands/DeleteBrokerCommand.ts @@ -28,6 +28,7 @@ export class DeleteBrokerCommand extends $Command< DeleteBrokerCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBrokerCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DeleteTagsCommand.ts b/clients/client-mq/commands/DeleteTagsCommand.ts index babc381d40f98..1a12df4eb044d 100644 --- a/clients/client-mq/commands/DeleteTagsCommand.ts +++ b/clients/client-mq/commands/DeleteTagsCommand.ts @@ -28,6 +28,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTagsCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DeleteUserCommand.ts b/clients/client-mq/commands/DeleteUserCommand.ts index 2c1d8ec548dbb..ed4e55b0719e0 100644 --- a/clients/client-mq/commands/DeleteUserCommand.ts +++ b/clients/client-mq/commands/DeleteUserCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeBrokerCommand.ts b/clients/client-mq/commands/DescribeBrokerCommand.ts index dd3217971ba3d..0ac66bb9cb6f9 100644 --- a/clients/client-mq/commands/DescribeBrokerCommand.ts +++ b/clients/client-mq/commands/DescribeBrokerCommand.ts @@ -28,6 +28,7 @@ export class DescribeBrokerCommand extends $Command< DescribeBrokerCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBrokerCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeBrokerEngineTypesCommand.ts b/clients/client-mq/commands/DescribeBrokerEngineTypesCommand.ts index 2198e33621ba5..b7e91d60e5ea3 100644 --- a/clients/client-mq/commands/DescribeBrokerEngineTypesCommand.ts +++ b/clients/client-mq/commands/DescribeBrokerEngineTypesCommand.ts @@ -28,6 +28,7 @@ export class DescribeBrokerEngineTypesCommand extends $Command< DescribeBrokerEngineTypesCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBrokerEngineTypesCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeBrokerInstanceOptionsCommand.ts b/clients/client-mq/commands/DescribeBrokerInstanceOptionsCommand.ts index 10415fe6e9a85..3149a6f0eff2a 100644 --- a/clients/client-mq/commands/DescribeBrokerInstanceOptionsCommand.ts +++ b/clients/client-mq/commands/DescribeBrokerInstanceOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeBrokerInstanceOptionsCommand extends $Command< DescribeBrokerInstanceOptionsCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeBrokerInstanceOptionsCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeConfigurationCommand.ts b/clients/client-mq/commands/DescribeConfigurationCommand.ts index 26056237bdc68..2a37427daa283 100644 --- a/clients/client-mq/commands/DescribeConfigurationCommand.ts +++ b/clients/client-mq/commands/DescribeConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DescribeConfigurationCommand extends $Command< DescribeConfigurationCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConfigurationCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeConfigurationRevisionCommand.ts b/clients/client-mq/commands/DescribeConfigurationRevisionCommand.ts index 5df63baeac47b..b70e73c825ac6 100644 --- a/clients/client-mq/commands/DescribeConfigurationRevisionCommand.ts +++ b/clients/client-mq/commands/DescribeConfigurationRevisionCommand.ts @@ -28,6 +28,7 @@ export class DescribeConfigurationRevisionCommand extends $Command< DescribeConfigurationRevisionCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConfigurationRevisionCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/DescribeUserCommand.ts b/clients/client-mq/commands/DescribeUserCommand.ts index a6b294d909b90..d5b547c6bb834 100644 --- a/clients/client-mq/commands/DescribeUserCommand.ts +++ b/clients/client-mq/commands/DescribeUserCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/ListBrokersCommand.ts b/clients/client-mq/commands/ListBrokersCommand.ts index be02741650456..e2b3f124e7c55 100644 --- a/clients/client-mq/commands/ListBrokersCommand.ts +++ b/clients/client-mq/commands/ListBrokersCommand.ts @@ -28,6 +28,7 @@ export class ListBrokersCommand extends $Command< ListBrokersCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBrokersCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/ListConfigurationRevisionsCommand.ts b/clients/client-mq/commands/ListConfigurationRevisionsCommand.ts index 5b189700fe1fd..881cad27861d1 100644 --- a/clients/client-mq/commands/ListConfigurationRevisionsCommand.ts +++ b/clients/client-mq/commands/ListConfigurationRevisionsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationRevisionsCommand extends $Command< ListConfigurationRevisionsCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationRevisionsCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/ListConfigurationsCommand.ts b/clients/client-mq/commands/ListConfigurationsCommand.ts index a8dd3932a95bd..31923f9dc20c5 100644 --- a/clients/client-mq/commands/ListConfigurationsCommand.ts +++ b/clients/client-mq/commands/ListConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationsCommand extends $Command< ListConfigurationsCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationsCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/ListTagsCommand.ts b/clients/client-mq/commands/ListTagsCommand.ts index 165ac44d62fa3..9fe60d4fb9e2a 100644 --- a/clients/client-mq/commands/ListTagsCommand.ts +++ b/clients/client-mq/commands/ListTagsCommand.ts @@ -24,6 +24,7 @@ export type ListTagsCommandOutput = ListTagsResponse & __MetadataBearer; * Lists tags for a resource. */ 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-mq/commands/ListUsersCommand.ts b/clients/client-mq/commands/ListUsersCommand.ts index 931d6a11dc9b8..4c3a050643491 100644 --- a/clients/client-mq/commands/ListUsersCommand.ts +++ b/clients/client-mq/commands/ListUsersCommand.ts @@ -24,6 +24,7 @@ export type ListUsersCommandOutput = ListUsersResponse & __MetadataBearer; * Returns a list of all ActiveMQ users. */ export class ListUsersCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class ListUsersCommand 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-mq/commands/RebootBrokerCommand.ts b/clients/client-mq/commands/RebootBrokerCommand.ts index 350b58d9eb39f..d6d7d0f13c088 100644 --- a/clients/client-mq/commands/RebootBrokerCommand.ts +++ b/clients/client-mq/commands/RebootBrokerCommand.ts @@ -28,6 +28,7 @@ export class RebootBrokerCommand extends $Command< RebootBrokerCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RebootBrokerCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/UpdateBrokerCommand.ts b/clients/client-mq/commands/UpdateBrokerCommand.ts index 8f25817cdd2f6..7b04612c5e18f 100644 --- a/clients/client-mq/commands/UpdateBrokerCommand.ts +++ b/clients/client-mq/commands/UpdateBrokerCommand.ts @@ -28,6 +28,7 @@ export class UpdateBrokerCommand extends $Command< UpdateBrokerCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBrokerCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/UpdateConfigurationCommand.ts b/clients/client-mq/commands/UpdateConfigurationCommand.ts index 3d5b3ed4fd738..ef05f7591a086 100644 --- a/clients/client-mq/commands/UpdateConfigurationCommand.ts +++ b/clients/client-mq/commands/UpdateConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateConfigurationCommand extends $Command< UpdateConfigurationCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConfigurationCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mq/commands/UpdateUserCommand.ts b/clients/client-mq/commands/UpdateUserCommand.ts index 770924c6c9c48..0f8b7a034214f 100644 --- a/clients/client-mq/commands/UpdateUserCommand.ts +++ b/clients/client-mq/commands/UpdateUserCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, MqClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserCommand extends $Command< configuration: MqClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/AcceptQualificationRequestCommand.ts b/clients/client-mturk/commands/AcceptQualificationRequestCommand.ts index 7e02a56cd64c4..aa1ac1e35fa1d 100644 --- a/clients/client-mturk/commands/AcceptQualificationRequestCommand.ts +++ b/clients/client-mturk/commands/AcceptQualificationRequestCommand.ts @@ -37,6 +37,7 @@ export class AcceptQualificationRequestCommand extends $Command< AcceptQualificationRequestCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AcceptQualificationRequestCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ApproveAssignmentCommand.ts b/clients/client-mturk/commands/ApproveAssignmentCommand.ts index a9fc598b56a0c..bb2ef94332ff4 100644 --- a/clients/client-mturk/commands/ApproveAssignmentCommand.ts +++ b/clients/client-mturk/commands/ApproveAssignmentCommand.ts @@ -57,6 +57,7 @@ export class ApproveAssignmentCommand extends $Command< ApproveAssignmentCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class ApproveAssignmentCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/AssociateQualificationWithWorkerCommand.ts b/clients/client-mturk/commands/AssociateQualificationWithWorkerCommand.ts index 263761832e44a..33cc07e8e5398 100644 --- a/clients/client-mturk/commands/AssociateQualificationWithWorkerCommand.ts +++ b/clients/client-mturk/commands/AssociateQualificationWithWorkerCommand.ts @@ -48,6 +48,7 @@ export class AssociateQualificationWithWorkerCommand extends $Command< AssociateQualificationWithWorkerCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class AssociateQualificationWithWorkerCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateAdditionalAssignmentsForHITCommand.ts b/clients/client-mturk/commands/CreateAdditionalAssignmentsForHITCommand.ts index 4044eb50453c8..1a875e0f04046 100644 --- a/clients/client-mturk/commands/CreateAdditionalAssignmentsForHITCommand.ts +++ b/clients/client-mturk/commands/CreateAdditionalAssignmentsForHITCommand.ts @@ -54,6 +54,7 @@ export class CreateAdditionalAssignmentsForHITCommand extends $Command< CreateAdditionalAssignmentsForHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class CreateAdditionalAssignmentsForHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateHITCommand.ts b/clients/client-mturk/commands/CreateHITCommand.ts index ad6cd31815d39..224e146d69865 100644 --- a/clients/client-mturk/commands/CreateHITCommand.ts +++ b/clients/client-mturk/commands/CreateHITCommand.ts @@ -41,6 +41,7 @@ export class CreateHITCommand extends $Command< CreateHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateHITTypeCommand.ts b/clients/client-mturk/commands/CreateHITTypeCommand.ts index eccc3434f8336..1ccd7c984c22d 100644 --- a/clients/client-mturk/commands/CreateHITTypeCommand.ts +++ b/clients/client-mturk/commands/CreateHITTypeCommand.ts @@ -33,6 +33,7 @@ export class CreateHITTypeCommand extends $Command< CreateHITTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateHITTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateHITWithHITTypeCommand.ts b/clients/client-mturk/commands/CreateHITWithHITTypeCommand.ts index bb67015da78e6..0032d4b1831a1 100644 --- a/clients/client-mturk/commands/CreateHITWithHITTypeCommand.ts +++ b/clients/client-mturk/commands/CreateHITWithHITTypeCommand.ts @@ -45,6 +45,7 @@ export class CreateHITWithHITTypeCommand extends $Command< CreateHITWithHITTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateHITWithHITTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateQualificationTypeCommand.ts b/clients/client-mturk/commands/CreateQualificationTypeCommand.ts index 6219237d4a11d..4508ca785be4c 100644 --- a/clients/client-mturk/commands/CreateQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/CreateQualificationTypeCommand.ts @@ -34,6 +34,7 @@ export class CreateQualificationTypeCommand extends $Command< CreateQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/CreateWorkerBlockCommand.ts b/clients/client-mturk/commands/CreateWorkerBlockCommand.ts index c1ccde3088cf2..3c66d0d152ae3 100644 --- a/clients/client-mturk/commands/CreateWorkerBlockCommand.ts +++ b/clients/client-mturk/commands/CreateWorkerBlockCommand.ts @@ -28,6 +28,7 @@ export class CreateWorkerBlockCommand extends $Command< CreateWorkerBlockCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorkerBlockCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/DeleteHITCommand.ts b/clients/client-mturk/commands/DeleteHITCommand.ts index 2f4116a5c6081..cf9f7286a6fb9 100644 --- a/clients/client-mturk/commands/DeleteHITCommand.ts +++ b/clients/client-mturk/commands/DeleteHITCommand.ts @@ -60,6 +60,7 @@ export class DeleteHITCommand extends $Command< DeleteHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class DeleteHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/DeleteQualificationTypeCommand.ts b/clients/client-mturk/commands/DeleteQualificationTypeCommand.ts index 4f664fb907701..7d3ac2d97e306 100644 --- a/clients/client-mturk/commands/DeleteQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/DeleteQualificationTypeCommand.ts @@ -46,6 +46,7 @@ export class DeleteQualificationTypeCommand extends $Command< DeleteQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DeleteQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/DeleteWorkerBlockCommand.ts b/clients/client-mturk/commands/DeleteWorkerBlockCommand.ts index 37aabc6b6025d..af256d52523be 100644 --- a/clients/client-mturk/commands/DeleteWorkerBlockCommand.ts +++ b/clients/client-mturk/commands/DeleteWorkerBlockCommand.ts @@ -28,6 +28,7 @@ export class DeleteWorkerBlockCommand extends $Command< DeleteWorkerBlockCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteWorkerBlockCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/DisassociateQualificationFromWorkerCommand.ts b/clients/client-mturk/commands/DisassociateQualificationFromWorkerCommand.ts index a253ebaa19e39..1e4b7fda96a72 100644 --- a/clients/client-mturk/commands/DisassociateQualificationFromWorkerCommand.ts +++ b/clients/client-mturk/commands/DisassociateQualificationFromWorkerCommand.ts @@ -39,6 +39,7 @@ export class DisassociateQualificationFromWorkerCommand extends $Command< DisassociateQualificationFromWorkerCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DisassociateQualificationFromWorkerCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/GetAccountBalanceCommand.ts b/clients/client-mturk/commands/GetAccountBalanceCommand.ts index 99111b995df42..6b099204b3717 100644 --- a/clients/client-mturk/commands/GetAccountBalanceCommand.ts +++ b/clients/client-mturk/commands/GetAccountBalanceCommand.ts @@ -28,6 +28,7 @@ export class GetAccountBalanceCommand extends $Command< GetAccountBalanceCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAccountBalanceCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/GetAssignmentCommand.ts b/clients/client-mturk/commands/GetAssignmentCommand.ts index 89233b69480cf..503fadbe06441 100644 --- a/clients/client-mturk/commands/GetAssignmentCommand.ts +++ b/clients/client-mturk/commands/GetAssignmentCommand.ts @@ -30,6 +30,7 @@ export class GetAssignmentCommand extends $Command< GetAssignmentCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetAssignmentCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/GetFileUploadURLCommand.ts b/clients/client-mturk/commands/GetFileUploadURLCommand.ts index af818e7e93ddd..6d54c0a77d5c7 100644 --- a/clients/client-mturk/commands/GetFileUploadURLCommand.ts +++ b/clients/client-mturk/commands/GetFileUploadURLCommand.ts @@ -45,6 +45,7 @@ export class GetFileUploadURLCommand extends $Command< GetFileUploadURLCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class GetFileUploadURLCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/GetHITCommand.ts b/clients/client-mturk/commands/GetHITCommand.ts index 01c017dd96461..eedc18bed2b25 100644 --- a/clients/client-mturk/commands/GetHITCommand.ts +++ b/clients/client-mturk/commands/GetHITCommand.ts @@ -23,6 +23,7 @@ export type GetHITCommandOutput = GetHITResponse & __MetadataBearer; *

*/ export class GetHITCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class GetHITCommand 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-mturk/commands/GetQualificationScoreCommand.ts b/clients/client-mturk/commands/GetQualificationScoreCommand.ts index 96ed0b73cf443..8f989a1f422a7 100644 --- a/clients/client-mturk/commands/GetQualificationScoreCommand.ts +++ b/clients/client-mturk/commands/GetQualificationScoreCommand.ts @@ -41,6 +41,7 @@ export class GetQualificationScoreCommand extends $Command< GetQualificationScoreCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetQualificationScoreCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/GetQualificationTypeCommand.ts b/clients/client-mturk/commands/GetQualificationTypeCommand.ts index bc523416011f7..4771f97bfb16d 100644 --- a/clients/client-mturk/commands/GetQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/GetQualificationTypeCommand.ts @@ -30,6 +30,7 @@ export class GetQualificationTypeCommand extends $Command< GetQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListAssignmentsForHITCommand.ts b/clients/client-mturk/commands/ListAssignmentsForHITCommand.ts index ef5694afc2fd9..2916796a16a7f 100644 --- a/clients/client-mturk/commands/ListAssignmentsForHITCommand.ts +++ b/clients/client-mturk/commands/ListAssignmentsForHITCommand.ts @@ -54,6 +54,7 @@ export class ListAssignmentsForHITCommand extends $Command< ListAssignmentsForHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class ListAssignmentsForHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListBonusPaymentsCommand.ts b/clients/client-mturk/commands/ListBonusPaymentsCommand.ts index e9a6169d28cb8..4b12632d8c0de 100644 --- a/clients/client-mturk/commands/ListBonusPaymentsCommand.ts +++ b/clients/client-mturk/commands/ListBonusPaymentsCommand.ts @@ -33,6 +33,7 @@ export class ListBonusPaymentsCommand extends $Command< ListBonusPaymentsCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListBonusPaymentsCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListHITsCommand.ts b/clients/client-mturk/commands/ListHITsCommand.ts index 3ba8e69f8506d..3a6ffe4050432 100644 --- a/clients/client-mturk/commands/ListHITsCommand.ts +++ b/clients/client-mturk/commands/ListHITsCommand.ts @@ -27,6 +27,7 @@ export type ListHITsCommandOutput = ListHITsResponse & __MetadataBearer; *

*/ export class ListHITsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class ListHITsCommand 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-mturk/commands/ListHITsForQualificationTypeCommand.ts b/clients/client-mturk/commands/ListHITsForQualificationTypeCommand.ts index 6a5dcdf8bada7..03484437fb43c 100644 --- a/clients/client-mturk/commands/ListHITsForQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/ListHITsForQualificationTypeCommand.ts @@ -33,6 +33,7 @@ export class ListHITsForQualificationTypeCommand extends $Command< ListHITsForQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListHITsForQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListQualificationRequestsCommand.ts b/clients/client-mturk/commands/ListQualificationRequestsCommand.ts index b58dcede92912..86610739417b1 100644 --- a/clients/client-mturk/commands/ListQualificationRequestsCommand.ts +++ b/clients/client-mturk/commands/ListQualificationRequestsCommand.ts @@ -35,6 +35,7 @@ export class ListQualificationRequestsCommand extends $Command< ListQualificationRequestsCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListQualificationRequestsCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListQualificationTypesCommand.ts b/clients/client-mturk/commands/ListQualificationTypesCommand.ts index a457c947044a7..d9acb7d0317c4 100644 --- a/clients/client-mturk/commands/ListQualificationTypesCommand.ts +++ b/clients/client-mturk/commands/ListQualificationTypesCommand.ts @@ -33,6 +33,7 @@ export class ListQualificationTypesCommand extends $Command< ListQualificationTypesCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListQualificationTypesCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListReviewPolicyResultsForHITCommand.ts b/clients/client-mturk/commands/ListReviewPolicyResultsForHITCommand.ts index ce05d153b933c..1a9d93a0213ed 100644 --- a/clients/client-mturk/commands/ListReviewPolicyResultsForHITCommand.ts +++ b/clients/client-mturk/commands/ListReviewPolicyResultsForHITCommand.ts @@ -34,6 +34,7 @@ export class ListReviewPolicyResultsForHITCommand extends $Command< ListReviewPolicyResultsForHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListReviewPolicyResultsForHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListReviewableHITsCommand.ts b/clients/client-mturk/commands/ListReviewableHITsCommand.ts index 23b1188f34156..e6091008903f9 100644 --- a/clients/client-mturk/commands/ListReviewableHITsCommand.ts +++ b/clients/client-mturk/commands/ListReviewableHITsCommand.ts @@ -31,6 +31,7 @@ export class ListReviewableHITsCommand extends $Command< ListReviewableHITsCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListReviewableHITsCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListWorkerBlocksCommand.ts b/clients/client-mturk/commands/ListWorkerBlocksCommand.ts index 77edb06bbb2d4..213ce6af79cb3 100644 --- a/clients/client-mturk/commands/ListWorkerBlocksCommand.ts +++ b/clients/client-mturk/commands/ListWorkerBlocksCommand.ts @@ -28,6 +28,7 @@ export class ListWorkerBlocksCommand extends $Command< ListWorkerBlocksCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorkerBlocksCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/ListWorkersWithQualificationTypeCommand.ts b/clients/client-mturk/commands/ListWorkersWithQualificationTypeCommand.ts index 7a2e6859b97d2..046487be7c37d 100644 --- a/clients/client-mturk/commands/ListWorkersWithQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/ListWorkersWithQualificationTypeCommand.ts @@ -31,6 +31,7 @@ export class ListWorkersWithQualificationTypeCommand extends $Command< ListWorkersWithQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListWorkersWithQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/NotifyWorkersCommand.ts b/clients/client-mturk/commands/NotifyWorkersCommand.ts index 69d64604183c4..e22e0186037fd 100644 --- a/clients/client-mturk/commands/NotifyWorkersCommand.ts +++ b/clients/client-mturk/commands/NotifyWorkersCommand.ts @@ -37,6 +37,7 @@ export class NotifyWorkersCommand extends $Command< NotifyWorkersCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class NotifyWorkersCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/RejectAssignmentCommand.ts b/clients/client-mturk/commands/RejectAssignmentCommand.ts index 904963750a618..645a0562904bc 100644 --- a/clients/client-mturk/commands/RejectAssignmentCommand.ts +++ b/clients/client-mturk/commands/RejectAssignmentCommand.ts @@ -40,6 +40,7 @@ export class RejectAssignmentCommand extends $Command< RejectAssignmentCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RejectAssignmentCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/RejectQualificationRequestCommand.ts b/clients/client-mturk/commands/RejectQualificationRequestCommand.ts index 0b6ebb713f605..bb3a2a1575ed3 100644 --- a/clients/client-mturk/commands/RejectQualificationRequestCommand.ts +++ b/clients/client-mturk/commands/RejectQualificationRequestCommand.ts @@ -34,6 +34,7 @@ export class RejectQualificationRequestCommand extends $Command< RejectQualificationRequestCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RejectQualificationRequestCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/SendBonusCommand.ts b/clients/client-mturk/commands/SendBonusCommand.ts index d60c22ee0758a..dfe1f51f0b31e 100644 --- a/clients/client-mturk/commands/SendBonusCommand.ts +++ b/clients/client-mturk/commands/SendBonusCommand.ts @@ -38,6 +38,7 @@ export class SendBonusCommand extends $Command< SendBonusCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class SendBonusCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/SendTestEventNotificationCommand.ts b/clients/client-mturk/commands/SendTestEventNotificationCommand.ts index bbdca93e3b357..2958dc5d90b23 100644 --- a/clients/client-mturk/commands/SendTestEventNotificationCommand.ts +++ b/clients/client-mturk/commands/SendTestEventNotificationCommand.ts @@ -34,6 +34,7 @@ export class SendTestEventNotificationCommand extends $Command< SendTestEventNotificationCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SendTestEventNotificationCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/UpdateExpirationForHITCommand.ts b/clients/client-mturk/commands/UpdateExpirationForHITCommand.ts index ed2e99a2a8046..e43c9d6286e29 100644 --- a/clients/client-mturk/commands/UpdateExpirationForHITCommand.ts +++ b/clients/client-mturk/commands/UpdateExpirationForHITCommand.ts @@ -31,6 +31,7 @@ export class UpdateExpirationForHITCommand extends $Command< UpdateExpirationForHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateExpirationForHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/UpdateHITReviewStatusCommand.ts b/clients/client-mturk/commands/UpdateHITReviewStatusCommand.ts index b26dbe4fb1ded..3a950ee7ddb16 100644 --- a/clients/client-mturk/commands/UpdateHITReviewStatusCommand.ts +++ b/clients/client-mturk/commands/UpdateHITReviewStatusCommand.ts @@ -32,6 +32,7 @@ export class UpdateHITReviewStatusCommand extends $Command< UpdateHITReviewStatusCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateHITReviewStatusCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/UpdateHITTypeOfHITCommand.ts b/clients/client-mturk/commands/UpdateHITTypeOfHITCommand.ts index 7b7d78c9e2614..9879dc837b5ce 100644 --- a/clients/client-mturk/commands/UpdateHITTypeOfHITCommand.ts +++ b/clients/client-mturk/commands/UpdateHITTypeOfHITCommand.ts @@ -35,6 +35,7 @@ export class UpdateHITTypeOfHITCommand extends $Command< UpdateHITTypeOfHITCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateHITTypeOfHITCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/UpdateNotificationSettingsCommand.ts b/clients/client-mturk/commands/UpdateNotificationSettingsCommand.ts index 10127bf3c17b9..1f671d66476e0 100644 --- a/clients/client-mturk/commands/UpdateNotificationSettingsCommand.ts +++ b/clients/client-mturk/commands/UpdateNotificationSettingsCommand.ts @@ -39,6 +39,7 @@ export class UpdateNotificationSettingsCommand extends $Command< UpdateNotificationSettingsCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class UpdateNotificationSettingsCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-mturk/commands/UpdateQualificationTypeCommand.ts b/clients/client-mturk/commands/UpdateQualificationTypeCommand.ts index 2bb302e23e64d..0772008562021 100644 --- a/clients/client-mturk/commands/UpdateQualificationTypeCommand.ts +++ b/clients/client-mturk/commands/UpdateQualificationTypeCommand.ts @@ -60,6 +60,7 @@ export class UpdateQualificationTypeCommand extends $Command< UpdateQualificationTypeCommandOutput, MTurkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class UpdateQualificationTypeCommand extends $Command< configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/AddRoleToDBClusterCommand.ts b/clients/client-neptune/commands/AddRoleToDBClusterCommand.ts index 2c0be575fd8e5..0915d6f3dc4fc 100644 --- a/clients/client-neptune/commands/AddRoleToDBClusterCommand.ts +++ b/clients/client-neptune/commands/AddRoleToDBClusterCommand.ts @@ -29,6 +29,7 @@ export class AddRoleToDBClusterCommand extends $Command< AddRoleToDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AddRoleToDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/AddSourceIdentifierToSubscriptionCommand.ts b/clients/client-neptune/commands/AddSourceIdentifierToSubscriptionCommand.ts index 454b8f3041297..f7f2cb77a71e8 100644 --- a/clients/client-neptune/commands/AddSourceIdentifierToSubscriptionCommand.ts +++ b/clients/client-neptune/commands/AddSourceIdentifierToSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class AddSourceIdentifierToSubscriptionCommand extends $Command< AddSourceIdentifierToSubscriptionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddSourceIdentifierToSubscriptionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/AddTagsToResourceCommand.ts b/clients/client-neptune/commands/AddTagsToResourceCommand.ts index 7fd76f67298cf..91a52712d7a1d 100644 --- a/clients/client-neptune/commands/AddTagsToResourceCommand.ts +++ b/clients/client-neptune/commands/AddTagsToResourceCommand.ts @@ -30,6 +30,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ApplyPendingMaintenanceActionCommand.ts b/clients/client-neptune/commands/ApplyPendingMaintenanceActionCommand.ts index 184a300c4b0d7..028a7301a4c4f 100644 --- a/clients/client-neptune/commands/ApplyPendingMaintenanceActionCommand.ts +++ b/clients/client-neptune/commands/ApplyPendingMaintenanceActionCommand.ts @@ -28,6 +28,7 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< ApplyPendingMaintenanceActionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CopyDBClusterParameterGroupCommand.ts b/clients/client-neptune/commands/CopyDBClusterParameterGroupCommand.ts index 99df66438e51d..aa66825283d31 100644 --- a/clients/client-neptune/commands/CopyDBClusterParameterGroupCommand.ts +++ b/clients/client-neptune/commands/CopyDBClusterParameterGroupCommand.ts @@ -28,6 +28,7 @@ export class CopyDBClusterParameterGroupCommand extends $Command< CopyDBClusterParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyDBClusterParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CopyDBClusterSnapshotCommand.ts b/clients/client-neptune/commands/CopyDBClusterSnapshotCommand.ts index 0412381e8d007..defd4f38322a7 100644 --- a/clients/client-neptune/commands/CopyDBClusterSnapshotCommand.ts +++ b/clients/client-neptune/commands/CopyDBClusterSnapshotCommand.ts @@ -31,6 +31,7 @@ export class CopyDBClusterSnapshotCommand extends $Command< CopyDBClusterSnapshotCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CopyDBClusterSnapshotCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CopyDBParameterGroupCommand.ts b/clients/client-neptune/commands/CopyDBParameterGroupCommand.ts index 91b7e4a59ea67..8c12edfb3a838 100644 --- a/clients/client-neptune/commands/CopyDBParameterGroupCommand.ts +++ b/clients/client-neptune/commands/CopyDBParameterGroupCommand.ts @@ -28,6 +28,7 @@ export class CopyDBParameterGroupCommand extends $Command< CopyDBParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyDBParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBClusterCommand.ts b/clients/client-neptune/commands/CreateDBClusterCommand.ts index 66a82dcebd15a..b21ed16d5f884 100644 --- a/clients/client-neptune/commands/CreateDBClusterCommand.ts +++ b/clients/client-neptune/commands/CreateDBClusterCommand.ts @@ -34,6 +34,7 @@ export class CreateDBClusterCommand extends $Command< CreateDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBClusterEndpointCommand.ts b/clients/client-neptune/commands/CreateDBClusterEndpointCommand.ts index d9288e3448bde..4984799533511 100644 --- a/clients/client-neptune/commands/CreateDBClusterEndpointCommand.ts +++ b/clients/client-neptune/commands/CreateDBClusterEndpointCommand.ts @@ -28,6 +28,7 @@ export class CreateDBClusterEndpointCommand extends $Command< CreateDBClusterEndpointCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBClusterEndpointCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBClusterParameterGroupCommand.ts b/clients/client-neptune/commands/CreateDBClusterParameterGroupCommand.ts index 0f659305bff5b..9052723aea141 100644 --- a/clients/client-neptune/commands/CreateDBClusterParameterGroupCommand.ts +++ b/clients/client-neptune/commands/CreateDBClusterParameterGroupCommand.ts @@ -52,6 +52,7 @@ export class CreateDBClusterParameterGroupCommand extends $Command< CreateDBClusterParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class CreateDBClusterParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBClusterSnapshotCommand.ts b/clients/client-neptune/commands/CreateDBClusterSnapshotCommand.ts index 0c0ae7ec70820..a6a1fd6d37575 100644 --- a/clients/client-neptune/commands/CreateDBClusterSnapshotCommand.ts +++ b/clients/client-neptune/commands/CreateDBClusterSnapshotCommand.ts @@ -28,6 +28,7 @@ export class CreateDBClusterSnapshotCommand extends $Command< CreateDBClusterSnapshotCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBClusterSnapshotCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBInstanceCommand.ts b/clients/client-neptune/commands/CreateDBInstanceCommand.ts index 1b0903eb985bc..f899ec1bc5a28 100644 --- a/clients/client-neptune/commands/CreateDBInstanceCommand.ts +++ b/clients/client-neptune/commands/CreateDBInstanceCommand.ts @@ -28,6 +28,7 @@ export class CreateDBInstanceCommand extends $Command< CreateDBInstanceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBInstanceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBParameterGroupCommand.ts b/clients/client-neptune/commands/CreateDBParameterGroupCommand.ts index 8ad55d96f42e4..7c72a2a09fa71 100644 --- a/clients/client-neptune/commands/CreateDBParameterGroupCommand.ts +++ b/clients/client-neptune/commands/CreateDBParameterGroupCommand.ts @@ -49,6 +49,7 @@ export class CreateDBParameterGroupCommand extends $Command< CreateDBParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class CreateDBParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateDBSubnetGroupCommand.ts b/clients/client-neptune/commands/CreateDBSubnetGroupCommand.ts index cc8dd31cfac65..52b3ede28e54d 100644 --- a/clients/client-neptune/commands/CreateDBSubnetGroupCommand.ts +++ b/clients/client-neptune/commands/CreateDBSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateDBSubnetGroupCommand extends $Command< CreateDBSubnetGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDBSubnetGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/CreateEventSubscriptionCommand.ts b/clients/client-neptune/commands/CreateEventSubscriptionCommand.ts index 595d9f5c2b7a4..0b6c9f696c46a 100644 --- a/clients/client-neptune/commands/CreateEventSubscriptionCommand.ts +++ b/clients/client-neptune/commands/CreateEventSubscriptionCommand.ts @@ -42,6 +42,7 @@ export class CreateEventSubscriptionCommand extends $Command< CreateEventSubscriptionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateEventSubscriptionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBClusterCommand.ts b/clients/client-neptune/commands/DeleteDBClusterCommand.ts index 70057c5b86f8f..85c715926dce3 100644 --- a/clients/client-neptune/commands/DeleteDBClusterCommand.ts +++ b/clients/client-neptune/commands/DeleteDBClusterCommand.ts @@ -34,6 +34,7 @@ export class DeleteDBClusterCommand extends $Command< DeleteDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBClusterEndpointCommand.ts b/clients/client-neptune/commands/DeleteDBClusterEndpointCommand.ts index 40e47e1b184ba..1a6af2299f1b9 100644 --- a/clients/client-neptune/commands/DeleteDBClusterEndpointCommand.ts +++ b/clients/client-neptune/commands/DeleteDBClusterEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteDBClusterEndpointCommand extends $Command< DeleteDBClusterEndpointCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDBClusterEndpointCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBClusterParameterGroupCommand.ts b/clients/client-neptune/commands/DeleteDBClusterParameterGroupCommand.ts index 6b5e809769f34..1726eabcb4cad 100644 --- a/clients/client-neptune/commands/DeleteDBClusterParameterGroupCommand.ts +++ b/clients/client-neptune/commands/DeleteDBClusterParameterGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< DeleteDBClusterParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBClusterSnapshotCommand.ts b/clients/client-neptune/commands/DeleteDBClusterSnapshotCommand.ts index 9515115b5c480..09a6a7fe7b6e0 100644 --- a/clients/client-neptune/commands/DeleteDBClusterSnapshotCommand.ts +++ b/clients/client-neptune/commands/DeleteDBClusterSnapshotCommand.ts @@ -33,6 +33,7 @@ export class DeleteDBClusterSnapshotCommand extends $Command< DeleteDBClusterSnapshotCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteDBClusterSnapshotCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBInstanceCommand.ts b/clients/client-neptune/commands/DeleteDBInstanceCommand.ts index ed72d037026cc..73adf9ec566a4 100644 --- a/clients/client-neptune/commands/DeleteDBInstanceCommand.ts +++ b/clients/client-neptune/commands/DeleteDBInstanceCommand.ts @@ -41,6 +41,7 @@ export class DeleteDBInstanceCommand extends $Command< DeleteDBInstanceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeleteDBInstanceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBParameterGroupCommand.ts b/clients/client-neptune/commands/DeleteDBParameterGroupCommand.ts index 6ad1a8299c9d6..6ea6fba2772d2 100644 --- a/clients/client-neptune/commands/DeleteDBParameterGroupCommand.ts +++ b/clients/client-neptune/commands/DeleteDBParameterGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteDBParameterGroupCommand extends $Command< DeleteDBParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDBParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteDBSubnetGroupCommand.ts b/clients/client-neptune/commands/DeleteDBSubnetGroupCommand.ts index ccb7bddd47449..1c3c5957eb351 100644 --- a/clients/client-neptune/commands/DeleteDBSubnetGroupCommand.ts +++ b/clients/client-neptune/commands/DeleteDBSubnetGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteDBSubnetGroupCommand extends $Command< DeleteDBSubnetGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDBSubnetGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DeleteEventSubscriptionCommand.ts b/clients/client-neptune/commands/DeleteEventSubscriptionCommand.ts index b3f9fbef2812e..15d084f5149ff 100644 --- a/clients/client-neptune/commands/DeleteEventSubscriptionCommand.ts +++ b/clients/client-neptune/commands/DeleteEventSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteEventSubscriptionCommand extends $Command< DeleteEventSubscriptionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEventSubscriptionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClusterEndpointsCommand.ts b/clients/client-neptune/commands/DescribeDBClusterEndpointsCommand.ts index 56e58034abd52..c720cfceee1d1 100644 --- a/clients/client-neptune/commands/DescribeDBClusterEndpointsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClusterEndpointsCommand.ts @@ -32,6 +32,7 @@ export class DescribeDBClusterEndpointsCommand extends $Command< DescribeDBClusterEndpointsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeDBClusterEndpointsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClusterParameterGroupsCommand.ts b/clients/client-neptune/commands/DescribeDBClusterParameterGroupsCommand.ts index 7933ef65e6db7..a12afb6cdfc6a 100644 --- a/clients/client-neptune/commands/DescribeDBClusterParameterGroupsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClusterParameterGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< DescribeDBClusterParameterGroupsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClusterParametersCommand.ts b/clients/client-neptune/commands/DescribeDBClusterParametersCommand.ts index d9d5f2b1294f5..93aa9f28df586 100644 --- a/clients/client-neptune/commands/DescribeDBClusterParametersCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClusterParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBClusterParametersCommand extends $Command< DescribeDBClusterParametersCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBClusterParametersCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClusterSnapshotAttributesCommand.ts b/clients/client-neptune/commands/DescribeDBClusterSnapshotAttributesCommand.ts index cf3d81aff5c6b..25778afa34725 100644 --- a/clients/client-neptune/commands/DescribeDBClusterSnapshotAttributesCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClusterSnapshotAttributesCommand.ts @@ -41,6 +41,7 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< DescribeDBClusterSnapshotAttributesCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClusterSnapshotsCommand.ts b/clients/client-neptune/commands/DescribeDBClusterSnapshotsCommand.ts index 414609f4298d8..595100bbd2640 100644 --- a/clients/client-neptune/commands/DescribeDBClusterSnapshotsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClusterSnapshotsCommand.ts @@ -29,6 +29,7 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< DescribeDBClusterSnapshotsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBClustersCommand.ts b/clients/client-neptune/commands/DescribeDBClustersCommand.ts index 91ccf3e991306..815dd68368da8 100644 --- a/clients/client-neptune/commands/DescribeDBClustersCommand.ts +++ b/clients/client-neptune/commands/DescribeDBClustersCommand.ts @@ -34,6 +34,7 @@ export class DescribeDBClustersCommand extends $Command< DescribeDBClustersCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDBClustersCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBEngineVersionsCommand.ts b/clients/client-neptune/commands/DescribeDBEngineVersionsCommand.ts index 0c8eac25a5e4b..50514a8a4efc9 100644 --- a/clients/client-neptune/commands/DescribeDBEngineVersionsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBEngineVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBEngineVersionsCommand extends $Command< DescribeDBEngineVersionsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBEngineVersionsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBInstancesCommand.ts b/clients/client-neptune/commands/DescribeDBInstancesCommand.ts index 0945d1ad297c2..ae8ed28abaa8c 100644 --- a/clients/client-neptune/commands/DescribeDBInstancesCommand.ts +++ b/clients/client-neptune/commands/DescribeDBInstancesCommand.ts @@ -33,6 +33,7 @@ export class DescribeDBInstancesCommand extends $Command< DescribeDBInstancesCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDBInstancesCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBParameterGroupsCommand.ts b/clients/client-neptune/commands/DescribeDBParameterGroupsCommand.ts index d27d998719f8d..2b84ed17201dc 100644 --- a/clients/client-neptune/commands/DescribeDBParameterGroupsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBParameterGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDBParameterGroupsCommand extends $Command< DescribeDBParameterGroupsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDBParameterGroupsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBParametersCommand.ts b/clients/client-neptune/commands/DescribeDBParametersCommand.ts index d89666e503ac0..60383ec0c4614 100644 --- a/clients/client-neptune/commands/DescribeDBParametersCommand.ts +++ b/clients/client-neptune/commands/DescribeDBParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBParametersCommand extends $Command< DescribeDBParametersCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBParametersCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeDBSubnetGroupsCommand.ts b/clients/client-neptune/commands/DescribeDBSubnetGroupsCommand.ts index 55ba2727ad998..21c78b0fedd30 100644 --- a/clients/client-neptune/commands/DescribeDBSubnetGroupsCommand.ts +++ b/clients/client-neptune/commands/DescribeDBSubnetGroupsCommand.ts @@ -30,6 +30,7 @@ export class DescribeDBSubnetGroupsCommand extends $Command< DescribeDBSubnetGroupsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDBSubnetGroupsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeEngineDefaultClusterParametersCommand.ts b/clients/client-neptune/commands/DescribeEngineDefaultClusterParametersCommand.ts index 22be8db076724..946424283e9c3 100644 --- a/clients/client-neptune/commands/DescribeEngineDefaultClusterParametersCommand.ts +++ b/clients/client-neptune/commands/DescribeEngineDefaultClusterParametersCommand.ts @@ -33,6 +33,7 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< DescribeEngineDefaultClusterParametersCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeEngineDefaultParametersCommand.ts b/clients/client-neptune/commands/DescribeEngineDefaultParametersCommand.ts index 1288e9451f785..dcfd55b29df39 100644 --- a/clients/client-neptune/commands/DescribeEngineDefaultParametersCommand.ts +++ b/clients/client-neptune/commands/DescribeEngineDefaultParametersCommand.ts @@ -29,6 +29,7 @@ export class DescribeEngineDefaultParametersCommand extends $Command< DescribeEngineDefaultParametersCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEngineDefaultParametersCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeEventCategoriesCommand.ts b/clients/client-neptune/commands/DescribeEventCategoriesCommand.ts index 12208bd1e6004..6e81e1a6eb0d0 100644 --- a/clients/client-neptune/commands/DescribeEventCategoriesCommand.ts +++ b/clients/client-neptune/commands/DescribeEventCategoriesCommand.ts @@ -29,6 +29,7 @@ export class DescribeEventCategoriesCommand extends $Command< DescribeEventCategoriesCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEventCategoriesCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeEventSubscriptionsCommand.ts b/clients/client-neptune/commands/DescribeEventSubscriptionsCommand.ts index b7ff1c1f8a7e4..6f0ca98fdea7a 100644 --- a/clients/client-neptune/commands/DescribeEventSubscriptionsCommand.ts +++ b/clients/client-neptune/commands/DescribeEventSubscriptionsCommand.ts @@ -31,6 +31,7 @@ export class DescribeEventSubscriptionsCommand extends $Command< DescribeEventSubscriptionsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeEventSubscriptionsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeEventsCommand.ts b/clients/client-neptune/commands/DescribeEventsCommand.ts index bbc3ae5ef5948..c7c081e28826d 100644 --- a/clients/client-neptune/commands/DescribeEventsCommand.ts +++ b/clients/client-neptune/commands/DescribeEventsCommand.ts @@ -31,6 +31,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeEventsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeOrderableDBInstanceOptionsCommand.ts b/clients/client-neptune/commands/DescribeOrderableDBInstanceOptionsCommand.ts index 43650449cdedc..f5ecbea6ca0a1 100644 --- a/clients/client-neptune/commands/DescribeOrderableDBInstanceOptionsCommand.ts +++ b/clients/client-neptune/commands/DescribeOrderableDBInstanceOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< DescribeOrderableDBInstanceOptionsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribePendingMaintenanceActionsCommand.ts b/clients/client-neptune/commands/DescribePendingMaintenanceActionsCommand.ts index b290288c7041a..4de3733e58b65 100644 --- a/clients/client-neptune/commands/DescribePendingMaintenanceActionsCommand.ts +++ b/clients/client-neptune/commands/DescribePendingMaintenanceActionsCommand.ts @@ -29,6 +29,7 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< DescribePendingMaintenanceActionsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/DescribeValidDBInstanceModificationsCommand.ts b/clients/client-neptune/commands/DescribeValidDBInstanceModificationsCommand.ts index 407fff9e02b69..2489152294914 100644 --- a/clients/client-neptune/commands/DescribeValidDBInstanceModificationsCommand.ts +++ b/clients/client-neptune/commands/DescribeValidDBInstanceModificationsCommand.ts @@ -34,6 +34,7 @@ export class DescribeValidDBInstanceModificationsCommand extends $Command< DescribeValidDBInstanceModificationsCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeValidDBInstanceModificationsCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/FailoverDBClusterCommand.ts b/clients/client-neptune/commands/FailoverDBClusterCommand.ts index f1a7ec886e00e..7357db9661d82 100644 --- a/clients/client-neptune/commands/FailoverDBClusterCommand.ts +++ b/clients/client-neptune/commands/FailoverDBClusterCommand.ts @@ -35,6 +35,7 @@ export class FailoverDBClusterCommand extends $Command< FailoverDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class FailoverDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ListTagsForResourceCommand.ts b/clients/client-neptune/commands/ListTagsForResourceCommand.ts index 5469a35fe5dbe..a559edda2d665 100644 --- a/clients/client-neptune/commands/ListTagsForResourceCommand.ts +++ b/clients/client-neptune/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBClusterCommand.ts b/clients/client-neptune/commands/ModifyDBClusterCommand.ts index bccd007d41abc..45e1b50ac0df7 100644 --- a/clients/client-neptune/commands/ModifyDBClusterCommand.ts +++ b/clients/client-neptune/commands/ModifyDBClusterCommand.ts @@ -29,6 +29,7 @@ export class ModifyDBClusterCommand extends $Command< ModifyDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBClusterEndpointCommand.ts b/clients/client-neptune/commands/ModifyDBClusterEndpointCommand.ts index a14f9a5101377..24bc877517748 100644 --- a/clients/client-neptune/commands/ModifyDBClusterEndpointCommand.ts +++ b/clients/client-neptune/commands/ModifyDBClusterEndpointCommand.ts @@ -28,6 +28,7 @@ export class ModifyDBClusterEndpointCommand extends $Command< ModifyDBClusterEndpointCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyDBClusterEndpointCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBClusterParameterGroupCommand.ts b/clients/client-neptune/commands/ModifyDBClusterParameterGroupCommand.ts index 8a99864575729..313f21e29e4f3 100644 --- a/clients/client-neptune/commands/ModifyDBClusterParameterGroupCommand.ts +++ b/clients/client-neptune/commands/ModifyDBClusterParameterGroupCommand.ts @@ -48,6 +48,7 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< ModifyDBClusterParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBClusterSnapshotAttributeCommand.ts b/clients/client-neptune/commands/ModifyDBClusterSnapshotAttributeCommand.ts index 17203a806252d..4f0469ec6722f 100644 --- a/clients/client-neptune/commands/ModifyDBClusterSnapshotAttributeCommand.ts +++ b/clients/client-neptune/commands/ModifyDBClusterSnapshotAttributeCommand.ts @@ -41,6 +41,7 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< ModifyDBClusterSnapshotAttributeCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBInstanceCommand.ts b/clients/client-neptune/commands/ModifyDBInstanceCommand.ts index 618d9e7660b74..a5a2bb713634a 100644 --- a/clients/client-neptune/commands/ModifyDBInstanceCommand.ts +++ b/clients/client-neptune/commands/ModifyDBInstanceCommand.ts @@ -30,6 +30,7 @@ export class ModifyDBInstanceCommand extends $Command< ModifyDBInstanceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyDBInstanceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBParameterGroupCommand.ts b/clients/client-neptune/commands/ModifyDBParameterGroupCommand.ts index e210095c29944..ea8e7d96f1d85 100644 --- a/clients/client-neptune/commands/ModifyDBParameterGroupCommand.ts +++ b/clients/client-neptune/commands/ModifyDBParameterGroupCommand.ts @@ -47,6 +47,7 @@ export class ModifyDBParameterGroupCommand extends $Command< ModifyDBParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class ModifyDBParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyDBSubnetGroupCommand.ts b/clients/client-neptune/commands/ModifyDBSubnetGroupCommand.ts index 00f8af736f41c..694f4a924c695 100644 --- a/clients/client-neptune/commands/ModifyDBSubnetGroupCommand.ts +++ b/clients/client-neptune/commands/ModifyDBSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class ModifyDBSubnetGroupCommand extends $Command< ModifyDBSubnetGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyDBSubnetGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ModifyEventSubscriptionCommand.ts b/clients/client-neptune/commands/ModifyEventSubscriptionCommand.ts index 9a362a9940f7c..72291dd212bc7 100644 --- a/clients/client-neptune/commands/ModifyEventSubscriptionCommand.ts +++ b/clients/client-neptune/commands/ModifyEventSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class ModifyEventSubscriptionCommand extends $Command< ModifyEventSubscriptionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyEventSubscriptionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/PromoteReadReplicaDBClusterCommand.ts b/clients/client-neptune/commands/PromoteReadReplicaDBClusterCommand.ts index 92bbf28e18119..1941323332da5 100644 --- a/clients/client-neptune/commands/PromoteReadReplicaDBClusterCommand.ts +++ b/clients/client-neptune/commands/PromoteReadReplicaDBClusterCommand.ts @@ -28,6 +28,7 @@ export class PromoteReadReplicaDBClusterCommand extends $Command< PromoteReadReplicaDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PromoteReadReplicaDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RebootDBInstanceCommand.ts b/clients/client-neptune/commands/RebootDBInstanceCommand.ts index 04fa30bff594c..9e23b6a3d23f0 100644 --- a/clients/client-neptune/commands/RebootDBInstanceCommand.ts +++ b/clients/client-neptune/commands/RebootDBInstanceCommand.ts @@ -32,6 +32,7 @@ export class RebootDBInstanceCommand extends $Command< RebootDBInstanceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RebootDBInstanceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RemoveRoleFromDBClusterCommand.ts b/clients/client-neptune/commands/RemoveRoleFromDBClusterCommand.ts index e9d12e27b800a..d5fc36618a849 100644 --- a/clients/client-neptune/commands/RemoveRoleFromDBClusterCommand.ts +++ b/clients/client-neptune/commands/RemoveRoleFromDBClusterCommand.ts @@ -28,6 +28,7 @@ export class RemoveRoleFromDBClusterCommand extends $Command< RemoveRoleFromDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveRoleFromDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts b/clients/client-neptune/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts index d26f91434e221..323d7d257965f 100644 --- a/clients/client-neptune/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts +++ b/clients/client-neptune/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class RemoveSourceIdentifierFromSubscriptionCommand extends $Command< RemoveSourceIdentifierFromSubscriptionCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveSourceIdentifierFromSubscriptionCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RemoveTagsFromResourceCommand.ts b/clients/client-neptune/commands/RemoveTagsFromResourceCommand.ts index 40327a94e66ad..a3147c82e0b0b 100644 --- a/clients/client-neptune/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-neptune/commands/RemoveTagsFromResourceCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ResetDBClusterParameterGroupCommand.ts b/clients/client-neptune/commands/ResetDBClusterParameterGroupCommand.ts index 2509ee6a8bd12..2e826764d11c6 100644 --- a/clients/client-neptune/commands/ResetDBClusterParameterGroupCommand.ts +++ b/clients/client-neptune/commands/ResetDBClusterParameterGroupCommand.ts @@ -35,6 +35,7 @@ export class ResetDBClusterParameterGroupCommand extends $Command< ResetDBClusterParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ResetDBClusterParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/ResetDBParameterGroupCommand.ts b/clients/client-neptune/commands/ResetDBParameterGroupCommand.ts index b63547dd81b61..d73c42ba5bc58 100644 --- a/clients/client-neptune/commands/ResetDBParameterGroupCommand.ts +++ b/clients/client-neptune/commands/ResetDBParameterGroupCommand.ts @@ -34,6 +34,7 @@ export class ResetDBParameterGroupCommand extends $Command< ResetDBParameterGroupCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ResetDBParameterGroupCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RestoreDBClusterFromSnapshotCommand.ts b/clients/client-neptune/commands/RestoreDBClusterFromSnapshotCommand.ts index ee40582dcc688..7b3a2580ec461 100644 --- a/clients/client-neptune/commands/RestoreDBClusterFromSnapshotCommand.ts +++ b/clients/client-neptune/commands/RestoreDBClusterFromSnapshotCommand.ts @@ -33,6 +33,7 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< RestoreDBClusterFromSnapshotCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/RestoreDBClusterToPointInTimeCommand.ts b/clients/client-neptune/commands/RestoreDBClusterToPointInTimeCommand.ts index 158b574b49857..6d768ac0c628c 100644 --- a/clients/client-neptune/commands/RestoreDBClusterToPointInTimeCommand.ts +++ b/clients/client-neptune/commands/RestoreDBClusterToPointInTimeCommand.ts @@ -40,6 +40,7 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< RestoreDBClusterToPointInTimeCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/StartDBClusterCommand.ts b/clients/client-neptune/commands/StartDBClusterCommand.ts index bed8f74d0db4a..413b271de08cd 100644 --- a/clients/client-neptune/commands/StartDBClusterCommand.ts +++ b/clients/client-neptune/commands/StartDBClusterCommand.ts @@ -29,6 +29,7 @@ export class StartDBClusterCommand extends $Command< StartDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-neptune/commands/StopDBClusterCommand.ts b/clients/client-neptune/commands/StopDBClusterCommand.ts index 6e1ade43eb3be..e9ea16256aaa1 100644 --- a/clients/client-neptune/commands/StopDBClusterCommand.ts +++ b/clients/client-neptune/commands/StopDBClusterCommand.ts @@ -33,6 +33,7 @@ export class StopDBClusterCommand extends $Command< StopDBClusterCommandOutput, NeptuneClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopDBClusterCommand extends $Command< configuration: NeptuneClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/AssociateFirewallPolicyCommand.ts b/clients/client-network-firewall/commands/AssociateFirewallPolicyCommand.ts index cbad79078bfc9..71c6a1bd908c7 100644 --- a/clients/client-network-firewall/commands/AssociateFirewallPolicyCommand.ts +++ b/clients/client-network-firewall/commands/AssociateFirewallPolicyCommand.ts @@ -32,6 +32,7 @@ export class AssociateFirewallPolicyCommand extends $Command< AssociateFirewallPolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateFirewallPolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/AssociateSubnetsCommand.ts b/clients/client-network-firewall/commands/AssociateSubnetsCommand.ts index 5c69a49037bc1..4e2687bd39853 100644 --- a/clients/client-network-firewall/commands/AssociateSubnetsCommand.ts +++ b/clients/client-network-firewall/commands/AssociateSubnetsCommand.ts @@ -33,6 +33,7 @@ export class AssociateSubnetsCommand extends $Command< AssociateSubnetsCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AssociateSubnetsCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/CreateFirewallCommand.ts b/clients/client-network-firewall/commands/CreateFirewallCommand.ts index 3c1889d685abb..3aa1c04252753 100644 --- a/clients/client-network-firewall/commands/CreateFirewallCommand.ts +++ b/clients/client-network-firewall/commands/CreateFirewallCommand.ts @@ -34,6 +34,7 @@ export class CreateFirewallCommand extends $Command< CreateFirewallCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateFirewallCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/CreateFirewallPolicyCommand.ts b/clients/client-network-firewall/commands/CreateFirewallPolicyCommand.ts index 5a44f94c562f7..0c349e41c5a64 100644 --- a/clients/client-network-firewall/commands/CreateFirewallPolicyCommand.ts +++ b/clients/client-network-firewall/commands/CreateFirewallPolicyCommand.ts @@ -31,6 +31,7 @@ export class CreateFirewallPolicyCommand extends $Command< CreateFirewallPolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateFirewallPolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/CreateRuleGroupCommand.ts b/clients/client-network-firewall/commands/CreateRuleGroupCommand.ts index be4ddbea9ec99..664ddf66c9832 100644 --- a/clients/client-network-firewall/commands/CreateRuleGroupCommand.ts +++ b/clients/client-network-firewall/commands/CreateRuleGroupCommand.ts @@ -31,6 +31,7 @@ export class CreateRuleGroupCommand extends $Command< CreateRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateRuleGroupCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DeleteFirewallCommand.ts b/clients/client-network-firewall/commands/DeleteFirewallCommand.ts index da6dfafb4c3de..8673c09a6ab38 100644 --- a/clients/client-network-firewall/commands/DeleteFirewallCommand.ts +++ b/clients/client-network-firewall/commands/DeleteFirewallCommand.ts @@ -37,6 +37,7 @@ export class DeleteFirewallCommand extends $Command< DeleteFirewallCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteFirewallCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DeleteFirewallPolicyCommand.ts b/clients/client-network-firewall/commands/DeleteFirewallPolicyCommand.ts index 83c31a72e1a70..992aa9c155a55 100644 --- a/clients/client-network-firewall/commands/DeleteFirewallPolicyCommand.ts +++ b/clients/client-network-firewall/commands/DeleteFirewallPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteFirewallPolicyCommand extends $Command< DeleteFirewallPolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFirewallPolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DeleteResourcePolicyCommand.ts b/clients/client-network-firewall/commands/DeleteResourcePolicyCommand.ts index 7ab5234306a7d..8bea2591a3828 100644 --- a/clients/client-network-firewall/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-network-firewall/commands/DeleteResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DeleteRuleGroupCommand.ts b/clients/client-network-firewall/commands/DeleteRuleGroupCommand.ts index 65cfaa4b56ddc..fe2ffc1188eb2 100644 --- a/clients/client-network-firewall/commands/DeleteRuleGroupCommand.ts +++ b/clients/client-network-firewall/commands/DeleteRuleGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteRuleGroupCommand extends $Command< DeleteRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRuleGroupCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DescribeFirewallCommand.ts b/clients/client-network-firewall/commands/DescribeFirewallCommand.ts index 1b1d08fba0af9..de9ee7f84a0a9 100644 --- a/clients/client-network-firewall/commands/DescribeFirewallCommand.ts +++ b/clients/client-network-firewall/commands/DescribeFirewallCommand.ts @@ -28,6 +28,7 @@ export class DescribeFirewallCommand extends $Command< DescribeFirewallCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFirewallCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DescribeFirewallPolicyCommand.ts b/clients/client-network-firewall/commands/DescribeFirewallPolicyCommand.ts index d61525e2fdc32..0d6eed94d523a 100644 --- a/clients/client-network-firewall/commands/DescribeFirewallPolicyCommand.ts +++ b/clients/client-network-firewall/commands/DescribeFirewallPolicyCommand.ts @@ -28,6 +28,7 @@ export class DescribeFirewallPolicyCommand extends $Command< DescribeFirewallPolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFirewallPolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DescribeLoggingConfigurationCommand.ts b/clients/client-network-firewall/commands/DescribeLoggingConfigurationCommand.ts index 55639af6cfe18..22e3748025814 100644 --- a/clients/client-network-firewall/commands/DescribeLoggingConfigurationCommand.ts +++ b/clients/client-network-firewall/commands/DescribeLoggingConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DescribeLoggingConfigurationCommand extends $Command< DescribeLoggingConfigurationCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLoggingConfigurationCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DescribeResourcePolicyCommand.ts b/clients/client-network-firewall/commands/DescribeResourcePolicyCommand.ts index 6f86c37bd559e..ae865453e0bea 100644 --- a/clients/client-network-firewall/commands/DescribeResourcePolicyCommand.ts +++ b/clients/client-network-firewall/commands/DescribeResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class DescribeResourcePolicyCommand extends $Command< DescribeResourcePolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeResourcePolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DescribeRuleGroupCommand.ts b/clients/client-network-firewall/commands/DescribeRuleGroupCommand.ts index 224c69e6b2a2d..37173d0d41c1c 100644 --- a/clients/client-network-firewall/commands/DescribeRuleGroupCommand.ts +++ b/clients/client-network-firewall/commands/DescribeRuleGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeRuleGroupCommand extends $Command< DescribeRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRuleGroupCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/DisassociateSubnetsCommand.ts b/clients/client-network-firewall/commands/DisassociateSubnetsCommand.ts index 99275efe220cc..1b2543f5322f8 100644 --- a/clients/client-network-firewall/commands/DisassociateSubnetsCommand.ts +++ b/clients/client-network-firewall/commands/DisassociateSubnetsCommand.ts @@ -31,6 +31,7 @@ export class DisassociateSubnetsCommand extends $Command< DisassociateSubnetsCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DisassociateSubnetsCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/ListFirewallPoliciesCommand.ts b/clients/client-network-firewall/commands/ListFirewallPoliciesCommand.ts index ce7520ab1bef6..64024e8d8513c 100644 --- a/clients/client-network-firewall/commands/ListFirewallPoliciesCommand.ts +++ b/clients/client-network-firewall/commands/ListFirewallPoliciesCommand.ts @@ -30,6 +30,7 @@ export class ListFirewallPoliciesCommand extends $Command< ListFirewallPoliciesCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListFirewallPoliciesCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/ListFirewallsCommand.ts b/clients/client-network-firewall/commands/ListFirewallsCommand.ts index b22e8c8d9c023..d649be2450926 100644 --- a/clients/client-network-firewall/commands/ListFirewallsCommand.ts +++ b/clients/client-network-firewall/commands/ListFirewallsCommand.ts @@ -31,6 +31,7 @@ export class ListFirewallsCommand extends $Command< ListFirewallsCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListFirewallsCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/ListRuleGroupsCommand.ts b/clients/client-network-firewall/commands/ListRuleGroupsCommand.ts index d65f3f8ebaff2..2f067366a0483 100644 --- a/clients/client-network-firewall/commands/ListRuleGroupsCommand.ts +++ b/clients/client-network-firewall/commands/ListRuleGroupsCommand.ts @@ -30,6 +30,7 @@ export class ListRuleGroupsCommand extends $Command< ListRuleGroupsCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListRuleGroupsCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/ListTagsForResourceCommand.ts b/clients/client-network-firewall/commands/ListTagsForResourceCommand.ts index 1d490335edf33..9eea52df0ff85 100644 --- a/clients/client-network-firewall/commands/ListTagsForResourceCommand.ts +++ b/clients/client-network-firewall/commands/ListTagsForResourceCommand.ts @@ -34,6 +34,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/PutResourcePolicyCommand.ts b/clients/client-network-firewall/commands/PutResourcePolicyCommand.ts index 65fe4b531fc33..d39003264b66e 100644 --- a/clients/client-network-firewall/commands/PutResourcePolicyCommand.ts +++ b/clients/client-network-firewall/commands/PutResourcePolicyCommand.ts @@ -42,6 +42,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/TagResourceCommand.ts b/clients/client-network-firewall/commands/TagResourceCommand.ts index 8593da7b3f662..4d9cce13baa26 100644 --- a/clients/client-network-firewall/commands/TagResourceCommand.ts +++ b/clients/client-network-firewall/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UntagResourceCommand.ts b/clients/client-network-firewall/commands/UntagResourceCommand.ts index 642d9a6871e69..de1a9883618f8 100644 --- a/clients/client-network-firewall/commands/UntagResourceCommand.ts +++ b/clients/client-network-firewall/commands/UntagResourceCommand.ts @@ -34,6 +34,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UntagResourceCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateFirewallDeleteProtectionCommand.ts b/clients/client-network-firewall/commands/UpdateFirewallDeleteProtectionCommand.ts index 343fdd532a06d..b70467d06d49d 100644 --- a/clients/client-network-firewall/commands/UpdateFirewallDeleteProtectionCommand.ts +++ b/clients/client-network-firewall/commands/UpdateFirewallDeleteProtectionCommand.ts @@ -31,6 +31,7 @@ export class UpdateFirewallDeleteProtectionCommand extends $Command< UpdateFirewallDeleteProtectionCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateFirewallDeleteProtectionCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateFirewallDescriptionCommand.ts b/clients/client-network-firewall/commands/UpdateFirewallDescriptionCommand.ts index c4d86798ec43f..75b512bdced05 100644 --- a/clients/client-network-firewall/commands/UpdateFirewallDescriptionCommand.ts +++ b/clients/client-network-firewall/commands/UpdateFirewallDescriptionCommand.ts @@ -29,6 +29,7 @@ export class UpdateFirewallDescriptionCommand extends $Command< UpdateFirewallDescriptionCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateFirewallDescriptionCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateFirewallPolicyChangeProtectionCommand.ts b/clients/client-network-firewall/commands/UpdateFirewallPolicyChangeProtectionCommand.ts index 9f385c71af5c5..6571b6aed3b42 100644 --- a/clients/client-network-firewall/commands/UpdateFirewallPolicyChangeProtectionCommand.ts +++ b/clients/client-network-firewall/commands/UpdateFirewallPolicyChangeProtectionCommand.ts @@ -32,6 +32,7 @@ export class UpdateFirewallPolicyChangeProtectionCommand extends $Command< UpdateFirewallPolicyChangeProtectionCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateFirewallPolicyChangeProtectionCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateFirewallPolicyCommand.ts b/clients/client-network-firewall/commands/UpdateFirewallPolicyCommand.ts index 92b9dd4368188..882b41dc38618 100644 --- a/clients/client-network-firewall/commands/UpdateFirewallPolicyCommand.ts +++ b/clients/client-network-firewall/commands/UpdateFirewallPolicyCommand.ts @@ -28,6 +28,7 @@ export class UpdateFirewallPolicyCommand extends $Command< UpdateFirewallPolicyCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFirewallPolicyCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateLoggingConfigurationCommand.ts b/clients/client-network-firewall/commands/UpdateLoggingConfigurationCommand.ts index ecd79cea9f82a..f61b2ddb1385a 100644 --- a/clients/client-network-firewall/commands/UpdateLoggingConfigurationCommand.ts +++ b/clients/client-network-firewall/commands/UpdateLoggingConfigurationCommand.ts @@ -53,6 +53,7 @@ export class UpdateLoggingConfigurationCommand extends $Command< UpdateLoggingConfigurationCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class UpdateLoggingConfigurationCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateRuleGroupCommand.ts b/clients/client-network-firewall/commands/UpdateRuleGroupCommand.ts index d88bde4505ee2..9e013b4354a20 100644 --- a/clients/client-network-firewall/commands/UpdateRuleGroupCommand.ts +++ b/clients/client-network-firewall/commands/UpdateRuleGroupCommand.ts @@ -33,6 +33,7 @@ export class UpdateRuleGroupCommand extends $Command< UpdateRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateRuleGroupCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-network-firewall/commands/UpdateSubnetChangeProtectionCommand.ts b/clients/client-network-firewall/commands/UpdateSubnetChangeProtectionCommand.ts index 0e8b2a139ac1c..1d39b8f5264a8 100644 --- a/clients/client-network-firewall/commands/UpdateSubnetChangeProtectionCommand.ts +++ b/clients/client-network-firewall/commands/UpdateSubnetChangeProtectionCommand.ts @@ -28,6 +28,7 @@ export class UpdateSubnetChangeProtectionCommand extends $Command< UpdateSubnetChangeProtectionCommandOutput, NetworkFirewallClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSubnetChangeProtectionCommand extends $Command< configuration: NetworkFirewallClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/AssociateCustomerGatewayCommand.ts b/clients/client-networkmanager/commands/AssociateCustomerGatewayCommand.ts index a295998b8b24e..1fc8a1f7f50af 100644 --- a/clients/client-networkmanager/commands/AssociateCustomerGatewayCommand.ts +++ b/clients/client-networkmanager/commands/AssociateCustomerGatewayCommand.ts @@ -36,6 +36,7 @@ export class AssociateCustomerGatewayCommand extends $Command< AssociateCustomerGatewayCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateCustomerGatewayCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/AssociateLinkCommand.ts b/clients/client-networkmanager/commands/AssociateLinkCommand.ts index 8650fa15760f3..577fd9f2828c6 100644 --- a/clients/client-networkmanager/commands/AssociateLinkCommand.ts +++ b/clients/client-networkmanager/commands/AssociateLinkCommand.ts @@ -28,6 +28,7 @@ export class AssociateLinkCommand extends $Command< AssociateLinkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateLinkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/AssociateTransitGatewayConnectPeerCommand.ts b/clients/client-networkmanager/commands/AssociateTransitGatewayConnectPeerCommand.ts index b4c8e99e89089..a2d0d20c735ea 100644 --- a/clients/client-networkmanager/commands/AssociateTransitGatewayConnectPeerCommand.ts +++ b/clients/client-networkmanager/commands/AssociateTransitGatewayConnectPeerCommand.ts @@ -36,6 +36,7 @@ export class AssociateTransitGatewayConnectPeerCommand extends $Command< AssociateTransitGatewayConnectPeerCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateTransitGatewayConnectPeerCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/CreateConnectionCommand.ts b/clients/client-networkmanager/commands/CreateConnectionCommand.ts index 17fee433ec49e..097e855e75bea 100644 --- a/clients/client-networkmanager/commands/CreateConnectionCommand.ts +++ b/clients/client-networkmanager/commands/CreateConnectionCommand.ts @@ -28,6 +28,7 @@ export class CreateConnectionCommand extends $Command< CreateConnectionCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConnectionCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/CreateDeviceCommand.ts b/clients/client-networkmanager/commands/CreateDeviceCommand.ts index 5d9a2e7b24e92..4095744075e46 100644 --- a/clients/client-networkmanager/commands/CreateDeviceCommand.ts +++ b/clients/client-networkmanager/commands/CreateDeviceCommand.ts @@ -29,6 +29,7 @@ export class CreateDeviceCommand extends $Command< CreateDeviceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDeviceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/CreateGlobalNetworkCommand.ts b/clients/client-networkmanager/commands/CreateGlobalNetworkCommand.ts index c03d6eb9d6194..b3dbc14c25552 100644 --- a/clients/client-networkmanager/commands/CreateGlobalNetworkCommand.ts +++ b/clients/client-networkmanager/commands/CreateGlobalNetworkCommand.ts @@ -28,6 +28,7 @@ export class CreateGlobalNetworkCommand extends $Command< CreateGlobalNetworkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGlobalNetworkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/CreateLinkCommand.ts b/clients/client-networkmanager/commands/CreateLinkCommand.ts index f64b7d3b85adc..90a0b07b9c53e 100644 --- a/clients/client-networkmanager/commands/CreateLinkCommand.ts +++ b/clients/client-networkmanager/commands/CreateLinkCommand.ts @@ -28,6 +28,7 @@ export class CreateLinkCommand extends $Command< CreateLinkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLinkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/CreateSiteCommand.ts b/clients/client-networkmanager/commands/CreateSiteCommand.ts index c90703ba8c019..4530a9ed08c09 100644 --- a/clients/client-networkmanager/commands/CreateSiteCommand.ts +++ b/clients/client-networkmanager/commands/CreateSiteCommand.ts @@ -28,6 +28,7 @@ export class CreateSiteCommand extends $Command< CreateSiteCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSiteCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeleteConnectionCommand.ts b/clients/client-networkmanager/commands/DeleteConnectionCommand.ts index 8757a9a557c7f..ee1ff56453721 100644 --- a/clients/client-networkmanager/commands/DeleteConnectionCommand.ts +++ b/clients/client-networkmanager/commands/DeleteConnectionCommand.ts @@ -28,6 +28,7 @@ export class DeleteConnectionCommand extends $Command< DeleteConnectionCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConnectionCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeleteDeviceCommand.ts b/clients/client-networkmanager/commands/DeleteDeviceCommand.ts index 86ccd47ca7e32..c4de281e3e09f 100644 --- a/clients/client-networkmanager/commands/DeleteDeviceCommand.ts +++ b/clients/client-networkmanager/commands/DeleteDeviceCommand.ts @@ -29,6 +29,7 @@ export class DeleteDeviceCommand extends $Command< DeleteDeviceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDeviceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeleteGlobalNetworkCommand.ts b/clients/client-networkmanager/commands/DeleteGlobalNetworkCommand.ts index 59622dd13653f..e527dfa157cec 100644 --- a/clients/client-networkmanager/commands/DeleteGlobalNetworkCommand.ts +++ b/clients/client-networkmanager/commands/DeleteGlobalNetworkCommand.ts @@ -29,6 +29,7 @@ export class DeleteGlobalNetworkCommand extends $Command< DeleteGlobalNetworkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteGlobalNetworkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeleteLinkCommand.ts b/clients/client-networkmanager/commands/DeleteLinkCommand.ts index 276ab00f411a6..030bc77839d97 100644 --- a/clients/client-networkmanager/commands/DeleteLinkCommand.ts +++ b/clients/client-networkmanager/commands/DeleteLinkCommand.ts @@ -29,6 +29,7 @@ export class DeleteLinkCommand extends $Command< DeleteLinkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteLinkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeleteSiteCommand.ts b/clients/client-networkmanager/commands/DeleteSiteCommand.ts index 13929bb64ab3e..5e07c42522e88 100644 --- a/clients/client-networkmanager/commands/DeleteSiteCommand.ts +++ b/clients/client-networkmanager/commands/DeleteSiteCommand.ts @@ -28,6 +28,7 @@ export class DeleteSiteCommand extends $Command< DeleteSiteCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSiteCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DeregisterTransitGatewayCommand.ts b/clients/client-networkmanager/commands/DeregisterTransitGatewayCommand.ts index 18a96c6dcfc37..618587a07b309 100644 --- a/clients/client-networkmanager/commands/DeregisterTransitGatewayCommand.ts +++ b/clients/client-networkmanager/commands/DeregisterTransitGatewayCommand.ts @@ -29,6 +29,7 @@ export class DeregisterTransitGatewayCommand extends $Command< DeregisterTransitGatewayCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeregisterTransitGatewayCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DescribeGlobalNetworksCommand.ts b/clients/client-networkmanager/commands/DescribeGlobalNetworksCommand.ts index 8e13a0f864a8d..6cb631345653c 100644 --- a/clients/client-networkmanager/commands/DescribeGlobalNetworksCommand.ts +++ b/clients/client-networkmanager/commands/DescribeGlobalNetworksCommand.ts @@ -31,6 +31,7 @@ export class DescribeGlobalNetworksCommand extends $Command< DescribeGlobalNetworksCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeGlobalNetworksCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DisassociateCustomerGatewayCommand.ts b/clients/client-networkmanager/commands/DisassociateCustomerGatewayCommand.ts index 0614178c71cea..70d86df19e864 100644 --- a/clients/client-networkmanager/commands/DisassociateCustomerGatewayCommand.ts +++ b/clients/client-networkmanager/commands/DisassociateCustomerGatewayCommand.ts @@ -28,6 +28,7 @@ export class DisassociateCustomerGatewayCommand extends $Command< DisassociateCustomerGatewayCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateCustomerGatewayCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DisassociateLinkCommand.ts b/clients/client-networkmanager/commands/DisassociateLinkCommand.ts index 730ce76ecaa15..92785240baa5a 100644 --- a/clients/client-networkmanager/commands/DisassociateLinkCommand.ts +++ b/clients/client-networkmanager/commands/DisassociateLinkCommand.ts @@ -29,6 +29,7 @@ export class DisassociateLinkCommand extends $Command< DisassociateLinkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateLinkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/DisassociateTransitGatewayConnectPeerCommand.ts b/clients/client-networkmanager/commands/DisassociateTransitGatewayConnectPeerCommand.ts index 968dff81d29c4..46bc9fd817064 100644 --- a/clients/client-networkmanager/commands/DisassociateTransitGatewayConnectPeerCommand.ts +++ b/clients/client-networkmanager/commands/DisassociateTransitGatewayConnectPeerCommand.ts @@ -32,6 +32,7 @@ export class DisassociateTransitGatewayConnectPeerCommand extends $Command< DisassociateTransitGatewayConnectPeerCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateTransitGatewayConnectPeerCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetConnectionsCommand.ts b/clients/client-networkmanager/commands/GetConnectionsCommand.ts index aa9bc1ff3ea35..e8e4a25561790 100644 --- a/clients/client-networkmanager/commands/GetConnectionsCommand.ts +++ b/clients/client-networkmanager/commands/GetConnectionsCommand.ts @@ -28,6 +28,7 @@ export class GetConnectionsCommand extends $Command< GetConnectionsCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectionsCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetCustomerGatewayAssociationsCommand.ts b/clients/client-networkmanager/commands/GetCustomerGatewayAssociationsCommand.ts index 6372803d28b05..7af6f73333d4b 100644 --- a/clients/client-networkmanager/commands/GetCustomerGatewayAssociationsCommand.ts +++ b/clients/client-networkmanager/commands/GetCustomerGatewayAssociationsCommand.ts @@ -29,6 +29,7 @@ export class GetCustomerGatewayAssociationsCommand extends $Command< GetCustomerGatewayAssociationsCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetCustomerGatewayAssociationsCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetDevicesCommand.ts b/clients/client-networkmanager/commands/GetDevicesCommand.ts index f80adb04827e2..3ea22366268cb 100644 --- a/clients/client-networkmanager/commands/GetDevicesCommand.ts +++ b/clients/client-networkmanager/commands/GetDevicesCommand.ts @@ -28,6 +28,7 @@ export class GetDevicesCommand extends $Command< GetDevicesCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDevicesCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetLinkAssociationsCommand.ts b/clients/client-networkmanager/commands/GetLinkAssociationsCommand.ts index 1dd8a4f43063f..9eff352bf1162 100644 --- a/clients/client-networkmanager/commands/GetLinkAssociationsCommand.ts +++ b/clients/client-networkmanager/commands/GetLinkAssociationsCommand.ts @@ -29,6 +29,7 @@ export class GetLinkAssociationsCommand extends $Command< GetLinkAssociationsCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetLinkAssociationsCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetLinksCommand.ts b/clients/client-networkmanager/commands/GetLinksCommand.ts index b49bcb83b3912..c0d735c0cc218 100644 --- a/clients/client-networkmanager/commands/GetLinksCommand.ts +++ b/clients/client-networkmanager/commands/GetLinksCommand.ts @@ -29,6 +29,7 @@ export class GetLinksCommand extends $Command< GetLinksCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetLinksCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetSitesCommand.ts b/clients/client-networkmanager/commands/GetSitesCommand.ts index 3a06ea6b8c9f2..c7da5dd9ed2b3 100644 --- a/clients/client-networkmanager/commands/GetSitesCommand.ts +++ b/clients/client-networkmanager/commands/GetSitesCommand.ts @@ -28,6 +28,7 @@ export class GetSitesCommand extends $Command< GetSitesCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSitesCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetTransitGatewayConnectPeerAssociationsCommand.ts b/clients/client-networkmanager/commands/GetTransitGatewayConnectPeerAssociationsCommand.ts index 7d549240b0d52..793a6fe3d5d14 100644 --- a/clients/client-networkmanager/commands/GetTransitGatewayConnectPeerAssociationsCommand.ts +++ b/clients/client-networkmanager/commands/GetTransitGatewayConnectPeerAssociationsCommand.ts @@ -32,6 +32,7 @@ export class GetTransitGatewayConnectPeerAssociationsCommand extends $Command< GetTransitGatewayConnectPeerAssociationsCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetTransitGatewayConnectPeerAssociationsCommand extends $Command< GetTransitGatewayConnectPeerAssociationsCommandInput, GetTransitGatewayConnectPeerAssociationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/GetTransitGatewayRegistrationsCommand.ts b/clients/client-networkmanager/commands/GetTransitGatewayRegistrationsCommand.ts index 0a5ce8d13c133..8d22e83bfafee 100644 --- a/clients/client-networkmanager/commands/GetTransitGatewayRegistrationsCommand.ts +++ b/clients/client-networkmanager/commands/GetTransitGatewayRegistrationsCommand.ts @@ -29,6 +29,7 @@ export class GetTransitGatewayRegistrationsCommand extends $Command< GetTransitGatewayRegistrationsCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTransitGatewayRegistrationsCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/ListTagsForResourceCommand.ts b/clients/client-networkmanager/commands/ListTagsForResourceCommand.ts index 7553b4b3d40ee..ccf12c25eab91 100644 --- a/clients/client-networkmanager/commands/ListTagsForResourceCommand.ts +++ b/clients/client-networkmanager/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/RegisterTransitGatewayCommand.ts b/clients/client-networkmanager/commands/RegisterTransitGatewayCommand.ts index 7e3f09c6fdd25..538723d6c8fc6 100644 --- a/clients/client-networkmanager/commands/RegisterTransitGatewayCommand.ts +++ b/clients/client-networkmanager/commands/RegisterTransitGatewayCommand.ts @@ -30,6 +30,7 @@ export class RegisterTransitGatewayCommand extends $Command< RegisterTransitGatewayCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RegisterTransitGatewayCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/TagResourceCommand.ts b/clients/client-networkmanager/commands/TagResourceCommand.ts index bc008f0b18cf8..efa95b8bb666e 100644 --- a/clients/client-networkmanager/commands/TagResourceCommand.ts +++ b/clients/client-networkmanager/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UntagResourceCommand.ts b/clients/client-networkmanager/commands/UntagResourceCommand.ts index ee6a8744c7011..8614528c8250d 100644 --- a/clients/client-networkmanager/commands/UntagResourceCommand.ts +++ b/clients/client-networkmanager/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UpdateConnectionCommand.ts b/clients/client-networkmanager/commands/UpdateConnectionCommand.ts index eee6824118a8c..580ffe23a0558 100644 --- a/clients/client-networkmanager/commands/UpdateConnectionCommand.ts +++ b/clients/client-networkmanager/commands/UpdateConnectionCommand.ts @@ -29,6 +29,7 @@ export class UpdateConnectionCommand extends $Command< UpdateConnectionCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateConnectionCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UpdateDeviceCommand.ts b/clients/client-networkmanager/commands/UpdateDeviceCommand.ts index 5e0d4b51acbd3..c9cc39cc4d0eb 100644 --- a/clients/client-networkmanager/commands/UpdateDeviceCommand.ts +++ b/clients/client-networkmanager/commands/UpdateDeviceCommand.ts @@ -29,6 +29,7 @@ export class UpdateDeviceCommand extends $Command< UpdateDeviceCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDeviceCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UpdateGlobalNetworkCommand.ts b/clients/client-networkmanager/commands/UpdateGlobalNetworkCommand.ts index f94f67312c289..146dd6a3b0411 100644 --- a/clients/client-networkmanager/commands/UpdateGlobalNetworkCommand.ts +++ b/clients/client-networkmanager/commands/UpdateGlobalNetworkCommand.ts @@ -29,6 +29,7 @@ export class UpdateGlobalNetworkCommand extends $Command< UpdateGlobalNetworkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateGlobalNetworkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UpdateLinkCommand.ts b/clients/client-networkmanager/commands/UpdateLinkCommand.ts index f42f00397ebbf..a4ba1d721acdd 100644 --- a/clients/client-networkmanager/commands/UpdateLinkCommand.ts +++ b/clients/client-networkmanager/commands/UpdateLinkCommand.ts @@ -29,6 +29,7 @@ export class UpdateLinkCommand extends $Command< UpdateLinkCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateLinkCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-networkmanager/commands/UpdateSiteCommand.ts b/clients/client-networkmanager/commands/UpdateSiteCommand.ts index 26da7ed09c5fa..454937a59702b 100644 --- a/clients/client-networkmanager/commands/UpdateSiteCommand.ts +++ b/clients/client-networkmanager/commands/UpdateSiteCommand.ts @@ -29,6 +29,7 @@ export class UpdateSiteCommand extends $Command< UpdateSiteCommandOutput, NetworkManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateSiteCommand extends $Command< configuration: NetworkManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/AssignInstanceCommand.ts b/clients/client-opsworks/commands/AssignInstanceCommand.ts index 1973a443975f6..d319c2a0f5f63 100644 --- a/clients/client-opsworks/commands/AssignInstanceCommand.ts +++ b/clients/client-opsworks/commands/AssignInstanceCommand.ts @@ -45,6 +45,7 @@ export class AssignInstanceCommand extends $Command< AssignInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AssignInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/AssignVolumeCommand.ts b/clients/client-opsworks/commands/AssignVolumeCommand.ts index 3bd538a221422..4edc7a6787f94 100644 --- a/clients/client-opsworks/commands/AssignVolumeCommand.ts +++ b/clients/client-opsworks/commands/AssignVolumeCommand.ts @@ -36,6 +36,7 @@ export class AssignVolumeCommand extends $Command< AssignVolumeCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssignVolumeCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/AssociateElasticIpCommand.ts b/clients/client-opsworks/commands/AssociateElasticIpCommand.ts index c588dd4472da6..73b75a541e5da 100644 --- a/clients/client-opsworks/commands/AssociateElasticIpCommand.ts +++ b/clients/client-opsworks/commands/AssociateElasticIpCommand.ts @@ -36,6 +36,7 @@ export class AssociateElasticIpCommand extends $Command< AssociateElasticIpCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateElasticIpCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/AttachElasticLoadBalancerCommand.ts b/clients/client-opsworks/commands/AttachElasticLoadBalancerCommand.ts index ed501c6441f6f..10560545ec835 100644 --- a/clients/client-opsworks/commands/AttachElasticLoadBalancerCommand.ts +++ b/clients/client-opsworks/commands/AttachElasticLoadBalancerCommand.ts @@ -41,6 +41,7 @@ export class AttachElasticLoadBalancerCommand extends $Command< AttachElasticLoadBalancerCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class AttachElasticLoadBalancerCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CloneStackCommand.ts b/clients/client-opsworks/commands/CloneStackCommand.ts index 65b0fa646464b..9d661ab9d9e71 100644 --- a/clients/client-opsworks/commands/CloneStackCommand.ts +++ b/clients/client-opsworks/commands/CloneStackCommand.ts @@ -33,6 +33,7 @@ export class CloneStackCommand extends $Command< CloneStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CloneStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateAppCommand.ts b/clients/client-opsworks/commands/CreateAppCommand.ts index b24673dfaa6e0..2d776eebf2696 100644 --- a/clients/client-opsworks/commands/CreateAppCommand.ts +++ b/clients/client-opsworks/commands/CreateAppCommand.ts @@ -31,6 +31,7 @@ export class CreateAppCommand extends $Command< CreateAppCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateAppCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateDeploymentCommand.ts b/clients/client-opsworks/commands/CreateDeploymentCommand.ts index 83ab5adf1e2a5..3f1346a0ccac5 100644 --- a/clients/client-opsworks/commands/CreateDeploymentCommand.ts +++ b/clients/client-opsworks/commands/CreateDeploymentCommand.ts @@ -34,6 +34,7 @@ export class CreateDeploymentCommand extends $Command< CreateDeploymentCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDeploymentCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateInstanceCommand.ts b/clients/client-opsworks/commands/CreateInstanceCommand.ts index a88f4f9b36ecd..851b34a0b2904 100644 --- a/clients/client-opsworks/commands/CreateInstanceCommand.ts +++ b/clients/client-opsworks/commands/CreateInstanceCommand.ts @@ -34,6 +34,7 @@ export class CreateInstanceCommand extends $Command< CreateInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateLayerCommand.ts b/clients/client-opsworks/commands/CreateLayerCommand.ts index 14bbc5f1ed1d9..78522d0c31a92 100644 --- a/clients/client-opsworks/commands/CreateLayerCommand.ts +++ b/clients/client-opsworks/commands/CreateLayerCommand.ts @@ -41,6 +41,7 @@ export class CreateLayerCommand extends $Command< CreateLayerCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateLayerCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateStackCommand.ts b/clients/client-opsworks/commands/CreateStackCommand.ts index 58c6959aa3148..490723924b920 100644 --- a/clients/client-opsworks/commands/CreateStackCommand.ts +++ b/clients/client-opsworks/commands/CreateStackCommand.ts @@ -33,6 +33,7 @@ export class CreateStackCommand extends $Command< CreateStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/CreateUserProfileCommand.ts b/clients/client-opsworks/commands/CreateUserProfileCommand.ts index bb72432dbf637..7489dc5c48a80 100644 --- a/clients/client-opsworks/commands/CreateUserProfileCommand.ts +++ b/clients/client-opsworks/commands/CreateUserProfileCommand.ts @@ -32,6 +32,7 @@ export class CreateUserProfileCommand extends $Command< CreateUserProfileCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateUserProfileCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeleteAppCommand.ts b/clients/client-opsworks/commands/DeleteAppCommand.ts index e0de0f2e64653..998fdb612a929 100644 --- a/clients/client-opsworks/commands/DeleteAppCommand.ts +++ b/clients/client-opsworks/commands/DeleteAppCommand.ts @@ -30,6 +30,7 @@ export class DeleteAppCommand extends $Command< DeleteAppCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAppCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeleteInstanceCommand.ts b/clients/client-opsworks/commands/DeleteInstanceCommand.ts index f9d7f261c67aa..ea33e07b32015 100644 --- a/clients/client-opsworks/commands/DeleteInstanceCommand.ts +++ b/clients/client-opsworks/commands/DeleteInstanceCommand.ts @@ -35,6 +35,7 @@ export class DeleteInstanceCommand extends $Command< DeleteInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeleteLayerCommand.ts b/clients/client-opsworks/commands/DeleteLayerCommand.ts index dcc6f65f5ce07..88440c9333f25 100644 --- a/clients/client-opsworks/commands/DeleteLayerCommand.ts +++ b/clients/client-opsworks/commands/DeleteLayerCommand.ts @@ -35,6 +35,7 @@ export class DeleteLayerCommand extends $Command< DeleteLayerCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteLayerCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeleteStackCommand.ts b/clients/client-opsworks/commands/DeleteStackCommand.ts index a029bb89dc9c4..85b5d32e07b2b 100644 --- a/clients/client-opsworks/commands/DeleteStackCommand.ts +++ b/clients/client-opsworks/commands/DeleteStackCommand.ts @@ -35,6 +35,7 @@ export class DeleteStackCommand extends $Command< DeleteStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeleteUserProfileCommand.ts b/clients/client-opsworks/commands/DeleteUserProfileCommand.ts index 27f90c959d1a6..a9673f32aa279 100644 --- a/clients/client-opsworks/commands/DeleteUserProfileCommand.ts +++ b/clients/client-opsworks/commands/DeleteUserProfileCommand.ts @@ -32,6 +32,7 @@ export class DeleteUserProfileCommand extends $Command< DeleteUserProfileCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteUserProfileCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeregisterEcsClusterCommand.ts b/clients/client-opsworks/commands/DeregisterEcsClusterCommand.ts index 0c07a1dbc79b1..4d1f5c51d1584 100644 --- a/clients/client-opsworks/commands/DeregisterEcsClusterCommand.ts +++ b/clients/client-opsworks/commands/DeregisterEcsClusterCommand.ts @@ -36,6 +36,7 @@ export class DeregisterEcsClusterCommand extends $Command< DeregisterEcsClusterCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeregisterEcsClusterCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeregisterElasticIpCommand.ts b/clients/client-opsworks/commands/DeregisterElasticIpCommand.ts index 4e3b99b3d044e..b4d133cbadfd8 100644 --- a/clients/client-opsworks/commands/DeregisterElasticIpCommand.ts +++ b/clients/client-opsworks/commands/DeregisterElasticIpCommand.ts @@ -34,6 +34,7 @@ export class DeregisterElasticIpCommand extends $Command< DeregisterElasticIpCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeregisterElasticIpCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeregisterInstanceCommand.ts b/clients/client-opsworks/commands/DeregisterInstanceCommand.ts index 181bd6f363965..a8d555eb9a8dd 100644 --- a/clients/client-opsworks/commands/DeregisterInstanceCommand.ts +++ b/clients/client-opsworks/commands/DeregisterInstanceCommand.ts @@ -35,6 +35,7 @@ export class DeregisterInstanceCommand extends $Command< DeregisterInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeregisterInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeregisterRdsDbInstanceCommand.ts b/clients/client-opsworks/commands/DeregisterRdsDbInstanceCommand.ts index c4c9fae35fea9..49a87ab9dc064 100644 --- a/clients/client-opsworks/commands/DeregisterRdsDbInstanceCommand.ts +++ b/clients/client-opsworks/commands/DeregisterRdsDbInstanceCommand.ts @@ -33,6 +33,7 @@ export class DeregisterRdsDbInstanceCommand extends $Command< DeregisterRdsDbInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeregisterRdsDbInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DeregisterVolumeCommand.ts b/clients/client-opsworks/commands/DeregisterVolumeCommand.ts index 0dceceec30acd..5a02b6d64fb55 100644 --- a/clients/client-opsworks/commands/DeregisterVolumeCommand.ts +++ b/clients/client-opsworks/commands/DeregisterVolumeCommand.ts @@ -35,6 +35,7 @@ export class DeregisterVolumeCommand extends $Command< DeregisterVolumeCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeregisterVolumeCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeAgentVersionsCommand.ts b/clients/client-opsworks/commands/DescribeAgentVersionsCommand.ts index 1780bdb58cfa0..d3e3d95c5cef0 100644 --- a/clients/client-opsworks/commands/DescribeAgentVersionsCommand.ts +++ b/clients/client-opsworks/commands/DescribeAgentVersionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAgentVersionsCommand extends $Command< DescribeAgentVersionsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAgentVersionsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeAppsCommand.ts b/clients/client-opsworks/commands/DescribeAppsCommand.ts index 26c1d89f1ed09..19201e8dc8ea4 100644 --- a/clients/client-opsworks/commands/DescribeAppsCommand.ts +++ b/clients/client-opsworks/commands/DescribeAppsCommand.ts @@ -36,6 +36,7 @@ export class DescribeAppsCommand extends $Command< DescribeAppsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeAppsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeCommandsCommand.ts b/clients/client-opsworks/commands/DescribeCommandsCommand.ts index ca481bb87132b..0428df778cd7b 100644 --- a/clients/client-opsworks/commands/DescribeCommandsCommand.ts +++ b/clients/client-opsworks/commands/DescribeCommandsCommand.ts @@ -36,6 +36,7 @@ export class DescribeCommandsCommand extends $Command< DescribeCommandsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeCommandsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeDeploymentsCommand.ts b/clients/client-opsworks/commands/DescribeDeploymentsCommand.ts index 3a639a76e2276..bfbb305909e58 100644 --- a/clients/client-opsworks/commands/DescribeDeploymentsCommand.ts +++ b/clients/client-opsworks/commands/DescribeDeploymentsCommand.ts @@ -36,6 +36,7 @@ export class DescribeDeploymentsCommand extends $Command< DescribeDeploymentsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeDeploymentsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeEcsClustersCommand.ts b/clients/client-opsworks/commands/DescribeEcsClustersCommand.ts index 04877780d5e57..9126e437b6f48 100644 --- a/clients/client-opsworks/commands/DescribeEcsClustersCommand.ts +++ b/clients/client-opsworks/commands/DescribeEcsClustersCommand.ts @@ -37,6 +37,7 @@ export class DescribeEcsClustersCommand extends $Command< DescribeEcsClustersCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeEcsClustersCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeElasticIpsCommand.ts b/clients/client-opsworks/commands/DescribeElasticIpsCommand.ts index 65dd7d7fb96d8..2fc2241c5e836 100644 --- a/clients/client-opsworks/commands/DescribeElasticIpsCommand.ts +++ b/clients/client-opsworks/commands/DescribeElasticIpsCommand.ts @@ -36,6 +36,7 @@ export class DescribeElasticIpsCommand extends $Command< DescribeElasticIpsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeElasticIpsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeElasticLoadBalancersCommand.ts b/clients/client-opsworks/commands/DescribeElasticLoadBalancersCommand.ts index 95e0e0982b70c..2f9d4a438766c 100644 --- a/clients/client-opsworks/commands/DescribeElasticLoadBalancersCommand.ts +++ b/clients/client-opsworks/commands/DescribeElasticLoadBalancersCommand.ts @@ -36,6 +36,7 @@ export class DescribeElasticLoadBalancersCommand extends $Command< DescribeElasticLoadBalancersCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeElasticLoadBalancersCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeInstancesCommand.ts b/clients/client-opsworks/commands/DescribeInstancesCommand.ts index 8d9a6a31cbcc0..b3ac1da130e4e 100644 --- a/clients/client-opsworks/commands/DescribeInstancesCommand.ts +++ b/clients/client-opsworks/commands/DescribeInstancesCommand.ts @@ -36,6 +36,7 @@ export class DescribeInstancesCommand extends $Command< DescribeInstancesCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeInstancesCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeLayersCommand.ts b/clients/client-opsworks/commands/DescribeLayersCommand.ts index 1254480f94e17..7385b83081284 100644 --- a/clients/client-opsworks/commands/DescribeLayersCommand.ts +++ b/clients/client-opsworks/commands/DescribeLayersCommand.ts @@ -36,6 +36,7 @@ export class DescribeLayersCommand extends $Command< DescribeLayersCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeLayersCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeLoadBasedAutoScalingCommand.ts b/clients/client-opsworks/commands/DescribeLoadBasedAutoScalingCommand.ts index 875dc566bc9bf..3c3ba41215707 100644 --- a/clients/client-opsworks/commands/DescribeLoadBasedAutoScalingCommand.ts +++ b/clients/client-opsworks/commands/DescribeLoadBasedAutoScalingCommand.ts @@ -36,6 +36,7 @@ export class DescribeLoadBasedAutoScalingCommand extends $Command< DescribeLoadBasedAutoScalingCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeLoadBasedAutoScalingCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeMyUserProfileCommand.ts b/clients/client-opsworks/commands/DescribeMyUserProfileCommand.ts index 1402df9969f03..d11e68c2f553b 100644 --- a/clients/client-opsworks/commands/DescribeMyUserProfileCommand.ts +++ b/clients/client-opsworks/commands/DescribeMyUserProfileCommand.ts @@ -33,6 +33,7 @@ export class DescribeMyUserProfileCommand extends $Command< DescribeMyUserProfileCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeMyUserProfileCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeOperatingSystemsCommand.ts b/clients/client-opsworks/commands/DescribeOperatingSystemsCommand.ts index 26ed332c803dd..32b72e9eb1ea6 100644 --- a/clients/client-opsworks/commands/DescribeOperatingSystemsCommand.ts +++ b/clients/client-opsworks/commands/DescribeOperatingSystemsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOperatingSystemsCommand extends $Command< DescribeOperatingSystemsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOperatingSystemsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribePermissionsCommand.ts b/clients/client-opsworks/commands/DescribePermissionsCommand.ts index a9bd49aa42e9e..d24abbc13898d 100644 --- a/clients/client-opsworks/commands/DescribePermissionsCommand.ts +++ b/clients/client-opsworks/commands/DescribePermissionsCommand.ts @@ -33,6 +33,7 @@ export class DescribePermissionsCommand extends $Command< DescribePermissionsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribePermissionsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeRaidArraysCommand.ts b/clients/client-opsworks/commands/DescribeRaidArraysCommand.ts index 874dba65c23e3..76f019636a88c 100644 --- a/clients/client-opsworks/commands/DescribeRaidArraysCommand.ts +++ b/clients/client-opsworks/commands/DescribeRaidArraysCommand.ts @@ -36,6 +36,7 @@ export class DescribeRaidArraysCommand extends $Command< DescribeRaidArraysCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeRaidArraysCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeRdsDbInstancesCommand.ts b/clients/client-opsworks/commands/DescribeRdsDbInstancesCommand.ts index 69c5a0905290b..4946d0bb47f6a 100644 --- a/clients/client-opsworks/commands/DescribeRdsDbInstancesCommand.ts +++ b/clients/client-opsworks/commands/DescribeRdsDbInstancesCommand.ts @@ -34,6 +34,7 @@ export class DescribeRdsDbInstancesCommand extends $Command< DescribeRdsDbInstancesCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeRdsDbInstancesCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeServiceErrorsCommand.ts b/clients/client-opsworks/commands/DescribeServiceErrorsCommand.ts index 36685710f366b..744443a6c8ef4 100644 --- a/clients/client-opsworks/commands/DescribeServiceErrorsCommand.ts +++ b/clients/client-opsworks/commands/DescribeServiceErrorsCommand.ts @@ -34,6 +34,7 @@ export class DescribeServiceErrorsCommand extends $Command< DescribeServiceErrorsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeServiceErrorsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeStackProvisioningParametersCommand.ts b/clients/client-opsworks/commands/DescribeStackProvisioningParametersCommand.ts index 71a6f9f87d467..39bcf58928881 100644 --- a/clients/client-opsworks/commands/DescribeStackProvisioningParametersCommand.ts +++ b/clients/client-opsworks/commands/DescribeStackProvisioningParametersCommand.ts @@ -37,6 +37,7 @@ export class DescribeStackProvisioningParametersCommand extends $Command< DescribeStackProvisioningParametersCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeStackProvisioningParametersCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeStackSummaryCommand.ts b/clients/client-opsworks/commands/DescribeStackSummaryCommand.ts index 9dde4899811c7..b0d05049283cf 100644 --- a/clients/client-opsworks/commands/DescribeStackSummaryCommand.ts +++ b/clients/client-opsworks/commands/DescribeStackSummaryCommand.ts @@ -34,6 +34,7 @@ export class DescribeStackSummaryCommand extends $Command< DescribeStackSummaryCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeStackSummaryCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeStacksCommand.ts b/clients/client-opsworks/commands/DescribeStacksCommand.ts index a8f1957917d60..cc64f27bb8878 100644 --- a/clients/client-opsworks/commands/DescribeStacksCommand.ts +++ b/clients/client-opsworks/commands/DescribeStacksCommand.ts @@ -33,6 +33,7 @@ export class DescribeStacksCommand extends $Command< DescribeStacksCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeStacksCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeTimeBasedAutoScalingCommand.ts b/clients/client-opsworks/commands/DescribeTimeBasedAutoScalingCommand.ts index f811a1ad5ffd7..95302d6dc1ee2 100644 --- a/clients/client-opsworks/commands/DescribeTimeBasedAutoScalingCommand.ts +++ b/clients/client-opsworks/commands/DescribeTimeBasedAutoScalingCommand.ts @@ -36,6 +36,7 @@ export class DescribeTimeBasedAutoScalingCommand extends $Command< DescribeTimeBasedAutoScalingCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeTimeBasedAutoScalingCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeUserProfilesCommand.ts b/clients/client-opsworks/commands/DescribeUserProfilesCommand.ts index 203525b640852..3be8bdaa1e400 100644 --- a/clients/client-opsworks/commands/DescribeUserProfilesCommand.ts +++ b/clients/client-opsworks/commands/DescribeUserProfilesCommand.ts @@ -32,6 +32,7 @@ export class DescribeUserProfilesCommand extends $Command< DescribeUserProfilesCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeUserProfilesCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DescribeVolumesCommand.ts b/clients/client-opsworks/commands/DescribeVolumesCommand.ts index 86ab996c4c3f2..21a367f64b606 100644 --- a/clients/client-opsworks/commands/DescribeVolumesCommand.ts +++ b/clients/client-opsworks/commands/DescribeVolumesCommand.ts @@ -36,6 +36,7 @@ export class DescribeVolumesCommand extends $Command< DescribeVolumesCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeVolumesCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DetachElasticLoadBalancerCommand.ts b/clients/client-opsworks/commands/DetachElasticLoadBalancerCommand.ts index 61c14dc9fdfd3..276e8deade597 100644 --- a/clients/client-opsworks/commands/DetachElasticLoadBalancerCommand.ts +++ b/clients/client-opsworks/commands/DetachElasticLoadBalancerCommand.ts @@ -33,6 +33,7 @@ export class DetachElasticLoadBalancerCommand extends $Command< DetachElasticLoadBalancerCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DetachElasticLoadBalancerCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/DisassociateElasticIpCommand.ts b/clients/client-opsworks/commands/DisassociateElasticIpCommand.ts index 7dbdd51a138d7..41d6515ef3ea4 100644 --- a/clients/client-opsworks/commands/DisassociateElasticIpCommand.ts +++ b/clients/client-opsworks/commands/DisassociateElasticIpCommand.ts @@ -34,6 +34,7 @@ export class DisassociateElasticIpCommand extends $Command< DisassociateElasticIpCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DisassociateElasticIpCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/GetHostnameSuggestionCommand.ts b/clients/client-opsworks/commands/GetHostnameSuggestionCommand.ts index 5455af143a36e..b8af953fa1b09 100644 --- a/clients/client-opsworks/commands/GetHostnameSuggestionCommand.ts +++ b/clients/client-opsworks/commands/GetHostnameSuggestionCommand.ts @@ -33,6 +33,7 @@ export class GetHostnameSuggestionCommand extends $Command< GetHostnameSuggestionCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetHostnameSuggestionCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/GrantAccessCommand.ts b/clients/client-opsworks/commands/GrantAccessCommand.ts index d740dc63fa08a..4a37ef883fcdc 100644 --- a/clients/client-opsworks/commands/GrantAccessCommand.ts +++ b/clients/client-opsworks/commands/GrantAccessCommand.ts @@ -31,6 +31,7 @@ export class GrantAccessCommand extends $Command< GrantAccessCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GrantAccessCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/ListTagsCommand.ts b/clients/client-opsworks/commands/ListTagsCommand.ts index 54cf3063259de..6e8fe33da0b11 100644 --- a/clients/client-opsworks/commands/ListTagsCommand.ts +++ b/clients/client-opsworks/commands/ListTagsCommand.ts @@ -25,6 +25,7 @@ export class ListTagsCommand extends $Command< ListTagsCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTagsCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RebootInstanceCommand.ts b/clients/client-opsworks/commands/RebootInstanceCommand.ts index 76abfb7b3f43d..e050eba11920c 100644 --- a/clients/client-opsworks/commands/RebootInstanceCommand.ts +++ b/clients/client-opsworks/commands/RebootInstanceCommand.ts @@ -34,6 +34,7 @@ export class RebootInstanceCommand extends $Command< RebootInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RebootInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RegisterEcsClusterCommand.ts b/clients/client-opsworks/commands/RegisterEcsClusterCommand.ts index 0b0878cfbf071..88a75e2756118 100644 --- a/clients/client-opsworks/commands/RegisterEcsClusterCommand.ts +++ b/clients/client-opsworks/commands/RegisterEcsClusterCommand.ts @@ -38,6 +38,7 @@ export class RegisterEcsClusterCommand extends $Command< RegisterEcsClusterCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class RegisterEcsClusterCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RegisterElasticIpCommand.ts b/clients/client-opsworks/commands/RegisterElasticIpCommand.ts index dc3b55728a1c0..af686715f0a1c 100644 --- a/clients/client-opsworks/commands/RegisterElasticIpCommand.ts +++ b/clients/client-opsworks/commands/RegisterElasticIpCommand.ts @@ -35,6 +35,7 @@ export class RegisterElasticIpCommand extends $Command< RegisterElasticIpCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RegisterElasticIpCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RegisterInstanceCommand.ts b/clients/client-opsworks/commands/RegisterInstanceCommand.ts index 39d25482eaa25..cd4c948f0f3cc 100644 --- a/clients/client-opsworks/commands/RegisterInstanceCommand.ts +++ b/clients/client-opsworks/commands/RegisterInstanceCommand.ts @@ -46,6 +46,7 @@ export class RegisterInstanceCommand extends $Command< RegisterInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class RegisterInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RegisterRdsDbInstanceCommand.ts b/clients/client-opsworks/commands/RegisterRdsDbInstanceCommand.ts index 28ed2babfbd91..2e4973255ef7a 100644 --- a/clients/client-opsworks/commands/RegisterRdsDbInstanceCommand.ts +++ b/clients/client-opsworks/commands/RegisterRdsDbInstanceCommand.ts @@ -33,6 +33,7 @@ export class RegisterRdsDbInstanceCommand extends $Command< RegisterRdsDbInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RegisterRdsDbInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/RegisterVolumeCommand.ts b/clients/client-opsworks/commands/RegisterVolumeCommand.ts index 4def105d7b3e6..51dfac7ce9390 100644 --- a/clients/client-opsworks/commands/RegisterVolumeCommand.ts +++ b/clients/client-opsworks/commands/RegisterVolumeCommand.ts @@ -35,6 +35,7 @@ export class RegisterVolumeCommand extends $Command< RegisterVolumeCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RegisterVolumeCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/SetLoadBasedAutoScalingCommand.ts b/clients/client-opsworks/commands/SetLoadBasedAutoScalingCommand.ts index 2917e7f7e71d1..ce1ecd77f3ead 100644 --- a/clients/client-opsworks/commands/SetLoadBasedAutoScalingCommand.ts +++ b/clients/client-opsworks/commands/SetLoadBasedAutoScalingCommand.ts @@ -38,6 +38,7 @@ export class SetLoadBasedAutoScalingCommand extends $Command< SetLoadBasedAutoScalingCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class SetLoadBasedAutoScalingCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/SetPermissionCommand.ts b/clients/client-opsworks/commands/SetPermissionCommand.ts index 7a3908f601de6..a67e3176342c9 100644 --- a/clients/client-opsworks/commands/SetPermissionCommand.ts +++ b/clients/client-opsworks/commands/SetPermissionCommand.ts @@ -34,6 +34,7 @@ export class SetPermissionCommand extends $Command< SetPermissionCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SetPermissionCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/SetTimeBasedAutoScalingCommand.ts b/clients/client-opsworks/commands/SetTimeBasedAutoScalingCommand.ts index 8a1be35e2055d..ce97b3227a619 100644 --- a/clients/client-opsworks/commands/SetTimeBasedAutoScalingCommand.ts +++ b/clients/client-opsworks/commands/SetTimeBasedAutoScalingCommand.ts @@ -35,6 +35,7 @@ export class SetTimeBasedAutoScalingCommand extends $Command< SetTimeBasedAutoScalingCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SetTimeBasedAutoScalingCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/StartInstanceCommand.ts b/clients/client-opsworks/commands/StartInstanceCommand.ts index 95e430f95184b..bad07cb19eb4d 100644 --- a/clients/client-opsworks/commands/StartInstanceCommand.ts +++ b/clients/client-opsworks/commands/StartInstanceCommand.ts @@ -34,6 +34,7 @@ export class StartInstanceCommand extends $Command< StartInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StartInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/StartStackCommand.ts b/clients/client-opsworks/commands/StartStackCommand.ts index c510f1e812345..9fea9565f2709 100644 --- a/clients/client-opsworks/commands/StartStackCommand.ts +++ b/clients/client-opsworks/commands/StartStackCommand.ts @@ -33,6 +33,7 @@ export class StartStackCommand extends $Command< StartStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/StopInstanceCommand.ts b/clients/client-opsworks/commands/StopInstanceCommand.ts index 02751127da25f..1d7bad6b9605a 100644 --- a/clients/client-opsworks/commands/StopInstanceCommand.ts +++ b/clients/client-opsworks/commands/StopInstanceCommand.ts @@ -36,6 +36,7 @@ export class StopInstanceCommand extends $Command< StopInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StopInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/StopStackCommand.ts b/clients/client-opsworks/commands/StopStackCommand.ts index 10d3fc3e3148b..6afa92d95a4c4 100644 --- a/clients/client-opsworks/commands/StopStackCommand.ts +++ b/clients/client-opsworks/commands/StopStackCommand.ts @@ -30,6 +30,7 @@ export class StopStackCommand extends $Command< StopStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StopStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/TagResourceCommand.ts b/clients/client-opsworks/commands/TagResourceCommand.ts index 47d64fdc7c24d..3f713db4b3a77 100644 --- a/clients/client-opsworks/commands/TagResourceCommand.ts +++ b/clients/client-opsworks/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UnassignInstanceCommand.ts b/clients/client-opsworks/commands/UnassignInstanceCommand.ts index dad4af6921e16..9c02e3e525152 100644 --- a/clients/client-opsworks/commands/UnassignInstanceCommand.ts +++ b/clients/client-opsworks/commands/UnassignInstanceCommand.ts @@ -36,6 +36,7 @@ export class UnassignInstanceCommand extends $Command< UnassignInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UnassignInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UnassignVolumeCommand.ts b/clients/client-opsworks/commands/UnassignVolumeCommand.ts index 9d6b542e9d2bc..c4a38ca7f1622 100644 --- a/clients/client-opsworks/commands/UnassignVolumeCommand.ts +++ b/clients/client-opsworks/commands/UnassignVolumeCommand.ts @@ -35,6 +35,7 @@ export class UnassignVolumeCommand extends $Command< UnassignVolumeCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UnassignVolumeCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UntagResourceCommand.ts b/clients/client-opsworks/commands/UntagResourceCommand.ts index 7a3d0fa91bb3d..d51454253a4ad 100644 --- a/clients/client-opsworks/commands/UntagResourceCommand.ts +++ b/clients/client-opsworks/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateAppCommand.ts b/clients/client-opsworks/commands/UpdateAppCommand.ts index 979c19efd8b65..6e6e49eaca962 100644 --- a/clients/client-opsworks/commands/UpdateAppCommand.ts +++ b/clients/client-opsworks/commands/UpdateAppCommand.ts @@ -30,6 +30,7 @@ export class UpdateAppCommand extends $Command< UpdateAppCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateAppCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateElasticIpCommand.ts b/clients/client-opsworks/commands/UpdateElasticIpCommand.ts index fa481e13de94b..15f9e946874cc 100644 --- a/clients/client-opsworks/commands/UpdateElasticIpCommand.ts +++ b/clients/client-opsworks/commands/UpdateElasticIpCommand.ts @@ -33,6 +33,7 @@ export class UpdateElasticIpCommand extends $Command< UpdateElasticIpCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateElasticIpCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateInstanceCommand.ts b/clients/client-opsworks/commands/UpdateInstanceCommand.ts index 6054f2b7d8cd1..45ebcf17fa557 100644 --- a/clients/client-opsworks/commands/UpdateInstanceCommand.ts +++ b/clients/client-opsworks/commands/UpdateInstanceCommand.ts @@ -33,6 +33,7 @@ export class UpdateInstanceCommand extends $Command< UpdateInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateLayerCommand.ts b/clients/client-opsworks/commands/UpdateLayerCommand.ts index 9b19e4362db9c..ecb73133ff0fd 100644 --- a/clients/client-opsworks/commands/UpdateLayerCommand.ts +++ b/clients/client-opsworks/commands/UpdateLayerCommand.ts @@ -33,6 +33,7 @@ export class UpdateLayerCommand extends $Command< UpdateLayerCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateLayerCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateMyUserProfileCommand.ts b/clients/client-opsworks/commands/UpdateMyUserProfileCommand.ts index bc75c277af514..0a98e919e84ac 100644 --- a/clients/client-opsworks/commands/UpdateMyUserProfileCommand.ts +++ b/clients/client-opsworks/commands/UpdateMyUserProfileCommand.ts @@ -33,6 +33,7 @@ export class UpdateMyUserProfileCommand extends $Command< UpdateMyUserProfileCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateMyUserProfileCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateRdsDbInstanceCommand.ts b/clients/client-opsworks/commands/UpdateRdsDbInstanceCommand.ts index 4520d42971967..8ac591f710e5d 100644 --- a/clients/client-opsworks/commands/UpdateRdsDbInstanceCommand.ts +++ b/clients/client-opsworks/commands/UpdateRdsDbInstanceCommand.ts @@ -33,6 +33,7 @@ export class UpdateRdsDbInstanceCommand extends $Command< UpdateRdsDbInstanceCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateRdsDbInstanceCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateStackCommand.ts b/clients/client-opsworks/commands/UpdateStackCommand.ts index 15ae644f176a6..d960d548a77d7 100644 --- a/clients/client-opsworks/commands/UpdateStackCommand.ts +++ b/clients/client-opsworks/commands/UpdateStackCommand.ts @@ -33,6 +33,7 @@ export class UpdateStackCommand extends $Command< UpdateStackCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateStackCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateUserProfileCommand.ts b/clients/client-opsworks/commands/UpdateUserProfileCommand.ts index dfc4f1e66b9e5..f1f511c0f4d64 100644 --- a/clients/client-opsworks/commands/UpdateUserProfileCommand.ts +++ b/clients/client-opsworks/commands/UpdateUserProfileCommand.ts @@ -32,6 +32,7 @@ export class UpdateUserProfileCommand extends $Command< UpdateUserProfileCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateUserProfileCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworks/commands/UpdateVolumeCommand.ts b/clients/client-opsworks/commands/UpdateVolumeCommand.ts index 8babb47578532..e25e589ba203f 100644 --- a/clients/client-opsworks/commands/UpdateVolumeCommand.ts +++ b/clients/client-opsworks/commands/UpdateVolumeCommand.ts @@ -33,6 +33,7 @@ export class UpdateVolumeCommand extends $Command< UpdateVolumeCommandOutput, OpsWorksClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateVolumeCommand extends $Command< configuration: OpsWorksClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/AssociateNodeCommand.ts b/clients/client-opsworkscm/commands/AssociateNodeCommand.ts index 6c814a52cff99..1ececb67d32fd 100644 --- a/clients/client-opsworkscm/commands/AssociateNodeCommand.ts +++ b/clients/client-opsworkscm/commands/AssociateNodeCommand.ts @@ -44,6 +44,7 @@ export class AssociateNodeCommand extends $Command< AssociateNodeCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class AssociateNodeCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/CreateBackupCommand.ts b/clients/client-opsworkscm/commands/CreateBackupCommand.ts index da515011f23f2..64da3a365a4e4 100644 --- a/clients/client-opsworkscm/commands/CreateBackupCommand.ts +++ b/clients/client-opsworkscm/commands/CreateBackupCommand.ts @@ -45,6 +45,7 @@ export class CreateBackupCommand extends $Command< CreateBackupCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateBackupCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/CreateServerCommand.ts b/clients/client-opsworkscm/commands/CreateServerCommand.ts index fccce0a3290f1..b6434a2fa500b 100644 --- a/clients/client-opsworkscm/commands/CreateServerCommand.ts +++ b/clients/client-opsworkscm/commands/CreateServerCommand.ts @@ -55,6 +55,7 @@ export class CreateServerCommand extends $Command< CreateServerCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateServerCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DeleteBackupCommand.ts b/clients/client-opsworkscm/commands/DeleteBackupCommand.ts index 7653ae9428ea6..951c5a216248b 100644 --- a/clients/client-opsworkscm/commands/DeleteBackupCommand.ts +++ b/clients/client-opsworkscm/commands/DeleteBackupCommand.ts @@ -35,6 +35,7 @@ export class DeleteBackupCommand extends $Command< DeleteBackupCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteBackupCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DeleteServerCommand.ts b/clients/client-opsworkscm/commands/DeleteServerCommand.ts index 452b6e99cc67e..8b72022ba122a 100644 --- a/clients/client-opsworkscm/commands/DeleteServerCommand.ts +++ b/clients/client-opsworkscm/commands/DeleteServerCommand.ts @@ -43,6 +43,7 @@ export class DeleteServerCommand extends $Command< DeleteServerCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DeleteServerCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DescribeAccountAttributesCommand.ts b/clients/client-opsworkscm/commands/DescribeAccountAttributesCommand.ts index 21583888ae56b..e4763f68e947b 100644 --- a/clients/client-opsworkscm/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-opsworkscm/commands/DescribeAccountAttributesCommand.ts @@ -33,6 +33,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DescribeBackupsCommand.ts b/clients/client-opsworkscm/commands/DescribeBackupsCommand.ts index c7e204ac1272d..0b385bcb79c67 100644 --- a/clients/client-opsworkscm/commands/DescribeBackupsCommand.ts +++ b/clients/client-opsworkscm/commands/DescribeBackupsCommand.ts @@ -38,6 +38,7 @@ export class DescribeBackupsCommand extends $Command< DescribeBackupsCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeBackupsCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DescribeEventsCommand.ts b/clients/client-opsworkscm/commands/DescribeEventsCommand.ts index 2f8028e969947..a6bfe20de4a30 100644 --- a/clients/client-opsworkscm/commands/DescribeEventsCommand.ts +++ b/clients/client-opsworkscm/commands/DescribeEventsCommand.ts @@ -37,6 +37,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeEventsCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DescribeNodeAssociationStatusCommand.ts b/clients/client-opsworkscm/commands/DescribeNodeAssociationStatusCommand.ts index 27328f6bb288e..78864181dbb8b 100644 --- a/clients/client-opsworkscm/commands/DescribeNodeAssociationStatusCommand.ts +++ b/clients/client-opsworkscm/commands/DescribeNodeAssociationStatusCommand.ts @@ -34,6 +34,7 @@ export class DescribeNodeAssociationStatusCommand extends $Command< DescribeNodeAssociationStatusCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeNodeAssociationStatusCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DescribeServersCommand.ts b/clients/client-opsworkscm/commands/DescribeServersCommand.ts index 8ec101461bd31..de9affea81940 100644 --- a/clients/client-opsworkscm/commands/DescribeServersCommand.ts +++ b/clients/client-opsworkscm/commands/DescribeServersCommand.ts @@ -39,6 +39,7 @@ export class DescribeServersCommand extends $Command< DescribeServersCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeServersCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/DisassociateNodeCommand.ts b/clients/client-opsworkscm/commands/DisassociateNodeCommand.ts index 70b948d687d46..ec42a9aeed7df 100644 --- a/clients/client-opsworkscm/commands/DisassociateNodeCommand.ts +++ b/clients/client-opsworkscm/commands/DisassociateNodeCommand.ts @@ -35,6 +35,7 @@ export class DisassociateNodeCommand extends $Command< DisassociateNodeCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociateNodeCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/ExportServerEngineAttributeCommand.ts b/clients/client-opsworkscm/commands/ExportServerEngineAttributeCommand.ts index 4b48f46056015..8114235465089 100644 --- a/clients/client-opsworkscm/commands/ExportServerEngineAttributeCommand.ts +++ b/clients/client-opsworkscm/commands/ExportServerEngineAttributeCommand.ts @@ -39,6 +39,7 @@ export class ExportServerEngineAttributeCommand extends $Command< ExportServerEngineAttributeCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ExportServerEngineAttributeCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/ListTagsForResourceCommand.ts b/clients/client-opsworkscm/commands/ListTagsForResourceCommand.ts index 6aad6a8412f69..d57bd9e6cdbb0 100644 --- a/clients/client-opsworkscm/commands/ListTagsForResourceCommand.ts +++ b/clients/client-opsworkscm/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/RestoreServerCommand.ts b/clients/client-opsworkscm/commands/RestoreServerCommand.ts index 6ff397e765865..0dcaab70dbf78 100644 --- a/clients/client-opsworkscm/commands/RestoreServerCommand.ts +++ b/clients/client-opsworkscm/commands/RestoreServerCommand.ts @@ -42,6 +42,7 @@ export class RestoreServerCommand extends $Command< RestoreServerCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class RestoreServerCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/StartMaintenanceCommand.ts b/clients/client-opsworkscm/commands/StartMaintenanceCommand.ts index fb54cab39b2e2..21a5731adedf7 100644 --- a/clients/client-opsworkscm/commands/StartMaintenanceCommand.ts +++ b/clients/client-opsworkscm/commands/StartMaintenanceCommand.ts @@ -35,6 +35,7 @@ export class StartMaintenanceCommand extends $Command< StartMaintenanceCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartMaintenanceCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/TagResourceCommand.ts b/clients/client-opsworkscm/commands/TagResourceCommand.ts index 08a6330b60c11..4a5d9c4616603 100644 --- a/clients/client-opsworkscm/commands/TagResourceCommand.ts +++ b/clients/client-opsworkscm/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/UntagResourceCommand.ts b/clients/client-opsworkscm/commands/UntagResourceCommand.ts index 4f301c66e0067..348145e2903eb 100644 --- a/clients/client-opsworkscm/commands/UntagResourceCommand.ts +++ b/clients/client-opsworkscm/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/UpdateServerCommand.ts b/clients/client-opsworkscm/commands/UpdateServerCommand.ts index a9162d90d0e9e..42656d4596b89 100644 --- a/clients/client-opsworkscm/commands/UpdateServerCommand.ts +++ b/clients/client-opsworkscm/commands/UpdateServerCommand.ts @@ -33,6 +33,7 @@ export class UpdateServerCommand extends $Command< UpdateServerCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateServerCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-opsworkscm/commands/UpdateServerEngineAttributesCommand.ts b/clients/client-opsworkscm/commands/UpdateServerEngineAttributesCommand.ts index 4afb6823cdf47..7d99687116049 100644 --- a/clients/client-opsworkscm/commands/UpdateServerEngineAttributesCommand.ts +++ b/clients/client-opsworkscm/commands/UpdateServerEngineAttributesCommand.ts @@ -41,6 +41,7 @@ export class UpdateServerEngineAttributesCommand extends $Command< UpdateServerEngineAttributesCommandOutput, OpsWorksCMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateServerEngineAttributesCommand extends $Command< configuration: OpsWorksCMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/AcceptHandshakeCommand.ts b/clients/client-organizations/commands/AcceptHandshakeCommand.ts index 499f5623d3562..591a7c2f4d622 100644 --- a/clients/client-organizations/commands/AcceptHandshakeCommand.ts +++ b/clients/client-organizations/commands/AcceptHandshakeCommand.ts @@ -57,6 +57,7 @@ export class AcceptHandshakeCommand extends $Command< AcceptHandshakeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class AcceptHandshakeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/AttachPolicyCommand.ts b/clients/client-organizations/commands/AttachPolicyCommand.ts index 4f2ff020dfc67..f03258f8c9d6f 100644 --- a/clients/client-organizations/commands/AttachPolicyCommand.ts +++ b/clients/client-organizations/commands/AttachPolicyCommand.ts @@ -53,6 +53,7 @@ export class AttachPolicyCommand extends $Command< AttachPolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class AttachPolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CancelHandshakeCommand.ts b/clients/client-organizations/commands/CancelHandshakeCommand.ts index e8e0b46e6173b..6ad50450a3287 100644 --- a/clients/client-organizations/commands/CancelHandshakeCommand.ts +++ b/clients/client-organizations/commands/CancelHandshakeCommand.ts @@ -33,6 +33,7 @@ export class CancelHandshakeCommand extends $Command< CancelHandshakeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CancelHandshakeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CreateAccountCommand.ts b/clients/client-organizations/commands/CreateAccountCommand.ts index 55eab251af7c3..65d038237f0ff 100644 --- a/clients/client-organizations/commands/CreateAccountCommand.ts +++ b/clients/client-organizations/commands/CreateAccountCommand.ts @@ -105,6 +105,7 @@ export class CreateAccountCommand extends $Command< CreateAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -122,7 +123,10 @@ export class CreateAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CreateGovCloudAccountCommand.ts b/clients/client-organizations/commands/CreateGovCloudAccountCommand.ts index a031f62e8d5b8..8ba11ca674d1c 100644 --- a/clients/client-organizations/commands/CreateGovCloudAccountCommand.ts +++ b/clients/client-organizations/commands/CreateGovCloudAccountCommand.ts @@ -160,6 +160,7 @@ export class CreateGovCloudAccountCommand extends $Command< CreateGovCloudAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -177,7 +178,10 @@ export class CreateGovCloudAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CreateOrganizationCommand.ts b/clients/client-organizations/commands/CreateOrganizationCommand.ts index 2729b2fd27df9..b7609ff46d7d3 100644 --- a/clients/client-organizations/commands/CreateOrganizationCommand.ts +++ b/clients/client-organizations/commands/CreateOrganizationCommand.ts @@ -38,6 +38,7 @@ export class CreateOrganizationCommand extends $Command< CreateOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CreateOrganizationalUnitCommand.ts b/clients/client-organizations/commands/CreateOrganizationalUnitCommand.ts index eceb0b0fc0fb0..a0246a87df0c4 100644 --- a/clients/client-organizations/commands/CreateOrganizationalUnitCommand.ts +++ b/clients/client-organizations/commands/CreateOrganizationalUnitCommand.ts @@ -38,6 +38,7 @@ export class CreateOrganizationalUnitCommand extends $Command< CreateOrganizationalUnitCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateOrganizationalUnitCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/CreatePolicyCommand.ts b/clients/client-organizations/commands/CreatePolicyCommand.ts index 9874b48ea0e85..85aa174ee2f7a 100644 --- a/clients/client-organizations/commands/CreatePolicyCommand.ts +++ b/clients/client-organizations/commands/CreatePolicyCommand.ts @@ -34,6 +34,7 @@ export class CreatePolicyCommand extends $Command< CreatePolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreatePolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DeclineHandshakeCommand.ts b/clients/client-organizations/commands/DeclineHandshakeCommand.ts index 46ad8c0a5598a..f5285f4cd6cc6 100644 --- a/clients/client-organizations/commands/DeclineHandshakeCommand.ts +++ b/clients/client-organizations/commands/DeclineHandshakeCommand.ts @@ -34,6 +34,7 @@ export class DeclineHandshakeCommand extends $Command< DeclineHandshakeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeclineHandshakeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DeleteOrganizationCommand.ts b/clients/client-organizations/commands/DeleteOrganizationCommand.ts index 6b1f8724c98c0..b74c5b12262af 100644 --- a/clients/client-organizations/commands/DeleteOrganizationCommand.ts +++ b/clients/client-organizations/commands/DeleteOrganizationCommand.ts @@ -28,6 +28,7 @@ export class DeleteOrganizationCommand extends $Command< DeleteOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DeleteOrganizationalUnitCommand.ts b/clients/client-organizations/commands/DeleteOrganizationalUnitCommand.ts index 0f808cfb87cdf..f86f09c9a09f0 100644 --- a/clients/client-organizations/commands/DeleteOrganizationalUnitCommand.ts +++ b/clients/client-organizations/commands/DeleteOrganizationalUnitCommand.ts @@ -30,6 +30,7 @@ export class DeleteOrganizationalUnitCommand extends $Command< DeleteOrganizationalUnitCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteOrganizationalUnitCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DeletePolicyCommand.ts b/clients/client-organizations/commands/DeletePolicyCommand.ts index 4e84ac0183b6d..310f4bae66fe8 100644 --- a/clients/client-organizations/commands/DeletePolicyCommand.ts +++ b/clients/client-organizations/commands/DeletePolicyCommand.ts @@ -31,6 +31,7 @@ export class DeletePolicyCommand extends $Command< DeletePolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DeregisterDelegatedAdministratorCommand.ts b/clients/client-organizations/commands/DeregisterDelegatedAdministratorCommand.ts index 29f53567d3eda..3885176fa67ac 100644 --- a/clients/client-organizations/commands/DeregisterDelegatedAdministratorCommand.ts +++ b/clients/client-organizations/commands/DeregisterDelegatedAdministratorCommand.ts @@ -41,6 +41,7 @@ export class DeregisterDelegatedAdministratorCommand extends $Command< DeregisterDelegatedAdministratorCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeregisterDelegatedAdministratorCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeAccountCommand.ts b/clients/client-organizations/commands/DescribeAccountCommand.ts index 33225ca570ec2..3ac3bb19f72f8 100644 --- a/clients/client-organizations/commands/DescribeAccountCommand.ts +++ b/clients/client-organizations/commands/DescribeAccountCommand.ts @@ -30,6 +30,7 @@ export class DescribeAccountCommand extends $Command< DescribeAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeCreateAccountStatusCommand.ts b/clients/client-organizations/commands/DescribeCreateAccountStatusCommand.ts index 84d58c3b73d45..f55ed85eee687 100644 --- a/clients/client-organizations/commands/DescribeCreateAccountStatusCommand.ts +++ b/clients/client-organizations/commands/DescribeCreateAccountStatusCommand.ts @@ -30,6 +30,7 @@ export class DescribeCreateAccountStatusCommand extends $Command< DescribeCreateAccountStatusCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeCreateAccountStatusCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeEffectivePolicyCommand.ts b/clients/client-organizations/commands/DescribeEffectivePolicyCommand.ts index 528a7d6c79e69..57f2c2a810f76 100644 --- a/clients/client-organizations/commands/DescribeEffectivePolicyCommand.ts +++ b/clients/client-organizations/commands/DescribeEffectivePolicyCommand.ts @@ -37,6 +37,7 @@ export class DescribeEffectivePolicyCommand extends $Command< DescribeEffectivePolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeEffectivePolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeHandshakeCommand.ts b/clients/client-organizations/commands/DescribeHandshakeCommand.ts index 0b8b3efdb201c..de17747125811 100644 --- a/clients/client-organizations/commands/DescribeHandshakeCommand.ts +++ b/clients/client-organizations/commands/DescribeHandshakeCommand.ts @@ -34,6 +34,7 @@ export class DescribeHandshakeCommand extends $Command< DescribeHandshakeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeHandshakeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeOrganizationCommand.ts b/clients/client-organizations/commands/DescribeOrganizationCommand.ts index df87dba31442f..bfd64c1b191e6 100644 --- a/clients/client-organizations/commands/DescribeOrganizationCommand.ts +++ b/clients/client-organizations/commands/DescribeOrganizationCommand.ts @@ -35,6 +35,7 @@ export class DescribeOrganizationCommand extends $Command< DescribeOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribeOrganizationalUnitCommand.ts b/clients/client-organizations/commands/DescribeOrganizationalUnitCommand.ts index 5cf1eeb8258ef..f359e5923c3ef 100644 --- a/clients/client-organizations/commands/DescribeOrganizationalUnitCommand.ts +++ b/clients/client-organizations/commands/DescribeOrganizationalUnitCommand.ts @@ -30,6 +30,7 @@ export class DescribeOrganizationalUnitCommand extends $Command< DescribeOrganizationalUnitCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeOrganizationalUnitCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DescribePolicyCommand.ts b/clients/client-organizations/commands/DescribePolicyCommand.ts index de2a789092e2f..a7ba5f76afb9f 100644 --- a/clients/client-organizations/commands/DescribePolicyCommand.ts +++ b/clients/client-organizations/commands/DescribePolicyCommand.ts @@ -30,6 +30,7 @@ export class DescribePolicyCommand extends $Command< DescribePolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribePolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DetachPolicyCommand.ts b/clients/client-organizations/commands/DetachPolicyCommand.ts index 8e1cbc9f73231..e459075639aa9 100644 --- a/clients/client-organizations/commands/DetachPolicyCommand.ts +++ b/clients/client-organizations/commands/DetachPolicyCommand.ts @@ -42,6 +42,7 @@ export class DetachPolicyCommand extends $Command< DetachPolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DetachPolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DisableAWSServiceAccessCommand.ts b/clients/client-organizations/commands/DisableAWSServiceAccessCommand.ts index 040a6945ca30c..b30e90228cc07 100644 --- a/clients/client-organizations/commands/DisableAWSServiceAccessCommand.ts +++ b/clients/client-organizations/commands/DisableAWSServiceAccessCommand.ts @@ -52,6 +52,7 @@ export class DisableAWSServiceAccessCommand extends $Command< DisableAWSServiceAccessCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DisableAWSServiceAccessCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/DisablePolicyTypeCommand.ts b/clients/client-organizations/commands/DisablePolicyTypeCommand.ts index ef66e8ce2d98e..207ad7e5db5e4 100644 --- a/clients/client-organizations/commands/DisablePolicyTypeCommand.ts +++ b/clients/client-organizations/commands/DisablePolicyTypeCommand.ts @@ -38,6 +38,7 @@ export class DisablePolicyTypeCommand extends $Command< DisablePolicyTypeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DisablePolicyTypeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/EnableAWSServiceAccessCommand.ts b/clients/client-organizations/commands/EnableAWSServiceAccessCommand.ts index 5704e84c8b335..2d5dd06436dc6 100644 --- a/clients/client-organizations/commands/EnableAWSServiceAccessCommand.ts +++ b/clients/client-organizations/commands/EnableAWSServiceAccessCommand.ts @@ -46,6 +46,7 @@ export class EnableAWSServiceAccessCommand extends $Command< EnableAWSServiceAccessCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class EnableAWSServiceAccessCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/EnableAllFeaturesCommand.ts b/clients/client-organizations/commands/EnableAllFeaturesCommand.ts index 4e24a6d990d99..51069741cce43 100644 --- a/clients/client-organizations/commands/EnableAllFeaturesCommand.ts +++ b/clients/client-organizations/commands/EnableAllFeaturesCommand.ts @@ -53,6 +53,7 @@ export class EnableAllFeaturesCommand extends $Command< EnableAllFeaturesCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class EnableAllFeaturesCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/EnablePolicyTypeCommand.ts b/clients/client-organizations/commands/EnablePolicyTypeCommand.ts index 6660b9d206128..a335b65f9c698 100644 --- a/clients/client-organizations/commands/EnablePolicyTypeCommand.ts +++ b/clients/client-organizations/commands/EnablePolicyTypeCommand.ts @@ -38,6 +38,7 @@ export class EnablePolicyTypeCommand extends $Command< EnablePolicyTypeCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class EnablePolicyTypeCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/InviteAccountToOrganizationCommand.ts b/clients/client-organizations/commands/InviteAccountToOrganizationCommand.ts index d11ab7e4f6648..e51187ed2bbc2 100644 --- a/clients/client-organizations/commands/InviteAccountToOrganizationCommand.ts +++ b/clients/client-organizations/commands/InviteAccountToOrganizationCommand.ts @@ -53,6 +53,7 @@ export class InviteAccountToOrganizationCommand extends $Command< InviteAccountToOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class InviteAccountToOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/LeaveOrganizationCommand.ts b/clients/client-organizations/commands/LeaveOrganizationCommand.ts index 5d430504ed9ef..ff4e3954c659b 100644 --- a/clients/client-organizations/commands/LeaveOrganizationCommand.ts +++ b/clients/client-organizations/commands/LeaveOrganizationCommand.ts @@ -79,6 +79,7 @@ export class LeaveOrganizationCommand extends $Command< LeaveOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class LeaveOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListAWSServiceAccessForOrganizationCommand.ts b/clients/client-organizations/commands/ListAWSServiceAccessForOrganizationCommand.ts index 81e06689e67ca..78d22aaa68a6a 100644 --- a/clients/client-organizations/commands/ListAWSServiceAccessForOrganizationCommand.ts +++ b/clients/client-organizations/commands/ListAWSServiceAccessForOrganizationCommand.ts @@ -40,6 +40,7 @@ export class ListAWSServiceAccessForOrganizationCommand extends $Command< ListAWSServiceAccessForOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListAWSServiceAccessForOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListAccountsCommand.ts b/clients/client-organizations/commands/ListAccountsCommand.ts index 4968d761b24c4..11f1c3c73462b 100644 --- a/clients/client-organizations/commands/ListAccountsCommand.ts +++ b/clients/client-organizations/commands/ListAccountsCommand.ts @@ -39,6 +39,7 @@ export class ListAccountsCommand extends $Command< ListAccountsCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListAccountsCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListAccountsForParentCommand.ts b/clients/client-organizations/commands/ListAccountsForParentCommand.ts index 4e9bd9ff16e98..d08cd8ed62d5b 100644 --- a/clients/client-organizations/commands/ListAccountsForParentCommand.ts +++ b/clients/client-organizations/commands/ListAccountsForParentCommand.ts @@ -42,6 +42,7 @@ export class ListAccountsForParentCommand extends $Command< ListAccountsForParentCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListAccountsForParentCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListChildrenCommand.ts b/clients/client-organizations/commands/ListChildrenCommand.ts index 0c023d4e3c872..379b1aeea3129 100644 --- a/clients/client-organizations/commands/ListChildrenCommand.ts +++ b/clients/client-organizations/commands/ListChildrenCommand.ts @@ -40,6 +40,7 @@ export class ListChildrenCommand extends $Command< ListChildrenCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListChildrenCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListCreateAccountStatusCommand.ts b/clients/client-organizations/commands/ListCreateAccountStatusCommand.ts index eb0096e7609b3..f9320cc0acea6 100644 --- a/clients/client-organizations/commands/ListCreateAccountStatusCommand.ts +++ b/clients/client-organizations/commands/ListCreateAccountStatusCommand.ts @@ -39,6 +39,7 @@ export class ListCreateAccountStatusCommand extends $Command< ListCreateAccountStatusCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListCreateAccountStatusCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListDelegatedAdministratorsCommand.ts b/clients/client-organizations/commands/ListDelegatedAdministratorsCommand.ts index 8c8cd96974767..b07577f62881a 100644 --- a/clients/client-organizations/commands/ListDelegatedAdministratorsCommand.ts +++ b/clients/client-organizations/commands/ListDelegatedAdministratorsCommand.ts @@ -31,6 +31,7 @@ export class ListDelegatedAdministratorsCommand extends $Command< ListDelegatedAdministratorsCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListDelegatedAdministratorsCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListDelegatedServicesForAccountCommand.ts b/clients/client-organizations/commands/ListDelegatedServicesForAccountCommand.ts index f79b742fb0032..0ab3c7f306b03 100644 --- a/clients/client-organizations/commands/ListDelegatedServicesForAccountCommand.ts +++ b/clients/client-organizations/commands/ListDelegatedServicesForAccountCommand.ts @@ -31,6 +31,7 @@ export class ListDelegatedServicesForAccountCommand extends $Command< ListDelegatedServicesForAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListDelegatedServicesForAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListHandshakesForAccountCommand.ts b/clients/client-organizations/commands/ListHandshakesForAccountCommand.ts index ac10e29ecfe51..4b9c115ab4b0e 100644 --- a/clients/client-organizations/commands/ListHandshakesForAccountCommand.ts +++ b/clients/client-organizations/commands/ListHandshakesForAccountCommand.ts @@ -41,6 +41,7 @@ export class ListHandshakesForAccountCommand extends $Command< ListHandshakesForAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListHandshakesForAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListHandshakesForOrganizationCommand.ts b/clients/client-organizations/commands/ListHandshakesForOrganizationCommand.ts index b2c4de6b30032..80b2c33b52274 100644 --- a/clients/client-organizations/commands/ListHandshakesForOrganizationCommand.ts +++ b/clients/client-organizations/commands/ListHandshakesForOrganizationCommand.ts @@ -44,6 +44,7 @@ export class ListHandshakesForOrganizationCommand extends $Command< ListHandshakesForOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class ListHandshakesForOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListOrganizationalUnitsForParentCommand.ts b/clients/client-organizations/commands/ListOrganizationalUnitsForParentCommand.ts index db0ade3c76a37..03b2bcb11fef5 100644 --- a/clients/client-organizations/commands/ListOrganizationalUnitsForParentCommand.ts +++ b/clients/client-organizations/commands/ListOrganizationalUnitsForParentCommand.ts @@ -38,6 +38,7 @@ export class ListOrganizationalUnitsForParentCommand extends $Command< ListOrganizationalUnitsForParentCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListOrganizationalUnitsForParentCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListParentsCommand.ts b/clients/client-organizations/commands/ListParentsCommand.ts index cd3cf04cfbdcb..fa744ef813645 100644 --- a/clients/client-organizations/commands/ListParentsCommand.ts +++ b/clients/client-organizations/commands/ListParentsCommand.ts @@ -43,6 +43,7 @@ export class ListParentsCommand extends $Command< ListParentsCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class ListParentsCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListPoliciesCommand.ts b/clients/client-organizations/commands/ListPoliciesCommand.ts index ef5d3f962e20c..3831105beaba1 100644 --- a/clients/client-organizations/commands/ListPoliciesCommand.ts +++ b/clients/client-organizations/commands/ListPoliciesCommand.ts @@ -38,6 +38,7 @@ export class ListPoliciesCommand extends $Command< ListPoliciesCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListPoliciesCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListPoliciesForTargetCommand.ts b/clients/client-organizations/commands/ListPoliciesForTargetCommand.ts index 1322b6d08a046..82ad14c21c2ef 100644 --- a/clients/client-organizations/commands/ListPoliciesForTargetCommand.ts +++ b/clients/client-organizations/commands/ListPoliciesForTargetCommand.ts @@ -40,6 +40,7 @@ export class ListPoliciesForTargetCommand extends $Command< ListPoliciesForTargetCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListPoliciesForTargetCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListRootsCommand.ts b/clients/client-organizations/commands/ListRootsCommand.ts index be4ddb8ea1541..8f120a0bac046 100644 --- a/clients/client-organizations/commands/ListRootsCommand.ts +++ b/clients/client-organizations/commands/ListRootsCommand.ts @@ -42,6 +42,7 @@ export class ListRootsCommand extends $Command< ListRootsCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListRootsCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListTagsForResourceCommand.ts b/clients/client-organizations/commands/ListTagsForResourceCommand.ts index 9eadc4e831ce1..9d3bfdbadcab3 100644 --- a/clients/client-organizations/commands/ListTagsForResourceCommand.ts +++ b/clients/client-organizations/commands/ListTagsForResourceCommand.ts @@ -45,6 +45,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/ListTargetsForPolicyCommand.ts b/clients/client-organizations/commands/ListTargetsForPolicyCommand.ts index 11373ec1ecacb..f7a1d259575bd 100644 --- a/clients/client-organizations/commands/ListTargetsForPolicyCommand.ts +++ b/clients/client-organizations/commands/ListTargetsForPolicyCommand.ts @@ -39,6 +39,7 @@ export class ListTargetsForPolicyCommand extends $Command< ListTargetsForPolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListTargetsForPolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/MoveAccountCommand.ts b/clients/client-organizations/commands/MoveAccountCommand.ts index 6b1ec8febf5e3..52b5fd4b7436f 100644 --- a/clients/client-organizations/commands/MoveAccountCommand.ts +++ b/clients/client-organizations/commands/MoveAccountCommand.ts @@ -30,6 +30,7 @@ export class MoveAccountCommand extends $Command< MoveAccountCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class MoveAccountCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/RegisterDelegatedAdministratorCommand.ts b/clients/client-organizations/commands/RegisterDelegatedAdministratorCommand.ts index 79d1c9bf415e1..b6f1bb765a5d2 100644 --- a/clients/client-organizations/commands/RegisterDelegatedAdministratorCommand.ts +++ b/clients/client-organizations/commands/RegisterDelegatedAdministratorCommand.ts @@ -36,6 +36,7 @@ export class RegisterDelegatedAdministratorCommand extends $Command< RegisterDelegatedAdministratorCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class RegisterDelegatedAdministratorCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/RemoveAccountFromOrganizationCommand.ts b/clients/client-organizations/commands/RemoveAccountFromOrganizationCommand.ts index 81d5ae3ff995c..a6839909a696f 100644 --- a/clients/client-organizations/commands/RemoveAccountFromOrganizationCommand.ts +++ b/clients/client-organizations/commands/RemoveAccountFromOrganizationCommand.ts @@ -58,6 +58,7 @@ export class RemoveAccountFromOrganizationCommand extends $Command< RemoveAccountFromOrganizationCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class RemoveAccountFromOrganizationCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/TagResourceCommand.ts b/clients/client-organizations/commands/TagResourceCommand.ts index bb9011db7fd10..04bb42a15d64a 100644 --- a/clients/client-organizations/commands/TagResourceCommand.ts +++ b/clients/client-organizations/commands/TagResourceCommand.ts @@ -44,6 +44,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class TagResourceCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/UntagResourceCommand.ts b/clients/client-organizations/commands/UntagResourceCommand.ts index 940c00be9949d..a05bed05450f7 100644 --- a/clients/client-organizations/commands/UntagResourceCommand.ts +++ b/clients/client-organizations/commands/UntagResourceCommand.ts @@ -44,6 +44,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class UntagResourceCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/UpdateOrganizationalUnitCommand.ts b/clients/client-organizations/commands/UpdateOrganizationalUnitCommand.ts index 560c51b02177d..ff1d02cb5377d 100644 --- a/clients/client-organizations/commands/UpdateOrganizationalUnitCommand.ts +++ b/clients/client-organizations/commands/UpdateOrganizationalUnitCommand.ts @@ -31,6 +31,7 @@ export class UpdateOrganizationalUnitCommand extends $Command< UpdateOrganizationalUnitCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateOrganizationalUnitCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-organizations/commands/UpdatePolicyCommand.ts b/clients/client-organizations/commands/UpdatePolicyCommand.ts index 9a0f2b3b5296b..e38ae63c46f68 100644 --- a/clients/client-organizations/commands/UpdatePolicyCommand.ts +++ b/clients/client-organizations/commands/UpdatePolicyCommand.ts @@ -31,6 +31,7 @@ export class UpdatePolicyCommand extends $Command< UpdatePolicyCommandOutput, OrganizationsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdatePolicyCommand extends $Command< configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/CreateOutpostCommand.ts b/clients/client-outposts/commands/CreateOutpostCommand.ts index 5480fd93a10a8..622814514c3c8 100644 --- a/clients/client-outposts/commands/CreateOutpostCommand.ts +++ b/clients/client-outposts/commands/CreateOutpostCommand.ts @@ -28,6 +28,7 @@ export class CreateOutpostCommand extends $Command< CreateOutpostCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateOutpostCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/DeleteOutpostCommand.ts b/clients/client-outposts/commands/DeleteOutpostCommand.ts index 4571ad785c4d7..b5f249173cbd4 100644 --- a/clients/client-outposts/commands/DeleteOutpostCommand.ts +++ b/clients/client-outposts/commands/DeleteOutpostCommand.ts @@ -28,6 +28,7 @@ export class DeleteOutpostCommand extends $Command< DeleteOutpostCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOutpostCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/DeleteSiteCommand.ts b/clients/client-outposts/commands/DeleteSiteCommand.ts index e50a8ca343911..9218f42fca1d4 100644 --- a/clients/client-outposts/commands/DeleteSiteCommand.ts +++ b/clients/client-outposts/commands/DeleteSiteCommand.ts @@ -28,6 +28,7 @@ export class DeleteSiteCommand extends $Command< DeleteSiteCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSiteCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/GetOutpostCommand.ts b/clients/client-outposts/commands/GetOutpostCommand.ts index 494e904148c82..242d13583e533 100644 --- a/clients/client-outposts/commands/GetOutpostCommand.ts +++ b/clients/client-outposts/commands/GetOutpostCommand.ts @@ -28,6 +28,7 @@ export class GetOutpostCommand extends $Command< GetOutpostCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOutpostCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/GetOutpostInstanceTypesCommand.ts b/clients/client-outposts/commands/GetOutpostInstanceTypesCommand.ts index 7f57423b204fb..44a3f45f54456 100644 --- a/clients/client-outposts/commands/GetOutpostInstanceTypesCommand.ts +++ b/clients/client-outposts/commands/GetOutpostInstanceTypesCommand.ts @@ -28,6 +28,7 @@ export class GetOutpostInstanceTypesCommand extends $Command< GetOutpostInstanceTypesCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOutpostInstanceTypesCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/ListOutpostsCommand.ts b/clients/client-outposts/commands/ListOutpostsCommand.ts index cc74b78007091..cd5c9893b9e57 100644 --- a/clients/client-outposts/commands/ListOutpostsCommand.ts +++ b/clients/client-outposts/commands/ListOutpostsCommand.ts @@ -28,6 +28,7 @@ export class ListOutpostsCommand extends $Command< ListOutpostsCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOutpostsCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-outposts/commands/ListSitesCommand.ts b/clients/client-outposts/commands/ListSitesCommand.ts index 09c9396e46ac4..270fcd83a48ec 100644 --- a/clients/client-outposts/commands/ListSitesCommand.ts +++ b/clients/client-outposts/commands/ListSitesCommand.ts @@ -28,6 +28,7 @@ export class ListSitesCommand extends $Command< ListSitesCommandOutput, OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSitesCommand extends $Command< configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize-events/commands/PutEventsCommand.ts b/clients/client-personalize-events/commands/PutEventsCommand.ts index 4500d338ebd84..3241eb02b2109 100644 --- a/clients/client-personalize-events/commands/PutEventsCommand.ts +++ b/clients/client-personalize-events/commands/PutEventsCommand.ts @@ -32,6 +32,7 @@ export class PutEventsCommand extends $Command< PutEventsCommandOutput, PersonalizeEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutEventsCommand extends $Command< configuration: PersonalizeEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize-events/commands/PutItemsCommand.ts b/clients/client-personalize-events/commands/PutItemsCommand.ts index b3d151b904c8b..3a291461e5e07 100644 --- a/clients/client-personalize-events/commands/PutItemsCommand.ts +++ b/clients/client-personalize-events/commands/PutItemsCommand.ts @@ -33,6 +33,7 @@ export class PutItemsCommand extends $Command< PutItemsCommandOutput, PersonalizeEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutItemsCommand extends $Command< configuration: PersonalizeEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize-events/commands/PutUsersCommand.ts b/clients/client-personalize-events/commands/PutUsersCommand.ts index ef031fd584fa6..e10ba9c80972d 100644 --- a/clients/client-personalize-events/commands/PutUsersCommand.ts +++ b/clients/client-personalize-events/commands/PutUsersCommand.ts @@ -33,6 +33,7 @@ export class PutUsersCommand extends $Command< PutUsersCommandOutput, PersonalizeEventsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutUsersCommand extends $Command< configuration: PersonalizeEventsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize-runtime/commands/GetPersonalizedRankingCommand.ts b/clients/client-personalize-runtime/commands/GetPersonalizedRankingCommand.ts index 227a591160939..1b7e2c4523cba 100644 --- a/clients/client-personalize-runtime/commands/GetPersonalizedRankingCommand.ts +++ b/clients/client-personalize-runtime/commands/GetPersonalizedRankingCommand.ts @@ -37,6 +37,7 @@ export class GetPersonalizedRankingCommand extends $Command< GetPersonalizedRankingCommandOutput, PersonalizeRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetPersonalizedRankingCommand extends $Command< configuration: PersonalizeRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize-runtime/commands/GetRecommendationsCommand.ts b/clients/client-personalize-runtime/commands/GetRecommendationsCommand.ts index 7473f030e547f..df335976654c9 100644 --- a/clients/client-personalize-runtime/commands/GetRecommendationsCommand.ts +++ b/clients/client-personalize-runtime/commands/GetRecommendationsCommand.ts @@ -46,6 +46,7 @@ export class GetRecommendationsCommand extends $Command< GetRecommendationsCommandOutput, PersonalizeRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetRecommendationsCommand extends $Command< configuration: PersonalizeRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateBatchInferenceJobCommand.ts b/clients/client-personalize/commands/CreateBatchInferenceJobCommand.ts index b428d5c3816b3..33295b5d61256 100644 --- a/clients/client-personalize/commands/CreateBatchInferenceJobCommand.ts +++ b/clients/client-personalize/commands/CreateBatchInferenceJobCommand.ts @@ -29,6 +29,7 @@ export class CreateBatchInferenceJobCommand extends $Command< CreateBatchInferenceJobCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateBatchInferenceJobCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateCampaignCommand.ts b/clients/client-personalize/commands/CreateCampaignCommand.ts index 37cbb236af925..6791a93e962b6 100644 --- a/clients/client-personalize/commands/CreateCampaignCommand.ts +++ b/clients/client-personalize/commands/CreateCampaignCommand.ts @@ -91,6 +91,7 @@ export class CreateCampaignCommand extends $Command< CreateCampaignCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -108,7 +109,10 @@ export class CreateCampaignCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateDatasetCommand.ts b/clients/client-personalize/commands/CreateDatasetCommand.ts index 0187d3c79c7e6..e4142282b22ca 100644 --- a/clients/client-personalize/commands/CreateDatasetCommand.ts +++ b/clients/client-personalize/commands/CreateDatasetCommand.ts @@ -78,6 +78,7 @@ export class CreateDatasetCommand extends $Command< CreateDatasetCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class CreateDatasetCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateDatasetGroupCommand.ts b/clients/client-personalize/commands/CreateDatasetGroupCommand.ts index 4713b0be44c96..8ae748859643a 100644 --- a/clients/client-personalize/commands/CreateDatasetGroupCommand.ts +++ b/clients/client-personalize/commands/CreateDatasetGroupCommand.ts @@ -103,6 +103,7 @@ export class CreateDatasetGroupCommand extends $Command< CreateDatasetGroupCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -120,7 +121,10 @@ export class CreateDatasetGroupCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateDatasetImportJobCommand.ts b/clients/client-personalize/commands/CreateDatasetImportJobCommand.ts index e19240350fa23..78867fc59a045 100644 --- a/clients/client-personalize/commands/CreateDatasetImportJobCommand.ts +++ b/clients/client-personalize/commands/CreateDatasetImportJobCommand.ts @@ -67,6 +67,7 @@ export class CreateDatasetImportJobCommand extends $Command< CreateDatasetImportJobCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class CreateDatasetImportJobCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateEventTrackerCommand.ts b/clients/client-personalize/commands/CreateEventTrackerCommand.ts index a94ef76f6079b..5eafec2730bf9 100644 --- a/clients/client-personalize/commands/CreateEventTrackerCommand.ts +++ b/clients/client-personalize/commands/CreateEventTrackerCommand.ts @@ -75,6 +75,7 @@ export class CreateEventTrackerCommand extends $Command< CreateEventTrackerCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class CreateEventTrackerCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateFilterCommand.ts b/clients/client-personalize/commands/CreateFilterCommand.ts index 7cdd28d155889..8fb686d9a45fc 100644 --- a/clients/client-personalize/commands/CreateFilterCommand.ts +++ b/clients/client-personalize/commands/CreateFilterCommand.ts @@ -29,6 +29,7 @@ export class CreateFilterCommand extends $Command< CreateFilterCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateFilterCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateSchemaCommand.ts b/clients/client-personalize/commands/CreateSchemaCommand.ts index 77f8f602ecda0..09b9e173e3c30 100644 --- a/clients/client-personalize/commands/CreateSchemaCommand.ts +++ b/clients/client-personalize/commands/CreateSchemaCommand.ts @@ -53,6 +53,7 @@ export class CreateSchemaCommand extends $Command< CreateSchemaCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class CreateSchemaCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateSolutionCommand.ts b/clients/client-personalize/commands/CreateSolutionCommand.ts index 9291a158c6489..6fdd24a4cdfa0 100644 --- a/clients/client-personalize/commands/CreateSolutionCommand.ts +++ b/clients/client-personalize/commands/CreateSolutionCommand.ts @@ -96,6 +96,7 @@ export class CreateSolutionCommand extends $Command< CreateSolutionCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -113,7 +114,10 @@ export class CreateSolutionCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/CreateSolutionVersionCommand.ts b/clients/client-personalize/commands/CreateSolutionVersionCommand.ts index 46759e74857ec..1ec89ac1b7195 100644 --- a/clients/client-personalize/commands/CreateSolutionVersionCommand.ts +++ b/clients/client-personalize/commands/CreateSolutionVersionCommand.ts @@ -80,6 +80,7 @@ export class CreateSolutionVersionCommand extends $Command< CreateSolutionVersionCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class CreateSolutionVersionCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteCampaignCommand.ts b/clients/client-personalize/commands/DeleteCampaignCommand.ts index 540d147e7ac61..02feb64430577 100644 --- a/clients/client-personalize/commands/DeleteCampaignCommand.ts +++ b/clients/client-personalize/commands/DeleteCampaignCommand.ts @@ -33,6 +33,7 @@ export class DeleteCampaignCommand extends $Command< DeleteCampaignCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteCampaignCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteDatasetCommand.ts b/clients/client-personalize/commands/DeleteDatasetCommand.ts index 2d4ffee421598..8213053e6fec7 100644 --- a/clients/client-personalize/commands/DeleteDatasetCommand.ts +++ b/clients/client-personalize/commands/DeleteDatasetCommand.ts @@ -30,6 +30,7 @@ export class DeleteDatasetCommand extends $Command< DeleteDatasetCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteDatasetCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteDatasetGroupCommand.ts b/clients/client-personalize/commands/DeleteDatasetGroupCommand.ts index 1963b6ad3511b..6edb9ec38d18a 100644 --- a/clients/client-personalize/commands/DeleteDatasetGroupCommand.ts +++ b/clients/client-personalize/commands/DeleteDatasetGroupCommand.ts @@ -40,6 +40,7 @@ export class DeleteDatasetGroupCommand extends $Command< DeleteDatasetGroupCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteDatasetGroupCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteEventTrackerCommand.ts b/clients/client-personalize/commands/DeleteEventTrackerCommand.ts index ca852b318c074..241bb1823949b 100644 --- a/clients/client-personalize/commands/DeleteEventTrackerCommand.ts +++ b/clients/client-personalize/commands/DeleteEventTrackerCommand.ts @@ -30,6 +30,7 @@ export class DeleteEventTrackerCommand extends $Command< DeleteEventTrackerCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEventTrackerCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteFilterCommand.ts b/clients/client-personalize/commands/DeleteFilterCommand.ts index 701dc58db9661..f06fcb7df729a 100644 --- a/clients/client-personalize/commands/DeleteFilterCommand.ts +++ b/clients/client-personalize/commands/DeleteFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteFilterCommand extends $Command< DeleteFilterCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFilterCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteSchemaCommand.ts b/clients/client-personalize/commands/DeleteSchemaCommand.ts index d11bba8af43ba..356e47b4503b0 100644 --- a/clients/client-personalize/commands/DeleteSchemaCommand.ts +++ b/clients/client-personalize/commands/DeleteSchemaCommand.ts @@ -30,6 +30,7 @@ export class DeleteSchemaCommand extends $Command< DeleteSchemaCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteSchemaCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DeleteSolutionCommand.ts b/clients/client-personalize/commands/DeleteSolutionCommand.ts index 18918ecc851be..794866e765ac7 100644 --- a/clients/client-personalize/commands/DeleteSolutionCommand.ts +++ b/clients/client-personalize/commands/DeleteSolutionCommand.ts @@ -34,6 +34,7 @@ export class DeleteSolutionCommand extends $Command< DeleteSolutionCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteSolutionCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeAlgorithmCommand.ts b/clients/client-personalize/commands/DescribeAlgorithmCommand.ts index 116cd32a42d9e..c4b22354ed2fa 100644 --- a/clients/client-personalize/commands/DescribeAlgorithmCommand.ts +++ b/clients/client-personalize/commands/DescribeAlgorithmCommand.ts @@ -28,6 +28,7 @@ export class DescribeAlgorithmCommand extends $Command< DescribeAlgorithmCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAlgorithmCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeBatchInferenceJobCommand.ts b/clients/client-personalize/commands/DescribeBatchInferenceJobCommand.ts index 3ee7a45a14695..3a455bcc2fef8 100644 --- a/clients/client-personalize/commands/DescribeBatchInferenceJobCommand.ts +++ b/clients/client-personalize/commands/DescribeBatchInferenceJobCommand.ts @@ -30,6 +30,7 @@ export class DescribeBatchInferenceJobCommand extends $Command< DescribeBatchInferenceJobCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeBatchInferenceJobCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeCampaignCommand.ts b/clients/client-personalize/commands/DescribeCampaignCommand.ts index 50821f3c6dc1a..476444f6470cd 100644 --- a/clients/client-personalize/commands/DescribeCampaignCommand.ts +++ b/clients/client-personalize/commands/DescribeCampaignCommand.ts @@ -40,6 +40,7 @@ export class DescribeCampaignCommand extends $Command< DescribeCampaignCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeCampaignCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeDatasetCommand.ts b/clients/client-personalize/commands/DescribeDatasetCommand.ts index 4609a1315ded9..f372bd926f9d7 100644 --- a/clients/client-personalize/commands/DescribeDatasetCommand.ts +++ b/clients/client-personalize/commands/DescribeDatasetCommand.ts @@ -28,6 +28,7 @@ export class DescribeDatasetCommand extends $Command< DescribeDatasetCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDatasetCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeDatasetGroupCommand.ts b/clients/client-personalize/commands/DescribeDatasetGroupCommand.ts index 50e0d43f7e1a8..b43311fa3bd2a 100644 --- a/clients/client-personalize/commands/DescribeDatasetGroupCommand.ts +++ b/clients/client-personalize/commands/DescribeDatasetGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeDatasetGroupCommand extends $Command< DescribeDatasetGroupCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDatasetGroupCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeDatasetImportJobCommand.ts b/clients/client-personalize/commands/DescribeDatasetImportJobCommand.ts index 19c3c9aee2d48..960f3d00bbfc0 100644 --- a/clients/client-personalize/commands/DescribeDatasetImportJobCommand.ts +++ b/clients/client-personalize/commands/DescribeDatasetImportJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeDatasetImportJobCommand extends $Command< DescribeDatasetImportJobCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDatasetImportJobCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeEventTrackerCommand.ts b/clients/client-personalize/commands/DescribeEventTrackerCommand.ts index 40ea03a400438..f8aaaae843a0f 100644 --- a/clients/client-personalize/commands/DescribeEventTrackerCommand.ts +++ b/clients/client-personalize/commands/DescribeEventTrackerCommand.ts @@ -30,6 +30,7 @@ export class DescribeEventTrackerCommand extends $Command< DescribeEventTrackerCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeEventTrackerCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeFeatureTransformationCommand.ts b/clients/client-personalize/commands/DescribeFeatureTransformationCommand.ts index 9c4e352c86dd6..102b70c714cf3 100644 --- a/clients/client-personalize/commands/DescribeFeatureTransformationCommand.ts +++ b/clients/client-personalize/commands/DescribeFeatureTransformationCommand.ts @@ -28,6 +28,7 @@ export class DescribeFeatureTransformationCommand extends $Command< DescribeFeatureTransformationCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFeatureTransformationCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeFilterCommand.ts b/clients/client-personalize/commands/DescribeFilterCommand.ts index daea55e4b22fc..80a57cc0e06b1 100644 --- a/clients/client-personalize/commands/DescribeFilterCommand.ts +++ b/clients/client-personalize/commands/DescribeFilterCommand.ts @@ -28,6 +28,7 @@ export class DescribeFilterCommand extends $Command< DescribeFilterCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFilterCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeRecipeCommand.ts b/clients/client-personalize/commands/DescribeRecipeCommand.ts index 7344afd31ccee..0e7c01287b0a2 100644 --- a/clients/client-personalize/commands/DescribeRecipeCommand.ts +++ b/clients/client-personalize/commands/DescribeRecipeCommand.ts @@ -46,6 +46,7 @@ export class DescribeRecipeCommand extends $Command< DescribeRecipeCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DescribeRecipeCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeSchemaCommand.ts b/clients/client-personalize/commands/DescribeSchemaCommand.ts index f4b1b4405bf82..bca34f98cc128 100644 --- a/clients/client-personalize/commands/DescribeSchemaCommand.ts +++ b/clients/client-personalize/commands/DescribeSchemaCommand.ts @@ -29,6 +29,7 @@ export class DescribeSchemaCommand extends $Command< DescribeSchemaCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSchemaCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeSolutionCommand.ts b/clients/client-personalize/commands/DescribeSolutionCommand.ts index c92e3d3d2f0f5..6b5ed92cf1285 100644 --- a/clients/client-personalize/commands/DescribeSolutionCommand.ts +++ b/clients/client-personalize/commands/DescribeSolutionCommand.ts @@ -29,6 +29,7 @@ export class DescribeSolutionCommand extends $Command< DescribeSolutionCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSolutionCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/DescribeSolutionVersionCommand.ts b/clients/client-personalize/commands/DescribeSolutionVersionCommand.ts index cdd972a8377e8..7738f522fe606 100644 --- a/clients/client-personalize/commands/DescribeSolutionVersionCommand.ts +++ b/clients/client-personalize/commands/DescribeSolutionVersionCommand.ts @@ -28,6 +28,7 @@ export class DescribeSolutionVersionCommand extends $Command< DescribeSolutionVersionCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSolutionVersionCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/GetSolutionMetricsCommand.ts b/clients/client-personalize/commands/GetSolutionMetricsCommand.ts index 2db599737be34..6b24fc499ca4e 100644 --- a/clients/client-personalize/commands/GetSolutionMetricsCommand.ts +++ b/clients/client-personalize/commands/GetSolutionMetricsCommand.ts @@ -28,6 +28,7 @@ export class GetSolutionMetricsCommand extends $Command< GetSolutionMetricsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSolutionMetricsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListBatchInferenceJobsCommand.ts b/clients/client-personalize/commands/ListBatchInferenceJobsCommand.ts index faf3790305018..bd164a651452f 100644 --- a/clients/client-personalize/commands/ListBatchInferenceJobsCommand.ts +++ b/clients/client-personalize/commands/ListBatchInferenceJobsCommand.ts @@ -29,6 +29,7 @@ export class ListBatchInferenceJobsCommand extends $Command< ListBatchInferenceJobsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListBatchInferenceJobsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListCampaignsCommand.ts b/clients/client-personalize/commands/ListCampaignsCommand.ts index 6ce7a72015c5b..5cc6ef9c3e42d 100644 --- a/clients/client-personalize/commands/ListCampaignsCommand.ts +++ b/clients/client-personalize/commands/ListCampaignsCommand.ts @@ -31,6 +31,7 @@ export class ListCampaignsCommand extends $Command< ListCampaignsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListCampaignsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListDatasetGroupsCommand.ts b/clients/client-personalize/commands/ListDatasetGroupsCommand.ts index 01aa7330f18fe..4eb8b9853b8af 100644 --- a/clients/client-personalize/commands/ListDatasetGroupsCommand.ts +++ b/clients/client-personalize/commands/ListDatasetGroupsCommand.ts @@ -30,6 +30,7 @@ export class ListDatasetGroupsCommand extends $Command< ListDatasetGroupsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDatasetGroupsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListDatasetImportJobsCommand.ts b/clients/client-personalize/commands/ListDatasetImportJobsCommand.ts index 9e76fe4406e6c..f44c218273a18 100644 --- a/clients/client-personalize/commands/ListDatasetImportJobsCommand.ts +++ b/clients/client-personalize/commands/ListDatasetImportJobsCommand.ts @@ -32,6 +32,7 @@ export class ListDatasetImportJobsCommand extends $Command< ListDatasetImportJobsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListDatasetImportJobsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListDatasetsCommand.ts b/clients/client-personalize/commands/ListDatasetsCommand.ts index 88189b58af606..83e873d48402a 100644 --- a/clients/client-personalize/commands/ListDatasetsCommand.ts +++ b/clients/client-personalize/commands/ListDatasetsCommand.ts @@ -30,6 +30,7 @@ export class ListDatasetsCommand extends $Command< ListDatasetsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDatasetsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListEventTrackersCommand.ts b/clients/client-personalize/commands/ListEventTrackersCommand.ts index e4371314743b3..a8294a3a7ce30 100644 --- a/clients/client-personalize/commands/ListEventTrackersCommand.ts +++ b/clients/client-personalize/commands/ListEventTrackersCommand.ts @@ -31,6 +31,7 @@ export class ListEventTrackersCommand extends $Command< ListEventTrackersCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListEventTrackersCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListFiltersCommand.ts b/clients/client-personalize/commands/ListFiltersCommand.ts index f3f862ef83683..c0c5fd9108d9c 100644 --- a/clients/client-personalize/commands/ListFiltersCommand.ts +++ b/clients/client-personalize/commands/ListFiltersCommand.ts @@ -28,6 +28,7 @@ export class ListFiltersCommand extends $Command< ListFiltersCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFiltersCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListRecipesCommand.ts b/clients/client-personalize/commands/ListRecipesCommand.ts index 2ef129f89209c..753c17b7d2c5b 100644 --- a/clients/client-personalize/commands/ListRecipesCommand.ts +++ b/clients/client-personalize/commands/ListRecipesCommand.ts @@ -29,6 +29,7 @@ export class ListRecipesCommand extends $Command< ListRecipesCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRecipesCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListSchemasCommand.ts b/clients/client-personalize/commands/ListSchemasCommand.ts index d6846405cf777..5de2f1397aa15 100644 --- a/clients/client-personalize/commands/ListSchemasCommand.ts +++ b/clients/client-personalize/commands/ListSchemasCommand.ts @@ -30,6 +30,7 @@ export class ListSchemasCommand extends $Command< ListSchemasCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListSchemasCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListSolutionVersionsCommand.ts b/clients/client-personalize/commands/ListSolutionVersionsCommand.ts index b5c48f2580058..1c2d47710498b 100644 --- a/clients/client-personalize/commands/ListSolutionVersionsCommand.ts +++ b/clients/client-personalize/commands/ListSolutionVersionsCommand.ts @@ -31,6 +31,7 @@ export class ListSolutionVersionsCommand extends $Command< ListSolutionVersionsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListSolutionVersionsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/ListSolutionsCommand.ts b/clients/client-personalize/commands/ListSolutionsCommand.ts index 5acbdb2636ae2..294ceea4d0a5a 100644 --- a/clients/client-personalize/commands/ListSolutionsCommand.ts +++ b/clients/client-personalize/commands/ListSolutionsCommand.ts @@ -31,6 +31,7 @@ export class ListSolutionsCommand extends $Command< ListSolutionsCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListSolutionsCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-personalize/commands/UpdateCampaignCommand.ts b/clients/client-personalize/commands/UpdateCampaignCommand.ts index 10602b3a39435..7e104b5298dbf 100644 --- a/clients/client-personalize/commands/UpdateCampaignCommand.ts +++ b/clients/client-personalize/commands/UpdateCampaignCommand.ts @@ -36,6 +36,7 @@ export class UpdateCampaignCommand extends $Command< UpdateCampaignCommandOutput, PersonalizeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateCampaignCommand extends $Command< configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pi/commands/DescribeDimensionKeysCommand.ts b/clients/client-pi/commands/DescribeDimensionKeysCommand.ts index 2d3247bdd02db..99c86219f3fc2 100644 --- a/clients/client-pi/commands/DescribeDimensionKeysCommand.ts +++ b/clients/client-pi/commands/DescribeDimensionKeysCommand.ts @@ -29,6 +29,7 @@ export class DescribeDimensionKeysCommand extends $Command< DescribeDimensionKeysCommandOutput, PIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDimensionKeysCommand extends $Command< configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pi/commands/GetResourceMetricsCommand.ts b/clients/client-pi/commands/GetResourceMetricsCommand.ts index fe0985910a760..3a9c8c403efae 100644 --- a/clients/client-pi/commands/GetResourceMetricsCommand.ts +++ b/clients/client-pi/commands/GetResourceMetricsCommand.ts @@ -30,6 +30,7 @@ export class GetResourceMetricsCommand extends $Command< GetResourceMetricsCommandOutput, PIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetResourceMetricsCommand extends $Command< configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/CreateConfigurationSetCommand.ts b/clients/client-pinpoint-email/commands/CreateConfigurationSetCommand.ts index c83dde49d8fd1..5ceadd948ce3f 100644 --- a/clients/client-pinpoint-email/commands/CreateConfigurationSetCommand.ts +++ b/clients/client-pinpoint-email/commands/CreateConfigurationSetCommand.ts @@ -32,6 +32,7 @@ export class CreateConfigurationSetCommand extends $Command< CreateConfigurationSetCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateConfigurationSetCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/CreateConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-email/commands/CreateConfigurationSetEventDestinationCommand.ts index f8aa4d4c77a6f..161d79fae5062 100644 --- a/clients/client-pinpoint-email/commands/CreateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-email/commands/CreateConfigurationSetEventDestinationCommand.ts @@ -38,6 +38,7 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< CreateConfigurationSetEventDestinationCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/CreateDedicatedIpPoolCommand.ts b/clients/client-pinpoint-email/commands/CreateDedicatedIpPoolCommand.ts index 73c6cb81e6598..3bb009fcaf2bd 100644 --- a/clients/client-pinpoint-email/commands/CreateDedicatedIpPoolCommand.ts +++ b/clients/client-pinpoint-email/commands/CreateDedicatedIpPoolCommand.ts @@ -31,6 +31,7 @@ export class CreateDedicatedIpPoolCommand extends $Command< CreateDedicatedIpPoolCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDedicatedIpPoolCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/CreateDeliverabilityTestReportCommand.ts b/clients/client-pinpoint-email/commands/CreateDeliverabilityTestReportCommand.ts index 0744bd7bb7cf0..b820380a9f0bf 100644 --- a/clients/client-pinpoint-email/commands/CreateDeliverabilityTestReportCommand.ts +++ b/clients/client-pinpoint-email/commands/CreateDeliverabilityTestReportCommand.ts @@ -34,6 +34,7 @@ export class CreateDeliverabilityTestReportCommand extends $Command< CreateDeliverabilityTestReportCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDeliverabilityTestReportCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/CreateEmailIdentityCommand.ts b/clients/client-pinpoint-email/commands/CreateEmailIdentityCommand.ts index f2b3969f6beb4..4d8db3f096e82 100644 --- a/clients/client-pinpoint-email/commands/CreateEmailIdentityCommand.ts +++ b/clients/client-pinpoint-email/commands/CreateEmailIdentityCommand.ts @@ -41,6 +41,7 @@ export class CreateEmailIdentityCommand extends $Command< CreateEmailIdentityCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateEmailIdentityCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/DeleteConfigurationSetCommand.ts b/clients/client-pinpoint-email/commands/DeleteConfigurationSetCommand.ts index 293498a26f1ef..6aad3b9596b30 100644 --- a/clients/client-pinpoint-email/commands/DeleteConfigurationSetCommand.ts +++ b/clients/client-pinpoint-email/commands/DeleteConfigurationSetCommand.ts @@ -33,6 +33,7 @@ export class DeleteConfigurationSetCommand extends $Command< DeleteConfigurationSetCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteConfigurationSetCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/DeleteConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-email/commands/DeleteConfigurationSetEventDestinationCommand.ts index 3f2007a0a9d1a..4e63c47ed4aa0 100644 --- a/clients/client-pinpoint-email/commands/DeleteConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-email/commands/DeleteConfigurationSetEventDestinationCommand.ts @@ -37,6 +37,7 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< DeleteConfigurationSetEventDestinationCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/DeleteDedicatedIpPoolCommand.ts b/clients/client-pinpoint-email/commands/DeleteDedicatedIpPoolCommand.ts index b596e4870a070..6c61abc30b22e 100644 --- a/clients/client-pinpoint-email/commands/DeleteDedicatedIpPoolCommand.ts +++ b/clients/client-pinpoint-email/commands/DeleteDedicatedIpPoolCommand.ts @@ -28,6 +28,7 @@ export class DeleteDedicatedIpPoolCommand extends $Command< DeleteDedicatedIpPoolCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDedicatedIpPoolCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/DeleteEmailIdentityCommand.ts b/clients/client-pinpoint-email/commands/DeleteEmailIdentityCommand.ts index bb6aef26861b5..d6c306024504c 100644 --- a/clients/client-pinpoint-email/commands/DeleteEmailIdentityCommand.ts +++ b/clients/client-pinpoint-email/commands/DeleteEmailIdentityCommand.ts @@ -29,6 +29,7 @@ export class DeleteEmailIdentityCommand extends $Command< DeleteEmailIdentityCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteEmailIdentityCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetAccountCommand.ts b/clients/client-pinpoint-email/commands/GetAccountCommand.ts index 25db85ce5b405..d28ec8fda5ba3 100644 --- a/clients/client-pinpoint-email/commands/GetAccountCommand.ts +++ b/clients/client-pinpoint-email/commands/GetAccountCommand.ts @@ -29,6 +29,7 @@ export class GetAccountCommand extends $Command< GetAccountCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccountCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetBlacklistReportsCommand.ts b/clients/client-pinpoint-email/commands/GetBlacklistReportsCommand.ts index d45ac31691ad9..ab5ce011b8477 100644 --- a/clients/client-pinpoint-email/commands/GetBlacklistReportsCommand.ts +++ b/clients/client-pinpoint-email/commands/GetBlacklistReportsCommand.ts @@ -28,6 +28,7 @@ export class GetBlacklistReportsCommand extends $Command< GetBlacklistReportsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBlacklistReportsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetConfigurationSetCommand.ts b/clients/client-pinpoint-email/commands/GetConfigurationSetCommand.ts index 2fc63d4b7bcd9..7fd967480feb2 100644 --- a/clients/client-pinpoint-email/commands/GetConfigurationSetCommand.ts +++ b/clients/client-pinpoint-email/commands/GetConfigurationSetCommand.ts @@ -35,6 +35,7 @@ export class GetConfigurationSetCommand extends $Command< GetConfigurationSetCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetConfigurationSetCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetConfigurationSetEventDestinationsCommand.ts b/clients/client-pinpoint-email/commands/GetConfigurationSetEventDestinationsCommand.ts index ec4c60960b09d..fcb2a5ac69334 100644 --- a/clients/client-pinpoint-email/commands/GetConfigurationSetEventDestinationsCommand.ts +++ b/clients/client-pinpoint-email/commands/GetConfigurationSetEventDestinationsCommand.ts @@ -38,6 +38,7 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< GetConfigurationSetEventDestinationsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDedicatedIpCommand.ts b/clients/client-pinpoint-email/commands/GetDedicatedIpCommand.ts index d997ea161f6c2..04cbfbee74d2f 100644 --- a/clients/client-pinpoint-email/commands/GetDedicatedIpCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDedicatedIpCommand.ts @@ -30,6 +30,7 @@ export class GetDedicatedIpCommand extends $Command< GetDedicatedIpCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDedicatedIpCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDedicatedIpsCommand.ts b/clients/client-pinpoint-email/commands/GetDedicatedIpsCommand.ts index 247440f91339a..26e5f3652fec9 100644 --- a/clients/client-pinpoint-email/commands/GetDedicatedIpsCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDedicatedIpsCommand.ts @@ -29,6 +29,7 @@ export class GetDedicatedIpsCommand extends $Command< GetDedicatedIpsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDedicatedIpsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDeliverabilityDashboardOptionsCommand.ts b/clients/client-pinpoint-email/commands/GetDeliverabilityDashboardOptionsCommand.ts index 61a06fe8cc986..b1794496f2cf5 100644 --- a/clients/client-pinpoint-email/commands/GetDeliverabilityDashboardOptionsCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDeliverabilityDashboardOptionsCommand.ts @@ -38,6 +38,7 @@ export class GetDeliverabilityDashboardOptionsCommand extends $Command< GetDeliverabilityDashboardOptionsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetDeliverabilityDashboardOptionsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDeliverabilityTestReportCommand.ts b/clients/client-pinpoint-email/commands/GetDeliverabilityTestReportCommand.ts index c597e03cd8af6..c615204af35b6 100644 --- a/clients/client-pinpoint-email/commands/GetDeliverabilityTestReportCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDeliverabilityTestReportCommand.ts @@ -28,6 +28,7 @@ export class GetDeliverabilityTestReportCommand extends $Command< GetDeliverabilityTestReportCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeliverabilityTestReportCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDomainDeliverabilityCampaignCommand.ts b/clients/client-pinpoint-email/commands/GetDomainDeliverabilityCampaignCommand.ts index 06d85045c4fa4..42c87548b51bb 100644 --- a/clients/client-pinpoint-email/commands/GetDomainDeliverabilityCampaignCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDomainDeliverabilityCampaignCommand.ts @@ -31,6 +31,7 @@ export class GetDomainDeliverabilityCampaignCommand extends $Command< GetDomainDeliverabilityCampaignCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetDomainDeliverabilityCampaignCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetDomainStatisticsReportCommand.ts b/clients/client-pinpoint-email/commands/GetDomainStatisticsReportCommand.ts index 3ba35e6d06165..119aca9ca00da 100644 --- a/clients/client-pinpoint-email/commands/GetDomainStatisticsReportCommand.ts +++ b/clients/client-pinpoint-email/commands/GetDomainStatisticsReportCommand.ts @@ -29,6 +29,7 @@ export class GetDomainStatisticsReportCommand extends $Command< GetDomainStatisticsReportCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDomainStatisticsReportCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/GetEmailIdentityCommand.ts b/clients/client-pinpoint-email/commands/GetEmailIdentityCommand.ts index fd08eb827be7e..7f8c5eb371590 100644 --- a/clients/client-pinpoint-email/commands/GetEmailIdentityCommand.ts +++ b/clients/client-pinpoint-email/commands/GetEmailIdentityCommand.ts @@ -30,6 +30,7 @@ export class GetEmailIdentityCommand extends $Command< GetEmailIdentityCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEmailIdentityCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListConfigurationSetsCommand.ts b/clients/client-pinpoint-email/commands/ListConfigurationSetsCommand.ts index ae1adc58fdad8..7a3e11725b6b6 100644 --- a/clients/client-pinpoint-email/commands/ListConfigurationSetsCommand.ts +++ b/clients/client-pinpoint-email/commands/ListConfigurationSetsCommand.ts @@ -34,6 +34,7 @@ export class ListConfigurationSetsCommand extends $Command< ListConfigurationSetsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListConfigurationSetsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListDedicatedIpPoolsCommand.ts b/clients/client-pinpoint-email/commands/ListDedicatedIpPoolsCommand.ts index edb1df5a10de6..eeb739427fb3d 100644 --- a/clients/client-pinpoint-email/commands/ListDedicatedIpPoolsCommand.ts +++ b/clients/client-pinpoint-email/commands/ListDedicatedIpPoolsCommand.ts @@ -29,6 +29,7 @@ export class ListDedicatedIpPoolsCommand extends $Command< ListDedicatedIpPoolsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDedicatedIpPoolsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListDeliverabilityTestReportsCommand.ts b/clients/client-pinpoint-email/commands/ListDeliverabilityTestReportsCommand.ts index e7771333b3f5a..1b9c03294ee7c 100644 --- a/clients/client-pinpoint-email/commands/ListDeliverabilityTestReportsCommand.ts +++ b/clients/client-pinpoint-email/commands/ListDeliverabilityTestReportsCommand.ts @@ -30,6 +30,7 @@ export class ListDeliverabilityTestReportsCommand extends $Command< ListDeliverabilityTestReportsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDeliverabilityTestReportsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListDomainDeliverabilityCampaignsCommand.ts b/clients/client-pinpoint-email/commands/ListDomainDeliverabilityCampaignsCommand.ts index d775d7b7a47f8..599600ce19aac 100644 --- a/clients/client-pinpoint-email/commands/ListDomainDeliverabilityCampaignsCommand.ts +++ b/clients/client-pinpoint-email/commands/ListDomainDeliverabilityCampaignsCommand.ts @@ -35,6 +35,7 @@ export class ListDomainDeliverabilityCampaignsCommand extends $Command< ListDomainDeliverabilityCampaignsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListDomainDeliverabilityCampaignsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListEmailIdentitiesCommand.ts b/clients/client-pinpoint-email/commands/ListEmailIdentitiesCommand.ts index 928965ae6da2d..aaa474f019cfe 100644 --- a/clients/client-pinpoint-email/commands/ListEmailIdentitiesCommand.ts +++ b/clients/client-pinpoint-email/commands/ListEmailIdentitiesCommand.ts @@ -30,6 +30,7 @@ export class ListEmailIdentitiesCommand extends $Command< ListEmailIdentitiesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListEmailIdentitiesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/ListTagsForResourceCommand.ts b/clients/client-pinpoint-email/commands/ListTagsForResourceCommand.ts index be256fb975863..4b1faf3ea8513 100644 --- a/clients/client-pinpoint-email/commands/ListTagsForResourceCommand.ts +++ b/clients/client-pinpoint-email/commands/ListTagsForResourceCommand.ts @@ -33,6 +33,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts index 29506f2df976e..29fea8f661c4b 100644 --- a/clients/client-pinpoint-email/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts @@ -32,6 +32,7 @@ export class PutAccountDedicatedIpWarmupAttributesCommand extends $Command< PutAccountDedicatedIpWarmupAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutAccountDedicatedIpWarmupAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutAccountSendingAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutAccountSendingAttributesCommand.ts index c6a74ecb29432..d9de26adba014 100644 --- a/clients/client-pinpoint-email/commands/PutAccountSendingAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutAccountSendingAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutAccountSendingAttributesCommand extends $Command< PutAccountSendingAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAccountSendingAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutConfigurationSetDeliveryOptionsCommand.ts b/clients/client-pinpoint-email/commands/PutConfigurationSetDeliveryOptionsCommand.ts index 7466bc68d8e03..48db216e971c7 100644 --- a/clients/client-pinpoint-email/commands/PutConfigurationSetDeliveryOptionsCommand.ts +++ b/clients/client-pinpoint-email/commands/PutConfigurationSetDeliveryOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< PutConfigurationSetDeliveryOptionsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutConfigurationSetReputationOptionsCommand.ts b/clients/client-pinpoint-email/commands/PutConfigurationSetReputationOptionsCommand.ts index a9f3e1c01f76f..20e96fd62f84f 100644 --- a/clients/client-pinpoint-email/commands/PutConfigurationSetReputationOptionsCommand.ts +++ b/clients/client-pinpoint-email/commands/PutConfigurationSetReputationOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetReputationOptionsCommand extends $Command< PutConfigurationSetReputationOptionsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetReputationOptionsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutConfigurationSetSendingOptionsCommand.ts b/clients/client-pinpoint-email/commands/PutConfigurationSetSendingOptionsCommand.ts index 111eea6e4ad36..b522ba3432dda 100644 --- a/clients/client-pinpoint-email/commands/PutConfigurationSetSendingOptionsCommand.ts +++ b/clients/client-pinpoint-email/commands/PutConfigurationSetSendingOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetSendingOptionsCommand extends $Command< PutConfigurationSetSendingOptionsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetSendingOptionsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutConfigurationSetTrackingOptionsCommand.ts b/clients/client-pinpoint-email/commands/PutConfigurationSetTrackingOptionsCommand.ts index 659d7d447b9e7..6e26ff6d0b77c 100644 --- a/clients/client-pinpoint-email/commands/PutConfigurationSetTrackingOptionsCommand.ts +++ b/clients/client-pinpoint-email/commands/PutConfigurationSetTrackingOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetTrackingOptionsCommand extends $Command< PutConfigurationSetTrackingOptionsCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetTrackingOptionsCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutDedicatedIpInPoolCommand.ts b/clients/client-pinpoint-email/commands/PutDedicatedIpInPoolCommand.ts index 8415bdbd2601b..e1856f44ae689 100644 --- a/clients/client-pinpoint-email/commands/PutDedicatedIpInPoolCommand.ts +++ b/clients/client-pinpoint-email/commands/PutDedicatedIpInPoolCommand.ts @@ -37,6 +37,7 @@ export class PutDedicatedIpInPoolCommand extends $Command< PutDedicatedIpInPoolCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutDedicatedIpInPoolCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutDedicatedIpWarmupAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutDedicatedIpWarmupAttributesCommand.ts index 909f949c3b185..6c5125e6e935f 100644 --- a/clients/client-pinpoint-email/commands/PutDedicatedIpWarmupAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutDedicatedIpWarmupAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutDedicatedIpWarmupAttributesCommand extends $Command< PutDedicatedIpWarmupAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutDedicatedIpWarmupAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutDeliverabilityDashboardOptionCommand.ts b/clients/client-pinpoint-email/commands/PutDeliverabilityDashboardOptionCommand.ts index e810e7d80bd72..5b2fe482c6257 100644 --- a/clients/client-pinpoint-email/commands/PutDeliverabilityDashboardOptionCommand.ts +++ b/clients/client-pinpoint-email/commands/PutDeliverabilityDashboardOptionCommand.ts @@ -34,6 +34,7 @@ export class PutDeliverabilityDashboardOptionCommand extends $Command< PutDeliverabilityDashboardOptionCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutDeliverabilityDashboardOptionCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutEmailIdentityDkimAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutEmailIdentityDkimAttributesCommand.ts index 5f0e8c05bf327..f204f947027bd 100644 --- a/clients/client-pinpoint-email/commands/PutEmailIdentityDkimAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutEmailIdentityDkimAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutEmailIdentityDkimAttributesCommand extends $Command< PutEmailIdentityDkimAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEmailIdentityDkimAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutEmailIdentityFeedbackAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutEmailIdentityFeedbackAttributesCommand.ts index 390f8e7db69a2..d5b4d109293af 100644 --- a/clients/client-pinpoint-email/commands/PutEmailIdentityFeedbackAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutEmailIdentityFeedbackAttributesCommand.ts @@ -42,6 +42,7 @@ export class PutEmailIdentityFeedbackAttributesCommand extends $Command< PutEmailIdentityFeedbackAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class PutEmailIdentityFeedbackAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/PutEmailIdentityMailFromAttributesCommand.ts b/clients/client-pinpoint-email/commands/PutEmailIdentityMailFromAttributesCommand.ts index bb9f31319410e..b8fcc39111b57 100644 --- a/clients/client-pinpoint-email/commands/PutEmailIdentityMailFromAttributesCommand.ts +++ b/clients/client-pinpoint-email/commands/PutEmailIdentityMailFromAttributesCommand.ts @@ -33,6 +33,7 @@ export class PutEmailIdentityMailFromAttributesCommand extends $Command< PutEmailIdentityMailFromAttributesCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutEmailIdentityMailFromAttributesCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/SendEmailCommand.ts b/clients/client-pinpoint-email/commands/SendEmailCommand.ts index 7b178668245eb..b565d5873dd8a 100644 --- a/clients/client-pinpoint-email/commands/SendEmailCommand.ts +++ b/clients/client-pinpoint-email/commands/SendEmailCommand.ts @@ -45,6 +45,7 @@ export class SendEmailCommand extends $Command< SendEmailCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class SendEmailCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/TagResourceCommand.ts b/clients/client-pinpoint-email/commands/TagResourceCommand.ts index e212e4e42426f..f09186ce1e565 100644 --- a/clients/client-pinpoint-email/commands/TagResourceCommand.ts +++ b/clients/client-pinpoint-email/commands/TagResourceCommand.ts @@ -36,6 +36,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class TagResourceCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/UntagResourceCommand.ts b/clients/client-pinpoint-email/commands/UntagResourceCommand.ts index e14e22376ff2b..c4c657a0049a7 100644 --- a/clients/client-pinpoint-email/commands/UntagResourceCommand.ts +++ b/clients/client-pinpoint-email/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-email/commands/UpdateConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-email/commands/UpdateConfigurationSetEventDestinationCommand.ts index 8b5141548c2e6..77a5f61d60ffe 100644 --- a/clients/client-pinpoint-email/commands/UpdateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-email/commands/UpdateConfigurationSetEventDestinationCommand.ts @@ -37,6 +37,7 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< UpdateConfigurationSetEventDestinationCommandOutput, PinpointEmailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointEmailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetCommand.ts b/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetCommand.ts index 023533b52a173..e6ef60a684a76 100644 --- a/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetCommand.ts @@ -28,6 +28,7 @@ export class CreateConfigurationSetCommand extends $Command< CreateConfigurationSetCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateConfigurationSetCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetEventDestinationCommand.ts index a347ae41c8711..b89ee49d4697c 100644 --- a/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/CreateConfigurationSetEventDestinationCommand.ts @@ -32,6 +32,7 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< CreateConfigurationSetEventDestinationCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetCommand.ts b/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetCommand.ts index e8fd4b8ccab96..da233f69adb6f 100644 --- a/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetCommand.ts @@ -28,6 +28,7 @@ export class DeleteConfigurationSetCommand extends $Command< DeleteConfigurationSetCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteConfigurationSetCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetEventDestinationCommand.ts index 3a079a36e985f..362270d5ea61f 100644 --- a/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/DeleteConfigurationSetEventDestinationCommand.ts @@ -32,6 +32,7 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< DeleteConfigurationSetEventDestinationCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/GetConfigurationSetEventDestinationsCommand.ts b/clients/client-pinpoint-sms-voice/commands/GetConfigurationSetEventDestinationsCommand.ts index df11f17415981..9e98b39c20dfc 100644 --- a/clients/client-pinpoint-sms-voice/commands/GetConfigurationSetEventDestinationsCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/GetConfigurationSetEventDestinationsCommand.ts @@ -32,6 +32,7 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< GetConfigurationSetEventDestinationsCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/ListConfigurationSetsCommand.ts b/clients/client-pinpoint-sms-voice/commands/ListConfigurationSetsCommand.ts index 22d38fb73c6ce..1ac5688925634 100644 --- a/clients/client-pinpoint-sms-voice/commands/ListConfigurationSetsCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/ListConfigurationSetsCommand.ts @@ -28,6 +28,7 @@ export class ListConfigurationSetsCommand extends $Command< ListConfigurationSetsCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConfigurationSetsCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/SendVoiceMessageCommand.ts b/clients/client-pinpoint-sms-voice/commands/SendVoiceMessageCommand.ts index de4418f7cb446..5b0e5a8c5a18f 100644 --- a/clients/client-pinpoint-sms-voice/commands/SendVoiceMessageCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/SendVoiceMessageCommand.ts @@ -28,6 +28,7 @@ export class SendVoiceMessageCommand extends $Command< SendVoiceMessageCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendVoiceMessageCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint-sms-voice/commands/UpdateConfigurationSetEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice/commands/UpdateConfigurationSetEventDestinationCommand.ts index eeb58b35b0baf..079725c14aafe 100644 --- a/clients/client-pinpoint-sms-voice/commands/UpdateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice/commands/UpdateConfigurationSetEventDestinationCommand.ts @@ -32,6 +32,7 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< UpdateConfigurationSetEventDestinationCommandOutput, PinpointSMSVoiceClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< configuration: PinpointSMSVoiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateAppCommand.ts b/clients/client-pinpoint/commands/CreateAppCommand.ts index dc00bf5cf6c61..19d238db1b78f 100644 --- a/clients/client-pinpoint/commands/CreateAppCommand.ts +++ b/clients/client-pinpoint/commands/CreateAppCommand.ts @@ -28,6 +28,7 @@ export class CreateAppCommand extends $Command< CreateAppCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAppCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateCampaignCommand.ts b/clients/client-pinpoint/commands/CreateCampaignCommand.ts index c7d4059b41a31..3fc79de0b7ff0 100644 --- a/clients/client-pinpoint/commands/CreateCampaignCommand.ts +++ b/clients/client-pinpoint/commands/CreateCampaignCommand.ts @@ -28,6 +28,7 @@ export class CreateCampaignCommand extends $Command< CreateCampaignCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCampaignCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateEmailTemplateCommand.ts b/clients/client-pinpoint/commands/CreateEmailTemplateCommand.ts index ffea1f6700d2a..74785e48788a9 100644 --- a/clients/client-pinpoint/commands/CreateEmailTemplateCommand.ts +++ b/clients/client-pinpoint/commands/CreateEmailTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateEmailTemplateCommand extends $Command< CreateEmailTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateEmailTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateExportJobCommand.ts b/clients/client-pinpoint/commands/CreateExportJobCommand.ts index 274d68e57f467..84a86d5e5dea7 100644 --- a/clients/client-pinpoint/commands/CreateExportJobCommand.ts +++ b/clients/client-pinpoint/commands/CreateExportJobCommand.ts @@ -28,6 +28,7 @@ export class CreateExportJobCommand extends $Command< CreateExportJobCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateExportJobCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateImportJobCommand.ts b/clients/client-pinpoint/commands/CreateImportJobCommand.ts index 1ba6223875449..3949e27d81349 100644 --- a/clients/client-pinpoint/commands/CreateImportJobCommand.ts +++ b/clients/client-pinpoint/commands/CreateImportJobCommand.ts @@ -28,6 +28,7 @@ export class CreateImportJobCommand extends $Command< CreateImportJobCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImportJobCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateJourneyCommand.ts b/clients/client-pinpoint/commands/CreateJourneyCommand.ts index cf1072462acae..b9cab7d9fb292 100644 --- a/clients/client-pinpoint/commands/CreateJourneyCommand.ts +++ b/clients/client-pinpoint/commands/CreateJourneyCommand.ts @@ -28,6 +28,7 @@ export class CreateJourneyCommand extends $Command< CreateJourneyCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateJourneyCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreatePushTemplateCommand.ts b/clients/client-pinpoint/commands/CreatePushTemplateCommand.ts index eb53a2e57a1ed..17095330dfb5e 100644 --- a/clients/client-pinpoint/commands/CreatePushTemplateCommand.ts +++ b/clients/client-pinpoint/commands/CreatePushTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreatePushTemplateCommand extends $Command< CreatePushTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePushTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateRecommenderConfigurationCommand.ts b/clients/client-pinpoint/commands/CreateRecommenderConfigurationCommand.ts index 75f8b37064f97..de60ca8cfdda1 100644 --- a/clients/client-pinpoint/commands/CreateRecommenderConfigurationCommand.ts +++ b/clients/client-pinpoint/commands/CreateRecommenderConfigurationCommand.ts @@ -28,6 +28,7 @@ export class CreateRecommenderConfigurationCommand extends $Command< CreateRecommenderConfigurationCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRecommenderConfigurationCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateSegmentCommand.ts b/clients/client-pinpoint/commands/CreateSegmentCommand.ts index d854ebddba04f..37c0ca3c83005 100644 --- a/clients/client-pinpoint/commands/CreateSegmentCommand.ts +++ b/clients/client-pinpoint/commands/CreateSegmentCommand.ts @@ -28,6 +28,7 @@ export class CreateSegmentCommand extends $Command< CreateSegmentCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSegmentCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateSmsTemplateCommand.ts b/clients/client-pinpoint/commands/CreateSmsTemplateCommand.ts index 2125a813435a3..9dd14933e0b13 100644 --- a/clients/client-pinpoint/commands/CreateSmsTemplateCommand.ts +++ b/clients/client-pinpoint/commands/CreateSmsTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateSmsTemplateCommand extends $Command< CreateSmsTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSmsTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/CreateVoiceTemplateCommand.ts b/clients/client-pinpoint/commands/CreateVoiceTemplateCommand.ts index 29015f6f7c7b6..76eed2590adba 100644 --- a/clients/client-pinpoint/commands/CreateVoiceTemplateCommand.ts +++ b/clients/client-pinpoint/commands/CreateVoiceTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateVoiceTemplateCommand extends $Command< CreateVoiceTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateVoiceTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteAdmChannelCommand.ts b/clients/client-pinpoint/commands/DeleteAdmChannelCommand.ts index 10bcb1c78a5b8..2cfe281faf028 100644 --- a/clients/client-pinpoint/commands/DeleteAdmChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteAdmChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteAdmChannelCommand extends $Command< DeleteAdmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAdmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteApnsChannelCommand.ts b/clients/client-pinpoint/commands/DeleteApnsChannelCommand.ts index 54cb7a2e1aea4..bef1107892847 100644 --- a/clients/client-pinpoint/commands/DeleteApnsChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteApnsChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteApnsChannelCommand extends $Command< DeleteApnsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApnsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteApnsSandboxChannelCommand.ts b/clients/client-pinpoint/commands/DeleteApnsSandboxChannelCommand.ts index 997e99db1d181..a540a7a6fe714 100644 --- a/clients/client-pinpoint/commands/DeleteApnsSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteApnsSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteApnsSandboxChannelCommand extends $Command< DeleteApnsSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApnsSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteApnsVoipChannelCommand.ts b/clients/client-pinpoint/commands/DeleteApnsVoipChannelCommand.ts index ea27d094ec5e1..740ea71446125 100644 --- a/clients/client-pinpoint/commands/DeleteApnsVoipChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteApnsVoipChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteApnsVoipChannelCommand extends $Command< DeleteApnsVoipChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApnsVoipChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteApnsVoipSandboxChannelCommand.ts b/clients/client-pinpoint/commands/DeleteApnsVoipSandboxChannelCommand.ts index 34fa40bd7e1a2..d6755f562ef06 100644 --- a/clients/client-pinpoint/commands/DeleteApnsVoipSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteApnsVoipSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteApnsVoipSandboxChannelCommand extends $Command< DeleteApnsVoipSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteApnsVoipSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteAppCommand.ts b/clients/client-pinpoint/commands/DeleteAppCommand.ts index b23137238f077..10dc75e30c4e8 100644 --- a/clients/client-pinpoint/commands/DeleteAppCommand.ts +++ b/clients/client-pinpoint/commands/DeleteAppCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppCommand extends $Command< DeleteAppCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteBaiduChannelCommand.ts b/clients/client-pinpoint/commands/DeleteBaiduChannelCommand.ts index ee0bbf3b6bd5b..58d5834b6ce07 100644 --- a/clients/client-pinpoint/commands/DeleteBaiduChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteBaiduChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteBaiduChannelCommand extends $Command< DeleteBaiduChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteBaiduChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteCampaignCommand.ts b/clients/client-pinpoint/commands/DeleteCampaignCommand.ts index 7b4af254c12ad..5b55d7a30f059 100644 --- a/clients/client-pinpoint/commands/DeleteCampaignCommand.ts +++ b/clients/client-pinpoint/commands/DeleteCampaignCommand.ts @@ -28,6 +28,7 @@ export class DeleteCampaignCommand extends $Command< DeleteCampaignCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCampaignCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteEmailChannelCommand.ts b/clients/client-pinpoint/commands/DeleteEmailChannelCommand.ts index 7ea99cde8a6fd..15d0fe187c522 100644 --- a/clients/client-pinpoint/commands/DeleteEmailChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteEmailChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteEmailChannelCommand extends $Command< DeleteEmailChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEmailChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteEmailTemplateCommand.ts b/clients/client-pinpoint/commands/DeleteEmailTemplateCommand.ts index 480fd9a3648d5..e2ec76a95e7c3 100644 --- a/clients/client-pinpoint/commands/DeleteEmailTemplateCommand.ts +++ b/clients/client-pinpoint/commands/DeleteEmailTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteEmailTemplateCommand extends $Command< DeleteEmailTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEmailTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteEndpointCommand.ts b/clients/client-pinpoint/commands/DeleteEndpointCommand.ts index 2ff72fc81e6c6..0fc4088aae775 100644 --- a/clients/client-pinpoint/commands/DeleteEndpointCommand.ts +++ b/clients/client-pinpoint/commands/DeleteEndpointCommand.ts @@ -28,6 +28,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEndpointCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteEventStreamCommand.ts b/clients/client-pinpoint/commands/DeleteEventStreamCommand.ts index a67386b0781c8..27f2c181dc4b8 100644 --- a/clients/client-pinpoint/commands/DeleteEventStreamCommand.ts +++ b/clients/client-pinpoint/commands/DeleteEventStreamCommand.ts @@ -28,6 +28,7 @@ export class DeleteEventStreamCommand extends $Command< DeleteEventStreamCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEventStreamCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteGcmChannelCommand.ts b/clients/client-pinpoint/commands/DeleteGcmChannelCommand.ts index 4e0dc13733068..e0f1bce1beb4b 100644 --- a/clients/client-pinpoint/commands/DeleteGcmChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteGcmChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteGcmChannelCommand extends $Command< DeleteGcmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGcmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteJourneyCommand.ts b/clients/client-pinpoint/commands/DeleteJourneyCommand.ts index 1ebd45b27e867..5854a8eff5674 100644 --- a/clients/client-pinpoint/commands/DeleteJourneyCommand.ts +++ b/clients/client-pinpoint/commands/DeleteJourneyCommand.ts @@ -28,6 +28,7 @@ export class DeleteJourneyCommand extends $Command< DeleteJourneyCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteJourneyCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeletePushTemplateCommand.ts b/clients/client-pinpoint/commands/DeletePushTemplateCommand.ts index 58a6db7075244..d24fd5ad8cd78 100644 --- a/clients/client-pinpoint/commands/DeletePushTemplateCommand.ts +++ b/clients/client-pinpoint/commands/DeletePushTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeletePushTemplateCommand extends $Command< DeletePushTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePushTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteRecommenderConfigurationCommand.ts b/clients/client-pinpoint/commands/DeleteRecommenderConfigurationCommand.ts index f9993edb14bc7..4063144ce87f9 100644 --- a/clients/client-pinpoint/commands/DeleteRecommenderConfigurationCommand.ts +++ b/clients/client-pinpoint/commands/DeleteRecommenderConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteRecommenderConfigurationCommand extends $Command< DeleteRecommenderConfigurationCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRecommenderConfigurationCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteSegmentCommand.ts b/clients/client-pinpoint/commands/DeleteSegmentCommand.ts index 0ab5751b9756f..265bf03224f89 100644 --- a/clients/client-pinpoint/commands/DeleteSegmentCommand.ts +++ b/clients/client-pinpoint/commands/DeleteSegmentCommand.ts @@ -28,6 +28,7 @@ export class DeleteSegmentCommand extends $Command< DeleteSegmentCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSegmentCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteSmsChannelCommand.ts b/clients/client-pinpoint/commands/DeleteSmsChannelCommand.ts index 0465c2a876f56..b8f6b0d3b0357 100644 --- a/clients/client-pinpoint/commands/DeleteSmsChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteSmsChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteSmsChannelCommand extends $Command< DeleteSmsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSmsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteSmsTemplateCommand.ts b/clients/client-pinpoint/commands/DeleteSmsTemplateCommand.ts index 34a4e35cb539b..5675f58b7e7ab 100644 --- a/clients/client-pinpoint/commands/DeleteSmsTemplateCommand.ts +++ b/clients/client-pinpoint/commands/DeleteSmsTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteSmsTemplateCommand extends $Command< DeleteSmsTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSmsTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteUserEndpointsCommand.ts b/clients/client-pinpoint/commands/DeleteUserEndpointsCommand.ts index 323a86ee81825..a2725172521d9 100644 --- a/clients/client-pinpoint/commands/DeleteUserEndpointsCommand.ts +++ b/clients/client-pinpoint/commands/DeleteUserEndpointsCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserEndpointsCommand extends $Command< DeleteUserEndpointsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserEndpointsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteVoiceChannelCommand.ts b/clients/client-pinpoint/commands/DeleteVoiceChannelCommand.ts index 2bd775ef46653..0d61e749bb321 100644 --- a/clients/client-pinpoint/commands/DeleteVoiceChannelCommand.ts +++ b/clients/client-pinpoint/commands/DeleteVoiceChannelCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceChannelCommand extends $Command< DeleteVoiceChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVoiceChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/DeleteVoiceTemplateCommand.ts b/clients/client-pinpoint/commands/DeleteVoiceTemplateCommand.ts index 1271c4707d464..e07c229819d8d 100644 --- a/clients/client-pinpoint/commands/DeleteVoiceTemplateCommand.ts +++ b/clients/client-pinpoint/commands/DeleteVoiceTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteVoiceTemplateCommand extends $Command< DeleteVoiceTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVoiceTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetAdmChannelCommand.ts b/clients/client-pinpoint/commands/GetAdmChannelCommand.ts index 408a5ad24abbc..e983532e1a44e 100644 --- a/clients/client-pinpoint/commands/GetAdmChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetAdmChannelCommand.ts @@ -28,6 +28,7 @@ export class GetAdmChannelCommand extends $Command< GetAdmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAdmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetApnsChannelCommand.ts b/clients/client-pinpoint/commands/GetApnsChannelCommand.ts index 1bd75f74b82c5..ec7343bfc72d0 100644 --- a/clients/client-pinpoint/commands/GetApnsChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetApnsChannelCommand.ts @@ -28,6 +28,7 @@ export class GetApnsChannelCommand extends $Command< GetApnsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApnsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetApnsSandboxChannelCommand.ts b/clients/client-pinpoint/commands/GetApnsSandboxChannelCommand.ts index d4e1a147e41e0..7fbb6e9498eba 100644 --- a/clients/client-pinpoint/commands/GetApnsSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetApnsSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class GetApnsSandboxChannelCommand extends $Command< GetApnsSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApnsSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetApnsVoipChannelCommand.ts b/clients/client-pinpoint/commands/GetApnsVoipChannelCommand.ts index 0b7e3d0dd82d5..b7dd70cbc98c8 100644 --- a/clients/client-pinpoint/commands/GetApnsVoipChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetApnsVoipChannelCommand.ts @@ -28,6 +28,7 @@ export class GetApnsVoipChannelCommand extends $Command< GetApnsVoipChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApnsVoipChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetApnsVoipSandboxChannelCommand.ts b/clients/client-pinpoint/commands/GetApnsVoipSandboxChannelCommand.ts index f388039d7fbe1..b1ac037e50da7 100644 --- a/clients/client-pinpoint/commands/GetApnsVoipSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetApnsVoipSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class GetApnsVoipSandboxChannelCommand extends $Command< GetApnsVoipSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApnsVoipSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetAppCommand.ts b/clients/client-pinpoint/commands/GetAppCommand.ts index e066832906eb0..39ead1400e0cb 100644 --- a/clients/client-pinpoint/commands/GetAppCommand.ts +++ b/clients/client-pinpoint/commands/GetAppCommand.ts @@ -21,6 +21,7 @@ export type GetAppCommandOutput = GetAppResponse & __MetadataBearer; *

Retrieves information about an application.

*/ 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-pinpoint/commands/GetApplicationDateRangeKpiCommand.ts b/clients/client-pinpoint/commands/GetApplicationDateRangeKpiCommand.ts index bba2bd803d7da..938499d058faa 100644 --- a/clients/client-pinpoint/commands/GetApplicationDateRangeKpiCommand.ts +++ b/clients/client-pinpoint/commands/GetApplicationDateRangeKpiCommand.ts @@ -28,6 +28,7 @@ export class GetApplicationDateRangeKpiCommand extends $Command< GetApplicationDateRangeKpiCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApplicationDateRangeKpiCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetApplicationSettingsCommand.ts b/clients/client-pinpoint/commands/GetApplicationSettingsCommand.ts index 682373c0027ea..ae015465663b6 100644 --- a/clients/client-pinpoint/commands/GetApplicationSettingsCommand.ts +++ b/clients/client-pinpoint/commands/GetApplicationSettingsCommand.ts @@ -28,6 +28,7 @@ export class GetApplicationSettingsCommand extends $Command< GetApplicationSettingsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetApplicationSettingsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetAppsCommand.ts b/clients/client-pinpoint/commands/GetAppsCommand.ts index f14fb90b91356..95ed54e8b6aa1 100644 --- a/clients/client-pinpoint/commands/GetAppsCommand.ts +++ b/clients/client-pinpoint/commands/GetAppsCommand.ts @@ -24,6 +24,7 @@ export type GetAppsCommandOutput = GetAppsResponse & __MetadataBearer; *

Retrieves information about all the applications that are associated with your Amazon Pinpoint account.

*/ export class GetAppsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetAppsCommand 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-pinpoint/commands/GetBaiduChannelCommand.ts b/clients/client-pinpoint/commands/GetBaiduChannelCommand.ts index 772fbf7cc31bc..593586a4b295c 100644 --- a/clients/client-pinpoint/commands/GetBaiduChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetBaiduChannelCommand.ts @@ -28,6 +28,7 @@ export class GetBaiduChannelCommand extends $Command< GetBaiduChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBaiduChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignActivitiesCommand.ts b/clients/client-pinpoint/commands/GetCampaignActivitiesCommand.ts index de0e3d0f00f40..d89ac85a0a350 100644 --- a/clients/client-pinpoint/commands/GetCampaignActivitiesCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignActivitiesCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignActivitiesCommand extends $Command< GetCampaignActivitiesCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignActivitiesCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignCommand.ts b/clients/client-pinpoint/commands/GetCampaignCommand.ts index 2bb1b6a707202..be530c455bb37 100644 --- a/clients/client-pinpoint/commands/GetCampaignCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignCommand extends $Command< GetCampaignCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignDateRangeKpiCommand.ts b/clients/client-pinpoint/commands/GetCampaignDateRangeKpiCommand.ts index 202a2734be61d..339bbff972441 100644 --- a/clients/client-pinpoint/commands/GetCampaignDateRangeKpiCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignDateRangeKpiCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignDateRangeKpiCommand extends $Command< GetCampaignDateRangeKpiCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignDateRangeKpiCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignVersionCommand.ts b/clients/client-pinpoint/commands/GetCampaignVersionCommand.ts index f3ea9cf5ab5e7..feed39ba5866a 100644 --- a/clients/client-pinpoint/commands/GetCampaignVersionCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignVersionCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignVersionCommand extends $Command< GetCampaignVersionCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignVersionCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignVersionsCommand.ts b/clients/client-pinpoint/commands/GetCampaignVersionsCommand.ts index 636ad7f5999ba..2f2992382434c 100644 --- a/clients/client-pinpoint/commands/GetCampaignVersionsCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignVersionsCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignVersionsCommand extends $Command< GetCampaignVersionsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignVersionsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetCampaignsCommand.ts b/clients/client-pinpoint/commands/GetCampaignsCommand.ts index 2bea8c1eb7655..850832e6c90eb 100644 --- a/clients/client-pinpoint/commands/GetCampaignsCommand.ts +++ b/clients/client-pinpoint/commands/GetCampaignsCommand.ts @@ -28,6 +28,7 @@ export class GetCampaignsCommand extends $Command< GetCampaignsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCampaignsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetChannelsCommand.ts b/clients/client-pinpoint/commands/GetChannelsCommand.ts index 37f453bee1418..c3381e3c9e748 100644 --- a/clients/client-pinpoint/commands/GetChannelsCommand.ts +++ b/clients/client-pinpoint/commands/GetChannelsCommand.ts @@ -28,6 +28,7 @@ export class GetChannelsCommand extends $Command< GetChannelsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetChannelsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetEmailChannelCommand.ts b/clients/client-pinpoint/commands/GetEmailChannelCommand.ts index 5d327fd0f38f9..ad0dba0651c60 100644 --- a/clients/client-pinpoint/commands/GetEmailChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetEmailChannelCommand.ts @@ -28,6 +28,7 @@ export class GetEmailChannelCommand extends $Command< GetEmailChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEmailChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetEmailTemplateCommand.ts b/clients/client-pinpoint/commands/GetEmailTemplateCommand.ts index d36da2bf2cc02..4b4b3ec6b3c86 100644 --- a/clients/client-pinpoint/commands/GetEmailTemplateCommand.ts +++ b/clients/client-pinpoint/commands/GetEmailTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetEmailTemplateCommand extends $Command< GetEmailTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEmailTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetEndpointCommand.ts b/clients/client-pinpoint/commands/GetEndpointCommand.ts index f58ad17ce068d..b3d59bc74e797 100644 --- a/clients/client-pinpoint/commands/GetEndpointCommand.ts +++ b/clients/client-pinpoint/commands/GetEndpointCommand.ts @@ -28,6 +28,7 @@ export class GetEndpointCommand extends $Command< GetEndpointCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEndpointCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetEventStreamCommand.ts b/clients/client-pinpoint/commands/GetEventStreamCommand.ts index b64c8ca18562d..5f257ca9e2395 100644 --- a/clients/client-pinpoint/commands/GetEventStreamCommand.ts +++ b/clients/client-pinpoint/commands/GetEventStreamCommand.ts @@ -28,6 +28,7 @@ export class GetEventStreamCommand extends $Command< GetEventStreamCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEventStreamCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetExportJobCommand.ts b/clients/client-pinpoint/commands/GetExportJobCommand.ts index 8a279fc8fe661..d22b25b4c4592 100644 --- a/clients/client-pinpoint/commands/GetExportJobCommand.ts +++ b/clients/client-pinpoint/commands/GetExportJobCommand.ts @@ -28,6 +28,7 @@ export class GetExportJobCommand extends $Command< GetExportJobCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetExportJobCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetExportJobsCommand.ts b/clients/client-pinpoint/commands/GetExportJobsCommand.ts index 998c44c91ab77..e62db084df1ec 100644 --- a/clients/client-pinpoint/commands/GetExportJobsCommand.ts +++ b/clients/client-pinpoint/commands/GetExportJobsCommand.ts @@ -28,6 +28,7 @@ export class GetExportJobsCommand extends $Command< GetExportJobsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetExportJobsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetGcmChannelCommand.ts b/clients/client-pinpoint/commands/GetGcmChannelCommand.ts index 4c64d1dc0131c..57149eaceec0c 100644 --- a/clients/client-pinpoint/commands/GetGcmChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetGcmChannelCommand.ts @@ -28,6 +28,7 @@ export class GetGcmChannelCommand extends $Command< GetGcmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGcmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetImportJobCommand.ts b/clients/client-pinpoint/commands/GetImportJobCommand.ts index a07282da8f165..3e347908b82d8 100644 --- a/clients/client-pinpoint/commands/GetImportJobCommand.ts +++ b/clients/client-pinpoint/commands/GetImportJobCommand.ts @@ -28,6 +28,7 @@ export class GetImportJobCommand extends $Command< GetImportJobCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImportJobCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetImportJobsCommand.ts b/clients/client-pinpoint/commands/GetImportJobsCommand.ts index d40fe3282bac6..88ba455fcd730 100644 --- a/clients/client-pinpoint/commands/GetImportJobsCommand.ts +++ b/clients/client-pinpoint/commands/GetImportJobsCommand.ts @@ -28,6 +28,7 @@ export class GetImportJobsCommand extends $Command< GetImportJobsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImportJobsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetJourneyCommand.ts b/clients/client-pinpoint/commands/GetJourneyCommand.ts index 9bcef747db4c9..fceb85b2592d3 100644 --- a/clients/client-pinpoint/commands/GetJourneyCommand.ts +++ b/clients/client-pinpoint/commands/GetJourneyCommand.ts @@ -28,6 +28,7 @@ export class GetJourneyCommand extends $Command< GetJourneyCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJourneyCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetJourneyDateRangeKpiCommand.ts b/clients/client-pinpoint/commands/GetJourneyDateRangeKpiCommand.ts index a9bc7d1c1252b..3172ad87bb4d8 100644 --- a/clients/client-pinpoint/commands/GetJourneyDateRangeKpiCommand.ts +++ b/clients/client-pinpoint/commands/GetJourneyDateRangeKpiCommand.ts @@ -28,6 +28,7 @@ export class GetJourneyDateRangeKpiCommand extends $Command< GetJourneyDateRangeKpiCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJourneyDateRangeKpiCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetJourneyExecutionActivityMetricsCommand.ts b/clients/client-pinpoint/commands/GetJourneyExecutionActivityMetricsCommand.ts index 501c26518f7d6..9b5b88a93da4f 100644 --- a/clients/client-pinpoint/commands/GetJourneyExecutionActivityMetricsCommand.ts +++ b/clients/client-pinpoint/commands/GetJourneyExecutionActivityMetricsCommand.ts @@ -32,6 +32,7 @@ export class GetJourneyExecutionActivityMetricsCommand extends $Command< GetJourneyExecutionActivityMetricsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetJourneyExecutionActivityMetricsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetJourneyExecutionMetricsCommand.ts b/clients/client-pinpoint/commands/GetJourneyExecutionMetricsCommand.ts index 85c635858dc82..477b37f81a20a 100644 --- a/clients/client-pinpoint/commands/GetJourneyExecutionMetricsCommand.ts +++ b/clients/client-pinpoint/commands/GetJourneyExecutionMetricsCommand.ts @@ -28,6 +28,7 @@ export class GetJourneyExecutionMetricsCommand extends $Command< GetJourneyExecutionMetricsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetJourneyExecutionMetricsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetPushTemplateCommand.ts b/clients/client-pinpoint/commands/GetPushTemplateCommand.ts index 918b882cc9a48..1f84b238de186 100644 --- a/clients/client-pinpoint/commands/GetPushTemplateCommand.ts +++ b/clients/client-pinpoint/commands/GetPushTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetPushTemplateCommand extends $Command< GetPushTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPushTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetRecommenderConfigurationCommand.ts b/clients/client-pinpoint/commands/GetRecommenderConfigurationCommand.ts index 935707f7f7f16..37c996f8abd8a 100644 --- a/clients/client-pinpoint/commands/GetRecommenderConfigurationCommand.ts +++ b/clients/client-pinpoint/commands/GetRecommenderConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetRecommenderConfigurationCommand extends $Command< GetRecommenderConfigurationCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRecommenderConfigurationCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetRecommenderConfigurationsCommand.ts b/clients/client-pinpoint/commands/GetRecommenderConfigurationsCommand.ts index c81593790981e..7805694521f75 100644 --- a/clients/client-pinpoint/commands/GetRecommenderConfigurationsCommand.ts +++ b/clients/client-pinpoint/commands/GetRecommenderConfigurationsCommand.ts @@ -28,6 +28,7 @@ export class GetRecommenderConfigurationsCommand extends $Command< GetRecommenderConfigurationsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRecommenderConfigurationsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentCommand.ts b/clients/client-pinpoint/commands/GetSegmentCommand.ts index 538076434dcb5..ba50240e0afe7 100644 --- a/clients/client-pinpoint/commands/GetSegmentCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentCommand extends $Command< GetSegmentCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentExportJobsCommand.ts b/clients/client-pinpoint/commands/GetSegmentExportJobsCommand.ts index 850a29a0aa4f6..73fab2ae819d8 100644 --- a/clients/client-pinpoint/commands/GetSegmentExportJobsCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentExportJobsCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentExportJobsCommand extends $Command< GetSegmentExportJobsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentExportJobsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentImportJobsCommand.ts b/clients/client-pinpoint/commands/GetSegmentImportJobsCommand.ts index a3a7875dff736..19a97719d09b7 100644 --- a/clients/client-pinpoint/commands/GetSegmentImportJobsCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentImportJobsCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentImportJobsCommand extends $Command< GetSegmentImportJobsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentImportJobsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentVersionCommand.ts b/clients/client-pinpoint/commands/GetSegmentVersionCommand.ts index 35cbb71e1a17c..d79862f3f352b 100644 --- a/clients/client-pinpoint/commands/GetSegmentVersionCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentVersionCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentVersionCommand extends $Command< GetSegmentVersionCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentVersionCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentVersionsCommand.ts b/clients/client-pinpoint/commands/GetSegmentVersionsCommand.ts index b46321ab713a5..5758570f5449e 100644 --- a/clients/client-pinpoint/commands/GetSegmentVersionsCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentVersionsCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentVersionsCommand extends $Command< GetSegmentVersionsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentVersionsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSegmentsCommand.ts b/clients/client-pinpoint/commands/GetSegmentsCommand.ts index 92872c419b892..095571b3b8a7a 100644 --- a/clients/client-pinpoint/commands/GetSegmentsCommand.ts +++ b/clients/client-pinpoint/commands/GetSegmentsCommand.ts @@ -28,6 +28,7 @@ export class GetSegmentsCommand extends $Command< GetSegmentsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSegmentsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSmsChannelCommand.ts b/clients/client-pinpoint/commands/GetSmsChannelCommand.ts index 632a23cc0e5fc..5867a63b7e565 100644 --- a/clients/client-pinpoint/commands/GetSmsChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetSmsChannelCommand.ts @@ -28,6 +28,7 @@ export class GetSmsChannelCommand extends $Command< GetSmsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSmsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetSmsTemplateCommand.ts b/clients/client-pinpoint/commands/GetSmsTemplateCommand.ts index 2721c2be59109..059d8027250c2 100644 --- a/clients/client-pinpoint/commands/GetSmsTemplateCommand.ts +++ b/clients/client-pinpoint/commands/GetSmsTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetSmsTemplateCommand extends $Command< GetSmsTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSmsTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetUserEndpointsCommand.ts b/clients/client-pinpoint/commands/GetUserEndpointsCommand.ts index 5999c95ec0974..830605a0920ff 100644 --- a/clients/client-pinpoint/commands/GetUserEndpointsCommand.ts +++ b/clients/client-pinpoint/commands/GetUserEndpointsCommand.ts @@ -28,6 +28,7 @@ export class GetUserEndpointsCommand extends $Command< GetUserEndpointsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetUserEndpointsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetVoiceChannelCommand.ts b/clients/client-pinpoint/commands/GetVoiceChannelCommand.ts index a655f27fdb183..d430ba0dd1c36 100644 --- a/clients/client-pinpoint/commands/GetVoiceChannelCommand.ts +++ b/clients/client-pinpoint/commands/GetVoiceChannelCommand.ts @@ -28,6 +28,7 @@ export class GetVoiceChannelCommand extends $Command< GetVoiceChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVoiceChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/GetVoiceTemplateCommand.ts b/clients/client-pinpoint/commands/GetVoiceTemplateCommand.ts index 33d26171c51d4..5c1e2a21f8b9f 100644 --- a/clients/client-pinpoint/commands/GetVoiceTemplateCommand.ts +++ b/clients/client-pinpoint/commands/GetVoiceTemplateCommand.ts @@ -28,6 +28,7 @@ export class GetVoiceTemplateCommand extends $Command< GetVoiceTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVoiceTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/ListJourneysCommand.ts b/clients/client-pinpoint/commands/ListJourneysCommand.ts index 58fa01a928f5a..17d22928e6137 100644 --- a/clients/client-pinpoint/commands/ListJourneysCommand.ts +++ b/clients/client-pinpoint/commands/ListJourneysCommand.ts @@ -28,6 +28,7 @@ export class ListJourneysCommand extends $Command< ListJourneysCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListJourneysCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/ListTagsForResourceCommand.ts b/clients/client-pinpoint/commands/ListTagsForResourceCommand.ts index fe96007ad5ae4..b57362dde8436 100644 --- a/clients/client-pinpoint/commands/ListTagsForResourceCommand.ts +++ b/clients/client-pinpoint/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/ListTemplateVersionsCommand.ts b/clients/client-pinpoint/commands/ListTemplateVersionsCommand.ts index b8a6b58b01770..12627c6b4f98e 100644 --- a/clients/client-pinpoint/commands/ListTemplateVersionsCommand.ts +++ b/clients/client-pinpoint/commands/ListTemplateVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListTemplateVersionsCommand extends $Command< ListTemplateVersionsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTemplateVersionsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/ListTemplatesCommand.ts b/clients/client-pinpoint/commands/ListTemplatesCommand.ts index ca161ebdd210c..d58f082daf454 100644 --- a/clients/client-pinpoint/commands/ListTemplatesCommand.ts +++ b/clients/client-pinpoint/commands/ListTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListTemplatesCommand extends $Command< ListTemplatesCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTemplatesCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/PhoneNumberValidateCommand.ts b/clients/client-pinpoint/commands/PhoneNumberValidateCommand.ts index 3ac544434e235..d91f1309b1e52 100644 --- a/clients/client-pinpoint/commands/PhoneNumberValidateCommand.ts +++ b/clients/client-pinpoint/commands/PhoneNumberValidateCommand.ts @@ -28,6 +28,7 @@ export class PhoneNumberValidateCommand extends $Command< PhoneNumberValidateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PhoneNumberValidateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/PutEventStreamCommand.ts b/clients/client-pinpoint/commands/PutEventStreamCommand.ts index a75cd8756d424..0210f9a688358 100644 --- a/clients/client-pinpoint/commands/PutEventStreamCommand.ts +++ b/clients/client-pinpoint/commands/PutEventStreamCommand.ts @@ -28,6 +28,7 @@ export class PutEventStreamCommand extends $Command< PutEventStreamCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEventStreamCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/PutEventsCommand.ts b/clients/client-pinpoint/commands/PutEventsCommand.ts index 6c799ffbb5233..5c69556d57ea2 100644 --- a/clients/client-pinpoint/commands/PutEventsCommand.ts +++ b/clients/client-pinpoint/commands/PutEventsCommand.ts @@ -28,6 +28,7 @@ export class PutEventsCommand extends $Command< PutEventsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEventsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/RemoveAttributesCommand.ts b/clients/client-pinpoint/commands/RemoveAttributesCommand.ts index d3a123213fc5b..38229a0c34aa2 100644 --- a/clients/client-pinpoint/commands/RemoveAttributesCommand.ts +++ b/clients/client-pinpoint/commands/RemoveAttributesCommand.ts @@ -28,6 +28,7 @@ export class RemoveAttributesCommand extends $Command< RemoveAttributesCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveAttributesCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/SendMessagesCommand.ts b/clients/client-pinpoint/commands/SendMessagesCommand.ts index 4ecf74daa3ccf..4a34734e3dd34 100644 --- a/clients/client-pinpoint/commands/SendMessagesCommand.ts +++ b/clients/client-pinpoint/commands/SendMessagesCommand.ts @@ -28,6 +28,7 @@ export class SendMessagesCommand extends $Command< SendMessagesCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendMessagesCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/SendUsersMessagesCommand.ts b/clients/client-pinpoint/commands/SendUsersMessagesCommand.ts index 7994c411936eb..1ba020ce4be8a 100644 --- a/clients/client-pinpoint/commands/SendUsersMessagesCommand.ts +++ b/clients/client-pinpoint/commands/SendUsersMessagesCommand.ts @@ -28,6 +28,7 @@ export class SendUsersMessagesCommand extends $Command< SendUsersMessagesCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendUsersMessagesCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/TagResourceCommand.ts b/clients/client-pinpoint/commands/TagResourceCommand.ts index 38e8058e881f0..fd4246e8e2553 100644 --- a/clients/client-pinpoint/commands/TagResourceCommand.ts +++ b/clients/client-pinpoint/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UntagResourceCommand.ts b/clients/client-pinpoint/commands/UntagResourceCommand.ts index d8f4157a76381..aaa03af2e1e9a 100644 --- a/clients/client-pinpoint/commands/UntagResourceCommand.ts +++ b/clients/client-pinpoint/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateAdmChannelCommand.ts b/clients/client-pinpoint/commands/UpdateAdmChannelCommand.ts index 26b560abae4c8..a0426a8073917 100644 --- a/clients/client-pinpoint/commands/UpdateAdmChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateAdmChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateAdmChannelCommand extends $Command< UpdateAdmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAdmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateApnsChannelCommand.ts b/clients/client-pinpoint/commands/UpdateApnsChannelCommand.ts index aba1bbf2f807e..af54f48cbef4b 100644 --- a/clients/client-pinpoint/commands/UpdateApnsChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateApnsChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateApnsChannelCommand extends $Command< UpdateApnsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApnsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateApnsSandboxChannelCommand.ts b/clients/client-pinpoint/commands/UpdateApnsSandboxChannelCommand.ts index 90d739474b6cb..50349015dc215 100644 --- a/clients/client-pinpoint/commands/UpdateApnsSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateApnsSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateApnsSandboxChannelCommand extends $Command< UpdateApnsSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApnsSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateApnsVoipChannelCommand.ts b/clients/client-pinpoint/commands/UpdateApnsVoipChannelCommand.ts index 8144b15b4912a..32e095fd682e8 100644 --- a/clients/client-pinpoint/commands/UpdateApnsVoipChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateApnsVoipChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateApnsVoipChannelCommand extends $Command< UpdateApnsVoipChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApnsVoipChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateApnsVoipSandboxChannelCommand.ts b/clients/client-pinpoint/commands/UpdateApnsVoipSandboxChannelCommand.ts index de43883afffd7..83477c75de199 100644 --- a/clients/client-pinpoint/commands/UpdateApnsVoipSandboxChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateApnsVoipSandboxChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateApnsVoipSandboxChannelCommand extends $Command< UpdateApnsVoipSandboxChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApnsVoipSandboxChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateApplicationSettingsCommand.ts b/clients/client-pinpoint/commands/UpdateApplicationSettingsCommand.ts index 451d6a1051d17..25cd9c9576d68 100644 --- a/clients/client-pinpoint/commands/UpdateApplicationSettingsCommand.ts +++ b/clients/client-pinpoint/commands/UpdateApplicationSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateApplicationSettingsCommand extends $Command< UpdateApplicationSettingsCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateApplicationSettingsCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateBaiduChannelCommand.ts b/clients/client-pinpoint/commands/UpdateBaiduChannelCommand.ts index 68457cefcc059..4a15a13410982 100644 --- a/clients/client-pinpoint/commands/UpdateBaiduChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateBaiduChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateBaiduChannelCommand extends $Command< UpdateBaiduChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateBaiduChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateCampaignCommand.ts b/clients/client-pinpoint/commands/UpdateCampaignCommand.ts index 11ca2e951fd06..32126f32ab579 100644 --- a/clients/client-pinpoint/commands/UpdateCampaignCommand.ts +++ b/clients/client-pinpoint/commands/UpdateCampaignCommand.ts @@ -28,6 +28,7 @@ export class UpdateCampaignCommand extends $Command< UpdateCampaignCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCampaignCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateEmailChannelCommand.ts b/clients/client-pinpoint/commands/UpdateEmailChannelCommand.ts index b3d97d2a67c8e..13dc942c43104 100644 --- a/clients/client-pinpoint/commands/UpdateEmailChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateEmailChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateEmailChannelCommand extends $Command< UpdateEmailChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEmailChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateEmailTemplateCommand.ts b/clients/client-pinpoint/commands/UpdateEmailTemplateCommand.ts index d7fc321e014d7..0797a27f8b4f9 100644 --- a/clients/client-pinpoint/commands/UpdateEmailTemplateCommand.ts +++ b/clients/client-pinpoint/commands/UpdateEmailTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateEmailTemplateCommand extends $Command< UpdateEmailTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEmailTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateEndpointCommand.ts b/clients/client-pinpoint/commands/UpdateEndpointCommand.ts index 546c5c22f9f7c..72efdafb9b2e5 100644 --- a/clients/client-pinpoint/commands/UpdateEndpointCommand.ts +++ b/clients/client-pinpoint/commands/UpdateEndpointCommand.ts @@ -28,6 +28,7 @@ export class UpdateEndpointCommand extends $Command< UpdateEndpointCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEndpointCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateEndpointsBatchCommand.ts b/clients/client-pinpoint/commands/UpdateEndpointsBatchCommand.ts index 45c52cc0bb7fa..c1d7144b00461 100644 --- a/clients/client-pinpoint/commands/UpdateEndpointsBatchCommand.ts +++ b/clients/client-pinpoint/commands/UpdateEndpointsBatchCommand.ts @@ -28,6 +28,7 @@ export class UpdateEndpointsBatchCommand extends $Command< UpdateEndpointsBatchCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEndpointsBatchCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateGcmChannelCommand.ts b/clients/client-pinpoint/commands/UpdateGcmChannelCommand.ts index 93b052a255ecd..c6993da7c7388 100644 --- a/clients/client-pinpoint/commands/UpdateGcmChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateGcmChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateGcmChannelCommand extends $Command< UpdateGcmChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGcmChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateJourneyCommand.ts b/clients/client-pinpoint/commands/UpdateJourneyCommand.ts index e26ae32687fab..7584eb1e53588 100644 --- a/clients/client-pinpoint/commands/UpdateJourneyCommand.ts +++ b/clients/client-pinpoint/commands/UpdateJourneyCommand.ts @@ -28,6 +28,7 @@ export class UpdateJourneyCommand extends $Command< UpdateJourneyCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJourneyCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateJourneyStateCommand.ts b/clients/client-pinpoint/commands/UpdateJourneyStateCommand.ts index a761e71b483d3..3528df27be57c 100644 --- a/clients/client-pinpoint/commands/UpdateJourneyStateCommand.ts +++ b/clients/client-pinpoint/commands/UpdateJourneyStateCommand.ts @@ -28,6 +28,7 @@ export class UpdateJourneyStateCommand extends $Command< UpdateJourneyStateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJourneyStateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdatePushTemplateCommand.ts b/clients/client-pinpoint/commands/UpdatePushTemplateCommand.ts index 88b0c5cc77053..08496338569a0 100644 --- a/clients/client-pinpoint/commands/UpdatePushTemplateCommand.ts +++ b/clients/client-pinpoint/commands/UpdatePushTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdatePushTemplateCommand extends $Command< UpdatePushTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePushTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateRecommenderConfigurationCommand.ts b/clients/client-pinpoint/commands/UpdateRecommenderConfigurationCommand.ts index 7677620f02f8a..a432a47994e54 100644 --- a/clients/client-pinpoint/commands/UpdateRecommenderConfigurationCommand.ts +++ b/clients/client-pinpoint/commands/UpdateRecommenderConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateRecommenderConfigurationCommand extends $Command< UpdateRecommenderConfigurationCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRecommenderConfigurationCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateSegmentCommand.ts b/clients/client-pinpoint/commands/UpdateSegmentCommand.ts index 4f6688b57160a..207e4ffa476e2 100644 --- a/clients/client-pinpoint/commands/UpdateSegmentCommand.ts +++ b/clients/client-pinpoint/commands/UpdateSegmentCommand.ts @@ -28,6 +28,7 @@ export class UpdateSegmentCommand extends $Command< UpdateSegmentCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSegmentCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateSmsChannelCommand.ts b/clients/client-pinpoint/commands/UpdateSmsChannelCommand.ts index ae32ac5eefb94..a592fd6ce7ba6 100644 --- a/clients/client-pinpoint/commands/UpdateSmsChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateSmsChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateSmsChannelCommand extends $Command< UpdateSmsChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSmsChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateSmsTemplateCommand.ts b/clients/client-pinpoint/commands/UpdateSmsTemplateCommand.ts index ec622e01002d7..525fced8bd584 100644 --- a/clients/client-pinpoint/commands/UpdateSmsTemplateCommand.ts +++ b/clients/client-pinpoint/commands/UpdateSmsTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateSmsTemplateCommand extends $Command< UpdateSmsTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSmsTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateTemplateActiveVersionCommand.ts b/clients/client-pinpoint/commands/UpdateTemplateActiveVersionCommand.ts index c9d213477594a..760d922c182fe 100644 --- a/clients/client-pinpoint/commands/UpdateTemplateActiveVersionCommand.ts +++ b/clients/client-pinpoint/commands/UpdateTemplateActiveVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateTemplateActiveVersionCommand extends $Command< UpdateTemplateActiveVersionCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTemplateActiveVersionCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateVoiceChannelCommand.ts b/clients/client-pinpoint/commands/UpdateVoiceChannelCommand.ts index 994b04ed750b4..da2b644371205 100644 --- a/clients/client-pinpoint/commands/UpdateVoiceChannelCommand.ts +++ b/clients/client-pinpoint/commands/UpdateVoiceChannelCommand.ts @@ -28,6 +28,7 @@ export class UpdateVoiceChannelCommand extends $Command< UpdateVoiceChannelCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVoiceChannelCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pinpoint/commands/UpdateVoiceTemplateCommand.ts b/clients/client-pinpoint/commands/UpdateVoiceTemplateCommand.ts index cbef2d2020b78..53d938b2917ea 100644 --- a/clients/client-pinpoint/commands/UpdateVoiceTemplateCommand.ts +++ b/clients/client-pinpoint/commands/UpdateVoiceTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateVoiceTemplateCommand extends $Command< UpdateVoiceTemplateCommandOutput, PinpointClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVoiceTemplateCommand extends $Command< configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/DeleteLexiconCommand.ts b/clients/client-polly/commands/DeleteLexiconCommand.ts index 9aa69d804f27e..82b536334f15a 100644 --- a/clients/client-polly/commands/DeleteLexiconCommand.ts +++ b/clients/client-polly/commands/DeleteLexiconCommand.ts @@ -32,6 +32,7 @@ export class DeleteLexiconCommand extends $Command< DeleteLexiconCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLexiconCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/DescribeVoicesCommand.ts b/clients/client-polly/commands/DescribeVoicesCommand.ts index dabdd9e1b5ce6..88f7d01664453 100644 --- a/clients/client-polly/commands/DescribeVoicesCommand.ts +++ b/clients/client-polly/commands/DescribeVoicesCommand.ts @@ -44,6 +44,7 @@ export class DescribeVoicesCommand extends $Command< DescribeVoicesCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeVoicesCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/GetLexiconCommand.ts b/clients/client-polly/commands/GetLexiconCommand.ts index 4adb12c452195..594ceba3082bb 100644 --- a/clients/client-polly/commands/GetLexiconCommand.ts +++ b/clients/client-polly/commands/GetLexiconCommand.ts @@ -30,6 +30,7 @@ export class GetLexiconCommand extends $Command< GetLexiconCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetLexiconCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/GetSpeechSynthesisTaskCommand.ts b/clients/client-polly/commands/GetSpeechSynthesisTaskCommand.ts index 788d59250b891..7d06224639ec4 100644 --- a/clients/client-polly/commands/GetSpeechSynthesisTaskCommand.ts +++ b/clients/client-polly/commands/GetSpeechSynthesisTaskCommand.ts @@ -30,6 +30,7 @@ export class GetSpeechSynthesisTaskCommand extends $Command< GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetSpeechSynthesisTaskCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/ListLexiconsCommand.ts b/clients/client-polly/commands/ListLexiconsCommand.ts index a7e0edca27314..11d498db89489 100644 --- a/clients/client-polly/commands/ListLexiconsCommand.ts +++ b/clients/client-polly/commands/ListLexiconsCommand.ts @@ -30,6 +30,7 @@ export class ListLexiconsCommand extends $Command< ListLexiconsCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListLexiconsCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/ListSpeechSynthesisTasksCommand.ts b/clients/client-polly/commands/ListSpeechSynthesisTasksCommand.ts index 689bd86673cef..9c7110e431953 100644 --- a/clients/client-polly/commands/ListSpeechSynthesisTasksCommand.ts +++ b/clients/client-polly/commands/ListSpeechSynthesisTasksCommand.ts @@ -30,6 +30,7 @@ export class ListSpeechSynthesisTasksCommand extends $Command< ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListSpeechSynthesisTasksCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/PutLexiconCommand.ts b/clients/client-polly/commands/PutLexiconCommand.ts index c7a3deec759d5..38f5bae496eb1 100644 --- a/clients/client-polly/commands/PutLexiconCommand.ts +++ b/clients/client-polly/commands/PutLexiconCommand.ts @@ -33,6 +33,7 @@ export class PutLexiconCommand extends $Command< PutLexiconCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutLexiconCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/StartSpeechSynthesisTaskCommand.ts b/clients/client-polly/commands/StartSpeechSynthesisTaskCommand.ts index 95d6f3d4c0179..db50c5ea01912 100644 --- a/clients/client-polly/commands/StartSpeechSynthesisTaskCommand.ts +++ b/clients/client-polly/commands/StartSpeechSynthesisTaskCommand.ts @@ -33,6 +33,7 @@ export class StartSpeechSynthesisTaskCommand extends $Command< StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StartSpeechSynthesisTaskCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-polly/commands/SynthesizeSpeechCommand.ts b/clients/client-polly/commands/SynthesizeSpeechCommand.ts index d5145cdf5e8a2..0d5e9260cac0b 100644 --- a/clients/client-polly/commands/SynthesizeSpeechCommand.ts +++ b/clients/client-polly/commands/SynthesizeSpeechCommand.ts @@ -32,6 +32,7 @@ export class SynthesizeSpeechCommand extends $Command< SynthesizeSpeechCommandOutput, PollyClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SynthesizeSpeechCommand extends $Command< configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pricing/commands/DescribeServicesCommand.ts b/clients/client-pricing/commands/DescribeServicesCommand.ts index e20dd45c92cf8..03c0e6b028345 100644 --- a/clients/client-pricing/commands/DescribeServicesCommand.ts +++ b/clients/client-pricing/commands/DescribeServicesCommand.ts @@ -34,6 +34,7 @@ export class DescribeServicesCommand extends $Command< DescribeServicesCommandOutput, PricingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeServicesCommand extends $Command< configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pricing/commands/GetAttributeValuesCommand.ts b/clients/client-pricing/commands/GetAttributeValuesCommand.ts index 25fe3be9c2383..50846bc6215ac 100644 --- a/clients/client-pricing/commands/GetAttributeValuesCommand.ts +++ b/clients/client-pricing/commands/GetAttributeValuesCommand.ts @@ -31,6 +31,7 @@ export class GetAttributeValuesCommand extends $Command< GetAttributeValuesCommandOutput, PricingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetAttributeValuesCommand extends $Command< configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-pricing/commands/GetProductsCommand.ts b/clients/client-pricing/commands/GetProductsCommand.ts index 17921148dd80d..7f69e52f386c7 100644 --- a/clients/client-pricing/commands/GetProductsCommand.ts +++ b/clients/client-pricing/commands/GetProductsCommand.ts @@ -28,6 +28,7 @@ export class GetProductsCommand extends $Command< GetProductsCommandOutput, PricingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProductsCommand extends $Command< configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb-session/commands/SendCommandCommand.ts b/clients/client-qldb-session/commands/SendCommandCommand.ts index 1abee84b34146..5b62d70831c32 100644 --- a/clients/client-qldb-session/commands/SendCommandCommand.ts +++ b/clients/client-qldb-session/commands/SendCommandCommand.ts @@ -48,6 +48,7 @@ export class SendCommandCommand extends $Command< SendCommandCommandOutput, QLDBSessionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class SendCommandCommand extends $Command< configuration: QLDBSessionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/CancelJournalKinesisStreamCommand.ts b/clients/client-qldb/commands/CancelJournalKinesisStreamCommand.ts index f5f9c9a5007a5..97347d2ae61ee 100644 --- a/clients/client-qldb/commands/CancelJournalKinesisStreamCommand.ts +++ b/clients/client-qldb/commands/CancelJournalKinesisStreamCommand.ts @@ -32,6 +32,7 @@ export class CancelJournalKinesisStreamCommand extends $Command< CancelJournalKinesisStreamCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelJournalKinesisStreamCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/CreateLedgerCommand.ts b/clients/client-qldb/commands/CreateLedgerCommand.ts index ba59179cff1ea..4045cccae4bf3 100644 --- a/clients/client-qldb/commands/CreateLedgerCommand.ts +++ b/clients/client-qldb/commands/CreateLedgerCommand.ts @@ -28,6 +28,7 @@ export class CreateLedgerCommand extends $Command< CreateLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/DeleteLedgerCommand.ts b/clients/client-qldb/commands/DeleteLedgerCommand.ts index a7b600cf6251b..1699fac9bf7c4 100644 --- a/clients/client-qldb/commands/DeleteLedgerCommand.ts +++ b/clients/client-qldb/commands/DeleteLedgerCommand.ts @@ -32,6 +32,7 @@ export class DeleteLedgerCommand extends $Command< DeleteLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/DescribeJournalKinesisStreamCommand.ts b/clients/client-qldb/commands/DescribeJournalKinesisStreamCommand.ts index 376140baafd97..dde18240bc8f7 100644 --- a/clients/client-qldb/commands/DescribeJournalKinesisStreamCommand.ts +++ b/clients/client-qldb/commands/DescribeJournalKinesisStreamCommand.ts @@ -30,6 +30,7 @@ export class DescribeJournalKinesisStreamCommand extends $Command< DescribeJournalKinesisStreamCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeJournalKinesisStreamCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/DescribeJournalS3ExportCommand.ts b/clients/client-qldb/commands/DescribeJournalS3ExportCommand.ts index 252b26318c46c..2c5cf2d75be00 100644 --- a/clients/client-qldb/commands/DescribeJournalS3ExportCommand.ts +++ b/clients/client-qldb/commands/DescribeJournalS3ExportCommand.ts @@ -35,6 +35,7 @@ export class DescribeJournalS3ExportCommand extends $Command< DescribeJournalS3ExportCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeJournalS3ExportCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/DescribeLedgerCommand.ts b/clients/client-qldb/commands/DescribeLedgerCommand.ts index c01c775736d4c..d5d7e761f3628 100644 --- a/clients/client-qldb/commands/DescribeLedgerCommand.ts +++ b/clients/client-qldb/commands/DescribeLedgerCommand.ts @@ -28,6 +28,7 @@ export class DescribeLedgerCommand extends $Command< DescribeLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ExportJournalToS3Command.ts b/clients/client-qldb/commands/ExportJournalToS3Command.ts index 8d528b96a7276..228b6c99bf1b1 100644 --- a/clients/client-qldb/commands/ExportJournalToS3Command.ts +++ b/clients/client-qldb/commands/ExportJournalToS3Command.ts @@ -35,6 +35,7 @@ export class ExportJournalToS3Command extends $Command< ExportJournalToS3CommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ExportJournalToS3Command extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/GetBlockCommand.ts b/clients/client-qldb/commands/GetBlockCommand.ts index e1ee892d2aeba..c5101891308b8 100644 --- a/clients/client-qldb/commands/GetBlockCommand.ts +++ b/clients/client-qldb/commands/GetBlockCommand.ts @@ -33,6 +33,7 @@ export type GetBlockCommandOutput = GetBlockResponse & __MetadataBearer; * InvalidParameterException.

*/ export class GetBlockCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetBlockCommand 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-qldb/commands/GetDigestCommand.ts b/clients/client-qldb/commands/GetDigestCommand.ts index 1191459d6b14c..ec0937d71f853 100644 --- a/clients/client-qldb/commands/GetDigestCommand.ts +++ b/clients/client-qldb/commands/GetDigestCommand.ts @@ -29,6 +29,7 @@ export class GetDigestCommand extends $Command< GetDigestCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDigestCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/GetRevisionCommand.ts b/clients/client-qldb/commands/GetRevisionCommand.ts index 39ebde9c4b59b..54e5a8f64732a 100644 --- a/clients/client-qldb/commands/GetRevisionCommand.ts +++ b/clients/client-qldb/commands/GetRevisionCommand.ts @@ -30,6 +30,7 @@ export class GetRevisionCommand extends $Command< GetRevisionCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetRevisionCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ListJournalKinesisStreamsForLedgerCommand.ts b/clients/client-qldb/commands/ListJournalKinesisStreamsForLedgerCommand.ts index 2d8cd4fc43489..592a952bf4117 100644 --- a/clients/client-qldb/commands/ListJournalKinesisStreamsForLedgerCommand.ts +++ b/clients/client-qldb/commands/ListJournalKinesisStreamsForLedgerCommand.ts @@ -37,6 +37,7 @@ export class ListJournalKinesisStreamsForLedgerCommand extends $Command< ListJournalKinesisStreamsForLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListJournalKinesisStreamsForLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ListJournalS3ExportsCommand.ts b/clients/client-qldb/commands/ListJournalS3ExportsCommand.ts index 1aca4a844415b..234597a90c72b 100644 --- a/clients/client-qldb/commands/ListJournalS3ExportsCommand.ts +++ b/clients/client-qldb/commands/ListJournalS3ExportsCommand.ts @@ -34,6 +34,7 @@ export class ListJournalS3ExportsCommand extends $Command< ListJournalS3ExportsCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListJournalS3ExportsCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ListJournalS3ExportsForLedgerCommand.ts b/clients/client-qldb/commands/ListJournalS3ExportsForLedgerCommand.ts index 852db013ca000..fa9de2a81b83f 100644 --- a/clients/client-qldb/commands/ListJournalS3ExportsForLedgerCommand.ts +++ b/clients/client-qldb/commands/ListJournalS3ExportsForLedgerCommand.ts @@ -33,6 +33,7 @@ export class ListJournalS3ExportsForLedgerCommand extends $Command< ListJournalS3ExportsForLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListJournalS3ExportsForLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ListLedgersCommand.ts b/clients/client-qldb/commands/ListLedgersCommand.ts index 2bc93e26210d5..baf0cd9f3a2a2 100644 --- a/clients/client-qldb/commands/ListLedgersCommand.ts +++ b/clients/client-qldb/commands/ListLedgersCommand.ts @@ -31,6 +31,7 @@ export class ListLedgersCommand extends $Command< ListLedgersCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListLedgersCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/ListTagsForResourceCommand.ts b/clients/client-qldb/commands/ListTagsForResourceCommand.ts index 555e6edd431ba..37462843f12c0 100644 --- a/clients/client-qldb/commands/ListTagsForResourceCommand.ts +++ b/clients/client-qldb/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/StreamJournalToKinesisCommand.ts b/clients/client-qldb/commands/StreamJournalToKinesisCommand.ts index d3148fd42d69a..cc06a9f8e9b06 100644 --- a/clients/client-qldb/commands/StreamJournalToKinesisCommand.ts +++ b/clients/client-qldb/commands/StreamJournalToKinesisCommand.ts @@ -30,6 +30,7 @@ export class StreamJournalToKinesisCommand extends $Command< StreamJournalToKinesisCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StreamJournalToKinesisCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/TagResourceCommand.ts b/clients/client-qldb/commands/TagResourceCommand.ts index 47e4268218540..7eb6e6e5063a3 100644 --- a/clients/client-qldb/commands/TagResourceCommand.ts +++ b/clients/client-qldb/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/UntagResourceCommand.ts b/clients/client-qldb/commands/UntagResourceCommand.ts index a39b2399dc8b1..52179e573f022 100644 --- a/clients/client-qldb/commands/UntagResourceCommand.ts +++ b/clients/client-qldb/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-qldb/commands/UpdateLedgerCommand.ts b/clients/client-qldb/commands/UpdateLedgerCommand.ts index f5700fc985e85..6845307719c3c 100644 --- a/clients/client-qldb/commands/UpdateLedgerCommand.ts +++ b/clients/client-qldb/commands/UpdateLedgerCommand.ts @@ -28,6 +28,7 @@ export class UpdateLedgerCommand extends $Command< UpdateLedgerCommandOutput, QLDBClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateLedgerCommand extends $Command< configuration: QLDBClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CancelIngestionCommand.ts b/clients/client-quicksight/commands/CancelIngestionCommand.ts index a6c5dca8c98ef..e13a184ca34f0 100644 --- a/clients/client-quicksight/commands/CancelIngestionCommand.ts +++ b/clients/client-quicksight/commands/CancelIngestionCommand.ts @@ -28,6 +28,7 @@ export class CancelIngestionCommand extends $Command< CancelIngestionCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelIngestionCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateAccountCustomizationCommand.ts b/clients/client-quicksight/commands/CreateAccountCustomizationCommand.ts index beab1d9c55f75..00af2e839fd57 100644 --- a/clients/client-quicksight/commands/CreateAccountCustomizationCommand.ts +++ b/clients/client-quicksight/commands/CreateAccountCustomizationCommand.ts @@ -49,6 +49,7 @@ export class CreateAccountCustomizationCommand extends $Command< CreateAccountCustomizationCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class CreateAccountCustomizationCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateAnalysisCommand.ts b/clients/client-quicksight/commands/CreateAnalysisCommand.ts index a140944c0c04d..74728ee014f80 100644 --- a/clients/client-quicksight/commands/CreateAnalysisCommand.ts +++ b/clients/client-quicksight/commands/CreateAnalysisCommand.ts @@ -28,6 +28,7 @@ export class CreateAnalysisCommand extends $Command< CreateAnalysisCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAnalysisCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateDashboardCommand.ts b/clients/client-quicksight/commands/CreateDashboardCommand.ts index 17c13f2dddd2e..93c69fd8a72e0 100644 --- a/clients/client-quicksight/commands/CreateDashboardCommand.ts +++ b/clients/client-quicksight/commands/CreateDashboardCommand.ts @@ -34,6 +34,7 @@ export class CreateDashboardCommand extends $Command< CreateDashboardCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDashboardCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateDataSetCommand.ts b/clients/client-quicksight/commands/CreateDataSetCommand.ts index 02b13dcc8e1cd..9f5fe57de7020 100644 --- a/clients/client-quicksight/commands/CreateDataSetCommand.ts +++ b/clients/client-quicksight/commands/CreateDataSetCommand.ts @@ -28,6 +28,7 @@ export class CreateDataSetCommand extends $Command< CreateDataSetCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDataSetCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateDataSourceCommand.ts b/clients/client-quicksight/commands/CreateDataSourceCommand.ts index 0c83d2955348c..f5a6b1a04bc8a 100644 --- a/clients/client-quicksight/commands/CreateDataSourceCommand.ts +++ b/clients/client-quicksight/commands/CreateDataSourceCommand.ts @@ -28,6 +28,7 @@ export class CreateDataSourceCommand extends $Command< CreateDataSourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDataSourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateGroupCommand.ts b/clients/client-quicksight/commands/CreateGroupCommand.ts index a3f824a75c88a..ac0c2e8297938 100644 --- a/clients/client-quicksight/commands/CreateGroupCommand.ts +++ b/clients/client-quicksight/commands/CreateGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateGroupCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts b/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts index 90167e88c637c..52a060644fe82 100644 --- a/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts +++ b/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts @@ -28,6 +28,7 @@ export class CreateGroupMembershipCommand extends $Command< CreateGroupMembershipCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGroupMembershipCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts index 19400fc3197e8..e087313620384 100644 --- a/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts @@ -31,6 +31,7 @@ export class CreateIAMPolicyAssignmentCommand extends $Command< CreateIAMPolicyAssignmentCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateIAMPolicyAssignmentCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateIngestionCommand.ts b/clients/client-quicksight/commands/CreateIngestionCommand.ts index 13cefc106cda2..b95412d7f6cd4 100644 --- a/clients/client-quicksight/commands/CreateIngestionCommand.ts +++ b/clients/client-quicksight/commands/CreateIngestionCommand.ts @@ -32,6 +32,7 @@ export class CreateIngestionCommand extends $Command< CreateIngestionCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateIngestionCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateNamespaceCommand.ts b/clients/client-quicksight/commands/CreateNamespaceCommand.ts index e3028358dcce8..582c1fa2ba73c 100644 --- a/clients/client-quicksight/commands/CreateNamespaceCommand.ts +++ b/clients/client-quicksight/commands/CreateNamespaceCommand.ts @@ -35,6 +35,7 @@ export class CreateNamespaceCommand extends $Command< CreateNamespaceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateNamespaceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts b/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts index 39cdc93facff3..88c21c2cb33b8 100644 --- a/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts +++ b/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts @@ -28,6 +28,7 @@ export class CreateTemplateAliasCommand extends $Command< CreateTemplateAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTemplateAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateTemplateCommand.ts b/clients/client-quicksight/commands/CreateTemplateCommand.ts index 1056839c896ec..651a3c2270660 100644 --- a/clients/client-quicksight/commands/CreateTemplateCommand.ts +++ b/clients/client-quicksight/commands/CreateTemplateCommand.ts @@ -35,6 +35,7 @@ export class CreateTemplateCommand extends $Command< CreateTemplateCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateTemplateCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateThemeAliasCommand.ts b/clients/client-quicksight/commands/CreateThemeAliasCommand.ts index 49b8f29e1dce3..8d7dd46844cd5 100644 --- a/clients/client-quicksight/commands/CreateThemeAliasCommand.ts +++ b/clients/client-quicksight/commands/CreateThemeAliasCommand.ts @@ -28,6 +28,7 @@ export class CreateThemeAliasCommand extends $Command< CreateThemeAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateThemeAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/CreateThemeCommand.ts b/clients/client-quicksight/commands/CreateThemeCommand.ts index f3c9f4fd0a50d..9d9a1c98a7df8 100644 --- a/clients/client-quicksight/commands/CreateThemeCommand.ts +++ b/clients/client-quicksight/commands/CreateThemeCommand.ts @@ -31,6 +31,7 @@ export class CreateThemeCommand extends $Command< CreateThemeCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateThemeCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteAccountCustomizationCommand.ts b/clients/client-quicksight/commands/DeleteAccountCustomizationCommand.ts index c93815dbb01c8..3a48f6d701fbe 100644 --- a/clients/client-quicksight/commands/DeleteAccountCustomizationCommand.ts +++ b/clients/client-quicksight/commands/DeleteAccountCustomizationCommand.ts @@ -29,6 +29,7 @@ export class DeleteAccountCustomizationCommand extends $Command< DeleteAccountCustomizationCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAccountCustomizationCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteAnalysisCommand.ts b/clients/client-quicksight/commands/DeleteAnalysisCommand.ts index d6a1332828d8e..37cd4e752a2a5 100644 --- a/clients/client-quicksight/commands/DeleteAnalysisCommand.ts +++ b/clients/client-quicksight/commands/DeleteAnalysisCommand.ts @@ -39,6 +39,7 @@ export class DeleteAnalysisCommand extends $Command< DeleteAnalysisCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteAnalysisCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteDashboardCommand.ts b/clients/client-quicksight/commands/DeleteDashboardCommand.ts index be312afd4639b..c026aac5cd90a 100644 --- a/clients/client-quicksight/commands/DeleteDashboardCommand.ts +++ b/clients/client-quicksight/commands/DeleteDashboardCommand.ts @@ -28,6 +28,7 @@ export class DeleteDashboardCommand extends $Command< DeleteDashboardCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDashboardCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteDataSetCommand.ts b/clients/client-quicksight/commands/DeleteDataSetCommand.ts index fb7f4d27cd494..8adf897017988 100644 --- a/clients/client-quicksight/commands/DeleteDataSetCommand.ts +++ b/clients/client-quicksight/commands/DeleteDataSetCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataSetCommand extends $Command< DeleteDataSetCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataSetCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteDataSourceCommand.ts b/clients/client-quicksight/commands/DeleteDataSourceCommand.ts index 45c1a2535821c..0831de9338b37 100644 --- a/clients/client-quicksight/commands/DeleteDataSourceCommand.ts +++ b/clients/client-quicksight/commands/DeleteDataSourceCommand.ts @@ -29,6 +29,7 @@ export class DeleteDataSourceCommand extends $Command< DeleteDataSourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDataSourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteGroupCommand.ts b/clients/client-quicksight/commands/DeleteGroupCommand.ts index f5124fa4f9509..2084ae12c64fb 100644 --- a/clients/client-quicksight/commands/DeleteGroupCommand.ts +++ b/clients/client-quicksight/commands/DeleteGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGroupCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts b/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts index d154804421d7e..3d111826bf94a 100644 --- a/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts +++ b/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts @@ -28,6 +28,7 @@ export class DeleteGroupMembershipCommand extends $Command< DeleteGroupMembershipCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGroupMembershipCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts index e17a9e98a0d3c..6af28b569cdaa 100644 --- a/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts @@ -28,6 +28,7 @@ export class DeleteIAMPolicyAssignmentCommand extends $Command< DeleteIAMPolicyAssignmentCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteIAMPolicyAssignmentCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteNamespaceCommand.ts b/clients/client-quicksight/commands/DeleteNamespaceCommand.ts index cd7f83d3cec72..d796b81a11aed 100644 --- a/clients/client-quicksight/commands/DeleteNamespaceCommand.ts +++ b/clients/client-quicksight/commands/DeleteNamespaceCommand.ts @@ -30,6 +30,7 @@ export class DeleteNamespaceCommand extends $Command< DeleteNamespaceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteNamespaceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts b/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts index 95d52d12e9e81..9692239b4fe28 100644 --- a/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts +++ b/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts @@ -29,6 +29,7 @@ export class DeleteTemplateAliasCommand extends $Command< DeleteTemplateAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTemplateAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteTemplateCommand.ts b/clients/client-quicksight/commands/DeleteTemplateCommand.ts index 47751fbe26b03..cbbd498e53820 100644 --- a/clients/client-quicksight/commands/DeleteTemplateCommand.ts +++ b/clients/client-quicksight/commands/DeleteTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteTemplateCommand extends $Command< DeleteTemplateCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTemplateCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteThemeAliasCommand.ts b/clients/client-quicksight/commands/DeleteThemeAliasCommand.ts index 02ee0eb6bf006..cc08081188dac 100644 --- a/clients/client-quicksight/commands/DeleteThemeAliasCommand.ts +++ b/clients/client-quicksight/commands/DeleteThemeAliasCommand.ts @@ -30,6 +30,7 @@ export class DeleteThemeAliasCommand extends $Command< DeleteThemeAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteThemeAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteThemeCommand.ts b/clients/client-quicksight/commands/DeleteThemeCommand.ts index 30c64580d68b0..5b800cb0f4b71 100644 --- a/clients/client-quicksight/commands/DeleteThemeCommand.ts +++ b/clients/client-quicksight/commands/DeleteThemeCommand.ts @@ -28,6 +28,7 @@ export class DeleteThemeCommand extends $Command< DeleteThemeCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteThemeCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts b/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts index a9a45f28797ac..7adb816fcc3c0 100644 --- a/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts +++ b/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserByPrincipalIdCommand extends $Command< DeleteUserByPrincipalIdCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserByPrincipalIdCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DeleteUserCommand.ts b/clients/client-quicksight/commands/DeleteUserCommand.ts index 6761f70790bd6..1c666fb5576bb 100644 --- a/clients/client-quicksight/commands/DeleteUserCommand.ts +++ b/clients/client-quicksight/commands/DeleteUserCommand.ts @@ -30,6 +30,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteUserCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeAccountCustomizationCommand.ts b/clients/client-quicksight/commands/DescribeAccountCustomizationCommand.ts index 541cb6c58b38d..b899d850fff14 100644 --- a/clients/client-quicksight/commands/DescribeAccountCustomizationCommand.ts +++ b/clients/client-quicksight/commands/DescribeAccountCustomizationCommand.ts @@ -84,6 +84,7 @@ export class DescribeAccountCustomizationCommand extends $Command< DescribeAccountCustomizationCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -101,7 +102,10 @@ export class DescribeAccountCustomizationCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeAccountSettingsCommand.ts b/clients/client-quicksight/commands/DescribeAccountSettingsCommand.ts index 8ce74ff04282e..6ab20f71b3b9a 100644 --- a/clients/client-quicksight/commands/DescribeAccountSettingsCommand.ts +++ b/clients/client-quicksight/commands/DescribeAccountSettingsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAccountSettingsCommand extends $Command< DescribeAccountSettingsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAccountSettingsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeAnalysisCommand.ts b/clients/client-quicksight/commands/DescribeAnalysisCommand.ts index 39f783da34a5d..95fd1e20dd069 100644 --- a/clients/client-quicksight/commands/DescribeAnalysisCommand.ts +++ b/clients/client-quicksight/commands/DescribeAnalysisCommand.ts @@ -28,6 +28,7 @@ export class DescribeAnalysisCommand extends $Command< DescribeAnalysisCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAnalysisCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeAnalysisPermissionsCommand.ts b/clients/client-quicksight/commands/DescribeAnalysisPermissionsCommand.ts index b976fd1d22f63..0c11484aae67a 100644 --- a/clients/client-quicksight/commands/DescribeAnalysisPermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeAnalysisPermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAnalysisPermissionsCommand extends $Command< DescribeAnalysisPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAnalysisPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDashboardCommand.ts b/clients/client-quicksight/commands/DescribeDashboardCommand.ts index addc5fe0fff69..1cff125451ff2 100644 --- a/clients/client-quicksight/commands/DescribeDashboardCommand.ts +++ b/clients/client-quicksight/commands/DescribeDashboardCommand.ts @@ -28,6 +28,7 @@ export class DescribeDashboardCommand extends $Command< DescribeDashboardCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDashboardCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts index 54dcc5ab02149..7ee8f697223db 100644 --- a/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDashboardPermissionsCommand extends $Command< DescribeDashboardPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDashboardPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDataSetCommand.ts b/clients/client-quicksight/commands/DescribeDataSetCommand.ts index 4b2ae8e55f2e3..583cdb8aa8f54 100644 --- a/clients/client-quicksight/commands/DescribeDataSetCommand.ts +++ b/clients/client-quicksight/commands/DescribeDataSetCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataSetCommand extends $Command< DescribeDataSetCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataSetCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts index e67e951fff79e..06b153e1f6771 100644 --- a/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeDataSetPermissionsCommand extends $Command< DescribeDataSetPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDataSetPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDataSourceCommand.ts b/clients/client-quicksight/commands/DescribeDataSourceCommand.ts index d9f94d5513d29..89ce7bfb7001e 100644 --- a/clients/client-quicksight/commands/DescribeDataSourceCommand.ts +++ b/clients/client-quicksight/commands/DescribeDataSourceCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataSourceCommand extends $Command< DescribeDataSourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataSourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts index bab31eb4afa4d..64dffb2bd3d9e 100644 --- a/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataSourcePermissionsCommand extends $Command< DescribeDataSourcePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataSourcePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeGroupCommand.ts b/clients/client-quicksight/commands/DescribeGroupCommand.ts index 0a09c398d084f..154c347a16e22 100644 --- a/clients/client-quicksight/commands/DescribeGroupCommand.ts +++ b/clients/client-quicksight/commands/DescribeGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeGroupCommand extends $Command< DescribeGroupCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGroupCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts index 58807f3dfe47c..1d900915cbedd 100644 --- a/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts @@ -28,6 +28,7 @@ export class DescribeIAMPolicyAssignmentCommand extends $Command< DescribeIAMPolicyAssignmentCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIAMPolicyAssignmentCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeIngestionCommand.ts b/clients/client-quicksight/commands/DescribeIngestionCommand.ts index 7c2c0cd1030e6..e83ceecaf9c2a 100644 --- a/clients/client-quicksight/commands/DescribeIngestionCommand.ts +++ b/clients/client-quicksight/commands/DescribeIngestionCommand.ts @@ -28,6 +28,7 @@ export class DescribeIngestionCommand extends $Command< DescribeIngestionCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIngestionCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeNamespaceCommand.ts b/clients/client-quicksight/commands/DescribeNamespaceCommand.ts index 094f22c9ee89b..2d0be30db49f9 100644 --- a/clients/client-quicksight/commands/DescribeNamespaceCommand.ts +++ b/clients/client-quicksight/commands/DescribeNamespaceCommand.ts @@ -28,6 +28,7 @@ export class DescribeNamespaceCommand extends $Command< DescribeNamespaceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNamespaceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts b/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts index 0dc155cdfb5bc..79db32a5edaf6 100644 --- a/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts +++ b/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts @@ -28,6 +28,7 @@ export class DescribeTemplateAliasCommand extends $Command< DescribeTemplateAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTemplateAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeTemplateCommand.ts b/clients/client-quicksight/commands/DescribeTemplateCommand.ts index c695a4dbfe887..9129ece96b361 100644 --- a/clients/client-quicksight/commands/DescribeTemplateCommand.ts +++ b/clients/client-quicksight/commands/DescribeTemplateCommand.ts @@ -28,6 +28,7 @@ export class DescribeTemplateCommand extends $Command< DescribeTemplateCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTemplateCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts b/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts index 37df8fec5b8fe..bb8019f6a860f 100644 --- a/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTemplatePermissionsCommand extends $Command< DescribeTemplatePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTemplatePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeThemeAliasCommand.ts b/clients/client-quicksight/commands/DescribeThemeAliasCommand.ts index 779f6481a8a58..59b7e3966c73f 100644 --- a/clients/client-quicksight/commands/DescribeThemeAliasCommand.ts +++ b/clients/client-quicksight/commands/DescribeThemeAliasCommand.ts @@ -28,6 +28,7 @@ export class DescribeThemeAliasCommand extends $Command< DescribeThemeAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThemeAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeThemeCommand.ts b/clients/client-quicksight/commands/DescribeThemeCommand.ts index 7a88aeea94868..ed3270bf267e2 100644 --- a/clients/client-quicksight/commands/DescribeThemeCommand.ts +++ b/clients/client-quicksight/commands/DescribeThemeCommand.ts @@ -28,6 +28,7 @@ export class DescribeThemeCommand extends $Command< DescribeThemeCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThemeCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeThemePermissionsCommand.ts b/clients/client-quicksight/commands/DescribeThemePermissionsCommand.ts index 3e1ee51dabb2c..031718da40406 100644 --- a/clients/client-quicksight/commands/DescribeThemePermissionsCommand.ts +++ b/clients/client-quicksight/commands/DescribeThemePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeThemePermissionsCommand extends $Command< DescribeThemePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeThemePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/DescribeUserCommand.ts b/clients/client-quicksight/commands/DescribeUserCommand.ts index 6441922e14b4b..b446e98c98ae8 100644 --- a/clients/client-quicksight/commands/DescribeUserCommand.ts +++ b/clients/client-quicksight/commands/DescribeUserCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts b/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts index 971038a4129a8..254a56f782260 100644 --- a/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts +++ b/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts @@ -50,6 +50,7 @@ export class GetDashboardEmbedUrlCommand extends $Command< GetDashboardEmbedUrlCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class GetDashboardEmbedUrlCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/GetSessionEmbedUrlCommand.ts b/clients/client-quicksight/commands/GetSessionEmbedUrlCommand.ts index dffdc3f6c2b5f..a53bd967978d8 100644 --- a/clients/client-quicksight/commands/GetSessionEmbedUrlCommand.ts +++ b/clients/client-quicksight/commands/GetSessionEmbedUrlCommand.ts @@ -52,6 +52,7 @@ export class GetSessionEmbedUrlCommand extends $Command< GetSessionEmbedUrlCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class GetSessionEmbedUrlCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListAnalysesCommand.ts b/clients/client-quicksight/commands/ListAnalysesCommand.ts index f254e7afeea24..2c5fbbf49b736 100644 --- a/clients/client-quicksight/commands/ListAnalysesCommand.ts +++ b/clients/client-quicksight/commands/ListAnalysesCommand.ts @@ -28,6 +28,7 @@ export class ListAnalysesCommand extends $Command< ListAnalysesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAnalysesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts b/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts index c143c3ce63b93..d5b8a7763a4cb 100644 --- a/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts +++ b/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListDashboardVersionsCommand extends $Command< ListDashboardVersionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDashboardVersionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListDashboardsCommand.ts b/clients/client-quicksight/commands/ListDashboardsCommand.ts index 5574ecfa8b97a..106528712c77f 100644 --- a/clients/client-quicksight/commands/ListDashboardsCommand.ts +++ b/clients/client-quicksight/commands/ListDashboardsCommand.ts @@ -28,6 +28,7 @@ export class ListDashboardsCommand extends $Command< ListDashboardsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDashboardsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListDataSetsCommand.ts b/clients/client-quicksight/commands/ListDataSetsCommand.ts index 20b3136410cee..11c481cd0cc18 100644 --- a/clients/client-quicksight/commands/ListDataSetsCommand.ts +++ b/clients/client-quicksight/commands/ListDataSetsCommand.ts @@ -29,6 +29,7 @@ export class ListDataSetsCommand extends $Command< ListDataSetsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDataSetsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListDataSourcesCommand.ts b/clients/client-quicksight/commands/ListDataSourcesCommand.ts index 91cdf0cee5287..37b9fa25b2e7e 100644 --- a/clients/client-quicksight/commands/ListDataSourcesCommand.ts +++ b/clients/client-quicksight/commands/ListDataSourcesCommand.ts @@ -28,6 +28,7 @@ export class ListDataSourcesCommand extends $Command< ListDataSourcesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataSourcesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts b/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts index 7a40c343d75ff..796467d6f3a8a 100644 --- a/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts +++ b/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupMembershipsCommand extends $Command< ListGroupMembershipsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupMembershipsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListGroupsCommand.ts b/clients/client-quicksight/commands/ListGroupsCommand.ts index c0bb5cc0043e4..15d487db0387b 100644 --- a/clients/client-quicksight/commands/ListGroupsCommand.ts +++ b/clients/client-quicksight/commands/ListGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts index 7903888ceb906..ddc8f88e8cb90 100644 --- a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts +++ b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts @@ -28,6 +28,7 @@ export class ListIAMPolicyAssignmentsCommand extends $Command< ListIAMPolicyAssignmentsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIAMPolicyAssignmentsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts index eec0aabbee6cf..647a3ab7d9ed5 100644 --- a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts +++ b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts @@ -30,6 +30,7 @@ export class ListIAMPolicyAssignmentsForUserCommand extends $Command< ListIAMPolicyAssignmentsForUserCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListIAMPolicyAssignmentsForUserCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListIngestionsCommand.ts b/clients/client-quicksight/commands/ListIngestionsCommand.ts index d8c27f035822a..7e1e9f6ee1ea1 100644 --- a/clients/client-quicksight/commands/ListIngestionsCommand.ts +++ b/clients/client-quicksight/commands/ListIngestionsCommand.ts @@ -28,6 +28,7 @@ export class ListIngestionsCommand extends $Command< ListIngestionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListIngestionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListNamespacesCommand.ts b/clients/client-quicksight/commands/ListNamespacesCommand.ts index f6bea79ecb450..54ba58dd7eb8e 100644 --- a/clients/client-quicksight/commands/ListNamespacesCommand.ts +++ b/clients/client-quicksight/commands/ListNamespacesCommand.ts @@ -28,6 +28,7 @@ export class ListNamespacesCommand extends $Command< ListNamespacesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListNamespacesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListTagsForResourceCommand.ts b/clients/client-quicksight/commands/ListTagsForResourceCommand.ts index bfec3745dc4f8..aa0daee6e871e 100644 --- a/clients/client-quicksight/commands/ListTagsForResourceCommand.ts +++ b/clients/client-quicksight/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts b/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts index e2ccbe2feddd8..aae05c39385c1 100644 --- a/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts +++ b/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts @@ -28,6 +28,7 @@ export class ListTemplateAliasesCommand extends $Command< ListTemplateAliasesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTemplateAliasesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts b/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts index c5df8fd130909..4b3d1f0f202a6 100644 --- a/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts +++ b/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListTemplateVersionsCommand extends $Command< ListTemplateVersionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTemplateVersionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListTemplatesCommand.ts b/clients/client-quicksight/commands/ListTemplatesCommand.ts index d9f275f5e6a64..87ade191b7899 100644 --- a/clients/client-quicksight/commands/ListTemplatesCommand.ts +++ b/clients/client-quicksight/commands/ListTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListTemplatesCommand extends $Command< ListTemplatesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTemplatesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListThemeAliasesCommand.ts b/clients/client-quicksight/commands/ListThemeAliasesCommand.ts index e6a14eaf564c0..2bd8c3bd41ec9 100644 --- a/clients/client-quicksight/commands/ListThemeAliasesCommand.ts +++ b/clients/client-quicksight/commands/ListThemeAliasesCommand.ts @@ -28,6 +28,7 @@ export class ListThemeAliasesCommand extends $Command< ListThemeAliasesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThemeAliasesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListThemeVersionsCommand.ts b/clients/client-quicksight/commands/ListThemeVersionsCommand.ts index 8280bbb340ac9..8cc6a9616bce5 100644 --- a/clients/client-quicksight/commands/ListThemeVersionsCommand.ts +++ b/clients/client-quicksight/commands/ListThemeVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListThemeVersionsCommand extends $Command< ListThemeVersionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThemeVersionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListThemesCommand.ts b/clients/client-quicksight/commands/ListThemesCommand.ts index e9ca83579dea0..5f1334b2e4d30 100644 --- a/clients/client-quicksight/commands/ListThemesCommand.ts +++ b/clients/client-quicksight/commands/ListThemesCommand.ts @@ -28,6 +28,7 @@ export class ListThemesCommand extends $Command< ListThemesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListThemesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListUserGroupsCommand.ts b/clients/client-quicksight/commands/ListUserGroupsCommand.ts index 7873d832f79a8..77837d8870011 100644 --- a/clients/client-quicksight/commands/ListUserGroupsCommand.ts +++ b/clients/client-quicksight/commands/ListUserGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListUserGroupsCommand extends $Command< ListUserGroupsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUserGroupsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/ListUsersCommand.ts b/clients/client-quicksight/commands/ListUsersCommand.ts index 12d187de5d592..d377eacc00f9e 100644 --- a/clients/client-quicksight/commands/ListUsersCommand.ts +++ b/clients/client-quicksight/commands/ListUsersCommand.ts @@ -28,6 +28,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUsersCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/RegisterUserCommand.ts b/clients/client-quicksight/commands/RegisterUserCommand.ts index 626584d01e3f9..d91c772ee34a7 100644 --- a/clients/client-quicksight/commands/RegisterUserCommand.ts +++ b/clients/client-quicksight/commands/RegisterUserCommand.ts @@ -29,6 +29,7 @@ export class RegisterUserCommand extends $Command< RegisterUserCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RegisterUserCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/RestoreAnalysisCommand.ts b/clients/client-quicksight/commands/RestoreAnalysisCommand.ts index 6ee21a5fd5e0e..6d326a24707ec 100644 --- a/clients/client-quicksight/commands/RestoreAnalysisCommand.ts +++ b/clients/client-quicksight/commands/RestoreAnalysisCommand.ts @@ -28,6 +28,7 @@ export class RestoreAnalysisCommand extends $Command< RestoreAnalysisCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RestoreAnalysisCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/SearchAnalysesCommand.ts b/clients/client-quicksight/commands/SearchAnalysesCommand.ts index 7792ede0bc351..6c407284d49f3 100644 --- a/clients/client-quicksight/commands/SearchAnalysesCommand.ts +++ b/clients/client-quicksight/commands/SearchAnalysesCommand.ts @@ -28,6 +28,7 @@ export class SearchAnalysesCommand extends $Command< SearchAnalysesCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchAnalysesCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/SearchDashboardsCommand.ts b/clients/client-quicksight/commands/SearchDashboardsCommand.ts index bf9b4ebe359bc..222ea5b63cc96 100644 --- a/clients/client-quicksight/commands/SearchDashboardsCommand.ts +++ b/clients/client-quicksight/commands/SearchDashboardsCommand.ts @@ -28,6 +28,7 @@ export class SearchDashboardsCommand extends $Command< SearchDashboardsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchDashboardsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/TagResourceCommand.ts b/clients/client-quicksight/commands/TagResourceCommand.ts index 9ef2689944efa..a19c0465ea96c 100644 --- a/clients/client-quicksight/commands/TagResourceCommand.ts +++ b/clients/client-quicksight/commands/TagResourceCommand.ts @@ -49,6 +49,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class TagResourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UntagResourceCommand.ts b/clients/client-quicksight/commands/UntagResourceCommand.ts index 72e5947eb6463..91bdfe2b36086 100644 --- a/clients/client-quicksight/commands/UntagResourceCommand.ts +++ b/clients/client-quicksight/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateAccountCustomizationCommand.ts b/clients/client-quicksight/commands/UpdateAccountCustomizationCommand.ts index 1379f7d514a0c..fd3724a828ffb 100644 --- a/clients/client-quicksight/commands/UpdateAccountCustomizationCommand.ts +++ b/clients/client-quicksight/commands/UpdateAccountCustomizationCommand.ts @@ -33,6 +33,7 @@ export class UpdateAccountCustomizationCommand extends $Command< UpdateAccountCustomizationCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateAccountCustomizationCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateAccountSettingsCommand.ts b/clients/client-quicksight/commands/UpdateAccountSettingsCommand.ts index 7e414d44c85a2..f6717c44a8edd 100644 --- a/clients/client-quicksight/commands/UpdateAccountSettingsCommand.ts +++ b/clients/client-quicksight/commands/UpdateAccountSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateAccountSettingsCommand extends $Command< UpdateAccountSettingsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAccountSettingsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateAnalysisCommand.ts b/clients/client-quicksight/commands/UpdateAnalysisCommand.ts index 16edb597eb304..840f71733c054 100644 --- a/clients/client-quicksight/commands/UpdateAnalysisCommand.ts +++ b/clients/client-quicksight/commands/UpdateAnalysisCommand.ts @@ -28,6 +28,7 @@ export class UpdateAnalysisCommand extends $Command< UpdateAnalysisCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAnalysisCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateAnalysisPermissionsCommand.ts b/clients/client-quicksight/commands/UpdateAnalysisPermissionsCommand.ts index 8296f7cf9cf69..5e53616b7dc93 100644 --- a/clients/client-quicksight/commands/UpdateAnalysisPermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateAnalysisPermissionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateAnalysisPermissionsCommand extends $Command< UpdateAnalysisPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAnalysisPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDashboardCommand.ts b/clients/client-quicksight/commands/UpdateDashboardCommand.ts index b33dcfc984771..269302b2237f4 100644 --- a/clients/client-quicksight/commands/UpdateDashboardCommand.ts +++ b/clients/client-quicksight/commands/UpdateDashboardCommand.ts @@ -28,6 +28,7 @@ export class UpdateDashboardCommand extends $Command< UpdateDashboardCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDashboardCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts index af8d10a477e49..846a32265f1d1 100644 --- a/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateDashboardPermissionsCommand extends $Command< UpdateDashboardPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDashboardPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts b/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts index 6ad89f694ef8f..758f5d8a52af5 100644 --- a/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts +++ b/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateDashboardPublishedVersionCommand extends $Command< UpdateDashboardPublishedVersionCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDashboardPublishedVersionCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDataSetCommand.ts b/clients/client-quicksight/commands/UpdateDataSetCommand.ts index 58054a83a4eda..c5c6340167365 100644 --- a/clients/client-quicksight/commands/UpdateDataSetCommand.ts +++ b/clients/client-quicksight/commands/UpdateDataSetCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSetCommand extends $Command< UpdateDataSetCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSetCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts index 52fa115f297bb..6978ede34f280 100644 --- a/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts @@ -29,6 +29,7 @@ export class UpdateDataSetPermissionsCommand extends $Command< UpdateDataSetPermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDataSetPermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDataSourceCommand.ts b/clients/client-quicksight/commands/UpdateDataSourceCommand.ts index e50cec0c5b317..2cab025a0991b 100644 --- a/clients/client-quicksight/commands/UpdateDataSourceCommand.ts +++ b/clients/client-quicksight/commands/UpdateDataSourceCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSourceCommand extends $Command< UpdateDataSourceCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSourceCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts index dc02385df0a7a..33485779700ff 100644 --- a/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateDataSourcePermissionsCommand extends $Command< UpdateDataSourcePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDataSourcePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateGroupCommand.ts b/clients/client-quicksight/commands/UpdateGroupCommand.ts index 76e58df993374..d9b4fdde6a05a 100644 --- a/clients/client-quicksight/commands/UpdateGroupCommand.ts +++ b/clients/client-quicksight/commands/UpdateGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGroupCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts index f6f97e4935e8c..c11a4dd295447 100644 --- a/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts @@ -31,6 +31,7 @@ export class UpdateIAMPolicyAssignmentCommand extends $Command< UpdateIAMPolicyAssignmentCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateIAMPolicyAssignmentCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts b/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts index ed9bfe76b3d8f..d849423a61d89 100644 --- a/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts +++ b/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts @@ -28,6 +28,7 @@ export class UpdateTemplateAliasCommand extends $Command< UpdateTemplateAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTemplateAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateTemplateCommand.ts b/clients/client-quicksight/commands/UpdateTemplateCommand.ts index ef3007644774a..f5d25bd42937a 100644 --- a/clients/client-quicksight/commands/UpdateTemplateCommand.ts +++ b/clients/client-quicksight/commands/UpdateTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateTemplateCommand extends $Command< UpdateTemplateCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTemplateCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts b/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts index d6faf992f3724..1001a26753600 100644 --- a/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts @@ -28,6 +28,7 @@ export class UpdateTemplatePermissionsCommand extends $Command< UpdateTemplatePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTemplatePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateThemeAliasCommand.ts b/clients/client-quicksight/commands/UpdateThemeAliasCommand.ts index 34509e6062da7..0b124e8fc8117 100644 --- a/clients/client-quicksight/commands/UpdateThemeAliasCommand.ts +++ b/clients/client-quicksight/commands/UpdateThemeAliasCommand.ts @@ -28,6 +28,7 @@ export class UpdateThemeAliasCommand extends $Command< UpdateThemeAliasCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThemeAliasCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateThemeCommand.ts b/clients/client-quicksight/commands/UpdateThemeCommand.ts index 4ace100c26069..f967cded12982 100644 --- a/clients/client-quicksight/commands/UpdateThemeCommand.ts +++ b/clients/client-quicksight/commands/UpdateThemeCommand.ts @@ -28,6 +28,7 @@ export class UpdateThemeCommand extends $Command< UpdateThemeCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateThemeCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateThemePermissionsCommand.ts b/clients/client-quicksight/commands/UpdateThemePermissionsCommand.ts index c4d75594c0014..8608f9f3a6f96 100644 --- a/clients/client-quicksight/commands/UpdateThemePermissionsCommand.ts +++ b/clients/client-quicksight/commands/UpdateThemePermissionsCommand.ts @@ -121,6 +121,7 @@ export class UpdateThemePermissionsCommand extends $Command< UpdateThemePermissionsCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -138,7 +139,10 @@ export class UpdateThemePermissionsCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-quicksight/commands/UpdateUserCommand.ts b/clients/client-quicksight/commands/UpdateUserCommand.ts index d27027100827f..902af920f1767 100644 --- a/clients/client-quicksight/commands/UpdateUserCommand.ts +++ b/clients/client-quicksight/commands/UpdateUserCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, QuickSightClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserCommand extends $Command< configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/AcceptResourceShareInvitationCommand.ts b/clients/client-ram/commands/AcceptResourceShareInvitationCommand.ts index f85ddc9144954..a428a775dd36c 100644 --- a/clients/client-ram/commands/AcceptResourceShareInvitationCommand.ts +++ b/clients/client-ram/commands/AcceptResourceShareInvitationCommand.ts @@ -28,6 +28,7 @@ export class AcceptResourceShareInvitationCommand extends $Command< AcceptResourceShareInvitationCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptResourceShareInvitationCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/AssociateResourceShareCommand.ts b/clients/client-ram/commands/AssociateResourceShareCommand.ts index e43c6bc6507cf..15dfd54c0bb70 100644 --- a/clients/client-ram/commands/AssociateResourceShareCommand.ts +++ b/clients/client-ram/commands/AssociateResourceShareCommand.ts @@ -28,6 +28,7 @@ export class AssociateResourceShareCommand extends $Command< AssociateResourceShareCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateResourceShareCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/AssociateResourceSharePermissionCommand.ts b/clients/client-ram/commands/AssociateResourceSharePermissionCommand.ts index 579947577a733..e0a999f47cb40 100644 --- a/clients/client-ram/commands/AssociateResourceSharePermissionCommand.ts +++ b/clients/client-ram/commands/AssociateResourceSharePermissionCommand.ts @@ -28,6 +28,7 @@ export class AssociateResourceSharePermissionCommand extends $Command< AssociateResourceSharePermissionCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateResourceSharePermissionCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/CreateResourceShareCommand.ts b/clients/client-ram/commands/CreateResourceShareCommand.ts index 43526cc2408c3..b48c0448c19ea 100644 --- a/clients/client-ram/commands/CreateResourceShareCommand.ts +++ b/clients/client-ram/commands/CreateResourceShareCommand.ts @@ -28,6 +28,7 @@ export class CreateResourceShareCommand extends $Command< CreateResourceShareCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateResourceShareCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/DeleteResourceShareCommand.ts b/clients/client-ram/commands/DeleteResourceShareCommand.ts index 0528448348439..a00d40b0c5b83 100644 --- a/clients/client-ram/commands/DeleteResourceShareCommand.ts +++ b/clients/client-ram/commands/DeleteResourceShareCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourceShareCommand extends $Command< DeleteResourceShareCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourceShareCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/DisassociateResourceShareCommand.ts b/clients/client-ram/commands/DisassociateResourceShareCommand.ts index fb14f3a334552..a9e5ebdfa6b3d 100644 --- a/clients/client-ram/commands/DisassociateResourceShareCommand.ts +++ b/clients/client-ram/commands/DisassociateResourceShareCommand.ts @@ -28,6 +28,7 @@ export class DisassociateResourceShareCommand extends $Command< DisassociateResourceShareCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateResourceShareCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/DisassociateResourceSharePermissionCommand.ts b/clients/client-ram/commands/DisassociateResourceSharePermissionCommand.ts index d7719fe8801b5..72e2076855895 100644 --- a/clients/client-ram/commands/DisassociateResourceSharePermissionCommand.ts +++ b/clients/client-ram/commands/DisassociateResourceSharePermissionCommand.ts @@ -32,6 +32,7 @@ export class DisassociateResourceSharePermissionCommand extends $Command< DisassociateResourceSharePermissionCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateResourceSharePermissionCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/EnableSharingWithAwsOrganizationCommand.ts b/clients/client-ram/commands/EnableSharingWithAwsOrganizationCommand.ts index 9411ee65032ee..c739843a7618b 100644 --- a/clients/client-ram/commands/EnableSharingWithAwsOrganizationCommand.ts +++ b/clients/client-ram/commands/EnableSharingWithAwsOrganizationCommand.ts @@ -29,6 +29,7 @@ export class EnableSharingWithAwsOrganizationCommand extends $Command< EnableSharingWithAwsOrganizationCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableSharingWithAwsOrganizationCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/GetPermissionCommand.ts b/clients/client-ram/commands/GetPermissionCommand.ts index 11613282a23d8..ec30fc26fc0c9 100644 --- a/clients/client-ram/commands/GetPermissionCommand.ts +++ b/clients/client-ram/commands/GetPermissionCommand.ts @@ -28,6 +28,7 @@ export class GetPermissionCommand extends $Command< GetPermissionCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPermissionCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/GetResourcePoliciesCommand.ts b/clients/client-ram/commands/GetResourcePoliciesCommand.ts index cb845067a99fd..62221dae7658d 100644 --- a/clients/client-ram/commands/GetResourcePoliciesCommand.ts +++ b/clients/client-ram/commands/GetResourcePoliciesCommand.ts @@ -28,6 +28,7 @@ export class GetResourcePoliciesCommand extends $Command< GetResourcePoliciesCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourcePoliciesCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/GetResourceShareAssociationsCommand.ts b/clients/client-ram/commands/GetResourceShareAssociationsCommand.ts index 1705090718f02..670c8eee74058 100644 --- a/clients/client-ram/commands/GetResourceShareAssociationsCommand.ts +++ b/clients/client-ram/commands/GetResourceShareAssociationsCommand.ts @@ -28,6 +28,7 @@ export class GetResourceShareAssociationsCommand extends $Command< GetResourceShareAssociationsCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourceShareAssociationsCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/GetResourceShareInvitationsCommand.ts b/clients/client-ram/commands/GetResourceShareInvitationsCommand.ts index 1c60086835e33..282c02d63bb0a 100644 --- a/clients/client-ram/commands/GetResourceShareInvitationsCommand.ts +++ b/clients/client-ram/commands/GetResourceShareInvitationsCommand.ts @@ -28,6 +28,7 @@ export class GetResourceShareInvitationsCommand extends $Command< GetResourceShareInvitationsCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourceShareInvitationsCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/GetResourceSharesCommand.ts b/clients/client-ram/commands/GetResourceSharesCommand.ts index 1933110b48ec2..518c0eebc11ec 100644 --- a/clients/client-ram/commands/GetResourceSharesCommand.ts +++ b/clients/client-ram/commands/GetResourceSharesCommand.ts @@ -28,6 +28,7 @@ export class GetResourceSharesCommand extends $Command< GetResourceSharesCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourceSharesCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListPendingInvitationResourcesCommand.ts b/clients/client-ram/commands/ListPendingInvitationResourcesCommand.ts index 1bc33f1c8443f..ab950f8bec8bd 100644 --- a/clients/client-ram/commands/ListPendingInvitationResourcesCommand.ts +++ b/clients/client-ram/commands/ListPendingInvitationResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListPendingInvitationResourcesCommand extends $Command< ListPendingInvitationResourcesCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPendingInvitationResourcesCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListPermissionsCommand.ts b/clients/client-ram/commands/ListPermissionsCommand.ts index fb534e108ed74..1486b44f047a2 100644 --- a/clients/client-ram/commands/ListPermissionsCommand.ts +++ b/clients/client-ram/commands/ListPermissionsCommand.ts @@ -28,6 +28,7 @@ export class ListPermissionsCommand extends $Command< ListPermissionsCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPermissionsCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListPrincipalsCommand.ts b/clients/client-ram/commands/ListPrincipalsCommand.ts index 805045a87944a..199539d16fa21 100644 --- a/clients/client-ram/commands/ListPrincipalsCommand.ts +++ b/clients/client-ram/commands/ListPrincipalsCommand.ts @@ -29,6 +29,7 @@ export class ListPrincipalsCommand extends $Command< ListPrincipalsCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPrincipalsCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListResourceSharePermissionsCommand.ts b/clients/client-ram/commands/ListResourceSharePermissionsCommand.ts index d831e103f93b3..72f3c0caf8eb5 100644 --- a/clients/client-ram/commands/ListResourceSharePermissionsCommand.ts +++ b/clients/client-ram/commands/ListResourceSharePermissionsCommand.ts @@ -28,6 +28,7 @@ export class ListResourceSharePermissionsCommand extends $Command< ListResourceSharePermissionsCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourceSharePermissionsCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListResourceTypesCommand.ts b/clients/client-ram/commands/ListResourceTypesCommand.ts index 273dea8b9f0fc..66b637c08c887 100644 --- a/clients/client-ram/commands/ListResourceTypesCommand.ts +++ b/clients/client-ram/commands/ListResourceTypesCommand.ts @@ -28,6 +28,7 @@ export class ListResourceTypesCommand extends $Command< ListResourceTypesCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourceTypesCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/ListResourcesCommand.ts b/clients/client-ram/commands/ListResourcesCommand.ts index 37be7f8fdbdc9..3b14f7c043ceb 100644 --- a/clients/client-ram/commands/ListResourcesCommand.ts +++ b/clients/client-ram/commands/ListResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesCommand extends $Command< ListResourcesCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/PromoteResourceShareCreatedFromPolicyCommand.ts b/clients/client-ram/commands/PromoteResourceShareCreatedFromPolicyCommand.ts index 8d70da272e508..007c9247b5a6b 100644 --- a/clients/client-ram/commands/PromoteResourceShareCreatedFromPolicyCommand.ts +++ b/clients/client-ram/commands/PromoteResourceShareCreatedFromPolicyCommand.ts @@ -44,6 +44,7 @@ export class PromoteResourceShareCreatedFromPolicyCommand extends $Command< PromoteResourceShareCreatedFromPolicyCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class PromoteResourceShareCreatedFromPolicyCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/RejectResourceShareInvitationCommand.ts b/clients/client-ram/commands/RejectResourceShareInvitationCommand.ts index 44e0919c64d9c..260682e290800 100644 --- a/clients/client-ram/commands/RejectResourceShareInvitationCommand.ts +++ b/clients/client-ram/commands/RejectResourceShareInvitationCommand.ts @@ -28,6 +28,7 @@ export class RejectResourceShareInvitationCommand extends $Command< RejectResourceShareInvitationCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RejectResourceShareInvitationCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/TagResourceCommand.ts b/clients/client-ram/commands/TagResourceCommand.ts index a18f21fd18470..3ebd34cc87062 100644 --- a/clients/client-ram/commands/TagResourceCommand.ts +++ b/clients/client-ram/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/UntagResourceCommand.ts b/clients/client-ram/commands/UntagResourceCommand.ts index ba3bebb234c0b..f0088f603ee2a 100644 --- a/clients/client-ram/commands/UntagResourceCommand.ts +++ b/clients/client-ram/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ram/commands/UpdateResourceShareCommand.ts b/clients/client-ram/commands/UpdateResourceShareCommand.ts index eb4ba797bab4d..cce6c391ae628 100644 --- a/clients/client-ram/commands/UpdateResourceShareCommand.ts +++ b/clients/client-ram/commands/UpdateResourceShareCommand.ts @@ -28,6 +28,7 @@ export class UpdateResourceShareCommand extends $Command< UpdateResourceShareCommandOutput, RAMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResourceShareCommand extends $Command< configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/BatchExecuteStatementCommand.ts b/clients/client-rds-data/commands/BatchExecuteStatementCommand.ts index f73b1f9efec7f..5c7c805b4ce7f 100644 --- a/clients/client-rds-data/commands/BatchExecuteStatementCommand.ts +++ b/clients/client-rds-data/commands/BatchExecuteStatementCommand.ts @@ -36,6 +36,7 @@ export class BatchExecuteStatementCommand extends $Command< BatchExecuteStatementCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class BatchExecuteStatementCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/BeginTransactionCommand.ts b/clients/client-rds-data/commands/BeginTransactionCommand.ts index ac918a75aa948..269843b049407 100644 --- a/clients/client-rds-data/commands/BeginTransactionCommand.ts +++ b/clients/client-rds-data/commands/BeginTransactionCommand.ts @@ -39,6 +39,7 @@ export class BeginTransactionCommand extends $Command< BeginTransactionCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class BeginTransactionCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/CommitTransactionCommand.ts b/clients/client-rds-data/commands/CommitTransactionCommand.ts index b824513acdb42..feae4a0d920be 100644 --- a/clients/client-rds-data/commands/CommitTransactionCommand.ts +++ b/clients/client-rds-data/commands/CommitTransactionCommand.ts @@ -29,6 +29,7 @@ export class CommitTransactionCommand extends $Command< CommitTransactionCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CommitTransactionCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/ExecuteSqlCommand.ts b/clients/client-rds-data/commands/ExecuteSqlCommand.ts index 3c541301fe04e..bd6795a35e4e8 100644 --- a/clients/client-rds-data/commands/ExecuteSqlCommand.ts +++ b/clients/client-rds-data/commands/ExecuteSqlCommand.ts @@ -32,6 +32,7 @@ export class ExecuteSqlCommand extends $Command< ExecuteSqlCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ExecuteSqlCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/ExecuteStatementCommand.ts b/clients/client-rds-data/commands/ExecuteStatementCommand.ts index 69551c5f7a183..f2278d886a026 100644 --- a/clients/client-rds-data/commands/ExecuteStatementCommand.ts +++ b/clients/client-rds-data/commands/ExecuteStatementCommand.ts @@ -34,6 +34,7 @@ export class ExecuteStatementCommand extends $Command< ExecuteStatementCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ExecuteStatementCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds-data/commands/RollbackTransactionCommand.ts b/clients/client-rds-data/commands/RollbackTransactionCommand.ts index 04c229035bb72..abc1dc733ec64 100644 --- a/clients/client-rds-data/commands/RollbackTransactionCommand.ts +++ b/clients/client-rds-data/commands/RollbackTransactionCommand.ts @@ -28,6 +28,7 @@ export class RollbackTransactionCommand extends $Command< RollbackTransactionCommandOutput, RDSDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RollbackTransactionCommand extends $Command< configuration: RDSDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/AddRoleToDBClusterCommand.ts b/clients/client-rds/commands/AddRoleToDBClusterCommand.ts index b3ec3960fcffe..a9ccb649410e9 100644 --- a/clients/client-rds/commands/AddRoleToDBClusterCommand.ts +++ b/clients/client-rds/commands/AddRoleToDBClusterCommand.ts @@ -33,6 +33,7 @@ export class AddRoleToDBClusterCommand extends $Command< AddRoleToDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AddRoleToDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/AddRoleToDBInstanceCommand.ts b/clients/client-rds/commands/AddRoleToDBInstanceCommand.ts index fe65914af41fd..e27a4bfe86e4b 100644 --- a/clients/client-rds/commands/AddRoleToDBInstanceCommand.ts +++ b/clients/client-rds/commands/AddRoleToDBInstanceCommand.ts @@ -31,6 +31,7 @@ export class AddRoleToDBInstanceCommand extends $Command< AddRoleToDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AddRoleToDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/AddSourceIdentifierToSubscriptionCommand.ts b/clients/client-rds/commands/AddSourceIdentifierToSubscriptionCommand.ts index 0a50999999763..51e425b9495a5 100644 --- a/clients/client-rds/commands/AddSourceIdentifierToSubscriptionCommand.ts +++ b/clients/client-rds/commands/AddSourceIdentifierToSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class AddSourceIdentifierToSubscriptionCommand extends $Command< AddSourceIdentifierToSubscriptionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddSourceIdentifierToSubscriptionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/AddTagsToResourceCommand.ts b/clients/client-rds/commands/AddTagsToResourceCommand.ts index 93b5750666e9f..1c7b269b39107 100644 --- a/clients/client-rds/commands/AddTagsToResourceCommand.ts +++ b/clients/client-rds/commands/AddTagsToResourceCommand.ts @@ -30,6 +30,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ApplyPendingMaintenanceActionCommand.ts b/clients/client-rds/commands/ApplyPendingMaintenanceActionCommand.ts index aa6a6a05655ba..2a8d58b8719dc 100644 --- a/clients/client-rds/commands/ApplyPendingMaintenanceActionCommand.ts +++ b/clients/client-rds/commands/ApplyPendingMaintenanceActionCommand.ts @@ -28,6 +28,7 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< ApplyPendingMaintenanceActionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ApplyPendingMaintenanceActionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/AuthorizeDBSecurityGroupIngressCommand.ts b/clients/client-rds/commands/AuthorizeDBSecurityGroupIngressCommand.ts index d730339cfa080..0fce4ed18b02c 100644 --- a/clients/client-rds/commands/AuthorizeDBSecurityGroupIngressCommand.ts +++ b/clients/client-rds/commands/AuthorizeDBSecurityGroupIngressCommand.ts @@ -39,6 +39,7 @@ export class AuthorizeDBSecurityGroupIngressCommand extends $Command< AuthorizeDBSecurityGroupIngressCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class AuthorizeDBSecurityGroupIngressCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/BacktrackDBClusterCommand.ts b/clients/client-rds/commands/BacktrackDBClusterCommand.ts index f27d2ecaac6b5..34bfef913004b 100644 --- a/clients/client-rds/commands/BacktrackDBClusterCommand.ts +++ b/clients/client-rds/commands/BacktrackDBClusterCommand.ts @@ -36,6 +36,7 @@ export class BacktrackDBClusterCommand extends $Command< BacktrackDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class BacktrackDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CancelExportTaskCommand.ts b/clients/client-rds/commands/CancelExportTaskCommand.ts index 34146af9f0b2d..3bf9f096ef70d 100644 --- a/clients/client-rds/commands/CancelExportTaskCommand.ts +++ b/clients/client-rds/commands/CancelExportTaskCommand.ts @@ -30,6 +30,7 @@ export class CancelExportTaskCommand extends $Command< CancelExportTaskCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CancelExportTaskCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CopyDBClusterParameterGroupCommand.ts b/clients/client-rds/commands/CopyDBClusterParameterGroupCommand.ts index a4abe771e2db4..2a3c4112dbcee 100644 --- a/clients/client-rds/commands/CopyDBClusterParameterGroupCommand.ts +++ b/clients/client-rds/commands/CopyDBClusterParameterGroupCommand.ts @@ -31,6 +31,7 @@ export class CopyDBClusterParameterGroupCommand extends $Command< CopyDBClusterParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CopyDBClusterParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CopyDBClusterSnapshotCommand.ts b/clients/client-rds/commands/CopyDBClusterSnapshotCommand.ts index 8c567f0433da1..c1bb3df362d77 100644 --- a/clients/client-rds/commands/CopyDBClusterSnapshotCommand.ts +++ b/clients/client-rds/commands/CopyDBClusterSnapshotCommand.ts @@ -103,6 +103,7 @@ export class CopyDBClusterSnapshotCommand extends $Command< CopyDBClusterSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -120,8 +121,11 @@ export class CopyDBClusterSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CopyDBParameterGroupCommand.ts b/clients/client-rds/commands/CopyDBParameterGroupCommand.ts index 331a5cac152c2..834bf1af0451f 100644 --- a/clients/client-rds/commands/CopyDBParameterGroupCommand.ts +++ b/clients/client-rds/commands/CopyDBParameterGroupCommand.ts @@ -28,6 +28,7 @@ export class CopyDBParameterGroupCommand extends $Command< CopyDBParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyDBParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CopyDBSnapshotCommand.ts b/clients/client-rds/commands/CopyDBSnapshotCommand.ts index e242f20dba7d5..9d4f70ddd06c0 100644 --- a/clients/client-rds/commands/CopyDBSnapshotCommand.ts +++ b/clients/client-rds/commands/CopyDBSnapshotCommand.ts @@ -37,6 +37,7 @@ export class CopyDBSnapshotCommand extends $Command< CopyDBSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class CopyDBSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CopyOptionGroupCommand.ts b/clients/client-rds/commands/CopyOptionGroupCommand.ts index 7719ac74c8b81..7f2c94a02fb20 100644 --- a/clients/client-rds/commands/CopyOptionGroupCommand.ts +++ b/clients/client-rds/commands/CopyOptionGroupCommand.ts @@ -28,6 +28,7 @@ export class CopyOptionGroupCommand extends $Command< CopyOptionGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CopyOptionGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateCustomAvailabilityZoneCommand.ts b/clients/client-rds/commands/CreateCustomAvailabilityZoneCommand.ts index 6f6bd684ae8f6..8291dfa5d1730 100644 --- a/clients/client-rds/commands/CreateCustomAvailabilityZoneCommand.ts +++ b/clients/client-rds/commands/CreateCustomAvailabilityZoneCommand.ts @@ -34,6 +34,7 @@ export class CreateCustomAvailabilityZoneCommand extends $Command< CreateCustomAvailabilityZoneCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateCustomAvailabilityZoneCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBClusterCommand.ts b/clients/client-rds/commands/CreateDBClusterCommand.ts index ecfbbe21d3077..788098f2f0748 100644 --- a/clients/client-rds/commands/CreateDBClusterCommand.ts +++ b/clients/client-rds/commands/CreateDBClusterCommand.ts @@ -42,6 +42,7 @@ export class CreateDBClusterCommand extends $Command< CreateDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,8 +60,11 @@ export class CreateDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBClusterEndpointCommand.ts b/clients/client-rds/commands/CreateDBClusterEndpointCommand.ts index 0684415810813..3d1c077bdb9c7 100644 --- a/clients/client-rds/commands/CreateDBClusterEndpointCommand.ts +++ b/clients/client-rds/commands/CreateDBClusterEndpointCommand.ts @@ -31,6 +31,7 @@ export class CreateDBClusterEndpointCommand extends $Command< CreateDBClusterEndpointCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDBClusterEndpointCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBClusterParameterGroupCommand.ts b/clients/client-rds/commands/CreateDBClusterParameterGroupCommand.ts index d5ea5164dd234..6c9ff93a6dfb5 100644 --- a/clients/client-rds/commands/CreateDBClusterParameterGroupCommand.ts +++ b/clients/client-rds/commands/CreateDBClusterParameterGroupCommand.ts @@ -59,6 +59,7 @@ export class CreateDBClusterParameterGroupCommand extends $Command< CreateDBClusterParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateDBClusterParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBClusterSnapshotCommand.ts b/clients/client-rds/commands/CreateDBClusterSnapshotCommand.ts index 4624a2f58fdc5..98d7be8b66227 100644 --- a/clients/client-rds/commands/CreateDBClusterSnapshotCommand.ts +++ b/clients/client-rds/commands/CreateDBClusterSnapshotCommand.ts @@ -34,6 +34,7 @@ export class CreateDBClusterSnapshotCommand extends $Command< CreateDBClusterSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDBClusterSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBInstanceCommand.ts b/clients/client-rds/commands/CreateDBInstanceCommand.ts index fe9bee640644b..f845ce133fd85 100644 --- a/clients/client-rds/commands/CreateDBInstanceCommand.ts +++ b/clients/client-rds/commands/CreateDBInstanceCommand.ts @@ -28,6 +28,7 @@ export class CreateDBInstanceCommand extends $Command< CreateDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBInstanceReadReplicaCommand.ts b/clients/client-rds/commands/CreateDBInstanceReadReplicaCommand.ts index 92d3100d6b8db..be100503d0731 100644 --- a/clients/client-rds/commands/CreateDBInstanceReadReplicaCommand.ts +++ b/clients/client-rds/commands/CreateDBInstanceReadReplicaCommand.ts @@ -44,6 +44,7 @@ export class CreateDBInstanceReadReplicaCommand extends $Command< CreateDBInstanceReadReplicaCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class CreateDBInstanceReadReplicaCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getCrossRegionPresignedUrlPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBParameterGroupCommand.ts b/clients/client-rds/commands/CreateDBParameterGroupCommand.ts index c76ab5468b4ad..dcb23eff82061 100644 --- a/clients/client-rds/commands/CreateDBParameterGroupCommand.ts +++ b/clients/client-rds/commands/CreateDBParameterGroupCommand.ts @@ -48,6 +48,7 @@ export class CreateDBParameterGroupCommand extends $Command< CreateDBParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateDBParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBProxyCommand.ts b/clients/client-rds/commands/CreateDBProxyCommand.ts index f6776664f2251..0be55956d8a0b 100644 --- a/clients/client-rds/commands/CreateDBProxyCommand.ts +++ b/clients/client-rds/commands/CreateDBProxyCommand.ts @@ -28,6 +28,7 @@ export class CreateDBProxyCommand extends $Command< CreateDBProxyCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBProxyCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBSecurityGroupCommand.ts b/clients/client-rds/commands/CreateDBSecurityGroupCommand.ts index 812091de73b52..d11c6e92224a2 100644 --- a/clients/client-rds/commands/CreateDBSecurityGroupCommand.ts +++ b/clients/client-rds/commands/CreateDBSecurityGroupCommand.ts @@ -31,6 +31,7 @@ export class CreateDBSecurityGroupCommand extends $Command< CreateDBSecurityGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDBSecurityGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBSnapshotCommand.ts b/clients/client-rds/commands/CreateDBSnapshotCommand.ts index a1cb7937a9c56..88d9b7a5e48e6 100644 --- a/clients/client-rds/commands/CreateDBSnapshotCommand.ts +++ b/clients/client-rds/commands/CreateDBSnapshotCommand.ts @@ -29,6 +29,7 @@ export class CreateDBSnapshotCommand extends $Command< CreateDBSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDBSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateDBSubnetGroupCommand.ts b/clients/client-rds/commands/CreateDBSubnetGroupCommand.ts index dece237f15369..4b2ed4e323210 100644 --- a/clients/client-rds/commands/CreateDBSubnetGroupCommand.ts +++ b/clients/client-rds/commands/CreateDBSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateDBSubnetGroupCommand extends $Command< CreateDBSubnetGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDBSubnetGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateEventSubscriptionCommand.ts b/clients/client-rds/commands/CreateEventSubscriptionCommand.ts index 451f70dcdf3ec..181bbcc6d1bbf 100644 --- a/clients/client-rds/commands/CreateEventSubscriptionCommand.ts +++ b/clients/client-rds/commands/CreateEventSubscriptionCommand.ts @@ -50,6 +50,7 @@ export class CreateEventSubscriptionCommand extends $Command< CreateEventSubscriptionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CreateEventSubscriptionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateGlobalClusterCommand.ts b/clients/client-rds/commands/CreateGlobalClusterCommand.ts index 4b5265f6416ae..6f13ec31312a0 100644 --- a/clients/client-rds/commands/CreateGlobalClusterCommand.ts +++ b/clients/client-rds/commands/CreateGlobalClusterCommand.ts @@ -44,6 +44,7 @@ export class CreateGlobalClusterCommand extends $Command< CreateGlobalClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateGlobalClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/CreateOptionGroupCommand.ts b/clients/client-rds/commands/CreateOptionGroupCommand.ts index bc16d463a37a2..133bb318de659 100644 --- a/clients/client-rds/commands/CreateOptionGroupCommand.ts +++ b/clients/client-rds/commands/CreateOptionGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateOptionGroupCommand extends $Command< CreateOptionGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateOptionGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteCustomAvailabilityZoneCommand.ts b/clients/client-rds/commands/DeleteCustomAvailabilityZoneCommand.ts index 7a189e3c9c28f..c0fa8fac55368 100644 --- a/clients/client-rds/commands/DeleteCustomAvailabilityZoneCommand.ts +++ b/clients/client-rds/commands/DeleteCustomAvailabilityZoneCommand.ts @@ -34,6 +34,7 @@ export class DeleteCustomAvailabilityZoneCommand extends $Command< DeleteCustomAvailabilityZoneCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteCustomAvailabilityZoneCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBClusterCommand.ts b/clients/client-rds/commands/DeleteDBClusterCommand.ts index 03e854d7e2911..678ff8e226a2f 100644 --- a/clients/client-rds/commands/DeleteDBClusterCommand.ts +++ b/clients/client-rds/commands/DeleteDBClusterCommand.ts @@ -38,6 +38,7 @@ export class DeleteDBClusterCommand extends $Command< DeleteDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBClusterEndpointCommand.ts b/clients/client-rds/commands/DeleteDBClusterEndpointCommand.ts index b5f66dffc2d29..4d89a9583453d 100644 --- a/clients/client-rds/commands/DeleteDBClusterEndpointCommand.ts +++ b/clients/client-rds/commands/DeleteDBClusterEndpointCommand.ts @@ -31,6 +31,7 @@ export class DeleteDBClusterEndpointCommand extends $Command< DeleteDBClusterEndpointCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDBClusterEndpointCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBClusterParameterGroupCommand.ts b/clients/client-rds/commands/DeleteDBClusterParameterGroupCommand.ts index ab29ff5c08111..c706c04370ed2 100644 --- a/clients/client-rds/commands/DeleteDBClusterParameterGroupCommand.ts +++ b/clients/client-rds/commands/DeleteDBClusterParameterGroupCommand.ts @@ -35,6 +35,7 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< DeleteDBClusterParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteDBClusterParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBClusterSnapshotCommand.ts b/clients/client-rds/commands/DeleteDBClusterSnapshotCommand.ts index ffc7343dffac1..7c5bc4efa3831 100644 --- a/clients/client-rds/commands/DeleteDBClusterSnapshotCommand.ts +++ b/clients/client-rds/commands/DeleteDBClusterSnapshotCommand.ts @@ -39,6 +39,7 @@ export class DeleteDBClusterSnapshotCommand extends $Command< DeleteDBClusterSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteDBClusterSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBInstanceAutomatedBackupCommand.ts b/clients/client-rds/commands/DeleteDBInstanceAutomatedBackupCommand.ts index 0c61d1b653d66..065a20197f9c1 100644 --- a/clients/client-rds/commands/DeleteDBInstanceAutomatedBackupCommand.ts +++ b/clients/client-rds/commands/DeleteDBInstanceAutomatedBackupCommand.ts @@ -28,6 +28,7 @@ export class DeleteDBInstanceAutomatedBackupCommand extends $Command< DeleteDBInstanceAutomatedBackupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDBInstanceAutomatedBackupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBInstanceCommand.ts b/clients/client-rds/commands/DeleteDBInstanceCommand.ts index b9c11884340ca..9a0ea11760ee3 100644 --- a/clients/client-rds/commands/DeleteDBInstanceCommand.ts +++ b/clients/client-rds/commands/DeleteDBInstanceCommand.ts @@ -53,6 +53,7 @@ export class DeleteDBInstanceCommand extends $Command< DeleteDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class DeleteDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBParameterGroupCommand.ts b/clients/client-rds/commands/DeleteDBParameterGroupCommand.ts index 07b1b02ac9e31..ee7c7c999998f 100644 --- a/clients/client-rds/commands/DeleteDBParameterGroupCommand.ts +++ b/clients/client-rds/commands/DeleteDBParameterGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteDBParameterGroupCommand extends $Command< DeleteDBParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDBParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBProxyCommand.ts b/clients/client-rds/commands/DeleteDBProxyCommand.ts index f83a6f246420b..dc87bfba2e157 100644 --- a/clients/client-rds/commands/DeleteDBProxyCommand.ts +++ b/clients/client-rds/commands/DeleteDBProxyCommand.ts @@ -28,6 +28,7 @@ export class DeleteDBProxyCommand extends $Command< DeleteDBProxyCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDBProxyCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBSecurityGroupCommand.ts b/clients/client-rds/commands/DeleteDBSecurityGroupCommand.ts index 28336615dc292..77ddbe71173db 100644 --- a/clients/client-rds/commands/DeleteDBSecurityGroupCommand.ts +++ b/clients/client-rds/commands/DeleteDBSecurityGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteDBSecurityGroupCommand extends $Command< DeleteDBSecurityGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDBSecurityGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBSnapshotCommand.ts b/clients/client-rds/commands/DeleteDBSnapshotCommand.ts index 331997472b764..7911dfdfa4565 100644 --- a/clients/client-rds/commands/DeleteDBSnapshotCommand.ts +++ b/clients/client-rds/commands/DeleteDBSnapshotCommand.ts @@ -32,6 +32,7 @@ export class DeleteDBSnapshotCommand extends $Command< DeleteDBSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteDBSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteDBSubnetGroupCommand.ts b/clients/client-rds/commands/DeleteDBSubnetGroupCommand.ts index edaf3fdbcae64..940e4fe25cea0 100644 --- a/clients/client-rds/commands/DeleteDBSubnetGroupCommand.ts +++ b/clients/client-rds/commands/DeleteDBSubnetGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteDBSubnetGroupCommand extends $Command< DeleteDBSubnetGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteDBSubnetGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteEventSubscriptionCommand.ts b/clients/client-rds/commands/DeleteEventSubscriptionCommand.ts index 783e5d3ab5c92..5e812d6ceab10 100644 --- a/clients/client-rds/commands/DeleteEventSubscriptionCommand.ts +++ b/clients/client-rds/commands/DeleteEventSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteEventSubscriptionCommand extends $Command< DeleteEventSubscriptionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEventSubscriptionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteGlobalClusterCommand.ts b/clients/client-rds/commands/DeleteGlobalClusterCommand.ts index fffb8d4306c5b..b29b350ac3339 100644 --- a/clients/client-rds/commands/DeleteGlobalClusterCommand.ts +++ b/clients/client-rds/commands/DeleteGlobalClusterCommand.ts @@ -34,6 +34,7 @@ export class DeleteGlobalClusterCommand extends $Command< DeleteGlobalClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteGlobalClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteInstallationMediaCommand.ts b/clients/client-rds/commands/DeleteInstallationMediaCommand.ts index 7d8a99117799b..c4aa95e9e570a 100644 --- a/clients/client-rds/commands/DeleteInstallationMediaCommand.ts +++ b/clients/client-rds/commands/DeleteInstallationMediaCommand.ts @@ -29,6 +29,7 @@ export class DeleteInstallationMediaCommand extends $Command< DeleteInstallationMediaCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteInstallationMediaCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeleteOptionGroupCommand.ts b/clients/client-rds/commands/DeleteOptionGroupCommand.ts index 8db48d5c76c42..cbac8173152cf 100644 --- a/clients/client-rds/commands/DeleteOptionGroupCommand.ts +++ b/clients/client-rds/commands/DeleteOptionGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteOptionGroupCommand extends $Command< DeleteOptionGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOptionGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DeregisterDBProxyTargetsCommand.ts b/clients/client-rds/commands/DeregisterDBProxyTargetsCommand.ts index b017245905e8d..7b62a7453f91c 100644 --- a/clients/client-rds/commands/DeregisterDBProxyTargetsCommand.ts +++ b/clients/client-rds/commands/DeregisterDBProxyTargetsCommand.ts @@ -28,6 +28,7 @@ export class DeregisterDBProxyTargetsCommand extends $Command< DeregisterDBProxyTargetsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterDBProxyTargetsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeAccountAttributesCommand.ts b/clients/client-rds/commands/DescribeAccountAttributesCommand.ts index db6a8ea2d86fc..985d9b7cbdac7 100644 --- a/clients/client-rds/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-rds/commands/DescribeAccountAttributesCommand.ts @@ -29,6 +29,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeCertificatesCommand.ts b/clients/client-rds/commands/DescribeCertificatesCommand.ts index 92dbe9bdce932..1cc8c19804506 100644 --- a/clients/client-rds/commands/DescribeCertificatesCommand.ts +++ b/clients/client-rds/commands/DescribeCertificatesCommand.ts @@ -28,6 +28,7 @@ export class DescribeCertificatesCommand extends $Command< DescribeCertificatesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCertificatesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeCustomAvailabilityZonesCommand.ts b/clients/client-rds/commands/DescribeCustomAvailabilityZonesCommand.ts index 73bd2cdd61b64..c6f123657a13a 100644 --- a/clients/client-rds/commands/DescribeCustomAvailabilityZonesCommand.ts +++ b/clients/client-rds/commands/DescribeCustomAvailabilityZonesCommand.ts @@ -34,6 +34,7 @@ export class DescribeCustomAvailabilityZonesCommand extends $Command< DescribeCustomAvailabilityZonesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeCustomAvailabilityZonesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterBacktracksCommand.ts b/clients/client-rds/commands/DescribeDBClusterBacktracksCommand.ts index b9b3e4b481f9c..5e7a3c3f195f1 100644 --- a/clients/client-rds/commands/DescribeDBClusterBacktracksCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterBacktracksCommand.ts @@ -35,6 +35,7 @@ export class DescribeDBClusterBacktracksCommand extends $Command< DescribeDBClusterBacktracksCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDBClusterBacktracksCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterEndpointsCommand.ts b/clients/client-rds/commands/DescribeDBClusterEndpointsCommand.ts index d21f57fabccd0..5b592cdc75ab4 100644 --- a/clients/client-rds/commands/DescribeDBClusterEndpointsCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterEndpointsCommand.ts @@ -31,6 +31,7 @@ export class DescribeDBClusterEndpointsCommand extends $Command< DescribeDBClusterEndpointsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDBClusterEndpointsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterParameterGroupsCommand.ts b/clients/client-rds/commands/DescribeDBClusterParameterGroupsCommand.ts index 0c87ebcadf7b8..7f9d2b211a495 100644 --- a/clients/client-rds/commands/DescribeDBClusterParameterGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterParameterGroupsCommand.ts @@ -39,6 +39,7 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< DescribeDBClusterParameterGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeDBClusterParameterGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterParametersCommand.ts b/clients/client-rds/commands/DescribeDBClusterParametersCommand.ts index d681b9cafaf75..b33dc4b647422 100644 --- a/clients/client-rds/commands/DescribeDBClusterParametersCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterParametersCommand.ts @@ -35,6 +35,7 @@ export class DescribeDBClusterParametersCommand extends $Command< DescribeDBClusterParametersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDBClusterParametersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterSnapshotAttributesCommand.ts b/clients/client-rds/commands/DescribeDBClusterSnapshotAttributesCommand.ts index 59037cbc51191..173dedaf22f1d 100644 --- a/clients/client-rds/commands/DescribeDBClusterSnapshotAttributesCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterSnapshotAttributesCommand.ts @@ -42,6 +42,7 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< DescribeDBClusterSnapshotAttributesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeDBClusterSnapshotAttributesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClusterSnapshotsCommand.ts b/clients/client-rds/commands/DescribeDBClusterSnapshotsCommand.ts index 38d1965865616..60be68790c956 100644 --- a/clients/client-rds/commands/DescribeDBClusterSnapshotsCommand.ts +++ b/clients/client-rds/commands/DescribeDBClusterSnapshotsCommand.ts @@ -35,6 +35,7 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< DescribeDBClusterSnapshotsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDBClusterSnapshotsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBClustersCommand.ts b/clients/client-rds/commands/DescribeDBClustersCommand.ts index d6aa85852714e..5f97e8816f6e1 100644 --- a/clients/client-rds/commands/DescribeDBClustersCommand.ts +++ b/clients/client-rds/commands/DescribeDBClustersCommand.ts @@ -35,6 +35,7 @@ export class DescribeDBClustersCommand extends $Command< DescribeDBClustersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDBClustersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBEngineVersionsCommand.ts b/clients/client-rds/commands/DescribeDBEngineVersionsCommand.ts index 4515474a29270..0c59702d81ca6 100644 --- a/clients/client-rds/commands/DescribeDBEngineVersionsCommand.ts +++ b/clients/client-rds/commands/DescribeDBEngineVersionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBEngineVersionsCommand extends $Command< DescribeDBEngineVersionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBEngineVersionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBInstanceAutomatedBackupsCommand.ts b/clients/client-rds/commands/DescribeDBInstanceAutomatedBackupsCommand.ts index 5033a5aa425ad..7d981f74a5bba 100644 --- a/clients/client-rds/commands/DescribeDBInstanceAutomatedBackupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBInstanceAutomatedBackupsCommand.ts @@ -34,6 +34,7 @@ export class DescribeDBInstanceAutomatedBackupsCommand extends $Command< DescribeDBInstanceAutomatedBackupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeDBInstanceAutomatedBackupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBInstancesCommand.ts b/clients/client-rds/commands/DescribeDBInstancesCommand.ts index ee957ba52870c..f1e1cd2fce4d9 100644 --- a/clients/client-rds/commands/DescribeDBInstancesCommand.ts +++ b/clients/client-rds/commands/DescribeDBInstancesCommand.ts @@ -31,6 +31,7 @@ export class DescribeDBInstancesCommand extends $Command< DescribeDBInstancesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDBInstancesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBLogFilesCommand.ts b/clients/client-rds/commands/DescribeDBLogFilesCommand.ts index 4d03f9b64a833..8dea76a73b60a 100644 --- a/clients/client-rds/commands/DescribeDBLogFilesCommand.ts +++ b/clients/client-rds/commands/DescribeDBLogFilesCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBLogFilesCommand extends $Command< DescribeDBLogFilesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBLogFilesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBParameterGroupsCommand.ts b/clients/client-rds/commands/DescribeDBParameterGroupsCommand.ts index 78a0634245e13..42be8d8802a03 100644 --- a/clients/client-rds/commands/DescribeDBParameterGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBParameterGroupsCommand.ts @@ -31,6 +31,7 @@ export class DescribeDBParameterGroupsCommand extends $Command< DescribeDBParameterGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDBParameterGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBParametersCommand.ts b/clients/client-rds/commands/DescribeDBParametersCommand.ts index 8975431b03382..1304c7f9a61a2 100644 --- a/clients/client-rds/commands/DescribeDBParametersCommand.ts +++ b/clients/client-rds/commands/DescribeDBParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBParametersCommand extends $Command< DescribeDBParametersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBParametersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBProxiesCommand.ts b/clients/client-rds/commands/DescribeDBProxiesCommand.ts index 11042dd38fdf9..b6ee578021b15 100644 --- a/clients/client-rds/commands/DescribeDBProxiesCommand.ts +++ b/clients/client-rds/commands/DescribeDBProxiesCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBProxiesCommand extends $Command< DescribeDBProxiesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBProxiesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBProxyTargetGroupsCommand.ts b/clients/client-rds/commands/DescribeDBProxyTargetGroupsCommand.ts index db9a56de087d9..c2a5e98253bc1 100644 --- a/clients/client-rds/commands/DescribeDBProxyTargetGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBProxyTargetGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBProxyTargetGroupsCommand extends $Command< DescribeDBProxyTargetGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBProxyTargetGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBProxyTargetsCommand.ts b/clients/client-rds/commands/DescribeDBProxyTargetsCommand.ts index fc875a6b74346..bfd75b0b7e1b1 100644 --- a/clients/client-rds/commands/DescribeDBProxyTargetsCommand.ts +++ b/clients/client-rds/commands/DescribeDBProxyTargetsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBProxyTargetsCommand extends $Command< DescribeDBProxyTargetsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBProxyTargetsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBSecurityGroupsCommand.ts b/clients/client-rds/commands/DescribeDBSecurityGroupsCommand.ts index 9c1c2e60f7f49..2df05e64e4e3f 100644 --- a/clients/client-rds/commands/DescribeDBSecurityGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBSecurityGroupsCommand.ts @@ -31,6 +31,7 @@ export class DescribeDBSecurityGroupsCommand extends $Command< DescribeDBSecurityGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDBSecurityGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBSnapshotAttributesCommand.ts b/clients/client-rds/commands/DescribeDBSnapshotAttributesCommand.ts index fb4e5aa1bc662..583e2d44adc59 100644 --- a/clients/client-rds/commands/DescribeDBSnapshotAttributesCommand.ts +++ b/clients/client-rds/commands/DescribeDBSnapshotAttributesCommand.ts @@ -35,6 +35,7 @@ export class DescribeDBSnapshotAttributesCommand extends $Command< DescribeDBSnapshotAttributesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeDBSnapshotAttributesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBSnapshotsCommand.ts b/clients/client-rds/commands/DescribeDBSnapshotsCommand.ts index 58dae19f59ddb..9cee4d3330e63 100644 --- a/clients/client-rds/commands/DescribeDBSnapshotsCommand.ts +++ b/clients/client-rds/commands/DescribeDBSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class DescribeDBSnapshotsCommand extends $Command< DescribeDBSnapshotsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDBSnapshotsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeDBSubnetGroupsCommand.ts b/clients/client-rds/commands/DescribeDBSubnetGroupsCommand.ts index e5d26daa442c1..4a1b8e998c414 100644 --- a/clients/client-rds/commands/DescribeDBSubnetGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeDBSubnetGroupsCommand.ts @@ -31,6 +31,7 @@ export class DescribeDBSubnetGroupsCommand extends $Command< DescribeDBSubnetGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeDBSubnetGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeEngineDefaultClusterParametersCommand.ts b/clients/client-rds/commands/DescribeEngineDefaultClusterParametersCommand.ts index ddc4a9437c452..c1dcb468f0fba 100644 --- a/clients/client-rds/commands/DescribeEngineDefaultClusterParametersCommand.ts +++ b/clients/client-rds/commands/DescribeEngineDefaultClusterParametersCommand.ts @@ -36,6 +36,7 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< DescribeEngineDefaultClusterParametersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeEngineDefaultClusterParametersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeEngineDefaultParametersCommand.ts b/clients/client-rds/commands/DescribeEngineDefaultParametersCommand.ts index 3f57001e7f1ea..793e4caedd5f4 100644 --- a/clients/client-rds/commands/DescribeEngineDefaultParametersCommand.ts +++ b/clients/client-rds/commands/DescribeEngineDefaultParametersCommand.ts @@ -28,6 +28,7 @@ export class DescribeEngineDefaultParametersCommand extends $Command< DescribeEngineDefaultParametersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEngineDefaultParametersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeEventCategoriesCommand.ts b/clients/client-rds/commands/DescribeEventCategoriesCommand.ts index 0c55e5a836fbb..d1ff4aefa265b 100644 --- a/clients/client-rds/commands/DescribeEventCategoriesCommand.ts +++ b/clients/client-rds/commands/DescribeEventCategoriesCommand.ts @@ -33,6 +33,7 @@ export class DescribeEventCategoriesCommand extends $Command< DescribeEventCategoriesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEventCategoriesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeEventSubscriptionsCommand.ts b/clients/client-rds/commands/DescribeEventSubscriptionsCommand.ts index 1d63a34a49351..ea33054eedbe9 100644 --- a/clients/client-rds/commands/DescribeEventSubscriptionsCommand.ts +++ b/clients/client-rds/commands/DescribeEventSubscriptionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeEventSubscriptionsCommand extends $Command< DescribeEventSubscriptionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeEventSubscriptionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeEventsCommand.ts b/clients/client-rds/commands/DescribeEventsCommand.ts index da9b7982c5087..96dcd7ef2db0d 100644 --- a/clients/client-rds/commands/DescribeEventsCommand.ts +++ b/clients/client-rds/commands/DescribeEventsCommand.ts @@ -33,6 +33,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeEventsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeExportTasksCommand.ts b/clients/client-rds/commands/DescribeExportTasksCommand.ts index 43eae98a9e682..08fbba889d822 100644 --- a/clients/client-rds/commands/DescribeExportTasksCommand.ts +++ b/clients/client-rds/commands/DescribeExportTasksCommand.ts @@ -29,6 +29,7 @@ export class DescribeExportTasksCommand extends $Command< DescribeExportTasksCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeExportTasksCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeGlobalClustersCommand.ts b/clients/client-rds/commands/DescribeGlobalClustersCommand.ts index 372dc4b3bcd26..a6a64f006c9ff 100644 --- a/clients/client-rds/commands/DescribeGlobalClustersCommand.ts +++ b/clients/client-rds/commands/DescribeGlobalClustersCommand.ts @@ -37,6 +37,7 @@ export class DescribeGlobalClustersCommand extends $Command< DescribeGlobalClustersCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeGlobalClustersCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeInstallationMediaCommand.ts b/clients/client-rds/commands/DescribeInstallationMediaCommand.ts index 506ab28df9d3b..18c5f14af2420 100644 --- a/clients/client-rds/commands/DescribeInstallationMediaCommand.ts +++ b/clients/client-rds/commands/DescribeInstallationMediaCommand.ts @@ -29,6 +29,7 @@ export class DescribeInstallationMediaCommand extends $Command< DescribeInstallationMediaCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeInstallationMediaCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeOptionGroupOptionsCommand.ts b/clients/client-rds/commands/DescribeOptionGroupOptionsCommand.ts index e5a9aa2f87b55..df55887f6d9e8 100644 --- a/clients/client-rds/commands/DescribeOptionGroupOptionsCommand.ts +++ b/clients/client-rds/commands/DescribeOptionGroupOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOptionGroupOptionsCommand extends $Command< DescribeOptionGroupOptionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOptionGroupOptionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeOptionGroupsCommand.ts b/clients/client-rds/commands/DescribeOptionGroupsCommand.ts index e717278829eb4..3d1c1a20a1a63 100644 --- a/clients/client-rds/commands/DescribeOptionGroupsCommand.ts +++ b/clients/client-rds/commands/DescribeOptionGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOptionGroupsCommand extends $Command< DescribeOptionGroupsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOptionGroupsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeOrderableDBInstanceOptionsCommand.ts b/clients/client-rds/commands/DescribeOrderableDBInstanceOptionsCommand.ts index a640c25c9da2a..5d6d9ad61cb01 100644 --- a/clients/client-rds/commands/DescribeOrderableDBInstanceOptionsCommand.ts +++ b/clients/client-rds/commands/DescribeOrderableDBInstanceOptionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< DescribeOrderableDBInstanceOptionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOrderableDBInstanceOptionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribePendingMaintenanceActionsCommand.ts b/clients/client-rds/commands/DescribePendingMaintenanceActionsCommand.ts index a4f03c5e26171..f73c7ff653fe8 100644 --- a/clients/client-rds/commands/DescribePendingMaintenanceActionsCommand.ts +++ b/clients/client-rds/commands/DescribePendingMaintenanceActionsCommand.ts @@ -28,6 +28,7 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< DescribePendingMaintenanceActionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePendingMaintenanceActionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeReservedDBInstancesCommand.ts b/clients/client-rds/commands/DescribeReservedDBInstancesCommand.ts index c48e93c4a570c..217b836e63d11 100644 --- a/clients/client-rds/commands/DescribeReservedDBInstancesCommand.ts +++ b/clients/client-rds/commands/DescribeReservedDBInstancesCommand.ts @@ -28,6 +28,7 @@ export class DescribeReservedDBInstancesCommand extends $Command< DescribeReservedDBInstancesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReservedDBInstancesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeReservedDBInstancesOfferingsCommand.ts b/clients/client-rds/commands/DescribeReservedDBInstancesOfferingsCommand.ts index bf7cc1ea28088..7716ba4d28a20 100644 --- a/clients/client-rds/commands/DescribeReservedDBInstancesOfferingsCommand.ts +++ b/clients/client-rds/commands/DescribeReservedDBInstancesOfferingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeReservedDBInstancesOfferingsCommand extends $Command< DescribeReservedDBInstancesOfferingsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReservedDBInstancesOfferingsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeSourceRegionsCommand.ts b/clients/client-rds/commands/DescribeSourceRegionsCommand.ts index a9cde8cfdf30b..c54c03a487254 100644 --- a/clients/client-rds/commands/DescribeSourceRegionsCommand.ts +++ b/clients/client-rds/commands/DescribeSourceRegionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeSourceRegionsCommand extends $Command< DescribeSourceRegionsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSourceRegionsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DescribeValidDBInstanceModificationsCommand.ts b/clients/client-rds/commands/DescribeValidDBInstanceModificationsCommand.ts index 2f42a89466da8..107f84ddae008 100644 --- a/clients/client-rds/commands/DescribeValidDBInstanceModificationsCommand.ts +++ b/clients/client-rds/commands/DescribeValidDBInstanceModificationsCommand.ts @@ -36,6 +36,7 @@ export class DescribeValidDBInstanceModificationsCommand extends $Command< DescribeValidDBInstanceModificationsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeValidDBInstanceModificationsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/DownloadDBLogFilePortionCommand.ts b/clients/client-rds/commands/DownloadDBLogFilePortionCommand.ts index db96050cf1abb..ed5ca754263af 100644 --- a/clients/client-rds/commands/DownloadDBLogFilePortionCommand.ts +++ b/clients/client-rds/commands/DownloadDBLogFilePortionCommand.ts @@ -28,6 +28,7 @@ export class DownloadDBLogFilePortionCommand extends $Command< DownloadDBLogFilePortionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DownloadDBLogFilePortionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/FailoverDBClusterCommand.ts b/clients/client-rds/commands/FailoverDBClusterCommand.ts index 3ed50297ac38d..669bf3a811440 100644 --- a/clients/client-rds/commands/FailoverDBClusterCommand.ts +++ b/clients/client-rds/commands/FailoverDBClusterCommand.ts @@ -41,6 +41,7 @@ export class FailoverDBClusterCommand extends $Command< FailoverDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class FailoverDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ImportInstallationMediaCommand.ts b/clients/client-rds/commands/ImportInstallationMediaCommand.ts index 7f93b01c04f14..64ab1832eb162 100644 --- a/clients/client-rds/commands/ImportInstallationMediaCommand.ts +++ b/clients/client-rds/commands/ImportInstallationMediaCommand.ts @@ -30,6 +30,7 @@ export class ImportInstallationMediaCommand extends $Command< ImportInstallationMediaCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ImportInstallationMediaCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ListTagsForResourceCommand.ts b/clients/client-rds/commands/ListTagsForResourceCommand.ts index df07cda706b80..486be4871e04d 100644 --- a/clients/client-rds/commands/ListTagsForResourceCommand.ts +++ b/clients/client-rds/commands/ListTagsForResourceCommand.ts @@ -31,6 +31,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyCertificatesCommand.ts b/clients/client-rds/commands/ModifyCertificatesCommand.ts index ed49e06caa054..8783e0b08a021 100644 --- a/clients/client-rds/commands/ModifyCertificatesCommand.ts +++ b/clients/client-rds/commands/ModifyCertificatesCommand.ts @@ -52,6 +52,7 @@ export class ModifyCertificatesCommand extends $Command< ModifyCertificatesCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class ModifyCertificatesCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyCurrentDBClusterCapacityCommand.ts b/clients/client-rds/commands/ModifyCurrentDBClusterCapacityCommand.ts index 98b139b0cb806..7bc39d2a5eacf 100644 --- a/clients/client-rds/commands/ModifyCurrentDBClusterCapacityCommand.ts +++ b/clients/client-rds/commands/ModifyCurrentDBClusterCapacityCommand.ts @@ -45,6 +45,7 @@ export class ModifyCurrentDBClusterCapacityCommand extends $Command< ModifyCurrentDBClusterCapacityCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class ModifyCurrentDBClusterCapacityCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBClusterCommand.ts b/clients/client-rds/commands/ModifyDBClusterCommand.ts index cc13e9a9c8665..0004f9d340509 100644 --- a/clients/client-rds/commands/ModifyDBClusterCommand.ts +++ b/clients/client-rds/commands/ModifyDBClusterCommand.ts @@ -37,6 +37,7 @@ export class ModifyDBClusterCommand extends $Command< ModifyDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ModifyDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBClusterEndpointCommand.ts b/clients/client-rds/commands/ModifyDBClusterEndpointCommand.ts index 51ddccce1b7a0..2be3a0f6a93a5 100644 --- a/clients/client-rds/commands/ModifyDBClusterEndpointCommand.ts +++ b/clients/client-rds/commands/ModifyDBClusterEndpointCommand.ts @@ -32,6 +32,7 @@ export class ModifyDBClusterEndpointCommand extends $Command< ModifyDBClusterEndpointCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyDBClusterEndpointCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBClusterParameterGroupCommand.ts b/clients/client-rds/commands/ModifyDBClusterParameterGroupCommand.ts index 2860dabc0bb3f..d7279ac093594 100644 --- a/clients/client-rds/commands/ModifyDBClusterParameterGroupCommand.ts +++ b/clients/client-rds/commands/ModifyDBClusterParameterGroupCommand.ts @@ -58,6 +58,7 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< ModifyDBClusterParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class ModifyDBClusterParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBClusterSnapshotAttributeCommand.ts b/clients/client-rds/commands/ModifyDBClusterSnapshotAttributeCommand.ts index e1010d2972bc8..9de37524aebfb 100644 --- a/clients/client-rds/commands/ModifyDBClusterSnapshotAttributeCommand.ts +++ b/clients/client-rds/commands/ModifyDBClusterSnapshotAttributeCommand.ts @@ -49,6 +49,7 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< ModifyDBClusterSnapshotAttributeCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class ModifyDBClusterSnapshotAttributeCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBInstanceCommand.ts b/clients/client-rds/commands/ModifyDBInstanceCommand.ts index 5a30cafe5fed7..8face8577ec7d 100644 --- a/clients/client-rds/commands/ModifyDBInstanceCommand.ts +++ b/clients/client-rds/commands/ModifyDBInstanceCommand.ts @@ -33,6 +33,7 @@ export class ModifyDBInstanceCommand extends $Command< ModifyDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBParameterGroupCommand.ts b/clients/client-rds/commands/ModifyDBParameterGroupCommand.ts index 50197c9ad5204..39f15b6e23d37 100644 --- a/clients/client-rds/commands/ModifyDBParameterGroupCommand.ts +++ b/clients/client-rds/commands/ModifyDBParameterGroupCommand.ts @@ -47,6 +47,7 @@ export class ModifyDBParameterGroupCommand extends $Command< ModifyDBParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class ModifyDBParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBProxyCommand.ts b/clients/client-rds/commands/ModifyDBProxyCommand.ts index e44366d620267..5114189a42ff1 100644 --- a/clients/client-rds/commands/ModifyDBProxyCommand.ts +++ b/clients/client-rds/commands/ModifyDBProxyCommand.ts @@ -28,6 +28,7 @@ export class ModifyDBProxyCommand extends $Command< ModifyDBProxyCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyDBProxyCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBProxyTargetGroupCommand.ts b/clients/client-rds/commands/ModifyDBProxyTargetGroupCommand.ts index 68b59630a02f4..a5f9f2dfb9819 100644 --- a/clients/client-rds/commands/ModifyDBProxyTargetGroupCommand.ts +++ b/clients/client-rds/commands/ModifyDBProxyTargetGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyDBProxyTargetGroupCommand extends $Command< ModifyDBProxyTargetGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyDBProxyTargetGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBSnapshotAttributeCommand.ts b/clients/client-rds/commands/ModifyDBSnapshotAttributeCommand.ts index 954d59cdb5a54..765ec96c4a5ad 100644 --- a/clients/client-rds/commands/ModifyDBSnapshotAttributeCommand.ts +++ b/clients/client-rds/commands/ModifyDBSnapshotAttributeCommand.ts @@ -44,6 +44,7 @@ export class ModifyDBSnapshotAttributeCommand extends $Command< ModifyDBSnapshotAttributeCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class ModifyDBSnapshotAttributeCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBSnapshotCommand.ts b/clients/client-rds/commands/ModifyDBSnapshotCommand.ts index 4114c63fce94b..937e5389d7136 100644 --- a/clients/client-rds/commands/ModifyDBSnapshotCommand.ts +++ b/clients/client-rds/commands/ModifyDBSnapshotCommand.ts @@ -34,6 +34,7 @@ export class ModifyDBSnapshotCommand extends $Command< ModifyDBSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ModifyDBSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyDBSubnetGroupCommand.ts b/clients/client-rds/commands/ModifyDBSubnetGroupCommand.ts index dddd38771d45e..6b27306f847b4 100644 --- a/clients/client-rds/commands/ModifyDBSubnetGroupCommand.ts +++ b/clients/client-rds/commands/ModifyDBSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyDBSubnetGroupCommand extends $Command< ModifyDBSubnetGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyDBSubnetGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyEventSubscriptionCommand.ts b/clients/client-rds/commands/ModifyEventSubscriptionCommand.ts index c4fec7841ba42..b775d1e4033ff 100644 --- a/clients/client-rds/commands/ModifyEventSubscriptionCommand.ts +++ b/clients/client-rds/commands/ModifyEventSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class ModifyEventSubscriptionCommand extends $Command< ModifyEventSubscriptionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyEventSubscriptionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyGlobalClusterCommand.ts b/clients/client-rds/commands/ModifyGlobalClusterCommand.ts index f7c2601cf3f95..eef2f68977e45 100644 --- a/clients/client-rds/commands/ModifyGlobalClusterCommand.ts +++ b/clients/client-rds/commands/ModifyGlobalClusterCommand.ts @@ -36,6 +36,7 @@ export class ModifyGlobalClusterCommand extends $Command< ModifyGlobalClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyGlobalClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ModifyOptionGroupCommand.ts b/clients/client-rds/commands/ModifyOptionGroupCommand.ts index b94389f51dbc0..250db1b721760 100644 --- a/clients/client-rds/commands/ModifyOptionGroupCommand.ts +++ b/clients/client-rds/commands/ModifyOptionGroupCommand.ts @@ -28,6 +28,7 @@ export class ModifyOptionGroupCommand extends $Command< ModifyOptionGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyOptionGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/PromoteReadReplicaCommand.ts b/clients/client-rds/commands/PromoteReadReplicaCommand.ts index a2d965b385eab..b3850007cd8de 100644 --- a/clients/client-rds/commands/PromoteReadReplicaCommand.ts +++ b/clients/client-rds/commands/PromoteReadReplicaCommand.ts @@ -46,6 +46,7 @@ export class PromoteReadReplicaCommand extends $Command< PromoteReadReplicaCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class PromoteReadReplicaCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/PromoteReadReplicaDBClusterCommand.ts b/clients/client-rds/commands/PromoteReadReplicaDBClusterCommand.ts index a3fe80a2f2552..dde37de090440 100644 --- a/clients/client-rds/commands/PromoteReadReplicaDBClusterCommand.ts +++ b/clients/client-rds/commands/PromoteReadReplicaDBClusterCommand.ts @@ -31,6 +31,7 @@ export class PromoteReadReplicaDBClusterCommand extends $Command< PromoteReadReplicaDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class PromoteReadReplicaDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/PurchaseReservedDBInstancesOfferingCommand.ts b/clients/client-rds/commands/PurchaseReservedDBInstancesOfferingCommand.ts index 3a01082637470..16546a6587e05 100644 --- a/clients/client-rds/commands/PurchaseReservedDBInstancesOfferingCommand.ts +++ b/clients/client-rds/commands/PurchaseReservedDBInstancesOfferingCommand.ts @@ -32,6 +32,7 @@ export class PurchaseReservedDBInstancesOfferingCommand extends $Command< PurchaseReservedDBInstancesOfferingCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PurchaseReservedDBInstancesOfferingCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RebootDBInstanceCommand.ts b/clients/client-rds/commands/RebootDBInstanceCommand.ts index 652f3714a9edc..97208006d38ec 100644 --- a/clients/client-rds/commands/RebootDBInstanceCommand.ts +++ b/clients/client-rds/commands/RebootDBInstanceCommand.ts @@ -39,6 +39,7 @@ export class RebootDBInstanceCommand extends $Command< RebootDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class RebootDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RegisterDBProxyTargetsCommand.ts b/clients/client-rds/commands/RegisterDBProxyTargetsCommand.ts index fa32e5b9e8e0b..f59754bf0ab5c 100644 --- a/clients/client-rds/commands/RegisterDBProxyTargetsCommand.ts +++ b/clients/client-rds/commands/RegisterDBProxyTargetsCommand.ts @@ -28,6 +28,7 @@ export class RegisterDBProxyTargetsCommand extends $Command< RegisterDBProxyTargetsCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterDBProxyTargetsCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RemoveFromGlobalClusterCommand.ts b/clients/client-rds/commands/RemoveFromGlobalClusterCommand.ts index 53dbf10172ee7..130ef48531b49 100644 --- a/clients/client-rds/commands/RemoveFromGlobalClusterCommand.ts +++ b/clients/client-rds/commands/RemoveFromGlobalClusterCommand.ts @@ -35,6 +35,7 @@ export class RemoveFromGlobalClusterCommand extends $Command< RemoveFromGlobalClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RemoveFromGlobalClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RemoveRoleFromDBClusterCommand.ts b/clients/client-rds/commands/RemoveRoleFromDBClusterCommand.ts index ed08efc686ae2..52007307b336c 100644 --- a/clients/client-rds/commands/RemoveRoleFromDBClusterCommand.ts +++ b/clients/client-rds/commands/RemoveRoleFromDBClusterCommand.ts @@ -33,6 +33,7 @@ export class RemoveRoleFromDBClusterCommand extends $Command< RemoveRoleFromDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class RemoveRoleFromDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RemoveRoleFromDBInstanceCommand.ts b/clients/client-rds/commands/RemoveRoleFromDBInstanceCommand.ts index ed2789d4a2468..c29ecac2eb843 100644 --- a/clients/client-rds/commands/RemoveRoleFromDBInstanceCommand.ts +++ b/clients/client-rds/commands/RemoveRoleFromDBInstanceCommand.ts @@ -28,6 +28,7 @@ export class RemoveRoleFromDBInstanceCommand extends $Command< RemoveRoleFromDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveRoleFromDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts b/clients/client-rds/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts index 0631b5fb2cdc6..8bb8de0d2646e 100644 --- a/clients/client-rds/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts +++ b/clients/client-rds/commands/RemoveSourceIdentifierFromSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class RemoveSourceIdentifierFromSubscriptionCommand extends $Command< RemoveSourceIdentifierFromSubscriptionCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveSourceIdentifierFromSubscriptionCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RemoveTagsFromResourceCommand.ts b/clients/client-rds/commands/RemoveTagsFromResourceCommand.ts index 8c9891f987948..af527c01171c7 100644 --- a/clients/client-rds/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-rds/commands/RemoveTagsFromResourceCommand.ts @@ -32,6 +32,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ResetDBClusterParameterGroupCommand.ts b/clients/client-rds/commands/ResetDBClusterParameterGroupCommand.ts index 8f1c50981c5fd..1034d499dee82 100644 --- a/clients/client-rds/commands/ResetDBClusterParameterGroupCommand.ts +++ b/clients/client-rds/commands/ResetDBClusterParameterGroupCommand.ts @@ -47,6 +47,7 @@ export class ResetDBClusterParameterGroupCommand extends $Command< ResetDBClusterParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class ResetDBClusterParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/ResetDBParameterGroupCommand.ts b/clients/client-rds/commands/ResetDBParameterGroupCommand.ts index a07ab4855dcd5..6b3f2bdd9c912 100644 --- a/clients/client-rds/commands/ResetDBParameterGroupCommand.ts +++ b/clients/client-rds/commands/ResetDBParameterGroupCommand.ts @@ -35,6 +35,7 @@ export class ResetDBParameterGroupCommand extends $Command< ResetDBParameterGroupCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ResetDBParameterGroupCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBClusterFromS3Command.ts b/clients/client-rds/commands/RestoreDBClusterFromS3Command.ts index 9b85c39e3269b..0ffc28b72d667 100644 --- a/clients/client-rds/commands/RestoreDBClusterFromS3Command.ts +++ b/clients/client-rds/commands/RestoreDBClusterFromS3Command.ts @@ -47,6 +47,7 @@ export class RestoreDBClusterFromS3Command extends $Command< RestoreDBClusterFromS3CommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class RestoreDBClusterFromS3Command extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBClusterFromSnapshotCommand.ts b/clients/client-rds/commands/RestoreDBClusterFromSnapshotCommand.ts index e660a32bc9ef9..d256902dbb8bf 100644 --- a/clients/client-rds/commands/RestoreDBClusterFromSnapshotCommand.ts +++ b/clients/client-rds/commands/RestoreDBClusterFromSnapshotCommand.ts @@ -47,6 +47,7 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< RestoreDBClusterFromSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class RestoreDBClusterFromSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBClusterToPointInTimeCommand.ts b/clients/client-rds/commands/RestoreDBClusterToPointInTimeCommand.ts index a58915b7b632f..2749433deffbc 100644 --- a/clients/client-rds/commands/RestoreDBClusterToPointInTimeCommand.ts +++ b/clients/client-rds/commands/RestoreDBClusterToPointInTimeCommand.ts @@ -47,6 +47,7 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< RestoreDBClusterToPointInTimeCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class RestoreDBClusterToPointInTimeCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBInstanceFromDBSnapshotCommand.ts b/clients/client-rds/commands/RestoreDBInstanceFromDBSnapshotCommand.ts index 22e2fdc5cb128..8d9216030e815 100644 --- a/clients/client-rds/commands/RestoreDBInstanceFromDBSnapshotCommand.ts +++ b/clients/client-rds/commands/RestoreDBInstanceFromDBSnapshotCommand.ts @@ -41,6 +41,7 @@ export class RestoreDBInstanceFromDBSnapshotCommand extends $Command< RestoreDBInstanceFromDBSnapshotCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class RestoreDBInstanceFromDBSnapshotCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBInstanceFromS3Command.ts b/clients/client-rds/commands/RestoreDBInstanceFromS3Command.ts index 3432503f628de..4111661834093 100644 --- a/clients/client-rds/commands/RestoreDBInstanceFromS3Command.ts +++ b/clients/client-rds/commands/RestoreDBInstanceFromS3Command.ts @@ -35,6 +35,7 @@ export class RestoreDBInstanceFromS3Command extends $Command< RestoreDBInstanceFromS3CommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RestoreDBInstanceFromS3Command extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RestoreDBInstanceToPointInTimeCommand.ts b/clients/client-rds/commands/RestoreDBInstanceToPointInTimeCommand.ts index da5172a131b04..615026c0af29b 100644 --- a/clients/client-rds/commands/RestoreDBInstanceToPointInTimeCommand.ts +++ b/clients/client-rds/commands/RestoreDBInstanceToPointInTimeCommand.ts @@ -37,6 +37,7 @@ export class RestoreDBInstanceToPointInTimeCommand extends $Command< RestoreDBInstanceToPointInTimeCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class RestoreDBInstanceToPointInTimeCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/RevokeDBSecurityGroupIngressCommand.ts b/clients/client-rds/commands/RevokeDBSecurityGroupIngressCommand.ts index 62b2b06340064..b46fe6af0364f 100644 --- a/clients/client-rds/commands/RevokeDBSecurityGroupIngressCommand.ts +++ b/clients/client-rds/commands/RevokeDBSecurityGroupIngressCommand.ts @@ -28,6 +28,7 @@ export class RevokeDBSecurityGroupIngressCommand extends $Command< RevokeDBSecurityGroupIngressCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokeDBSecurityGroupIngressCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StartActivityStreamCommand.ts b/clients/client-rds/commands/StartActivityStreamCommand.ts index 00f58f5b74280..040fe028f88e3 100644 --- a/clients/client-rds/commands/StartActivityStreamCommand.ts +++ b/clients/client-rds/commands/StartActivityStreamCommand.ts @@ -30,6 +30,7 @@ export class StartActivityStreamCommand extends $Command< StartActivityStreamCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartActivityStreamCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StartDBClusterCommand.ts b/clients/client-rds/commands/StartDBClusterCommand.ts index 9475695b18fee..cca1bf0931191 100644 --- a/clients/client-rds/commands/StartDBClusterCommand.ts +++ b/clients/client-rds/commands/StartDBClusterCommand.ts @@ -37,6 +37,7 @@ export class StartDBClusterCommand extends $Command< StartDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StartDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StartDBInstanceAutomatedBackupsReplicationCommand.ts b/clients/client-rds/commands/StartDBInstanceAutomatedBackupsReplicationCommand.ts index b269832071772..6fc84926c6558 100644 --- a/clients/client-rds/commands/StartDBInstanceAutomatedBackupsReplicationCommand.ts +++ b/clients/client-rds/commands/StartDBInstanceAutomatedBackupsReplicationCommand.ts @@ -35,6 +35,7 @@ export class StartDBInstanceAutomatedBackupsReplicationCommand extends $Command< StartDBInstanceAutomatedBackupsReplicationCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StartDBInstanceAutomatedBackupsReplicationCommand extends $Command< StartDBInstanceAutomatedBackupsReplicationCommandInput, StartDBInstanceAutomatedBackupsReplicationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StartDBInstanceCommand.ts b/clients/client-rds/commands/StartDBInstanceCommand.ts index a4114c5eac34a..3e9067d8378a0 100644 --- a/clients/client-rds/commands/StartDBInstanceCommand.ts +++ b/clients/client-rds/commands/StartDBInstanceCommand.ts @@ -43,6 +43,7 @@ export class StartDBInstanceCommand extends $Command< StartDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class StartDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StartExportTaskCommand.ts b/clients/client-rds/commands/StartExportTaskCommand.ts index 23dde41555e78..9eaeceb00b073 100644 --- a/clients/client-rds/commands/StartExportTaskCommand.ts +++ b/clients/client-rds/commands/StartExportTaskCommand.ts @@ -31,6 +31,7 @@ export class StartExportTaskCommand extends $Command< StartExportTaskCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartExportTaskCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StopActivityStreamCommand.ts b/clients/client-rds/commands/StopActivityStreamCommand.ts index f91997bf0ee2a..e32666cc2e92d 100644 --- a/clients/client-rds/commands/StopActivityStreamCommand.ts +++ b/clients/client-rds/commands/StopActivityStreamCommand.ts @@ -32,6 +32,7 @@ export class StopActivityStreamCommand extends $Command< StopActivityStreamCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopActivityStreamCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StopDBClusterCommand.ts b/clients/client-rds/commands/StopDBClusterCommand.ts index dc3ad8d7021ab..ae48703988d50 100644 --- a/clients/client-rds/commands/StopDBClusterCommand.ts +++ b/clients/client-rds/commands/StopDBClusterCommand.ts @@ -40,6 +40,7 @@ export class StopDBClusterCommand extends $Command< StopDBClusterCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class StopDBClusterCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StopDBInstanceAutomatedBackupsReplicationCommand.ts b/clients/client-rds/commands/StopDBInstanceAutomatedBackupsReplicationCommand.ts index 8a944c10f1fcb..65d16758cf41f 100644 --- a/clients/client-rds/commands/StopDBInstanceAutomatedBackupsReplicationCommand.ts +++ b/clients/client-rds/commands/StopDBInstanceAutomatedBackupsReplicationCommand.ts @@ -35,6 +35,7 @@ export class StopDBInstanceAutomatedBackupsReplicationCommand extends $Command< StopDBInstanceAutomatedBackupsReplicationCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StopDBInstanceAutomatedBackupsReplicationCommand extends $Command< StopDBInstanceAutomatedBackupsReplicationCommandInput, StopDBInstanceAutomatedBackupsReplicationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rds/commands/StopDBInstanceCommand.ts b/clients/client-rds/commands/StopDBInstanceCommand.ts index 2331c218b9b39..9431927c4957d 100644 --- a/clients/client-rds/commands/StopDBInstanceCommand.ts +++ b/clients/client-rds/commands/StopDBInstanceCommand.ts @@ -45,6 +45,7 @@ export class StopDBInstanceCommand extends $Command< StopDBInstanceCommandOutput, RDSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class StopDBInstanceCommand extends $Command< configuration: RDSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/CancelStatementCommand.ts b/clients/client-redshift-data/commands/CancelStatementCommand.ts index a4f7fd8fcd1e0..6df9f60d4983f 100644 --- a/clients/client-redshift-data/commands/CancelStatementCommand.ts +++ b/clients/client-redshift-data/commands/CancelStatementCommand.ts @@ -28,6 +28,7 @@ export class CancelStatementCommand extends $Command< CancelStatementCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelStatementCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/DescribeStatementCommand.ts b/clients/client-redshift-data/commands/DescribeStatementCommand.ts index 48854b5d71db5..cab68017e5759 100644 --- a/clients/client-redshift-data/commands/DescribeStatementCommand.ts +++ b/clients/client-redshift-data/commands/DescribeStatementCommand.ts @@ -30,6 +30,7 @@ export class DescribeStatementCommand extends $Command< DescribeStatementCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeStatementCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/DescribeTableCommand.ts b/clients/client-redshift-data/commands/DescribeTableCommand.ts index f1d0e0e72a057..01abbbe13b086 100644 --- a/clients/client-redshift-data/commands/DescribeTableCommand.ts +++ b/clients/client-redshift-data/commands/DescribeTableCommand.ts @@ -43,6 +43,7 @@ export class DescribeTableCommand extends $Command< DescribeTableCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DescribeTableCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/ExecuteStatementCommand.ts b/clients/client-redshift-data/commands/ExecuteStatementCommand.ts index c4aed954f4b6b..d30fc308e7d8d 100644 --- a/clients/client-redshift-data/commands/ExecuteStatementCommand.ts +++ b/clients/client-redshift-data/commands/ExecuteStatementCommand.ts @@ -42,6 +42,7 @@ export class ExecuteStatementCommand extends $Command< ExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ExecuteStatementCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/GetStatementResultCommand.ts b/clients/client-redshift-data/commands/GetStatementResultCommand.ts index 2e36e57f3e593..43de68cb52582 100644 --- a/clients/client-redshift-data/commands/GetStatementResultCommand.ts +++ b/clients/client-redshift-data/commands/GetStatementResultCommand.ts @@ -29,6 +29,7 @@ export class GetStatementResultCommand extends $Command< GetStatementResultCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetStatementResultCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/ListDatabasesCommand.ts b/clients/client-redshift-data/commands/ListDatabasesCommand.ts index 492a972106081..8b4503f4feec7 100644 --- a/clients/client-redshift-data/commands/ListDatabasesCommand.ts +++ b/clients/client-redshift-data/commands/ListDatabasesCommand.ts @@ -42,6 +42,7 @@ export class ListDatabasesCommand extends $Command< ListDatabasesCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListDatabasesCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/ListSchemasCommand.ts b/clients/client-redshift-data/commands/ListSchemasCommand.ts index beab12d7eec64..ceb6dc20f2172 100644 --- a/clients/client-redshift-data/commands/ListSchemasCommand.ts +++ b/clients/client-redshift-data/commands/ListSchemasCommand.ts @@ -42,6 +42,7 @@ export class ListSchemasCommand extends $Command< ListSchemasCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ListSchemasCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/ListStatementsCommand.ts b/clients/client-redshift-data/commands/ListStatementsCommand.ts index eb0ee2a1743f5..39e31ac7ef4e2 100644 --- a/clients/client-redshift-data/commands/ListStatementsCommand.ts +++ b/clients/client-redshift-data/commands/ListStatementsCommand.ts @@ -29,6 +29,7 @@ export class ListStatementsCommand extends $Command< ListStatementsCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListStatementsCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift-data/commands/ListTablesCommand.ts b/clients/client-redshift-data/commands/ListTablesCommand.ts index 22036facdc2f2..425d1ca7e9294 100644 --- a/clients/client-redshift-data/commands/ListTablesCommand.ts +++ b/clients/client-redshift-data/commands/ListTablesCommand.ts @@ -43,6 +43,7 @@ export class ListTablesCommand extends $Command< ListTablesCommandOutput, RedshiftDataClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class ListTablesCommand extends $Command< configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/AcceptReservedNodeExchangeCommand.ts b/clients/client-redshift/commands/AcceptReservedNodeExchangeCommand.ts index 3922e55d960f0..e97cdfbd9a454 100644 --- a/clients/client-redshift/commands/AcceptReservedNodeExchangeCommand.ts +++ b/clients/client-redshift/commands/AcceptReservedNodeExchangeCommand.ts @@ -30,6 +30,7 @@ export class AcceptReservedNodeExchangeCommand extends $Command< AcceptReservedNodeExchangeCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AcceptReservedNodeExchangeCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/AuthorizeClusterSecurityGroupIngressCommand.ts b/clients/client-redshift/commands/AuthorizeClusterSecurityGroupIngressCommand.ts index 1336511c271d6..9706570e0877d 100644 --- a/clients/client-redshift/commands/AuthorizeClusterSecurityGroupIngressCommand.ts +++ b/clients/client-redshift/commands/AuthorizeClusterSecurityGroupIngressCommand.ts @@ -47,6 +47,7 @@ export class AuthorizeClusterSecurityGroupIngressCommand extends $Command< AuthorizeClusterSecurityGroupIngressCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class AuthorizeClusterSecurityGroupIngressCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/AuthorizeSnapshotAccessCommand.ts b/clients/client-redshift/commands/AuthorizeSnapshotAccessCommand.ts index 2edd11db573af..906a32e9e91a0 100644 --- a/clients/client-redshift/commands/AuthorizeSnapshotAccessCommand.ts +++ b/clients/client-redshift/commands/AuthorizeSnapshotAccessCommand.ts @@ -33,6 +33,7 @@ export class AuthorizeSnapshotAccessCommand extends $Command< AuthorizeSnapshotAccessCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AuthorizeSnapshotAccessCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/BatchDeleteClusterSnapshotsCommand.ts b/clients/client-redshift/commands/BatchDeleteClusterSnapshotsCommand.ts index ed31b28c58cd3..be70d8ad8e528 100644 --- a/clients/client-redshift/commands/BatchDeleteClusterSnapshotsCommand.ts +++ b/clients/client-redshift/commands/BatchDeleteClusterSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteClusterSnapshotsCommand extends $Command< BatchDeleteClusterSnapshotsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteClusterSnapshotsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/BatchModifyClusterSnapshotsCommand.ts b/clients/client-redshift/commands/BatchModifyClusterSnapshotsCommand.ts index 07dccb8b3ac2e..c8565477afa66 100644 --- a/clients/client-redshift/commands/BatchModifyClusterSnapshotsCommand.ts +++ b/clients/client-redshift/commands/BatchModifyClusterSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class BatchModifyClusterSnapshotsCommand extends $Command< BatchModifyClusterSnapshotsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchModifyClusterSnapshotsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CancelResizeCommand.ts b/clients/client-redshift/commands/CancelResizeCommand.ts index da4ab78654a9b..78273d1146cdd 100644 --- a/clients/client-redshift/commands/CancelResizeCommand.ts +++ b/clients/client-redshift/commands/CancelResizeCommand.ts @@ -25,6 +25,7 @@ export class CancelResizeCommand extends $Command< CancelResizeCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class CancelResizeCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CopyClusterSnapshotCommand.ts b/clients/client-redshift/commands/CopyClusterSnapshotCommand.ts index c128b2109681d..65e60ce8b8b28 100644 --- a/clients/client-redshift/commands/CopyClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/CopyClusterSnapshotCommand.ts @@ -39,6 +39,7 @@ export class CopyClusterSnapshotCommand extends $Command< CopyClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CopyClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateClusterCommand.ts b/clients/client-redshift/commands/CreateClusterCommand.ts index de3237128082f..1d26810228654 100644 --- a/clients/client-redshift/commands/CreateClusterCommand.ts +++ b/clients/client-redshift/commands/CreateClusterCommand.ts @@ -34,6 +34,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateClusterParameterGroupCommand.ts b/clients/client-redshift/commands/CreateClusterParameterGroupCommand.ts index b8d8bcd19ba58..39f8c75dc8512 100644 --- a/clients/client-redshift/commands/CreateClusterParameterGroupCommand.ts +++ b/clients/client-redshift/commands/CreateClusterParameterGroupCommand.ts @@ -36,6 +36,7 @@ export class CreateClusterParameterGroupCommand extends $Command< CreateClusterParameterGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateClusterParameterGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateClusterSecurityGroupCommand.ts b/clients/client-redshift/commands/CreateClusterSecurityGroupCommand.ts index a4050f3a2ebc8..68de8a43a4c47 100644 --- a/clients/client-redshift/commands/CreateClusterSecurityGroupCommand.ts +++ b/clients/client-redshift/commands/CreateClusterSecurityGroupCommand.ts @@ -33,6 +33,7 @@ export class CreateClusterSecurityGroupCommand extends $Command< CreateClusterSecurityGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateClusterSecurityGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateClusterSnapshotCommand.ts b/clients/client-redshift/commands/CreateClusterSnapshotCommand.ts index 89b0b80e78fcc..a12ea93782492 100644 --- a/clients/client-redshift/commands/CreateClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/CreateClusterSnapshotCommand.ts @@ -33,6 +33,7 @@ export class CreateClusterSnapshotCommand extends $Command< CreateClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateClusterSubnetGroupCommand.ts b/clients/client-redshift/commands/CreateClusterSubnetGroupCommand.ts index 4e69ae7ede6a0..ad953283bf555 100644 --- a/clients/client-redshift/commands/CreateClusterSubnetGroupCommand.ts +++ b/clients/client-redshift/commands/CreateClusterSubnetGroupCommand.ts @@ -34,6 +34,7 @@ export class CreateClusterSubnetGroupCommand extends $Command< CreateClusterSubnetGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateClusterSubnetGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateEventSubscriptionCommand.ts b/clients/client-redshift/commands/CreateEventSubscriptionCommand.ts index 952db97a46658..c1ceaa8487080 100644 --- a/clients/client-redshift/commands/CreateEventSubscriptionCommand.ts +++ b/clients/client-redshift/commands/CreateEventSubscriptionCommand.ts @@ -45,6 +45,7 @@ export class CreateEventSubscriptionCommand extends $Command< CreateEventSubscriptionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateEventSubscriptionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateHsmClientCertificateCommand.ts b/clients/client-redshift/commands/CreateHsmClientCertificateCommand.ts index ff338faa6ff00..9c837eeb10fed 100644 --- a/clients/client-redshift/commands/CreateHsmClientCertificateCommand.ts +++ b/clients/client-redshift/commands/CreateHsmClientCertificateCommand.ts @@ -35,6 +35,7 @@ export class CreateHsmClientCertificateCommand extends $Command< CreateHsmClientCertificateCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateHsmClientCertificateCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateHsmConfigurationCommand.ts b/clients/client-redshift/commands/CreateHsmConfigurationCommand.ts index f4204bfca6b98..7c21b2c5b1fa1 100644 --- a/clients/client-redshift/commands/CreateHsmConfigurationCommand.ts +++ b/clients/client-redshift/commands/CreateHsmConfigurationCommand.ts @@ -34,6 +34,7 @@ export class CreateHsmConfigurationCommand extends $Command< CreateHsmConfigurationCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateHsmConfigurationCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateScheduledActionCommand.ts b/clients/client-redshift/commands/CreateScheduledActionCommand.ts index 1c79ffca2b12a..04d1b0b640556 100644 --- a/clients/client-redshift/commands/CreateScheduledActionCommand.ts +++ b/clients/client-redshift/commands/CreateScheduledActionCommand.ts @@ -30,6 +30,7 @@ export class CreateScheduledActionCommand extends $Command< CreateScheduledActionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateScheduledActionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateSnapshotCopyGrantCommand.ts b/clients/client-redshift/commands/CreateSnapshotCopyGrantCommand.ts index c9865cbb4a68f..bf398c9e976af 100644 --- a/clients/client-redshift/commands/CreateSnapshotCopyGrantCommand.ts +++ b/clients/client-redshift/commands/CreateSnapshotCopyGrantCommand.ts @@ -35,6 +35,7 @@ export class CreateSnapshotCopyGrantCommand extends $Command< CreateSnapshotCopyGrantCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateSnapshotCopyGrantCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateSnapshotScheduleCommand.ts b/clients/client-redshift/commands/CreateSnapshotScheduleCommand.ts index c921858533b6d..ea35e5c3431b7 100644 --- a/clients/client-redshift/commands/CreateSnapshotScheduleCommand.ts +++ b/clients/client-redshift/commands/CreateSnapshotScheduleCommand.ts @@ -28,6 +28,7 @@ export class CreateSnapshotScheduleCommand extends $Command< CreateSnapshotScheduleCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSnapshotScheduleCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateTagsCommand.ts b/clients/client-redshift/commands/CreateTagsCommand.ts index ac34a0473e6c0..3b226992ef982 100644 --- a/clients/client-redshift/commands/CreateTagsCommand.ts +++ b/clients/client-redshift/commands/CreateTagsCommand.ts @@ -29,6 +29,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTagsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/CreateUsageLimitCommand.ts b/clients/client-redshift/commands/CreateUsageLimitCommand.ts index e500e3fb4857f..f06774ba28a8b 100644 --- a/clients/client-redshift/commands/CreateUsageLimitCommand.ts +++ b/clients/client-redshift/commands/CreateUsageLimitCommand.ts @@ -29,6 +29,7 @@ export class CreateUsageLimitCommand extends $Command< CreateUsageLimitCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateUsageLimitCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteClusterCommand.ts b/clients/client-redshift/commands/DeleteClusterCommand.ts index 5c57defe7e7a0..d54005b0586b7 100644 --- a/clients/client-redshift/commands/DeleteClusterCommand.ts +++ b/clients/client-redshift/commands/DeleteClusterCommand.ts @@ -43,6 +43,7 @@ export class DeleteClusterCommand extends $Command< DeleteClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DeleteClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteClusterParameterGroupCommand.ts b/clients/client-redshift/commands/DeleteClusterParameterGroupCommand.ts index 0923cf4f5cf1b..c7598e36201d0 100644 --- a/clients/client-redshift/commands/DeleteClusterParameterGroupCommand.ts +++ b/clients/client-redshift/commands/DeleteClusterParameterGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteClusterParameterGroupCommand extends $Command< DeleteClusterParameterGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteClusterParameterGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteClusterSecurityGroupCommand.ts b/clients/client-redshift/commands/DeleteClusterSecurityGroupCommand.ts index 91f45c3664026..e2ea905b165fb 100644 --- a/clients/client-redshift/commands/DeleteClusterSecurityGroupCommand.ts +++ b/clients/client-redshift/commands/DeleteClusterSecurityGroupCommand.ts @@ -36,6 +36,7 @@ export class DeleteClusterSecurityGroupCommand extends $Command< DeleteClusterSecurityGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteClusterSecurityGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteClusterSnapshotCommand.ts b/clients/client-redshift/commands/DeleteClusterSnapshotCommand.ts index 1c8eb7ec97bb3..6373494407ca4 100644 --- a/clients/client-redshift/commands/DeleteClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/DeleteClusterSnapshotCommand.ts @@ -34,6 +34,7 @@ export class DeleteClusterSnapshotCommand extends $Command< DeleteClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteClusterSubnetGroupCommand.ts b/clients/client-redshift/commands/DeleteClusterSubnetGroupCommand.ts index 192a3c86e9190..6c2186d628431 100644 --- a/clients/client-redshift/commands/DeleteClusterSubnetGroupCommand.ts +++ b/clients/client-redshift/commands/DeleteClusterSubnetGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteClusterSubnetGroupCommand extends $Command< DeleteClusterSubnetGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteClusterSubnetGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteEventSubscriptionCommand.ts b/clients/client-redshift/commands/DeleteEventSubscriptionCommand.ts index 6637caa715a39..f066d17a28302 100644 --- a/clients/client-redshift/commands/DeleteEventSubscriptionCommand.ts +++ b/clients/client-redshift/commands/DeleteEventSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteEventSubscriptionCommand extends $Command< DeleteEventSubscriptionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteEventSubscriptionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteHsmClientCertificateCommand.ts b/clients/client-redshift/commands/DeleteHsmClientCertificateCommand.ts index 6aac331c681bd..b3d0f07e2773e 100644 --- a/clients/client-redshift/commands/DeleteHsmClientCertificateCommand.ts +++ b/clients/client-redshift/commands/DeleteHsmClientCertificateCommand.ts @@ -28,6 +28,7 @@ export class DeleteHsmClientCertificateCommand extends $Command< DeleteHsmClientCertificateCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteHsmClientCertificateCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteHsmConfigurationCommand.ts b/clients/client-redshift/commands/DeleteHsmConfigurationCommand.ts index 76ad769b5bc16..38311212e3399 100644 --- a/clients/client-redshift/commands/DeleteHsmConfigurationCommand.ts +++ b/clients/client-redshift/commands/DeleteHsmConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteHsmConfigurationCommand extends $Command< DeleteHsmConfigurationCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteHsmConfigurationCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteScheduledActionCommand.ts b/clients/client-redshift/commands/DeleteScheduledActionCommand.ts index 2fff3dfc4e0dd..d233193620cf3 100644 --- a/clients/client-redshift/commands/DeleteScheduledActionCommand.ts +++ b/clients/client-redshift/commands/DeleteScheduledActionCommand.ts @@ -29,6 +29,7 @@ export class DeleteScheduledActionCommand extends $Command< DeleteScheduledActionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteScheduledActionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteSnapshotCopyGrantCommand.ts b/clients/client-redshift/commands/DeleteSnapshotCopyGrantCommand.ts index dca574b46ed4e..b45c28516e51a 100644 --- a/clients/client-redshift/commands/DeleteSnapshotCopyGrantCommand.ts +++ b/clients/client-redshift/commands/DeleteSnapshotCopyGrantCommand.ts @@ -28,6 +28,7 @@ export class DeleteSnapshotCopyGrantCommand extends $Command< DeleteSnapshotCopyGrantCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSnapshotCopyGrantCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteSnapshotScheduleCommand.ts b/clients/client-redshift/commands/DeleteSnapshotScheduleCommand.ts index 2b0b8f337675a..98228ef8c940e 100644 --- a/clients/client-redshift/commands/DeleteSnapshotScheduleCommand.ts +++ b/clients/client-redshift/commands/DeleteSnapshotScheduleCommand.ts @@ -28,6 +28,7 @@ export class DeleteSnapshotScheduleCommand extends $Command< DeleteSnapshotScheduleCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSnapshotScheduleCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteTagsCommand.ts b/clients/client-redshift/commands/DeleteTagsCommand.ts index c0ee93867a8ce..172147c5c9e23 100644 --- a/clients/client-redshift/commands/DeleteTagsCommand.ts +++ b/clients/client-redshift/commands/DeleteTagsCommand.ts @@ -26,6 +26,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class DeleteTagsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DeleteUsageLimitCommand.ts b/clients/client-redshift/commands/DeleteUsageLimitCommand.ts index 6e502054467c8..9d5b57a7008ba 100644 --- a/clients/client-redshift/commands/DeleteUsageLimitCommand.ts +++ b/clients/client-redshift/commands/DeleteUsageLimitCommand.ts @@ -28,6 +28,7 @@ export class DeleteUsageLimitCommand extends $Command< DeleteUsageLimitCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUsageLimitCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeAccountAttributesCommand.ts b/clients/client-redshift/commands/DescribeAccountAttributesCommand.ts index 05c2f0539141b..d9eef9feb3397 100644 --- a/clients/client-redshift/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-redshift/commands/DescribeAccountAttributesCommand.ts @@ -28,6 +28,7 @@ export class DescribeAccountAttributesCommand extends $Command< DescribeAccountAttributesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAccountAttributesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterDbRevisionsCommand.ts b/clients/client-redshift/commands/DescribeClusterDbRevisionsCommand.ts index df549efa97508..56bda7e148987 100644 --- a/clients/client-redshift/commands/DescribeClusterDbRevisionsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterDbRevisionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeClusterDbRevisionsCommand extends $Command< DescribeClusterDbRevisionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClusterDbRevisionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterParameterGroupsCommand.ts b/clients/client-redshift/commands/DescribeClusterParameterGroupsCommand.ts index 3eb59558d7466..1d9a1471e3f65 100644 --- a/clients/client-redshift/commands/DescribeClusterParameterGroupsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterParameterGroupsCommand.ts @@ -44,6 +44,7 @@ export class DescribeClusterParameterGroupsCommand extends $Command< DescribeClusterParameterGroupsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeClusterParameterGroupsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterParametersCommand.ts b/clients/client-redshift/commands/DescribeClusterParametersCommand.ts index 46f84330a646b..05992b5d64c56 100644 --- a/clients/client-redshift/commands/DescribeClusterParametersCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterParametersCommand.ts @@ -39,6 +39,7 @@ export class DescribeClusterParametersCommand extends $Command< DescribeClusterParametersCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DescribeClusterParametersCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterSecurityGroupsCommand.ts b/clients/client-redshift/commands/DescribeClusterSecurityGroupsCommand.ts index b42c87d967fe9..6ba57b00405cf 100644 --- a/clients/client-redshift/commands/DescribeClusterSecurityGroupsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterSecurityGroupsCommand.ts @@ -42,6 +42,7 @@ export class DescribeClusterSecurityGroupsCommand extends $Command< DescribeClusterSecurityGroupsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeClusterSecurityGroupsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterSnapshotsCommand.ts b/clients/client-redshift/commands/DescribeClusterSnapshotsCommand.ts index 11df675e64848..7a27fc3ad7be7 100644 --- a/clients/client-redshift/commands/DescribeClusterSnapshotsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterSnapshotsCommand.ts @@ -40,6 +40,7 @@ export class DescribeClusterSnapshotsCommand extends $Command< DescribeClusterSnapshotsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeClusterSnapshotsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterSubnetGroupsCommand.ts b/clients/client-redshift/commands/DescribeClusterSubnetGroupsCommand.ts index 7a2b08ca0fa1b..af0057b0192f0 100644 --- a/clients/client-redshift/commands/DescribeClusterSubnetGroupsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterSubnetGroupsCommand.ts @@ -38,6 +38,7 @@ export class DescribeClusterSubnetGroupsCommand extends $Command< DescribeClusterSubnetGroupsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeClusterSubnetGroupsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterTracksCommand.ts b/clients/client-redshift/commands/DescribeClusterTracksCommand.ts index e9d92c18f577e..39f7420351976 100644 --- a/clients/client-redshift/commands/DescribeClusterTracksCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterTracksCommand.ts @@ -28,6 +28,7 @@ export class DescribeClusterTracksCommand extends $Command< DescribeClusterTracksCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClusterTracksCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClusterVersionsCommand.ts b/clients/client-redshift/commands/DescribeClusterVersionsCommand.ts index d8d6053686dca..e3e6b88e8cf32 100644 --- a/clients/client-redshift/commands/DescribeClusterVersionsCommand.ts +++ b/clients/client-redshift/commands/DescribeClusterVersionsCommand.ts @@ -33,6 +33,7 @@ export class DescribeClusterVersionsCommand extends $Command< DescribeClusterVersionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeClusterVersionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeClustersCommand.ts b/clients/client-redshift/commands/DescribeClustersCommand.ts index 7225031baf12e..ba108d9cf7afd 100644 --- a/clients/client-redshift/commands/DescribeClustersCommand.ts +++ b/clients/client-redshift/commands/DescribeClustersCommand.ts @@ -40,6 +40,7 @@ export class DescribeClustersCommand extends $Command< DescribeClustersCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DescribeClustersCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeDefaultClusterParametersCommand.ts b/clients/client-redshift/commands/DescribeDefaultClusterParametersCommand.ts index 7ea01827f8891..c61c40fc25612 100644 --- a/clients/client-redshift/commands/DescribeDefaultClusterParametersCommand.ts +++ b/clients/client-redshift/commands/DescribeDefaultClusterParametersCommand.ts @@ -33,6 +33,7 @@ export class DescribeDefaultClusterParametersCommand extends $Command< DescribeDefaultClusterParametersCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeDefaultClusterParametersCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeEventCategoriesCommand.ts b/clients/client-redshift/commands/DescribeEventCategoriesCommand.ts index e7bad5470a1be..bc3ff4e4586fc 100644 --- a/clients/client-redshift/commands/DescribeEventCategoriesCommand.ts +++ b/clients/client-redshift/commands/DescribeEventCategoriesCommand.ts @@ -30,6 +30,7 @@ export class DescribeEventCategoriesCommand extends $Command< DescribeEventCategoriesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeEventCategoriesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeEventSubscriptionsCommand.ts b/clients/client-redshift/commands/DescribeEventSubscriptionsCommand.ts index eef0c8b6e25a1..d4f8952fbeed8 100644 --- a/clients/client-redshift/commands/DescribeEventSubscriptionsCommand.ts +++ b/clients/client-redshift/commands/DescribeEventSubscriptionsCommand.ts @@ -38,6 +38,7 @@ export class DescribeEventSubscriptionsCommand extends $Command< DescribeEventSubscriptionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeEventSubscriptionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeEventsCommand.ts b/clients/client-redshift/commands/DescribeEventsCommand.ts index cceaf1c50660d..5b62bab8c3fdb 100644 --- a/clients/client-redshift/commands/DescribeEventsCommand.ts +++ b/clients/client-redshift/commands/DescribeEventsCommand.ts @@ -31,6 +31,7 @@ export class DescribeEventsCommand extends $Command< DescribeEventsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeEventsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeHsmClientCertificatesCommand.ts b/clients/client-redshift/commands/DescribeHsmClientCertificatesCommand.ts index fe4741d561e19..56145bfab19f0 100644 --- a/clients/client-redshift/commands/DescribeHsmClientCertificatesCommand.ts +++ b/clients/client-redshift/commands/DescribeHsmClientCertificatesCommand.ts @@ -38,6 +38,7 @@ export class DescribeHsmClientCertificatesCommand extends $Command< DescribeHsmClientCertificatesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeHsmClientCertificatesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeHsmConfigurationsCommand.ts b/clients/client-redshift/commands/DescribeHsmConfigurationsCommand.ts index 17b57e14cd883..c0dcb51c863cd 100644 --- a/clients/client-redshift/commands/DescribeHsmConfigurationsCommand.ts +++ b/clients/client-redshift/commands/DescribeHsmConfigurationsCommand.ts @@ -38,6 +38,7 @@ export class DescribeHsmConfigurationsCommand extends $Command< DescribeHsmConfigurationsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeHsmConfigurationsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeLoggingStatusCommand.ts b/clients/client-redshift/commands/DescribeLoggingStatusCommand.ts index f5051d299b749..ea41977731c46 100644 --- a/clients/client-redshift/commands/DescribeLoggingStatusCommand.ts +++ b/clients/client-redshift/commands/DescribeLoggingStatusCommand.ts @@ -29,6 +29,7 @@ export class DescribeLoggingStatusCommand extends $Command< DescribeLoggingStatusCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeLoggingStatusCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeNodeConfigurationOptionsCommand.ts b/clients/client-redshift/commands/DescribeNodeConfigurationOptionsCommand.ts index b9b014e19c718..77c1dc1888efc 100644 --- a/clients/client-redshift/commands/DescribeNodeConfigurationOptionsCommand.ts +++ b/clients/client-redshift/commands/DescribeNodeConfigurationOptionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeNodeConfigurationOptionsCommand extends $Command< DescribeNodeConfigurationOptionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeNodeConfigurationOptionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeOrderableClusterOptionsCommand.ts b/clients/client-redshift/commands/DescribeOrderableClusterOptionsCommand.ts index 89afa17044860..f41514c8683e8 100644 --- a/clients/client-redshift/commands/DescribeOrderableClusterOptionsCommand.ts +++ b/clients/client-redshift/commands/DescribeOrderableClusterOptionsCommand.ts @@ -36,6 +36,7 @@ export class DescribeOrderableClusterOptionsCommand extends $Command< DescribeOrderableClusterOptionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeOrderableClusterOptionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeReservedNodeOfferingsCommand.ts b/clients/client-redshift/commands/DescribeReservedNodeOfferingsCommand.ts index 0e8de0aab01c1..7c60aa8253249 100644 --- a/clients/client-redshift/commands/DescribeReservedNodeOfferingsCommand.ts +++ b/clients/client-redshift/commands/DescribeReservedNodeOfferingsCommand.ts @@ -37,6 +37,7 @@ export class DescribeReservedNodeOfferingsCommand extends $Command< DescribeReservedNodeOfferingsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeReservedNodeOfferingsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeReservedNodesCommand.ts b/clients/client-redshift/commands/DescribeReservedNodesCommand.ts index 079019d7f52a2..ee3cda2b47d36 100644 --- a/clients/client-redshift/commands/DescribeReservedNodesCommand.ts +++ b/clients/client-redshift/commands/DescribeReservedNodesCommand.ts @@ -28,6 +28,7 @@ export class DescribeReservedNodesCommand extends $Command< DescribeReservedNodesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReservedNodesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeResizeCommand.ts b/clients/client-redshift/commands/DescribeResizeCommand.ts index 8808a84bcb5ce..89d396de68e83 100644 --- a/clients/client-redshift/commands/DescribeResizeCommand.ts +++ b/clients/client-redshift/commands/DescribeResizeCommand.ts @@ -33,6 +33,7 @@ export class DescribeResizeCommand extends $Command< DescribeResizeCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeResizeCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeScheduledActionsCommand.ts b/clients/client-redshift/commands/DescribeScheduledActionsCommand.ts index f25352eef0497..72760f8e6662c 100644 --- a/clients/client-redshift/commands/DescribeScheduledActionsCommand.ts +++ b/clients/client-redshift/commands/DescribeScheduledActionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeScheduledActionsCommand extends $Command< DescribeScheduledActionsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeScheduledActionsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeSnapshotCopyGrantsCommand.ts b/clients/client-redshift/commands/DescribeSnapshotCopyGrantsCommand.ts index 93cbe37ec7be8..9c05b36be41be 100644 --- a/clients/client-redshift/commands/DescribeSnapshotCopyGrantsCommand.ts +++ b/clients/client-redshift/commands/DescribeSnapshotCopyGrantsCommand.ts @@ -34,6 +34,7 @@ export class DescribeSnapshotCopyGrantsCommand extends $Command< DescribeSnapshotCopyGrantsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeSnapshotCopyGrantsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeSnapshotSchedulesCommand.ts b/clients/client-redshift/commands/DescribeSnapshotSchedulesCommand.ts index b11e5ce6edbb5..72385a96c69b3 100644 --- a/clients/client-redshift/commands/DescribeSnapshotSchedulesCommand.ts +++ b/clients/client-redshift/commands/DescribeSnapshotSchedulesCommand.ts @@ -28,6 +28,7 @@ export class DescribeSnapshotSchedulesCommand extends $Command< DescribeSnapshotSchedulesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSnapshotSchedulesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeStorageCommand.ts b/clients/client-redshift/commands/DescribeStorageCommand.ts index e14b886ec8a41..475a9036f4dff 100644 --- a/clients/client-redshift/commands/DescribeStorageCommand.ts +++ b/clients/client-redshift/commands/DescribeStorageCommand.ts @@ -28,6 +28,7 @@ export class DescribeStorageCommand extends $Command< DescribeStorageCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeStorageCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeTableRestoreStatusCommand.ts b/clients/client-redshift/commands/DescribeTableRestoreStatusCommand.ts index ef3c9edf9ae0f..43ddffdbfb014 100644 --- a/clients/client-redshift/commands/DescribeTableRestoreStatusCommand.ts +++ b/clients/client-redshift/commands/DescribeTableRestoreStatusCommand.ts @@ -33,6 +33,7 @@ export class DescribeTableRestoreStatusCommand extends $Command< DescribeTableRestoreStatusCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeTableRestoreStatusCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeTagsCommand.ts b/clients/client-redshift/commands/DescribeTagsCommand.ts index 9e6aee27016b2..c3fe1eacb6a65 100644 --- a/clients/client-redshift/commands/DescribeTagsCommand.ts +++ b/clients/client-redshift/commands/DescribeTagsCommand.ts @@ -49,6 +49,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DescribeTagsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DescribeUsageLimitsCommand.ts b/clients/client-redshift/commands/DescribeUsageLimitsCommand.ts index 957b33e0ef759..2730d952d54a8 100644 --- a/clients/client-redshift/commands/DescribeUsageLimitsCommand.ts +++ b/clients/client-redshift/commands/DescribeUsageLimitsCommand.ts @@ -47,6 +47,7 @@ export class DescribeUsageLimitsCommand extends $Command< DescribeUsageLimitsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DescribeUsageLimitsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DisableLoggingCommand.ts b/clients/client-redshift/commands/DisableLoggingCommand.ts index 0b9857619ec82..3f3ea175a6336 100644 --- a/clients/client-redshift/commands/DisableLoggingCommand.ts +++ b/clients/client-redshift/commands/DisableLoggingCommand.ts @@ -29,6 +29,7 @@ export class DisableLoggingCommand extends $Command< DisableLoggingCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableLoggingCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/DisableSnapshotCopyCommand.ts b/clients/client-redshift/commands/DisableSnapshotCopyCommand.ts index d3c8b77b78a26..a44ccef9f9999 100644 --- a/clients/client-redshift/commands/DisableSnapshotCopyCommand.ts +++ b/clients/client-redshift/commands/DisableSnapshotCopyCommand.ts @@ -32,6 +32,7 @@ export class DisableSnapshotCopyCommand extends $Command< DisableSnapshotCopyCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisableSnapshotCopyCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/EnableLoggingCommand.ts b/clients/client-redshift/commands/EnableLoggingCommand.ts index bb5056ac8ca15..0e137b385f597 100644 --- a/clients/client-redshift/commands/EnableLoggingCommand.ts +++ b/clients/client-redshift/commands/EnableLoggingCommand.ts @@ -29,6 +29,7 @@ export class EnableLoggingCommand extends $Command< EnableLoggingCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableLoggingCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/EnableSnapshotCopyCommand.ts b/clients/client-redshift/commands/EnableSnapshotCopyCommand.ts index 15788b0370873..25d73323180a4 100644 --- a/clients/client-redshift/commands/EnableSnapshotCopyCommand.ts +++ b/clients/client-redshift/commands/EnableSnapshotCopyCommand.ts @@ -29,6 +29,7 @@ export class EnableSnapshotCopyCommand extends $Command< EnableSnapshotCopyCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableSnapshotCopyCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/GetClusterCredentialsCommand.ts b/clients/client-redshift/commands/GetClusterCredentialsCommand.ts index d847f7b054205..eddd3ae88b33f 100644 --- a/clients/client-redshift/commands/GetClusterCredentialsCommand.ts +++ b/clients/client-redshift/commands/GetClusterCredentialsCommand.ts @@ -48,6 +48,7 @@ export class GetClusterCredentialsCommand extends $Command< GetClusterCredentialsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class GetClusterCredentialsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/GetReservedNodeExchangeOfferingsCommand.ts b/clients/client-redshift/commands/GetReservedNodeExchangeOfferingsCommand.ts index d64d37d1f3870..e32b42c06cfd0 100644 --- a/clients/client-redshift/commands/GetReservedNodeExchangeOfferingsCommand.ts +++ b/clients/client-redshift/commands/GetReservedNodeExchangeOfferingsCommand.ts @@ -33,6 +33,7 @@ export class GetReservedNodeExchangeOfferingsCommand extends $Command< GetReservedNodeExchangeOfferingsCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetReservedNodeExchangeOfferingsCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterCommand.ts b/clients/client-redshift/commands/ModifyClusterCommand.ts index 56734e6757a0a..2a5be84046052 100644 --- a/clients/client-redshift/commands/ModifyClusterCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterCommand.ts @@ -36,6 +36,7 @@ export class ModifyClusterCommand extends $Command< ModifyClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ModifyClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterDbRevisionCommand.ts b/clients/client-redshift/commands/ModifyClusterDbRevisionCommand.ts index facc35645a609..d0b9f051499fa 100644 --- a/clients/client-redshift/commands/ModifyClusterDbRevisionCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterDbRevisionCommand.ts @@ -29,6 +29,7 @@ export class ModifyClusterDbRevisionCommand extends $Command< ModifyClusterDbRevisionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyClusterDbRevisionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterIamRolesCommand.ts b/clients/client-redshift/commands/ModifyClusterIamRolesCommand.ts index 7676c44eeb4b1..6972aa28841be 100644 --- a/clients/client-redshift/commands/ModifyClusterIamRolesCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterIamRolesCommand.ts @@ -30,6 +30,7 @@ export class ModifyClusterIamRolesCommand extends $Command< ModifyClusterIamRolesCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyClusterIamRolesCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterMaintenanceCommand.ts b/clients/client-redshift/commands/ModifyClusterMaintenanceCommand.ts index 96ff5c4df62fc..78ef68ca8ce83 100644 --- a/clients/client-redshift/commands/ModifyClusterMaintenanceCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterMaintenanceCommand.ts @@ -28,6 +28,7 @@ export class ModifyClusterMaintenanceCommand extends $Command< ModifyClusterMaintenanceCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyClusterMaintenanceCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterParameterGroupCommand.ts b/clients/client-redshift/commands/ModifyClusterParameterGroupCommand.ts index 0397fd479da19..6106d2c1239f8 100644 --- a/clients/client-redshift/commands/ModifyClusterParameterGroupCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterParameterGroupCommand.ts @@ -33,6 +33,7 @@ export class ModifyClusterParameterGroupCommand extends $Command< ModifyClusterParameterGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyClusterParameterGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterSnapshotCommand.ts b/clients/client-redshift/commands/ModifyClusterSnapshotCommand.ts index db721a72ba477..f82c63bf39823 100644 --- a/clients/client-redshift/commands/ModifyClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterSnapshotCommand.ts @@ -29,6 +29,7 @@ export class ModifyClusterSnapshotCommand extends $Command< ModifyClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterSnapshotScheduleCommand.ts b/clients/client-redshift/commands/ModifyClusterSnapshotScheduleCommand.ts index fb80202e8d477..43caf9d92804f 100644 --- a/clients/client-redshift/commands/ModifyClusterSnapshotScheduleCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterSnapshotScheduleCommand.ts @@ -28,6 +28,7 @@ export class ModifyClusterSnapshotScheduleCommand extends $Command< ModifyClusterSnapshotScheduleCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyClusterSnapshotScheduleCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyClusterSubnetGroupCommand.ts b/clients/client-redshift/commands/ModifyClusterSubnetGroupCommand.ts index 02fd3cfcc07c7..5db58ae62283d 100644 --- a/clients/client-redshift/commands/ModifyClusterSubnetGroupCommand.ts +++ b/clients/client-redshift/commands/ModifyClusterSubnetGroupCommand.ts @@ -29,6 +29,7 @@ export class ModifyClusterSubnetGroupCommand extends $Command< ModifyClusterSubnetGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyClusterSubnetGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyEventSubscriptionCommand.ts b/clients/client-redshift/commands/ModifyEventSubscriptionCommand.ts index 3092dbc6bb770..66129661663fa 100644 --- a/clients/client-redshift/commands/ModifyEventSubscriptionCommand.ts +++ b/clients/client-redshift/commands/ModifyEventSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class ModifyEventSubscriptionCommand extends $Command< ModifyEventSubscriptionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyEventSubscriptionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyScheduledActionCommand.ts b/clients/client-redshift/commands/ModifyScheduledActionCommand.ts index a2f260bebe576..237edbdee911f 100644 --- a/clients/client-redshift/commands/ModifyScheduledActionCommand.ts +++ b/clients/client-redshift/commands/ModifyScheduledActionCommand.ts @@ -30,6 +30,7 @@ export class ModifyScheduledActionCommand extends $Command< ModifyScheduledActionCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyScheduledActionCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifySnapshotCopyRetentionPeriodCommand.ts b/clients/client-redshift/commands/ModifySnapshotCopyRetentionPeriodCommand.ts index 4d6706fc6212e..248e29b5869dc 100644 --- a/clients/client-redshift/commands/ModifySnapshotCopyRetentionPeriodCommand.ts +++ b/clients/client-redshift/commands/ModifySnapshotCopyRetentionPeriodCommand.ts @@ -34,6 +34,7 @@ export class ModifySnapshotCopyRetentionPeriodCommand extends $Command< ModifySnapshotCopyRetentionPeriodCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ModifySnapshotCopyRetentionPeriodCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifySnapshotScheduleCommand.ts b/clients/client-redshift/commands/ModifySnapshotScheduleCommand.ts index 9810a6abf986a..47750e72bc239 100644 --- a/clients/client-redshift/commands/ModifySnapshotScheduleCommand.ts +++ b/clients/client-redshift/commands/ModifySnapshotScheduleCommand.ts @@ -30,6 +30,7 @@ export class ModifySnapshotScheduleCommand extends $Command< ModifySnapshotScheduleCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifySnapshotScheduleCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ModifyUsageLimitCommand.ts b/clients/client-redshift/commands/ModifyUsageLimitCommand.ts index 143ce500f9315..515ac781c6cee 100644 --- a/clients/client-redshift/commands/ModifyUsageLimitCommand.ts +++ b/clients/client-redshift/commands/ModifyUsageLimitCommand.ts @@ -30,6 +30,7 @@ export class ModifyUsageLimitCommand extends $Command< ModifyUsageLimitCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyUsageLimitCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/PauseClusterCommand.ts b/clients/client-redshift/commands/PauseClusterCommand.ts index 3653626cfbad6..7f1c73d1b35d9 100644 --- a/clients/client-redshift/commands/PauseClusterCommand.ts +++ b/clients/client-redshift/commands/PauseClusterCommand.ts @@ -26,6 +26,7 @@ export class PauseClusterCommand extends $Command< PauseClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class PauseClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/PurchaseReservedNodeOfferingCommand.ts b/clients/client-redshift/commands/PurchaseReservedNodeOfferingCommand.ts index efed7bece780e..75f0619841b22 100644 --- a/clients/client-redshift/commands/PurchaseReservedNodeOfferingCommand.ts +++ b/clients/client-redshift/commands/PurchaseReservedNodeOfferingCommand.ts @@ -36,6 +36,7 @@ export class PurchaseReservedNodeOfferingCommand extends $Command< PurchaseReservedNodeOfferingCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PurchaseReservedNodeOfferingCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RebootClusterCommand.ts b/clients/client-redshift/commands/RebootClusterCommand.ts index 7aae0f2924b14..3dfce37428b27 100644 --- a/clients/client-redshift/commands/RebootClusterCommand.ts +++ b/clients/client-redshift/commands/RebootClusterCommand.ts @@ -35,6 +35,7 @@ export class RebootClusterCommand extends $Command< RebootClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RebootClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ResetClusterParameterGroupCommand.ts b/clients/client-redshift/commands/ResetClusterParameterGroupCommand.ts index 54ea9958c0ef7..49939c1d256e6 100644 --- a/clients/client-redshift/commands/ResetClusterParameterGroupCommand.ts +++ b/clients/client-redshift/commands/ResetClusterParameterGroupCommand.ts @@ -32,6 +32,7 @@ export class ResetClusterParameterGroupCommand extends $Command< ResetClusterParameterGroupCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ResetClusterParameterGroupCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ResizeClusterCommand.ts b/clients/client-redshift/commands/ResizeClusterCommand.ts index 20dd280984503..7671aacfbfd18 100644 --- a/clients/client-redshift/commands/ResizeClusterCommand.ts +++ b/clients/client-redshift/commands/ResizeClusterCommand.ts @@ -71,6 +71,7 @@ export class ResizeClusterCommand extends $Command< ResizeClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class ResizeClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RestoreFromClusterSnapshotCommand.ts b/clients/client-redshift/commands/RestoreFromClusterSnapshotCommand.ts index 7e79978d68a1f..944c31c83a1b8 100644 --- a/clients/client-redshift/commands/RestoreFromClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/RestoreFromClusterSnapshotCommand.ts @@ -39,6 +39,7 @@ export class RestoreFromClusterSnapshotCommand extends $Command< RestoreFromClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class RestoreFromClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RestoreTableFromClusterSnapshotCommand.ts b/clients/client-redshift/commands/RestoreTableFromClusterSnapshotCommand.ts index 246c78443dc43..5b4c6e411aac7 100644 --- a/clients/client-redshift/commands/RestoreTableFromClusterSnapshotCommand.ts +++ b/clients/client-redshift/commands/RestoreTableFromClusterSnapshotCommand.ts @@ -39,6 +39,7 @@ export class RestoreTableFromClusterSnapshotCommand extends $Command< RestoreTableFromClusterSnapshotCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class RestoreTableFromClusterSnapshotCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/ResumeClusterCommand.ts b/clients/client-redshift/commands/ResumeClusterCommand.ts index 7b0f00da184ba..b507e08c33ce0 100644 --- a/clients/client-redshift/commands/ResumeClusterCommand.ts +++ b/clients/client-redshift/commands/ResumeClusterCommand.ts @@ -29,6 +29,7 @@ export class ResumeClusterCommand extends $Command< ResumeClusterCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ResumeClusterCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RevokeClusterSecurityGroupIngressCommand.ts b/clients/client-redshift/commands/RevokeClusterSecurityGroupIngressCommand.ts index f27ec0f2132d0..05b366cf4311a 100644 --- a/clients/client-redshift/commands/RevokeClusterSecurityGroupIngressCommand.ts +++ b/clients/client-redshift/commands/RevokeClusterSecurityGroupIngressCommand.ts @@ -32,6 +32,7 @@ export class RevokeClusterSecurityGroupIngressCommand extends $Command< RevokeClusterSecurityGroupIngressCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RevokeClusterSecurityGroupIngressCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RevokeSnapshotAccessCommand.ts b/clients/client-redshift/commands/RevokeSnapshotAccessCommand.ts index b26ad28331c6c..5c492d5d71b26 100644 --- a/clients/client-redshift/commands/RevokeSnapshotAccessCommand.ts +++ b/clients/client-redshift/commands/RevokeSnapshotAccessCommand.ts @@ -34,6 +34,7 @@ export class RevokeSnapshotAccessCommand extends $Command< RevokeSnapshotAccessCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RevokeSnapshotAccessCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-redshift/commands/RotateEncryptionKeyCommand.ts b/clients/client-redshift/commands/RotateEncryptionKeyCommand.ts index 8cc8864849cdc..ff689672de37c 100644 --- a/clients/client-redshift/commands/RotateEncryptionKeyCommand.ts +++ b/clients/client-redshift/commands/RotateEncryptionKeyCommand.ts @@ -28,6 +28,7 @@ export class RotateEncryptionKeyCommand extends $Command< RotateEncryptionKeyCommandOutput, RedshiftClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RotateEncryptionKeyCommand extends $Command< configuration: RedshiftClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/CompareFacesCommand.ts b/clients/client-rekognition/commands/CompareFacesCommand.ts index 21c2c87140959..f3ee514408119 100644 --- a/clients/client-rekognition/commands/CompareFacesCommand.ts +++ b/clients/client-rekognition/commands/CompareFacesCommand.ts @@ -79,6 +79,7 @@ export class CompareFacesCommand extends $Command< CompareFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class CompareFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/CreateCollectionCommand.ts b/clients/client-rekognition/commands/CreateCollectionCommand.ts index 6e0c144fb6cb5..affb195e080c4 100644 --- a/clients/client-rekognition/commands/CreateCollectionCommand.ts +++ b/clients/client-rekognition/commands/CreateCollectionCommand.ts @@ -40,6 +40,7 @@ export class CreateCollectionCommand extends $Command< CreateCollectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateCollectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/CreateProjectCommand.ts b/clients/client-rekognition/commands/CreateProjectCommand.ts index e5e8160c1296c..d680273911f79 100644 --- a/clients/client-rekognition/commands/CreateProjectCommand.ts +++ b/clients/client-rekognition/commands/CreateProjectCommand.ts @@ -30,6 +30,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateProjectCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/CreateProjectVersionCommand.ts b/clients/client-rekognition/commands/CreateProjectVersionCommand.ts index 13e1f7c6f0ca5..cb94818394862 100644 --- a/clients/client-rekognition/commands/CreateProjectVersionCommand.ts +++ b/clients/client-rekognition/commands/CreateProjectVersionCommand.ts @@ -39,6 +39,7 @@ export class CreateProjectVersionCommand extends $Command< CreateProjectVersionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateProjectVersionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/CreateStreamProcessorCommand.ts b/clients/client-rekognition/commands/CreateStreamProcessorCommand.ts index 4cde1f66154d2..abb67c8bdd059 100644 --- a/clients/client-rekognition/commands/CreateStreamProcessorCommand.ts +++ b/clients/client-rekognition/commands/CreateStreamProcessorCommand.ts @@ -36,6 +36,7 @@ export class CreateStreamProcessorCommand extends $Command< CreateStreamProcessorCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateStreamProcessorCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DeleteCollectionCommand.ts b/clients/client-rekognition/commands/DeleteCollectionCommand.ts index bfe463c73dbc1..7e3691f41acba 100644 --- a/clients/client-rekognition/commands/DeleteCollectionCommand.ts +++ b/clients/client-rekognition/commands/DeleteCollectionCommand.ts @@ -32,6 +32,7 @@ export class DeleteCollectionCommand extends $Command< DeleteCollectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteCollectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DeleteFacesCommand.ts b/clients/client-rekognition/commands/DeleteFacesCommand.ts index 6ead2c00e938b..7d69504c30a42 100644 --- a/clients/client-rekognition/commands/DeleteFacesCommand.ts +++ b/clients/client-rekognition/commands/DeleteFacesCommand.ts @@ -31,6 +31,7 @@ export class DeleteFacesCommand extends $Command< DeleteFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DeleteProjectCommand.ts b/clients/client-rekognition/commands/DeleteProjectCommand.ts index 9d70b473ad23e..c05c12ea8aab5 100644 --- a/clients/client-rekognition/commands/DeleteProjectCommand.ts +++ b/clients/client-rekognition/commands/DeleteProjectCommand.ts @@ -31,6 +31,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteProjectCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DeleteProjectVersionCommand.ts b/clients/client-rekognition/commands/DeleteProjectVersionCommand.ts index 2a2a0ef76726d..f4f49e3c2f60f 100644 --- a/clients/client-rekognition/commands/DeleteProjectVersionCommand.ts +++ b/clients/client-rekognition/commands/DeleteProjectVersionCommand.ts @@ -35,6 +35,7 @@ export class DeleteProjectVersionCommand extends $Command< DeleteProjectVersionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteProjectVersionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DeleteStreamProcessorCommand.ts b/clients/client-rekognition/commands/DeleteStreamProcessorCommand.ts index 3cc6600a8f5ae..2253ee7608f15 100644 --- a/clients/client-rekognition/commands/DeleteStreamProcessorCommand.ts +++ b/clients/client-rekognition/commands/DeleteStreamProcessorCommand.ts @@ -29,6 +29,7 @@ export class DeleteStreamProcessorCommand extends $Command< DeleteStreamProcessorCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteStreamProcessorCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DescribeCollectionCommand.ts b/clients/client-rekognition/commands/DescribeCollectionCommand.ts index 4901c76ef7a90..0ea105f48b4b5 100644 --- a/clients/client-rekognition/commands/DescribeCollectionCommand.ts +++ b/clients/client-rekognition/commands/DescribeCollectionCommand.ts @@ -33,6 +33,7 @@ export class DescribeCollectionCommand extends $Command< DescribeCollectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeCollectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DescribeProjectVersionsCommand.ts b/clients/client-rekognition/commands/DescribeProjectVersionsCommand.ts index 755d682a72185..18c19a5c7b1ef 100644 --- a/clients/client-rekognition/commands/DescribeProjectVersionsCommand.ts +++ b/clients/client-rekognition/commands/DescribeProjectVersionsCommand.ts @@ -32,6 +32,7 @@ export class DescribeProjectVersionsCommand extends $Command< DescribeProjectVersionsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeProjectVersionsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DescribeProjectsCommand.ts b/clients/client-rekognition/commands/DescribeProjectsCommand.ts index bae2dea95375a..872ef2a9834fc 100644 --- a/clients/client-rekognition/commands/DescribeProjectsCommand.ts +++ b/clients/client-rekognition/commands/DescribeProjectsCommand.ts @@ -29,6 +29,7 @@ export class DescribeProjectsCommand extends $Command< DescribeProjectsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeProjectsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DescribeStreamProcessorCommand.ts b/clients/client-rekognition/commands/DescribeStreamProcessorCommand.ts index 3d3b2ed75d46e..fc674f0cd30ee 100644 --- a/clients/client-rekognition/commands/DescribeStreamProcessorCommand.ts +++ b/clients/client-rekognition/commands/DescribeStreamProcessorCommand.ts @@ -29,6 +29,7 @@ export class DescribeStreamProcessorCommand extends $Command< DescribeStreamProcessorCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeStreamProcessorCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectCustomLabelsCommand.ts b/clients/client-rekognition/commands/DetectCustomLabelsCommand.ts index d2d740febed1b..5da4474b9e73e 100644 --- a/clients/client-rekognition/commands/DetectCustomLabelsCommand.ts +++ b/clients/client-rekognition/commands/DetectCustomLabelsCommand.ts @@ -53,6 +53,7 @@ export class DetectCustomLabelsCommand extends $Command< DetectCustomLabelsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class DetectCustomLabelsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectFacesCommand.ts b/clients/client-rekognition/commands/DetectFacesCommand.ts index 122da339edb28..33fffbc37e8ca 100644 --- a/clients/client-rekognition/commands/DetectFacesCommand.ts +++ b/clients/client-rekognition/commands/DetectFacesCommand.ts @@ -50,6 +50,7 @@ export class DetectFacesCommand extends $Command< DetectFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DetectFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectLabelsCommand.ts b/clients/client-rekognition/commands/DetectLabelsCommand.ts index 8b9cff2a2eb2e..445a2b8c667a3 100644 --- a/clients/client-rekognition/commands/DetectLabelsCommand.ts +++ b/clients/client-rekognition/commands/DetectLabelsCommand.ts @@ -101,6 +101,7 @@ export class DetectLabelsCommand extends $Command< DetectLabelsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -118,7 +119,10 @@ export class DetectLabelsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectModerationLabelsCommand.ts b/clients/client-rekognition/commands/DetectModerationLabelsCommand.ts index 09b40182b463a..bfa9ed434780c 100644 --- a/clients/client-rekognition/commands/DetectModerationLabelsCommand.ts +++ b/clients/client-rekognition/commands/DetectModerationLabelsCommand.ts @@ -41,6 +41,7 @@ export class DetectModerationLabelsCommand extends $Command< DetectModerationLabelsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DetectModerationLabelsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectProtectiveEquipmentCommand.ts b/clients/client-rekognition/commands/DetectProtectiveEquipmentCommand.ts index 1d3d3077b0592..79d6f429eb0e5 100644 --- a/clients/client-rekognition/commands/DetectProtectiveEquipmentCommand.ts +++ b/clients/client-rekognition/commands/DetectProtectiveEquipmentCommand.ts @@ -67,6 +67,7 @@ export class DetectProtectiveEquipmentCommand extends $Command< DetectProtectiveEquipmentCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class DetectProtectiveEquipmentCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/DetectTextCommand.ts b/clients/client-rekognition/commands/DetectTextCommand.ts index 18de69a2fb87e..51c907b5605b1 100644 --- a/clients/client-rekognition/commands/DetectTextCommand.ts +++ b/clients/client-rekognition/commands/DetectTextCommand.ts @@ -49,6 +49,7 @@ export class DetectTextCommand extends $Command< DetectTextCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DetectTextCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetCelebrityInfoCommand.ts b/clients/client-rekognition/commands/GetCelebrityInfoCommand.ts index d658eb29209b4..9d01002622ba5 100644 --- a/clients/client-rekognition/commands/GetCelebrityInfoCommand.ts +++ b/clients/client-rekognition/commands/GetCelebrityInfoCommand.ts @@ -35,6 +35,7 @@ export class GetCelebrityInfoCommand extends $Command< GetCelebrityInfoCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetCelebrityInfoCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetCelebrityRecognitionCommand.ts b/clients/client-rekognition/commands/GetCelebrityRecognitionCommand.ts index 46819a4d2acd9..a7ff54fe2cce0 100644 --- a/clients/client-rekognition/commands/GetCelebrityRecognitionCommand.ts +++ b/clients/client-rekognition/commands/GetCelebrityRecognitionCommand.ts @@ -64,6 +64,7 @@ export class GetCelebrityRecognitionCommand extends $Command< GetCelebrityRecognitionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class GetCelebrityRecognitionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetContentModerationCommand.ts b/clients/client-rekognition/commands/GetContentModerationCommand.ts index 9ea3496741e0f..36bae238852db 100644 --- a/clients/client-rekognition/commands/GetContentModerationCommand.ts +++ b/clients/client-rekognition/commands/GetContentModerationCommand.ts @@ -56,6 +56,7 @@ export class GetContentModerationCommand extends $Command< GetContentModerationCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class GetContentModerationCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetFaceDetectionCommand.ts b/clients/client-rekognition/commands/GetFaceDetectionCommand.ts index 734d94669d02c..3645c6ce84a20 100644 --- a/clients/client-rekognition/commands/GetFaceDetectionCommand.ts +++ b/clients/client-rekognition/commands/GetFaceDetectionCommand.ts @@ -40,6 +40,7 @@ export class GetFaceDetectionCommand extends $Command< GetFaceDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetFaceDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetFaceSearchCommand.ts b/clients/client-rekognition/commands/GetFaceSearchCommand.ts index 08e917c9ab8f3..848f8647cbc6f 100644 --- a/clients/client-rekognition/commands/GetFaceSearchCommand.ts +++ b/clients/client-rekognition/commands/GetFaceSearchCommand.ts @@ -59,6 +59,7 @@ export class GetFaceSearchCommand extends $Command< GetFaceSearchCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class GetFaceSearchCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetLabelDetectionCommand.ts b/clients/client-rekognition/commands/GetLabelDetectionCommand.ts index 77148f3321c25..7ee1916074282 100644 --- a/clients/client-rekognition/commands/GetLabelDetectionCommand.ts +++ b/clients/client-rekognition/commands/GetLabelDetectionCommand.ts @@ -48,6 +48,7 @@ export class GetLabelDetectionCommand extends $Command< GetLabelDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class GetLabelDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetPersonTrackingCommand.ts b/clients/client-rekognition/commands/GetPersonTrackingCommand.ts index 02d316fb35a39..7ea68395cc088 100644 --- a/clients/client-rekognition/commands/GetPersonTrackingCommand.ts +++ b/clients/client-rekognition/commands/GetPersonTrackingCommand.ts @@ -57,6 +57,7 @@ export class GetPersonTrackingCommand extends $Command< GetPersonTrackingCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class GetPersonTrackingCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetSegmentDetectionCommand.ts b/clients/client-rekognition/commands/GetSegmentDetectionCommand.ts index 2cca787ec860f..ce64ac49e42a5 100644 --- a/clients/client-rekognition/commands/GetSegmentDetectionCommand.ts +++ b/clients/client-rekognition/commands/GetSegmentDetectionCommand.ts @@ -50,6 +50,7 @@ export class GetSegmentDetectionCommand extends $Command< GetSegmentDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class GetSegmentDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/GetTextDetectionCommand.ts b/clients/client-rekognition/commands/GetTextDetectionCommand.ts index 4aa353e5b07f5..11e486ec5d43c 100644 --- a/clients/client-rekognition/commands/GetTextDetectionCommand.ts +++ b/clients/client-rekognition/commands/GetTextDetectionCommand.ts @@ -46,6 +46,7 @@ export class GetTextDetectionCommand extends $Command< GetTextDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetTextDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/IndexFacesCommand.ts b/clients/client-rekognition/commands/IndexFacesCommand.ts index 67571ea7c3aa5..e6eadbef57c04 100644 --- a/clients/client-rekognition/commands/IndexFacesCommand.ts +++ b/clients/client-rekognition/commands/IndexFacesCommand.ts @@ -127,6 +127,7 @@ export class IndexFacesCommand extends $Command< IndexFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -144,7 +145,10 @@ export class IndexFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/ListCollectionsCommand.ts b/clients/client-rekognition/commands/ListCollectionsCommand.ts index 878f044f206a6..22d995b2dc95f 100644 --- a/clients/client-rekognition/commands/ListCollectionsCommand.ts +++ b/clients/client-rekognition/commands/ListCollectionsCommand.ts @@ -33,6 +33,7 @@ export class ListCollectionsCommand extends $Command< ListCollectionsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListCollectionsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/ListFacesCommand.ts b/clients/client-rekognition/commands/ListFacesCommand.ts index 4d9682f905e41..4ef405ff03fa4 100644 --- a/clients/client-rekognition/commands/ListFacesCommand.ts +++ b/clients/client-rekognition/commands/ListFacesCommand.ts @@ -32,6 +32,7 @@ export class ListFacesCommand extends $Command< ListFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/ListStreamProcessorsCommand.ts b/clients/client-rekognition/commands/ListStreamProcessorsCommand.ts index 2bf71586d570a..f22bc23517de2 100644 --- a/clients/client-rekognition/commands/ListStreamProcessorsCommand.ts +++ b/clients/client-rekognition/commands/ListStreamProcessorsCommand.ts @@ -28,6 +28,7 @@ export class ListStreamProcessorsCommand extends $Command< ListStreamProcessorsCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListStreamProcessorsCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/RecognizeCelebritiesCommand.ts b/clients/client-rekognition/commands/RecognizeCelebritiesCommand.ts index 67fdbcf36e2d8..6582608a01703 100644 --- a/clients/client-rekognition/commands/RecognizeCelebritiesCommand.ts +++ b/clients/client-rekognition/commands/RecognizeCelebritiesCommand.ts @@ -58,6 +58,7 @@ export class RecognizeCelebritiesCommand extends $Command< RecognizeCelebritiesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class RecognizeCelebritiesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/SearchFacesByImageCommand.ts b/clients/client-rekognition/commands/SearchFacesByImageCommand.ts index cae18219adb6d..482cad824b4c3 100644 --- a/clients/client-rekognition/commands/SearchFacesByImageCommand.ts +++ b/clients/client-rekognition/commands/SearchFacesByImageCommand.ts @@ -72,6 +72,7 @@ export class SearchFacesByImageCommand extends $Command< SearchFacesByImageCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class SearchFacesByImageCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/SearchFacesCommand.ts b/clients/client-rekognition/commands/SearchFacesCommand.ts index 2a6ff6ba3b5ac..91ea35e20ab2e 100644 --- a/clients/client-rekognition/commands/SearchFacesCommand.ts +++ b/clients/client-rekognition/commands/SearchFacesCommand.ts @@ -48,6 +48,7 @@ export class SearchFacesCommand extends $Command< SearchFacesCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class SearchFacesCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartCelebrityRecognitionCommand.ts b/clients/client-rekognition/commands/StartCelebrityRecognitionCommand.ts index c370566adc9e8..aa54109e1431e 100644 --- a/clients/client-rekognition/commands/StartCelebrityRecognitionCommand.ts +++ b/clients/client-rekognition/commands/StartCelebrityRecognitionCommand.ts @@ -39,6 +39,7 @@ export class StartCelebrityRecognitionCommand extends $Command< StartCelebrityRecognitionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class StartCelebrityRecognitionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartContentModerationCommand.ts b/clients/client-rekognition/commands/StartContentModerationCommand.ts index 7258b1eb2da38..b0a3646c551b5 100644 --- a/clients/client-rekognition/commands/StartContentModerationCommand.ts +++ b/clients/client-rekognition/commands/StartContentModerationCommand.ts @@ -38,6 +38,7 @@ export class StartContentModerationCommand extends $Command< StartContentModerationCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class StartContentModerationCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartFaceDetectionCommand.ts b/clients/client-rekognition/commands/StartFaceDetectionCommand.ts index 9b6bb76df5797..cb5a3410627dd 100644 --- a/clients/client-rekognition/commands/StartFaceDetectionCommand.ts +++ b/clients/client-rekognition/commands/StartFaceDetectionCommand.ts @@ -40,6 +40,7 @@ export class StartFaceDetectionCommand extends $Command< StartFaceDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class StartFaceDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartFaceSearchCommand.ts b/clients/client-rekognition/commands/StartFaceSearchCommand.ts index 4ba523bd8acae..d8c9aa3c4654f 100644 --- a/clients/client-rekognition/commands/StartFaceSearchCommand.ts +++ b/clients/client-rekognition/commands/StartFaceSearchCommand.ts @@ -37,6 +37,7 @@ export class StartFaceSearchCommand extends $Command< StartFaceSearchCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StartFaceSearchCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartLabelDetectionCommand.ts b/clients/client-rekognition/commands/StartLabelDetectionCommand.ts index cc76672906f0f..e5d15a0427512 100644 --- a/clients/client-rekognition/commands/StartLabelDetectionCommand.ts +++ b/clients/client-rekognition/commands/StartLabelDetectionCommand.ts @@ -42,6 +42,7 @@ export class StartLabelDetectionCommand extends $Command< StartLabelDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class StartLabelDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartPersonTrackingCommand.ts b/clients/client-rekognition/commands/StartPersonTrackingCommand.ts index c76d63101ad28..1ccd9ca81775d 100644 --- a/clients/client-rekognition/commands/StartPersonTrackingCommand.ts +++ b/clients/client-rekognition/commands/StartPersonTrackingCommand.ts @@ -36,6 +36,7 @@ export class StartPersonTrackingCommand extends $Command< StartPersonTrackingCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartPersonTrackingCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartProjectVersionCommand.ts b/clients/client-rekognition/commands/StartProjectVersionCommand.ts index c1fe493266e59..dc170dd2af248 100644 --- a/clients/client-rekognition/commands/StartProjectVersionCommand.ts +++ b/clients/client-rekognition/commands/StartProjectVersionCommand.ts @@ -37,6 +37,7 @@ export class StartProjectVersionCommand extends $Command< StartProjectVersionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StartProjectVersionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartSegmentDetectionCommand.ts b/clients/client-rekognition/commands/StartSegmentDetectionCommand.ts index 6463344862368..e383087cec24f 100644 --- a/clients/client-rekognition/commands/StartSegmentDetectionCommand.ts +++ b/clients/client-rekognition/commands/StartSegmentDetectionCommand.ts @@ -43,6 +43,7 @@ export class StartSegmentDetectionCommand extends $Command< StartSegmentDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class StartSegmentDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartStreamProcessorCommand.ts b/clients/client-rekognition/commands/StartStreamProcessorCommand.ts index d21e3c278ec8b..d4f2396267793 100644 --- a/clients/client-rekognition/commands/StartStreamProcessorCommand.ts +++ b/clients/client-rekognition/commands/StartStreamProcessorCommand.ts @@ -30,6 +30,7 @@ export class StartStreamProcessorCommand extends $Command< StartStreamProcessorCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartStreamProcessorCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StartTextDetectionCommand.ts b/clients/client-rekognition/commands/StartTextDetectionCommand.ts index f23be379387eb..a10e34bbe8618 100644 --- a/clients/client-rekognition/commands/StartTextDetectionCommand.ts +++ b/clients/client-rekognition/commands/StartTextDetectionCommand.ts @@ -35,6 +35,7 @@ export class StartTextDetectionCommand extends $Command< StartTextDetectionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartTextDetectionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StopProjectVersionCommand.ts b/clients/client-rekognition/commands/StopProjectVersionCommand.ts index 388ebf1958e9e..7cd5d2cd486a1 100644 --- a/clients/client-rekognition/commands/StopProjectVersionCommand.ts +++ b/clients/client-rekognition/commands/StopProjectVersionCommand.ts @@ -29,6 +29,7 @@ export class StopProjectVersionCommand extends $Command< StopProjectVersionCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopProjectVersionCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-rekognition/commands/StopStreamProcessorCommand.ts b/clients/client-rekognition/commands/StopStreamProcessorCommand.ts index 14e8de95ea68d..a8b39103d9154 100644 --- a/clients/client-rekognition/commands/StopStreamProcessorCommand.ts +++ b/clients/client-rekognition/commands/StopStreamProcessorCommand.ts @@ -28,6 +28,7 @@ export class StopStreamProcessorCommand extends $Command< StopStreamProcessorCommandOutput, RekognitionClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopStreamProcessorCommand extends $Command< configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/DescribeReportCreationCommand.ts b/clients/client-resource-groups-tagging-api/commands/DescribeReportCreationCommand.ts index 3ada7c1c25e2e..3df2744b63a50 100644 --- a/clients/client-resource-groups-tagging-api/commands/DescribeReportCreationCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/DescribeReportCreationCommand.ts @@ -33,6 +33,7 @@ export class DescribeReportCreationCommand extends $Command< DescribeReportCreationCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeReportCreationCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/GetComplianceSummaryCommand.ts b/clients/client-resource-groups-tagging-api/commands/GetComplianceSummaryCommand.ts index 3f6a07d577065..375e896e6f484 100644 --- a/clients/client-resource-groups-tagging-api/commands/GetComplianceSummaryCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/GetComplianceSummaryCommand.ts @@ -37,6 +37,7 @@ export class GetComplianceSummaryCommand extends $Command< GetComplianceSummaryCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetComplianceSummaryCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/GetResourcesCommand.ts b/clients/client-resource-groups-tagging-api/commands/GetResourcesCommand.ts index a059be52ce320..d4c3dda067917 100644 --- a/clients/client-resource-groups-tagging-api/commands/GetResourcesCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/GetResourcesCommand.ts @@ -56,6 +56,7 @@ export class GetResourcesCommand extends $Command< GetResourcesCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class GetResourcesCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/GetTagKeysCommand.ts b/clients/client-resource-groups-tagging-api/commands/GetTagKeysCommand.ts index 97918da1f1d59..a8e9188e4bcc7 100644 --- a/clients/client-resource-groups-tagging-api/commands/GetTagKeysCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/GetTagKeysCommand.ts @@ -32,6 +32,7 @@ export class GetTagKeysCommand extends $Command< GetTagKeysCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetTagKeysCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/GetTagValuesCommand.ts b/clients/client-resource-groups-tagging-api/commands/GetTagValuesCommand.ts index 558e3631196b3..43c03bd4ff4fc 100644 --- a/clients/client-resource-groups-tagging-api/commands/GetTagValuesCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/GetTagValuesCommand.ts @@ -33,6 +33,7 @@ export class GetTagValuesCommand extends $Command< GetTagValuesCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetTagValuesCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/StartReportCreationCommand.ts b/clients/client-resource-groups-tagging-api/commands/StartReportCreationCommand.ts index 8db10b9ed7972..1aa69dc6325f5 100644 --- a/clients/client-resource-groups-tagging-api/commands/StartReportCreationCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/StartReportCreationCommand.ts @@ -39,6 +39,7 @@ export class StartReportCreationCommand extends $Command< StartReportCreationCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class StartReportCreationCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/TagResourcesCommand.ts b/clients/client-resource-groups-tagging-api/commands/TagResourcesCommand.ts index c013c1f3fcdbe..bdb872de7757f 100644 --- a/clients/client-resource-groups-tagging-api/commands/TagResourcesCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/TagResourcesCommand.ts @@ -59,6 +59,7 @@ export class TagResourcesCommand extends $Command< TagResourcesCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class TagResourcesCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups-tagging-api/commands/UntagResourcesCommand.ts b/clients/client-resource-groups-tagging-api/commands/UntagResourcesCommand.ts index d6a87563347b4..fb0db766cf7ca 100644 --- a/clients/client-resource-groups-tagging-api/commands/UntagResourcesCommand.ts +++ b/clients/client-resource-groups-tagging-api/commands/UntagResourcesCommand.ts @@ -46,6 +46,7 @@ export class UntagResourcesCommand extends $Command< UntagResourcesCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class UntagResourcesCommand extends $Command< configuration: ResourceGroupsTaggingAPIClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/CreateGroupCommand.ts b/clients/client-resource-groups/commands/CreateGroupCommand.ts index 65354a840a3eb..f648e6b01b171 100644 --- a/clients/client-resource-groups/commands/CreateGroupCommand.ts +++ b/clients/client-resource-groups/commands/CreateGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateGroupCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/DeleteGroupCommand.ts b/clients/client-resource-groups/commands/DeleteGroupCommand.ts index 4e06ab1e0f973..66e0bdcf865c3 100644 --- a/clients/client-resource-groups/commands/DeleteGroupCommand.ts +++ b/clients/client-resource-groups/commands/DeleteGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteGroupCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/GetGroupCommand.ts b/clients/client-resource-groups/commands/GetGroupCommand.ts index e61daf2821053..8d4863ee34896 100644 --- a/clients/client-resource-groups/commands/GetGroupCommand.ts +++ b/clients/client-resource-groups/commands/GetGroupCommand.ts @@ -28,6 +28,7 @@ export class GetGroupCommand extends $Command< GetGroupCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/GetGroupConfigurationCommand.ts b/clients/client-resource-groups/commands/GetGroupConfigurationCommand.ts index 5ef71c905bb35..d5241de871981 100644 --- a/clients/client-resource-groups/commands/GetGroupConfigurationCommand.ts +++ b/clients/client-resource-groups/commands/GetGroupConfigurationCommand.ts @@ -37,6 +37,7 @@ export class GetGroupConfigurationCommand extends $Command< GetGroupConfigurationCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetGroupConfigurationCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/GetGroupQueryCommand.ts b/clients/client-resource-groups/commands/GetGroupQueryCommand.ts index 9bbb4cac4d264..21a2f4143abfa 100644 --- a/clients/client-resource-groups/commands/GetGroupQueryCommand.ts +++ b/clients/client-resource-groups/commands/GetGroupQueryCommand.ts @@ -28,6 +28,7 @@ export class GetGroupQueryCommand extends $Command< GetGroupQueryCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupQueryCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/GetTagsCommand.ts b/clients/client-resource-groups/commands/GetTagsCommand.ts index e98ff5f5c1bf4..27c4f09dfeefd 100644 --- a/clients/client-resource-groups/commands/GetTagsCommand.ts +++ b/clients/client-resource-groups/commands/GetTagsCommand.ts @@ -29,6 +29,7 @@ export class GetTagsCommand extends $Command< GetTagsCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTagsCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/GroupResourcesCommand.ts b/clients/client-resource-groups/commands/GroupResourcesCommand.ts index 4df0362e86b65..a9a88c0ac9a8c 100644 --- a/clients/client-resource-groups/commands/GroupResourcesCommand.ts +++ b/clients/client-resource-groups/commands/GroupResourcesCommand.ts @@ -28,6 +28,7 @@ export class GroupResourcesCommand extends $Command< GroupResourcesCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GroupResourcesCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/ListGroupResourcesCommand.ts b/clients/client-resource-groups/commands/ListGroupResourcesCommand.ts index ce4b4454bbc35..7c8dfe428deef 100644 --- a/clients/client-resource-groups/commands/ListGroupResourcesCommand.ts +++ b/clients/client-resource-groups/commands/ListGroupResourcesCommand.ts @@ -29,6 +29,7 @@ export class ListGroupResourcesCommand extends $Command< ListGroupResourcesCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListGroupResourcesCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/ListGroupsCommand.ts b/clients/client-resource-groups/commands/ListGroupsCommand.ts index 38a00228d8558..4b8f779176287 100644 --- a/clients/client-resource-groups/commands/ListGroupsCommand.ts +++ b/clients/client-resource-groups/commands/ListGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupsCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/SearchResourcesCommand.ts b/clients/client-resource-groups/commands/SearchResourcesCommand.ts index ad28a4ad05737..a655b3b41ef74 100644 --- a/clients/client-resource-groups/commands/SearchResourcesCommand.ts +++ b/clients/client-resource-groups/commands/SearchResourcesCommand.ts @@ -30,6 +30,7 @@ export class SearchResourcesCommand extends $Command< SearchResourcesCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SearchResourcesCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/TagCommand.ts b/clients/client-resource-groups/commands/TagCommand.ts index 3d4f4148f5f20..ecef4e6423492 100644 --- a/clients/client-resource-groups/commands/TagCommand.ts +++ b/clients/client-resource-groups/commands/TagCommand.ts @@ -28,6 +28,7 @@ export type TagCommandOutput = TagOutput & __MetadataBearer; * */ export class TagCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagCommand 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-resource-groups/commands/UngroupResourcesCommand.ts b/clients/client-resource-groups/commands/UngroupResourcesCommand.ts index 302955b8d1a64..bda4d2bddd8a2 100644 --- a/clients/client-resource-groups/commands/UngroupResourcesCommand.ts +++ b/clients/client-resource-groups/commands/UngroupResourcesCommand.ts @@ -28,6 +28,7 @@ export class UngroupResourcesCommand extends $Command< UngroupResourcesCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UngroupResourcesCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/UntagCommand.ts b/clients/client-resource-groups/commands/UntagCommand.ts index 14041ece8565f..12d25de0f2e5a 100644 --- a/clients/client-resource-groups/commands/UntagCommand.ts +++ b/clients/client-resource-groups/commands/UntagCommand.ts @@ -21,6 +21,7 @@ export type UntagCommandOutput = UntagOutput & __MetadataBearer; *

Deletes tags from a specified resource group.

*/ export class UntagCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class UntagCommand 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-resource-groups/commands/UpdateGroupCommand.ts b/clients/client-resource-groups/commands/UpdateGroupCommand.ts index c4316faa30d73..3f297abbd8320 100644 --- a/clients/client-resource-groups/commands/UpdateGroupCommand.ts +++ b/clients/client-resource-groups/commands/UpdateGroupCommand.ts @@ -29,6 +29,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateGroupCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-resource-groups/commands/UpdateGroupQueryCommand.ts b/clients/client-resource-groups/commands/UpdateGroupQueryCommand.ts index 1b93db5d9da14..e81acfc74ad69 100644 --- a/clients/client-resource-groups/commands/UpdateGroupQueryCommand.ts +++ b/clients/client-resource-groups/commands/UpdateGroupQueryCommand.ts @@ -28,6 +28,7 @@ export class UpdateGroupQueryCommand extends $Command< UpdateGroupQueryCommandOutput, ResourceGroupsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGroupQueryCommand extends $Command< configuration: ResourceGroupsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/BatchDeleteWorldsCommand.ts b/clients/client-robomaker/commands/BatchDeleteWorldsCommand.ts index aa0ed2f2e1e46..b2adb84f01f18 100644 --- a/clients/client-robomaker/commands/BatchDeleteWorldsCommand.ts +++ b/clients/client-robomaker/commands/BatchDeleteWorldsCommand.ts @@ -28,6 +28,7 @@ export class BatchDeleteWorldsCommand extends $Command< BatchDeleteWorldsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDeleteWorldsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/BatchDescribeSimulationJobCommand.ts b/clients/client-robomaker/commands/BatchDescribeSimulationJobCommand.ts index 81fa4e378aa92..8053e5e324301 100644 --- a/clients/client-robomaker/commands/BatchDescribeSimulationJobCommand.ts +++ b/clients/client-robomaker/commands/BatchDescribeSimulationJobCommand.ts @@ -28,6 +28,7 @@ export class BatchDescribeSimulationJobCommand extends $Command< BatchDescribeSimulationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class BatchDescribeSimulationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CancelDeploymentJobCommand.ts b/clients/client-robomaker/commands/CancelDeploymentJobCommand.ts index 3bdb4aa4d7cf6..19010582fc334 100644 --- a/clients/client-robomaker/commands/CancelDeploymentJobCommand.ts +++ b/clients/client-robomaker/commands/CancelDeploymentJobCommand.ts @@ -28,6 +28,7 @@ export class CancelDeploymentJobCommand extends $Command< CancelDeploymentJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelDeploymentJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CancelSimulationJobBatchCommand.ts b/clients/client-robomaker/commands/CancelSimulationJobBatchCommand.ts index 8324034f34f23..5dea6c08c242c 100644 --- a/clients/client-robomaker/commands/CancelSimulationJobBatchCommand.ts +++ b/clients/client-robomaker/commands/CancelSimulationJobBatchCommand.ts @@ -31,6 +31,7 @@ export class CancelSimulationJobBatchCommand extends $Command< CancelSimulationJobBatchCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelSimulationJobBatchCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CancelSimulationJobCommand.ts b/clients/client-robomaker/commands/CancelSimulationJobCommand.ts index ea1706ef8f2dd..60d9b34f13bd4 100644 --- a/clients/client-robomaker/commands/CancelSimulationJobCommand.ts +++ b/clients/client-robomaker/commands/CancelSimulationJobCommand.ts @@ -28,6 +28,7 @@ export class CancelSimulationJobCommand extends $Command< CancelSimulationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelSimulationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CancelWorldExportJobCommand.ts b/clients/client-robomaker/commands/CancelWorldExportJobCommand.ts index 8a8df8b59b358..4da32f4c6bc66 100644 --- a/clients/client-robomaker/commands/CancelWorldExportJobCommand.ts +++ b/clients/client-robomaker/commands/CancelWorldExportJobCommand.ts @@ -28,6 +28,7 @@ export class CancelWorldExportJobCommand extends $Command< CancelWorldExportJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelWorldExportJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CancelWorldGenerationJobCommand.ts b/clients/client-robomaker/commands/CancelWorldGenerationJobCommand.ts index e68609d66322d..7877738f002f5 100644 --- a/clients/client-robomaker/commands/CancelWorldGenerationJobCommand.ts +++ b/clients/client-robomaker/commands/CancelWorldGenerationJobCommand.ts @@ -28,6 +28,7 @@ export class CancelWorldGenerationJobCommand extends $Command< CancelWorldGenerationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelWorldGenerationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateDeploymentJobCommand.ts b/clients/client-robomaker/commands/CreateDeploymentJobCommand.ts index 55532fd8dd8a3..b41bfa5955162 100644 --- a/clients/client-robomaker/commands/CreateDeploymentJobCommand.ts +++ b/clients/client-robomaker/commands/CreateDeploymentJobCommand.ts @@ -36,6 +36,7 @@ export class CreateDeploymentJobCommand extends $Command< CreateDeploymentJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateDeploymentJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateFleetCommand.ts b/clients/client-robomaker/commands/CreateFleetCommand.ts index ffebd847b978e..0b4f6f4c3695f 100644 --- a/clients/client-robomaker/commands/CreateFleetCommand.ts +++ b/clients/client-robomaker/commands/CreateFleetCommand.ts @@ -28,6 +28,7 @@ export class CreateFleetCommand extends $Command< CreateFleetCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFleetCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateRobotApplicationCommand.ts b/clients/client-robomaker/commands/CreateRobotApplicationCommand.ts index 1ff5559f7150a..3fc56f4ed2911 100644 --- a/clients/client-robomaker/commands/CreateRobotApplicationCommand.ts +++ b/clients/client-robomaker/commands/CreateRobotApplicationCommand.ts @@ -29,6 +29,7 @@ export class CreateRobotApplicationCommand extends $Command< CreateRobotApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateRobotApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateRobotApplicationVersionCommand.ts b/clients/client-robomaker/commands/CreateRobotApplicationVersionCommand.ts index 02a9bbc029053..ac20a4ad9bc9b 100644 --- a/clients/client-robomaker/commands/CreateRobotApplicationVersionCommand.ts +++ b/clients/client-robomaker/commands/CreateRobotApplicationVersionCommand.ts @@ -28,6 +28,7 @@ export class CreateRobotApplicationVersionCommand extends $Command< CreateRobotApplicationVersionCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRobotApplicationVersionCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateRobotCommand.ts b/clients/client-robomaker/commands/CreateRobotCommand.ts index 324e917e90b46..88699721fba14 100644 --- a/clients/client-robomaker/commands/CreateRobotCommand.ts +++ b/clients/client-robomaker/commands/CreateRobotCommand.ts @@ -28,6 +28,7 @@ export class CreateRobotCommand extends $Command< CreateRobotCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRobotCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateSimulationApplicationCommand.ts b/clients/client-robomaker/commands/CreateSimulationApplicationCommand.ts index 3e6a667aa4675..58272c8a88d20 100644 --- a/clients/client-robomaker/commands/CreateSimulationApplicationCommand.ts +++ b/clients/client-robomaker/commands/CreateSimulationApplicationCommand.ts @@ -28,6 +28,7 @@ export class CreateSimulationApplicationCommand extends $Command< CreateSimulationApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSimulationApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateSimulationApplicationVersionCommand.ts b/clients/client-robomaker/commands/CreateSimulationApplicationVersionCommand.ts index 606ac7c2300f7..ee025aa037843 100644 --- a/clients/client-robomaker/commands/CreateSimulationApplicationVersionCommand.ts +++ b/clients/client-robomaker/commands/CreateSimulationApplicationVersionCommand.ts @@ -32,6 +32,7 @@ export class CreateSimulationApplicationVersionCommand extends $Command< CreateSimulationApplicationVersionCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateSimulationApplicationVersionCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateSimulationJobCommand.ts b/clients/client-robomaker/commands/CreateSimulationJobCommand.ts index eedfe3caf1362..9813d38c1a7c3 100644 --- a/clients/client-robomaker/commands/CreateSimulationJobCommand.ts +++ b/clients/client-robomaker/commands/CreateSimulationJobCommand.ts @@ -32,6 +32,7 @@ export class CreateSimulationJobCommand extends $Command< CreateSimulationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateSimulationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateWorldExportJobCommand.ts b/clients/client-robomaker/commands/CreateWorldExportJobCommand.ts index 902eac22557e4..2f3c05cf6bd49 100644 --- a/clients/client-robomaker/commands/CreateWorldExportJobCommand.ts +++ b/clients/client-robomaker/commands/CreateWorldExportJobCommand.ts @@ -28,6 +28,7 @@ export class CreateWorldExportJobCommand extends $Command< CreateWorldExportJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorldExportJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateWorldGenerationJobCommand.ts b/clients/client-robomaker/commands/CreateWorldGenerationJobCommand.ts index 374086f0f74c9..b0911120cacc1 100644 --- a/clients/client-robomaker/commands/CreateWorldGenerationJobCommand.ts +++ b/clients/client-robomaker/commands/CreateWorldGenerationJobCommand.ts @@ -28,6 +28,7 @@ export class CreateWorldGenerationJobCommand extends $Command< CreateWorldGenerationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorldGenerationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/CreateWorldTemplateCommand.ts b/clients/client-robomaker/commands/CreateWorldTemplateCommand.ts index 62f31781023d3..ce970df78f261 100644 --- a/clients/client-robomaker/commands/CreateWorldTemplateCommand.ts +++ b/clients/client-robomaker/commands/CreateWorldTemplateCommand.ts @@ -28,6 +28,7 @@ export class CreateWorldTemplateCommand extends $Command< CreateWorldTemplateCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateWorldTemplateCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeleteFleetCommand.ts b/clients/client-robomaker/commands/DeleteFleetCommand.ts index 8d15f9eee73b8..5bd91296d732b 100644 --- a/clients/client-robomaker/commands/DeleteFleetCommand.ts +++ b/clients/client-robomaker/commands/DeleteFleetCommand.ts @@ -28,6 +28,7 @@ export class DeleteFleetCommand extends $Command< DeleteFleetCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFleetCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeleteRobotApplicationCommand.ts b/clients/client-robomaker/commands/DeleteRobotApplicationCommand.ts index e00ece72cf3b9..611b8bf433aee 100644 --- a/clients/client-robomaker/commands/DeleteRobotApplicationCommand.ts +++ b/clients/client-robomaker/commands/DeleteRobotApplicationCommand.ts @@ -28,6 +28,7 @@ export class DeleteRobotApplicationCommand extends $Command< DeleteRobotApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRobotApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeleteRobotCommand.ts b/clients/client-robomaker/commands/DeleteRobotCommand.ts index b078375826eae..d33583d6e387f 100644 --- a/clients/client-robomaker/commands/DeleteRobotCommand.ts +++ b/clients/client-robomaker/commands/DeleteRobotCommand.ts @@ -28,6 +28,7 @@ export class DeleteRobotCommand extends $Command< DeleteRobotCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRobotCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeleteSimulationApplicationCommand.ts b/clients/client-robomaker/commands/DeleteSimulationApplicationCommand.ts index 0ea15589f135b..d96d3eef600b0 100644 --- a/clients/client-robomaker/commands/DeleteSimulationApplicationCommand.ts +++ b/clients/client-robomaker/commands/DeleteSimulationApplicationCommand.ts @@ -28,6 +28,7 @@ export class DeleteSimulationApplicationCommand extends $Command< DeleteSimulationApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSimulationApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeleteWorldTemplateCommand.ts b/clients/client-robomaker/commands/DeleteWorldTemplateCommand.ts index 814bcfa42f303..fe92c187997da 100644 --- a/clients/client-robomaker/commands/DeleteWorldTemplateCommand.ts +++ b/clients/client-robomaker/commands/DeleteWorldTemplateCommand.ts @@ -28,6 +28,7 @@ export class DeleteWorldTemplateCommand extends $Command< DeleteWorldTemplateCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteWorldTemplateCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DeregisterRobotCommand.ts b/clients/client-robomaker/commands/DeregisterRobotCommand.ts index 51db5cccb6ce2..b96cb8ed26716 100644 --- a/clients/client-robomaker/commands/DeregisterRobotCommand.ts +++ b/clients/client-robomaker/commands/DeregisterRobotCommand.ts @@ -28,6 +28,7 @@ export class DeregisterRobotCommand extends $Command< DeregisterRobotCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterRobotCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeDeploymentJobCommand.ts b/clients/client-robomaker/commands/DescribeDeploymentJobCommand.ts index cf7796676a0ae..45526f51da2c2 100644 --- a/clients/client-robomaker/commands/DescribeDeploymentJobCommand.ts +++ b/clients/client-robomaker/commands/DescribeDeploymentJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeDeploymentJobCommand extends $Command< DescribeDeploymentJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDeploymentJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeFleetCommand.ts b/clients/client-robomaker/commands/DescribeFleetCommand.ts index bfa66897069c6..71579e1cb1f77 100644 --- a/clients/client-robomaker/commands/DescribeFleetCommand.ts +++ b/clients/client-robomaker/commands/DescribeFleetCommand.ts @@ -28,6 +28,7 @@ export class DescribeFleetCommand extends $Command< DescribeFleetCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFleetCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeRobotApplicationCommand.ts b/clients/client-robomaker/commands/DescribeRobotApplicationCommand.ts index 189b551ca3a08..8aeb9d6a03c8e 100644 --- a/clients/client-robomaker/commands/DescribeRobotApplicationCommand.ts +++ b/clients/client-robomaker/commands/DescribeRobotApplicationCommand.ts @@ -28,6 +28,7 @@ export class DescribeRobotApplicationCommand extends $Command< DescribeRobotApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRobotApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeRobotCommand.ts b/clients/client-robomaker/commands/DescribeRobotCommand.ts index 613dd316d7c34..cda4fa15b0efc 100644 --- a/clients/client-robomaker/commands/DescribeRobotCommand.ts +++ b/clients/client-robomaker/commands/DescribeRobotCommand.ts @@ -28,6 +28,7 @@ export class DescribeRobotCommand extends $Command< DescribeRobotCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRobotCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeSimulationApplicationCommand.ts b/clients/client-robomaker/commands/DescribeSimulationApplicationCommand.ts index 11585d8116122..05c25468e55b0 100644 --- a/clients/client-robomaker/commands/DescribeSimulationApplicationCommand.ts +++ b/clients/client-robomaker/commands/DescribeSimulationApplicationCommand.ts @@ -28,6 +28,7 @@ export class DescribeSimulationApplicationCommand extends $Command< DescribeSimulationApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSimulationApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeSimulationJobBatchCommand.ts b/clients/client-robomaker/commands/DescribeSimulationJobBatchCommand.ts index 2ccd8530db43f..65624d49d06eb 100644 --- a/clients/client-robomaker/commands/DescribeSimulationJobBatchCommand.ts +++ b/clients/client-robomaker/commands/DescribeSimulationJobBatchCommand.ts @@ -28,6 +28,7 @@ export class DescribeSimulationJobBatchCommand extends $Command< DescribeSimulationJobBatchCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSimulationJobBatchCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeSimulationJobCommand.ts b/clients/client-robomaker/commands/DescribeSimulationJobCommand.ts index 39e5d31e598e1..00067b3e3e4eb 100644 --- a/clients/client-robomaker/commands/DescribeSimulationJobCommand.ts +++ b/clients/client-robomaker/commands/DescribeSimulationJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeSimulationJobCommand extends $Command< DescribeSimulationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSimulationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeWorldCommand.ts b/clients/client-robomaker/commands/DescribeWorldCommand.ts index bdb72506f8d52..44a1be74e436a 100644 --- a/clients/client-robomaker/commands/DescribeWorldCommand.ts +++ b/clients/client-robomaker/commands/DescribeWorldCommand.ts @@ -28,6 +28,7 @@ export class DescribeWorldCommand extends $Command< DescribeWorldCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeWorldCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeWorldExportJobCommand.ts b/clients/client-robomaker/commands/DescribeWorldExportJobCommand.ts index 62185d81f653c..da0d252be3909 100644 --- a/clients/client-robomaker/commands/DescribeWorldExportJobCommand.ts +++ b/clients/client-robomaker/commands/DescribeWorldExportJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeWorldExportJobCommand extends $Command< DescribeWorldExportJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeWorldExportJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeWorldGenerationJobCommand.ts b/clients/client-robomaker/commands/DescribeWorldGenerationJobCommand.ts index 0447266eedb1e..01d878d99e923 100644 --- a/clients/client-robomaker/commands/DescribeWorldGenerationJobCommand.ts +++ b/clients/client-robomaker/commands/DescribeWorldGenerationJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeWorldGenerationJobCommand extends $Command< DescribeWorldGenerationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeWorldGenerationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/DescribeWorldTemplateCommand.ts b/clients/client-robomaker/commands/DescribeWorldTemplateCommand.ts index bd5ea53bd6357..acee7322fc8bf 100644 --- a/clients/client-robomaker/commands/DescribeWorldTemplateCommand.ts +++ b/clients/client-robomaker/commands/DescribeWorldTemplateCommand.ts @@ -28,6 +28,7 @@ export class DescribeWorldTemplateCommand extends $Command< DescribeWorldTemplateCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeWorldTemplateCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/GetWorldTemplateBodyCommand.ts b/clients/client-robomaker/commands/GetWorldTemplateBodyCommand.ts index 870cb853b2f41..da1e90aaf3ec7 100644 --- a/clients/client-robomaker/commands/GetWorldTemplateBodyCommand.ts +++ b/clients/client-robomaker/commands/GetWorldTemplateBodyCommand.ts @@ -28,6 +28,7 @@ export class GetWorldTemplateBodyCommand extends $Command< GetWorldTemplateBodyCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWorldTemplateBodyCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListDeploymentJobsCommand.ts b/clients/client-robomaker/commands/ListDeploymentJobsCommand.ts index 22a9f4db8a679..b261914d065dd 100644 --- a/clients/client-robomaker/commands/ListDeploymentJobsCommand.ts +++ b/clients/client-robomaker/commands/ListDeploymentJobsCommand.ts @@ -30,6 +30,7 @@ export class ListDeploymentJobsCommand extends $Command< ListDeploymentJobsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDeploymentJobsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListFleetsCommand.ts b/clients/client-robomaker/commands/ListFleetsCommand.ts index 182c5fb6c3e96..c963a4163418f 100644 --- a/clients/client-robomaker/commands/ListFleetsCommand.ts +++ b/clients/client-robomaker/commands/ListFleetsCommand.ts @@ -29,6 +29,7 @@ export class ListFleetsCommand extends $Command< ListFleetsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListFleetsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListRobotApplicationsCommand.ts b/clients/client-robomaker/commands/ListRobotApplicationsCommand.ts index 32b31c5f2a0eb..a868cffe6200c 100644 --- a/clients/client-robomaker/commands/ListRobotApplicationsCommand.ts +++ b/clients/client-robomaker/commands/ListRobotApplicationsCommand.ts @@ -29,6 +29,7 @@ export class ListRobotApplicationsCommand extends $Command< ListRobotApplicationsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRobotApplicationsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListRobotsCommand.ts b/clients/client-robomaker/commands/ListRobotsCommand.ts index ffd0fa500ce91..36c19c7a3684d 100644 --- a/clients/client-robomaker/commands/ListRobotsCommand.ts +++ b/clients/client-robomaker/commands/ListRobotsCommand.ts @@ -29,6 +29,7 @@ export class ListRobotsCommand extends $Command< ListRobotsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRobotsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListSimulationApplicationsCommand.ts b/clients/client-robomaker/commands/ListSimulationApplicationsCommand.ts index c255c13bd2dec..9fb556cf54522 100644 --- a/clients/client-robomaker/commands/ListSimulationApplicationsCommand.ts +++ b/clients/client-robomaker/commands/ListSimulationApplicationsCommand.ts @@ -29,6 +29,7 @@ export class ListSimulationApplicationsCommand extends $Command< ListSimulationApplicationsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSimulationApplicationsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListSimulationJobBatchesCommand.ts b/clients/client-robomaker/commands/ListSimulationJobBatchesCommand.ts index 5d4aac54f2121..ac5a1c77002d5 100644 --- a/clients/client-robomaker/commands/ListSimulationJobBatchesCommand.ts +++ b/clients/client-robomaker/commands/ListSimulationJobBatchesCommand.ts @@ -30,6 +30,7 @@ export class ListSimulationJobBatchesCommand extends $Command< ListSimulationJobBatchesCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListSimulationJobBatchesCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListSimulationJobsCommand.ts b/clients/client-robomaker/commands/ListSimulationJobsCommand.ts index 4d1c2d274844f..79eeae2ac7b47 100644 --- a/clients/client-robomaker/commands/ListSimulationJobsCommand.ts +++ b/clients/client-robomaker/commands/ListSimulationJobsCommand.ts @@ -29,6 +29,7 @@ export class ListSimulationJobsCommand extends $Command< ListSimulationJobsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSimulationJobsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListTagsForResourceCommand.ts b/clients/client-robomaker/commands/ListTagsForResourceCommand.ts index f3e3bfe4e8fb3..304ce38f31f53 100644 --- a/clients/client-robomaker/commands/ListTagsForResourceCommand.ts +++ b/clients/client-robomaker/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListWorldExportJobsCommand.ts b/clients/client-robomaker/commands/ListWorldExportJobsCommand.ts index 96da28ca0b33d..7fea8909da3aa 100644 --- a/clients/client-robomaker/commands/ListWorldExportJobsCommand.ts +++ b/clients/client-robomaker/commands/ListWorldExportJobsCommand.ts @@ -28,6 +28,7 @@ export class ListWorldExportJobsCommand extends $Command< ListWorldExportJobsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorldExportJobsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListWorldGenerationJobsCommand.ts b/clients/client-robomaker/commands/ListWorldGenerationJobsCommand.ts index 1879c8713ed8f..9d3e72603edfd 100644 --- a/clients/client-robomaker/commands/ListWorldGenerationJobsCommand.ts +++ b/clients/client-robomaker/commands/ListWorldGenerationJobsCommand.ts @@ -28,6 +28,7 @@ export class ListWorldGenerationJobsCommand extends $Command< ListWorldGenerationJobsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorldGenerationJobsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListWorldTemplatesCommand.ts b/clients/client-robomaker/commands/ListWorldTemplatesCommand.ts index b593fbe1f9c83..b2cb0ad2e98b3 100644 --- a/clients/client-robomaker/commands/ListWorldTemplatesCommand.ts +++ b/clients/client-robomaker/commands/ListWorldTemplatesCommand.ts @@ -28,6 +28,7 @@ export class ListWorldTemplatesCommand extends $Command< ListWorldTemplatesCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorldTemplatesCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/ListWorldsCommand.ts b/clients/client-robomaker/commands/ListWorldsCommand.ts index efc1070faa8d2..1eb6283582bfc 100644 --- a/clients/client-robomaker/commands/ListWorldsCommand.ts +++ b/clients/client-robomaker/commands/ListWorldsCommand.ts @@ -28,6 +28,7 @@ export class ListWorldsCommand extends $Command< ListWorldsCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListWorldsCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/RegisterRobotCommand.ts b/clients/client-robomaker/commands/RegisterRobotCommand.ts index 4d6311665eeb8..1b9e7e00e5a58 100644 --- a/clients/client-robomaker/commands/RegisterRobotCommand.ts +++ b/clients/client-robomaker/commands/RegisterRobotCommand.ts @@ -28,6 +28,7 @@ export class RegisterRobotCommand extends $Command< RegisterRobotCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterRobotCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/RestartSimulationJobCommand.ts b/clients/client-robomaker/commands/RestartSimulationJobCommand.ts index 73c1c184f2418..d80722aff5d06 100644 --- a/clients/client-robomaker/commands/RestartSimulationJobCommand.ts +++ b/clients/client-robomaker/commands/RestartSimulationJobCommand.ts @@ -28,6 +28,7 @@ export class RestartSimulationJobCommand extends $Command< RestartSimulationJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RestartSimulationJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/StartSimulationJobBatchCommand.ts b/clients/client-robomaker/commands/StartSimulationJobBatchCommand.ts index 630d93eb288ec..3ef5ffdeb39c3 100644 --- a/clients/client-robomaker/commands/StartSimulationJobBatchCommand.ts +++ b/clients/client-robomaker/commands/StartSimulationJobBatchCommand.ts @@ -29,6 +29,7 @@ export class StartSimulationJobBatchCommand extends $Command< StartSimulationJobBatchCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartSimulationJobBatchCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/SyncDeploymentJobCommand.ts b/clients/client-robomaker/commands/SyncDeploymentJobCommand.ts index 653804cb930b8..42d90003a386b 100644 --- a/clients/client-robomaker/commands/SyncDeploymentJobCommand.ts +++ b/clients/client-robomaker/commands/SyncDeploymentJobCommand.ts @@ -28,6 +28,7 @@ export class SyncDeploymentJobCommand extends $Command< SyncDeploymentJobCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SyncDeploymentJobCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/TagResourceCommand.ts b/clients/client-robomaker/commands/TagResourceCommand.ts index b8fb6a778d1c8..1142d2d29beeb 100644 --- a/clients/client-robomaker/commands/TagResourceCommand.ts +++ b/clients/client-robomaker/commands/TagResourceCommand.ts @@ -30,6 +30,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TagResourceCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/UntagResourceCommand.ts b/clients/client-robomaker/commands/UntagResourceCommand.ts index a66ea6066ff10..e69dc3b203107 100644 --- a/clients/client-robomaker/commands/UntagResourceCommand.ts +++ b/clients/client-robomaker/commands/UntagResourceCommand.ts @@ -33,6 +33,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UntagResourceCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/UpdateRobotApplicationCommand.ts b/clients/client-robomaker/commands/UpdateRobotApplicationCommand.ts index 415f9c9924e0b..7f429955e04b1 100644 --- a/clients/client-robomaker/commands/UpdateRobotApplicationCommand.ts +++ b/clients/client-robomaker/commands/UpdateRobotApplicationCommand.ts @@ -28,6 +28,7 @@ export class UpdateRobotApplicationCommand extends $Command< UpdateRobotApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRobotApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/UpdateSimulationApplicationCommand.ts b/clients/client-robomaker/commands/UpdateSimulationApplicationCommand.ts index 783698a6695ed..af572d12af67e 100644 --- a/clients/client-robomaker/commands/UpdateSimulationApplicationCommand.ts +++ b/clients/client-robomaker/commands/UpdateSimulationApplicationCommand.ts @@ -28,6 +28,7 @@ export class UpdateSimulationApplicationCommand extends $Command< UpdateSimulationApplicationCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSimulationApplicationCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-robomaker/commands/UpdateWorldTemplateCommand.ts b/clients/client-robomaker/commands/UpdateWorldTemplateCommand.ts index 2fa534f87acdc..cbb07c16d68f3 100644 --- a/clients/client-robomaker/commands/UpdateWorldTemplateCommand.ts +++ b/clients/client-robomaker/commands/UpdateWorldTemplateCommand.ts @@ -28,6 +28,7 @@ export class UpdateWorldTemplateCommand extends $Command< UpdateWorldTemplateCommandOutput, RoboMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateWorldTemplateCommand extends $Command< configuration: RoboMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts b/clients/client-route-53-domains/commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts index 8f3faacd853e6..a878fa9148958 100644 --- a/clients/client-route-53-domains/commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts +++ b/clients/client-route-53-domains/commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts @@ -42,6 +42,7 @@ export class AcceptDomainTransferFromAnotherAwsAccountCommand extends $Command< AcceptDomainTransferFromAnotherAwsAccountCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AcceptDomainTransferFromAnotherAwsAccountCommand extends $Command< AcceptDomainTransferFromAnotherAwsAccountCommandInput, AcceptDomainTransferFromAnotherAwsAccountCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/CancelDomainTransferToAnotherAwsAccountCommand.ts b/clients/client-route-53-domains/commands/CancelDomainTransferToAnotherAwsAccountCommand.ts index 33557bbc6f4df..ac6806237824b 100644 --- a/clients/client-route-53-domains/commands/CancelDomainTransferToAnotherAwsAccountCommand.ts +++ b/clients/client-route-53-domains/commands/CancelDomainTransferToAnotherAwsAccountCommand.ts @@ -47,6 +47,7 @@ export class CancelDomainTransferToAnotherAwsAccountCommand extends $Command< CancelDomainTransferToAnotherAwsAccountCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CancelDomainTransferToAnotherAwsAccountCommand extends $Command< CancelDomainTransferToAnotherAwsAccountCommandInput, CancelDomainTransferToAnotherAwsAccountCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/CheckDomainAvailabilityCommand.ts b/clients/client-route-53-domains/commands/CheckDomainAvailabilityCommand.ts index 72e3a59c27eab..245152c6d7714 100644 --- a/clients/client-route-53-domains/commands/CheckDomainAvailabilityCommand.ts +++ b/clients/client-route-53-domains/commands/CheckDomainAvailabilityCommand.ts @@ -29,6 +29,7 @@ export class CheckDomainAvailabilityCommand extends $Command< CheckDomainAvailabilityCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CheckDomainAvailabilityCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/CheckDomainTransferabilityCommand.ts b/clients/client-route-53-domains/commands/CheckDomainTransferabilityCommand.ts index 0eb750db5a41b..c4101e234d026 100644 --- a/clients/client-route-53-domains/commands/CheckDomainTransferabilityCommand.ts +++ b/clients/client-route-53-domains/commands/CheckDomainTransferabilityCommand.ts @@ -28,6 +28,7 @@ export class CheckDomainTransferabilityCommand extends $Command< CheckDomainTransferabilityCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CheckDomainTransferabilityCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/DeleteTagsForDomainCommand.ts b/clients/client-route-53-domains/commands/DeleteTagsForDomainCommand.ts index 6b2d7afbf1ba2..3cd32a8f6fdf2 100644 --- a/clients/client-route-53-domains/commands/DeleteTagsForDomainCommand.ts +++ b/clients/client-route-53-domains/commands/DeleteTagsForDomainCommand.ts @@ -29,6 +29,7 @@ export class DeleteTagsForDomainCommand extends $Command< DeleteTagsForDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTagsForDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/DisableDomainAutoRenewCommand.ts b/clients/client-route-53-domains/commands/DisableDomainAutoRenewCommand.ts index cea0794b79f8a..9ce2f96218ea4 100644 --- a/clients/client-route-53-domains/commands/DisableDomainAutoRenewCommand.ts +++ b/clients/client-route-53-domains/commands/DisableDomainAutoRenewCommand.ts @@ -28,6 +28,7 @@ export class DisableDomainAutoRenewCommand extends $Command< DisableDomainAutoRenewCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableDomainAutoRenewCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/DisableDomainTransferLockCommand.ts b/clients/client-route-53-domains/commands/DisableDomainTransferLockCommand.ts index 789e4cfbb3797..5813e9de9de98 100644 --- a/clients/client-route-53-domains/commands/DisableDomainTransferLockCommand.ts +++ b/clients/client-route-53-domains/commands/DisableDomainTransferLockCommand.ts @@ -33,6 +33,7 @@ export class DisableDomainTransferLockCommand extends $Command< DisableDomainTransferLockCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DisableDomainTransferLockCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/EnableDomainAutoRenewCommand.ts b/clients/client-route-53-domains/commands/EnableDomainAutoRenewCommand.ts index ba34ae626232f..ce9a9397fcf97 100644 --- a/clients/client-route-53-domains/commands/EnableDomainAutoRenewCommand.ts +++ b/clients/client-route-53-domains/commands/EnableDomainAutoRenewCommand.ts @@ -33,6 +33,7 @@ export class EnableDomainAutoRenewCommand extends $Command< EnableDomainAutoRenewCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class EnableDomainAutoRenewCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/EnableDomainTransferLockCommand.ts b/clients/client-route-53-domains/commands/EnableDomainTransferLockCommand.ts index 80f2a7eec1f43..3a9206d1b0a77 100644 --- a/clients/client-route-53-domains/commands/EnableDomainTransferLockCommand.ts +++ b/clients/client-route-53-domains/commands/EnableDomainTransferLockCommand.ts @@ -30,6 +30,7 @@ export class EnableDomainTransferLockCommand extends $Command< EnableDomainTransferLockCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class EnableDomainTransferLockCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/GetContactReachabilityStatusCommand.ts b/clients/client-route-53-domains/commands/GetContactReachabilityStatusCommand.ts index 4587741aff525..ad407ef888877 100644 --- a/clients/client-route-53-domains/commands/GetContactReachabilityStatusCommand.ts +++ b/clients/client-route-53-domains/commands/GetContactReachabilityStatusCommand.ts @@ -30,6 +30,7 @@ export class GetContactReachabilityStatusCommand extends $Command< GetContactReachabilityStatusCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetContactReachabilityStatusCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/GetDomainDetailCommand.ts b/clients/client-route-53-domains/commands/GetDomainDetailCommand.ts index c496e94aab5ee..c1cd0207e339c 100644 --- a/clients/client-route-53-domains/commands/GetDomainDetailCommand.ts +++ b/clients/client-route-53-domains/commands/GetDomainDetailCommand.ts @@ -29,6 +29,7 @@ export class GetDomainDetailCommand extends $Command< GetDomainDetailCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDomainDetailCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/GetDomainSuggestionsCommand.ts b/clients/client-route-53-domains/commands/GetDomainSuggestionsCommand.ts index ed8ddf3b6773b..8a973001bf435 100644 --- a/clients/client-route-53-domains/commands/GetDomainSuggestionsCommand.ts +++ b/clients/client-route-53-domains/commands/GetDomainSuggestionsCommand.ts @@ -28,6 +28,7 @@ export class GetDomainSuggestionsCommand extends $Command< GetDomainSuggestionsCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDomainSuggestionsCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/GetOperationDetailCommand.ts b/clients/client-route-53-domains/commands/GetOperationDetailCommand.ts index d11aa24e55dc7..796e32f917c91 100644 --- a/clients/client-route-53-domains/commands/GetOperationDetailCommand.ts +++ b/clients/client-route-53-domains/commands/GetOperationDetailCommand.ts @@ -28,6 +28,7 @@ export class GetOperationDetailCommand extends $Command< GetOperationDetailCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOperationDetailCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/ListDomainsCommand.ts b/clients/client-route-53-domains/commands/ListDomainsCommand.ts index af481fee00849..2a523eb989910 100644 --- a/clients/client-route-53-domains/commands/ListDomainsCommand.ts +++ b/clients/client-route-53-domains/commands/ListDomainsCommand.ts @@ -28,6 +28,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDomainsCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/ListOperationsCommand.ts b/clients/client-route-53-domains/commands/ListOperationsCommand.ts index f5af943a43c4c..68ca3257a4cac 100644 --- a/clients/client-route-53-domains/commands/ListOperationsCommand.ts +++ b/clients/client-route-53-domains/commands/ListOperationsCommand.ts @@ -29,6 +29,7 @@ export class ListOperationsCommand extends $Command< ListOperationsCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListOperationsCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/ListTagsForDomainCommand.ts b/clients/client-route-53-domains/commands/ListTagsForDomainCommand.ts index 54b856b641f10..f6eadcdefff16 100644 --- a/clients/client-route-53-domains/commands/ListTagsForDomainCommand.ts +++ b/clients/client-route-53-domains/commands/ListTagsForDomainCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForDomainCommand extends $Command< ListTagsForDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/RegisterDomainCommand.ts b/clients/client-route-53-domains/commands/RegisterDomainCommand.ts index bf132ecee0ed9..1d399539e53aa 100644 --- a/clients/client-route-53-domains/commands/RegisterDomainCommand.ts +++ b/clients/client-route-53-domains/commands/RegisterDomainCommand.ts @@ -53,6 +53,7 @@ export class RegisterDomainCommand extends $Command< RegisterDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class RegisterDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/RejectDomainTransferFromAnotherAwsAccountCommand.ts b/clients/client-route-53-domains/commands/RejectDomainTransferFromAnotherAwsAccountCommand.ts index dc82d8341b97f..289bb949b58a8 100644 --- a/clients/client-route-53-domains/commands/RejectDomainTransferFromAnotherAwsAccountCommand.ts +++ b/clients/client-route-53-domains/commands/RejectDomainTransferFromAnotherAwsAccountCommand.ts @@ -42,6 +42,7 @@ export class RejectDomainTransferFromAnotherAwsAccountCommand extends $Command< RejectDomainTransferFromAnotherAwsAccountCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class RejectDomainTransferFromAnotherAwsAccountCommand extends $Command< RejectDomainTransferFromAnotherAwsAccountCommandInput, RejectDomainTransferFromAnotherAwsAccountCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/RenewDomainCommand.ts b/clients/client-route-53-domains/commands/RenewDomainCommand.ts index 621ab595d1cb4..ac8dbc07c5999 100644 --- a/clients/client-route-53-domains/commands/RenewDomainCommand.ts +++ b/clients/client-route-53-domains/commands/RenewDomainCommand.ts @@ -32,6 +32,7 @@ export class RenewDomainCommand extends $Command< RenewDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RenewDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/ResendContactReachabilityEmailCommand.ts b/clients/client-route-53-domains/commands/ResendContactReachabilityEmailCommand.ts index 7fa92c3849d82..aadfbafe8d8fa 100644 --- a/clients/client-route-53-domains/commands/ResendContactReachabilityEmailCommand.ts +++ b/clients/client-route-53-domains/commands/ResendContactReachabilityEmailCommand.ts @@ -29,6 +29,7 @@ export class ResendContactReachabilityEmailCommand extends $Command< ResendContactReachabilityEmailCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ResendContactReachabilityEmailCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/RetrieveDomainAuthCodeCommand.ts b/clients/client-route-53-domains/commands/RetrieveDomainAuthCodeCommand.ts index 01cd5e0c38c77..5980fa62e12f0 100644 --- a/clients/client-route-53-domains/commands/RetrieveDomainAuthCodeCommand.ts +++ b/clients/client-route-53-domains/commands/RetrieveDomainAuthCodeCommand.ts @@ -28,6 +28,7 @@ export class RetrieveDomainAuthCodeCommand extends $Command< RetrieveDomainAuthCodeCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RetrieveDomainAuthCodeCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/TransferDomainCommand.ts b/clients/client-route-53-domains/commands/TransferDomainCommand.ts index 7de2365397fc5..011f31e660f06 100644 --- a/clients/client-route-53-domains/commands/TransferDomainCommand.ts +++ b/clients/client-route-53-domains/commands/TransferDomainCommand.ts @@ -61,6 +61,7 @@ export class TransferDomainCommand extends $Command< TransferDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class TransferDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/TransferDomainToAnotherAwsAccountCommand.ts b/clients/client-route-53-domains/commands/TransferDomainToAnotherAwsAccountCommand.ts index 50a168b2faaf0..1a877a12212d8 100644 --- a/clients/client-route-53-domains/commands/TransferDomainToAnotherAwsAccountCommand.ts +++ b/clients/client-route-53-domains/commands/TransferDomainToAnotherAwsAccountCommand.ts @@ -66,6 +66,7 @@ export class TransferDomainToAnotherAwsAccountCommand extends $Command< TransferDomainToAnotherAwsAccountCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class TransferDomainToAnotherAwsAccountCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/UpdateDomainContactCommand.ts b/clients/client-route-53-domains/commands/UpdateDomainContactCommand.ts index 09f4e0ad52509..132f3782312b4 100644 --- a/clients/client-route-53-domains/commands/UpdateDomainContactCommand.ts +++ b/clients/client-route-53-domains/commands/UpdateDomainContactCommand.ts @@ -31,6 +31,7 @@ export class UpdateDomainContactCommand extends $Command< UpdateDomainContactCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDomainContactCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/UpdateDomainContactPrivacyCommand.ts b/clients/client-route-53-domains/commands/UpdateDomainContactPrivacyCommand.ts index 7e62d3b39a2c7..42655c29e4bef 100644 --- a/clients/client-route-53-domains/commands/UpdateDomainContactPrivacyCommand.ts +++ b/clients/client-route-53-domains/commands/UpdateDomainContactPrivacyCommand.ts @@ -42,6 +42,7 @@ export class UpdateDomainContactPrivacyCommand extends $Command< UpdateDomainContactPrivacyCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class UpdateDomainContactPrivacyCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/UpdateDomainNameserversCommand.ts b/clients/client-route-53-domains/commands/UpdateDomainNameserversCommand.ts index 40bc4ee2232c4..13fb9699752cb 100644 --- a/clients/client-route-53-domains/commands/UpdateDomainNameserversCommand.ts +++ b/clients/client-route-53-domains/commands/UpdateDomainNameserversCommand.ts @@ -31,6 +31,7 @@ export class UpdateDomainNameserversCommand extends $Command< UpdateDomainNameserversCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDomainNameserversCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/UpdateTagsForDomainCommand.ts b/clients/client-route-53-domains/commands/UpdateTagsForDomainCommand.ts index df67a12393e1b..17f13ae5bd450 100644 --- a/clients/client-route-53-domains/commands/UpdateTagsForDomainCommand.ts +++ b/clients/client-route-53-domains/commands/UpdateTagsForDomainCommand.ts @@ -29,6 +29,7 @@ export class UpdateTagsForDomainCommand extends $Command< UpdateTagsForDomainCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateTagsForDomainCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53-domains/commands/ViewBillingCommand.ts b/clients/client-route-53-domains/commands/ViewBillingCommand.ts index cbf70d57b5614..9ee2edbaa6bcf 100644 --- a/clients/client-route-53-domains/commands/ViewBillingCommand.ts +++ b/clients/client-route-53-domains/commands/ViewBillingCommand.ts @@ -28,6 +28,7 @@ export class ViewBillingCommand extends $Command< ViewBillingCommandOutput, Route53DomainsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ViewBillingCommand extends $Command< configuration: Route53DomainsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/AssociateVPCWithHostedZoneCommand.ts b/clients/client-route-53/commands/AssociateVPCWithHostedZoneCommand.ts index 1c0ecab1267a5..1322a8ad9cfb6 100644 --- a/clients/client-route-53/commands/AssociateVPCWithHostedZoneCommand.ts +++ b/clients/client-route-53/commands/AssociateVPCWithHostedZoneCommand.ts @@ -39,6 +39,7 @@ export class AssociateVPCWithHostedZoneCommand extends $Command< AssociateVPCWithHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,8 +57,11 @@ export class AssociateVPCWithHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ChangeResourceRecordSetsCommand.ts b/clients/client-route-53/commands/ChangeResourceRecordSetsCommand.ts index 2718cfbc963d1..2c7d37f40587f 100644 --- a/clients/client-route-53/commands/ChangeResourceRecordSetsCommand.ts +++ b/clients/client-route-53/commands/ChangeResourceRecordSetsCommand.ts @@ -110,6 +110,7 @@ export class ChangeResourceRecordSetsCommand extends $Command< ChangeResourceRecordSetsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -127,9 +128,12 @@ export class ChangeResourceRecordSetsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getChangeResourceRecordSetsPlugin(configuration)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getChangeResourceRecordSetsPlugin(configuration)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ChangeTagsForResourceCommand.ts b/clients/client-route-53/commands/ChangeTagsForResourceCommand.ts index 140bcffb2f492..d0d2f35ebc398 100644 --- a/clients/client-route-53/commands/ChangeTagsForResourceCommand.ts +++ b/clients/client-route-53/commands/ChangeTagsForResourceCommand.ts @@ -31,6 +31,7 @@ export class ChangeTagsForResourceCommand extends $Command< ChangeTagsForResourceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ChangeTagsForResourceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateHealthCheckCommand.ts b/clients/client-route-53/commands/CreateHealthCheckCommand.ts index 44bffdf3a6842..aa43bed1a56a2 100644 --- a/clients/client-route-53/commands/CreateHealthCheckCommand.ts +++ b/clients/client-route-53/commands/CreateHealthCheckCommand.ts @@ -61,6 +61,7 @@ export class CreateHealthCheckCommand extends $Command< CreateHealthCheckCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class CreateHealthCheckCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateHostedZoneCommand.ts b/clients/client-route-53/commands/CreateHostedZoneCommand.ts index cbd841e39b3b6..592e25e1d9a61 100644 --- a/clients/client-route-53/commands/CreateHostedZoneCommand.ts +++ b/clients/client-route-53/commands/CreateHostedZoneCommand.ts @@ -60,6 +60,7 @@ export class CreateHostedZoneCommand extends $Command< CreateHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,8 +78,11 @@ export class CreateHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateQueryLoggingConfigCommand.ts b/clients/client-route-53/commands/CreateQueryLoggingConfigCommand.ts index 052bcae5a3642..aeb9d527d8509 100644 --- a/clients/client-route-53/commands/CreateQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/commands/CreateQueryLoggingConfigCommand.ts @@ -145,6 +145,7 @@ export class CreateQueryLoggingConfigCommand extends $Command< CreateQueryLoggingConfigCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -162,8 +163,11 @@ export class CreateQueryLoggingConfigCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateReusableDelegationSetCommand.ts b/clients/client-route-53/commands/CreateReusableDelegationSetCommand.ts index ad5fe89b37dfb..282c488b7fdf6 100644 --- a/clients/client-route-53/commands/CreateReusableDelegationSetCommand.ts +++ b/clients/client-route-53/commands/CreateReusableDelegationSetCommand.ts @@ -79,6 +79,7 @@ export class CreateReusableDelegationSetCommand extends $Command< CreateReusableDelegationSetCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,8 +97,11 @@ export class CreateReusableDelegationSetCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateTrafficPolicyCommand.ts b/clients/client-route-53/commands/CreateTrafficPolicyCommand.ts index c8536e3031279..d0e030b2d87c1 100644 --- a/clients/client-route-53/commands/CreateTrafficPolicyCommand.ts +++ b/clients/client-route-53/commands/CreateTrafficPolicyCommand.ts @@ -29,6 +29,7 @@ export class CreateTrafficPolicyCommand extends $Command< CreateTrafficPolicyCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTrafficPolicyCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateTrafficPolicyInstanceCommand.ts b/clients/client-route-53/commands/CreateTrafficPolicyInstanceCommand.ts index b7a3ec684ad29..39fda6827b34c 100644 --- a/clients/client-route-53/commands/CreateTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/commands/CreateTrafficPolicyInstanceCommand.ts @@ -32,6 +32,7 @@ export class CreateTrafficPolicyInstanceCommand extends $Command< CreateTrafficPolicyInstanceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class CreateTrafficPolicyInstanceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateTrafficPolicyVersionCommand.ts b/clients/client-route-53/commands/CreateTrafficPolicyVersionCommand.ts index f7af0f6f0b689..80bda110ab07b 100644 --- a/clients/client-route-53/commands/CreateTrafficPolicyVersionCommand.ts +++ b/clients/client-route-53/commands/CreateTrafficPolicyVersionCommand.ts @@ -33,6 +33,7 @@ export class CreateTrafficPolicyVersionCommand extends $Command< CreateTrafficPolicyVersionCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class CreateTrafficPolicyVersionCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/CreateVPCAssociationAuthorizationCommand.ts b/clients/client-route-53/commands/CreateVPCAssociationAuthorizationCommand.ts index 298c3f2c5d787..fbcc5a4e52a09 100644 --- a/clients/client-route-53/commands/CreateVPCAssociationAuthorizationCommand.ts +++ b/clients/client-route-53/commands/CreateVPCAssociationAuthorizationCommand.ts @@ -41,6 +41,7 @@ export class CreateVPCAssociationAuthorizationCommand extends $Command< CreateVPCAssociationAuthorizationCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class CreateVPCAssociationAuthorizationCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteHealthCheckCommand.ts b/clients/client-route-53/commands/DeleteHealthCheckCommand.ts index 9f102111e778c..1b6cc1a94f156 100644 --- a/clients/client-route-53/commands/DeleteHealthCheckCommand.ts +++ b/clients/client-route-53/commands/DeleteHealthCheckCommand.ts @@ -41,6 +41,7 @@ export class DeleteHealthCheckCommand extends $Command< DeleteHealthCheckCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeleteHealthCheckCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteHostedZoneCommand.ts b/clients/client-route-53/commands/DeleteHostedZoneCommand.ts index 0c6c85d648e5e..2dadbb297fa8a 100644 --- a/clients/client-route-53/commands/DeleteHostedZoneCommand.ts +++ b/clients/client-route-53/commands/DeleteHostedZoneCommand.ts @@ -67,6 +67,7 @@ export class DeleteHostedZoneCommand extends $Command< DeleteHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,8 +85,11 @@ export class DeleteHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteQueryLoggingConfigCommand.ts b/clients/client-route-53/commands/DeleteQueryLoggingConfigCommand.ts index f7b6486b7cc3c..3d5d9df177262 100644 --- a/clients/client-route-53/commands/DeleteQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/commands/DeleteQueryLoggingConfigCommand.ts @@ -33,6 +33,7 @@ export class DeleteQueryLoggingConfigCommand extends $Command< DeleteQueryLoggingConfigCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class DeleteQueryLoggingConfigCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteReusableDelegationSetCommand.ts b/clients/client-route-53/commands/DeleteReusableDelegationSetCommand.ts index 7065aed5379f8..f473d1e2cbddb 100644 --- a/clients/client-route-53/commands/DeleteReusableDelegationSetCommand.ts +++ b/clients/client-route-53/commands/DeleteReusableDelegationSetCommand.ts @@ -35,6 +35,7 @@ export class DeleteReusableDelegationSetCommand extends $Command< DeleteReusableDelegationSetCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class DeleteReusableDelegationSetCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteTrafficPolicyCommand.ts b/clients/client-route-53/commands/DeleteTrafficPolicyCommand.ts index 639ec255aec84..f7acde1b78755 100644 --- a/clients/client-route-53/commands/DeleteTrafficPolicyCommand.ts +++ b/clients/client-route-53/commands/DeleteTrafficPolicyCommand.ts @@ -43,6 +43,7 @@ export class DeleteTrafficPolicyCommand extends $Command< DeleteTrafficPolicyCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,8 +61,11 @@ export class DeleteTrafficPolicyCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteTrafficPolicyInstanceCommand.ts b/clients/client-route-53/commands/DeleteTrafficPolicyInstanceCommand.ts index 3879888199863..d61f1d986b8f6 100644 --- a/clients/client-route-53/commands/DeleteTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/commands/DeleteTrafficPolicyInstanceCommand.ts @@ -32,6 +32,7 @@ export class DeleteTrafficPolicyInstanceCommand extends $Command< DeleteTrafficPolicyInstanceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class DeleteTrafficPolicyInstanceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DeleteVPCAssociationAuthorizationCommand.ts b/clients/client-route-53/commands/DeleteVPCAssociationAuthorizationCommand.ts index d7214137ab4c4..3597df41e82c0 100644 --- a/clients/client-route-53/commands/DeleteVPCAssociationAuthorizationCommand.ts +++ b/clients/client-route-53/commands/DeleteVPCAssociationAuthorizationCommand.ts @@ -41,6 +41,7 @@ export class DeleteVPCAssociationAuthorizationCommand extends $Command< DeleteVPCAssociationAuthorizationCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class DeleteVPCAssociationAuthorizationCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/DisassociateVPCFromHostedZoneCommand.ts b/clients/client-route-53/commands/DisassociateVPCFromHostedZoneCommand.ts index 0594af6fe5865..b4b5731518ae2 100644 --- a/clients/client-route-53/commands/DisassociateVPCFromHostedZoneCommand.ts +++ b/clients/client-route-53/commands/DisassociateVPCFromHostedZoneCommand.ts @@ -49,6 +49,7 @@ export class DisassociateVPCFromHostedZoneCommand extends $Command< DisassociateVPCFromHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class DisassociateVPCFromHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetAccountLimitCommand.ts b/clients/client-route-53/commands/GetAccountLimitCommand.ts index 4d3acf264f8c0..d74c17560905b 100644 --- a/clients/client-route-53/commands/GetAccountLimitCommand.ts +++ b/clients/client-route-53/commands/GetAccountLimitCommand.ts @@ -37,6 +37,7 @@ export class GetAccountLimitCommand extends $Command< GetAccountLimitCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetAccountLimitCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetChangeCommand.ts b/clients/client-route-53/commands/GetChangeCommand.ts index 4a2a344079c3a..0e81c012b79b0 100644 --- a/clients/client-route-53/commands/GetChangeCommand.ts +++ b/clients/client-route-53/commands/GetChangeCommand.ts @@ -38,6 +38,7 @@ export class GetChangeCommand extends $Command< GetChangeCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class GetChangeCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetCheckerIpRangesCommand.ts b/clients/client-route-53/commands/GetCheckerIpRangesCommand.ts index 06f089cfc8490..5b153db7ab01c 100644 --- a/clients/client-route-53/commands/GetCheckerIpRangesCommand.ts +++ b/clients/client-route-53/commands/GetCheckerIpRangesCommand.ts @@ -34,6 +34,7 @@ export class GetCheckerIpRangesCommand extends $Command< GetCheckerIpRangesCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetCheckerIpRangesCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetGeoLocationCommand.ts b/clients/client-route-53/commands/GetGeoLocationCommand.ts index 05958b98f2685..98226a8e7f097 100644 --- a/clients/client-route-53/commands/GetGeoLocationCommand.ts +++ b/clients/client-route-53/commands/GetGeoLocationCommand.ts @@ -47,6 +47,7 @@ export class GetGeoLocationCommand extends $Command< GetGeoLocationCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class GetGeoLocationCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHealthCheckCommand.ts b/clients/client-route-53/commands/GetHealthCheckCommand.ts index 12e65fcc12a4b..6ca855ed38019 100644 --- a/clients/client-route-53/commands/GetHealthCheckCommand.ts +++ b/clients/client-route-53/commands/GetHealthCheckCommand.ts @@ -28,6 +28,7 @@ export class GetHealthCheckCommand extends $Command< GetHealthCheckCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHealthCheckCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHealthCheckCountCommand.ts b/clients/client-route-53/commands/GetHealthCheckCountCommand.ts index 3b8e862eaa347..aaf7d49981b00 100644 --- a/clients/client-route-53/commands/GetHealthCheckCountCommand.ts +++ b/clients/client-route-53/commands/GetHealthCheckCountCommand.ts @@ -28,6 +28,7 @@ export class GetHealthCheckCountCommand extends $Command< GetHealthCheckCountCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHealthCheckCountCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHealthCheckLastFailureReasonCommand.ts b/clients/client-route-53/commands/GetHealthCheckLastFailureReasonCommand.ts index 4416e71239423..ad87927c3a0da 100644 --- a/clients/client-route-53/commands/GetHealthCheckLastFailureReasonCommand.ts +++ b/clients/client-route-53/commands/GetHealthCheckLastFailureReasonCommand.ts @@ -28,6 +28,7 @@ export class GetHealthCheckLastFailureReasonCommand extends $Command< GetHealthCheckLastFailureReasonCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHealthCheckLastFailureReasonCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHealthCheckStatusCommand.ts b/clients/client-route-53/commands/GetHealthCheckStatusCommand.ts index 35b91ac44b58c..463a2e0fdbad9 100644 --- a/clients/client-route-53/commands/GetHealthCheckStatusCommand.ts +++ b/clients/client-route-53/commands/GetHealthCheckStatusCommand.ts @@ -28,6 +28,7 @@ export class GetHealthCheckStatusCommand extends $Command< GetHealthCheckStatusCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHealthCheckStatusCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHostedZoneCommand.ts b/clients/client-route-53/commands/GetHostedZoneCommand.ts index f8657aebec4e1..a7974dc00d96a 100644 --- a/clients/client-route-53/commands/GetHostedZoneCommand.ts +++ b/clients/client-route-53/commands/GetHostedZoneCommand.ts @@ -29,6 +29,7 @@ export class GetHostedZoneCommand extends $Command< GetHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,8 +47,11 @@ export class GetHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHostedZoneCountCommand.ts b/clients/client-route-53/commands/GetHostedZoneCountCommand.ts index d8363466cbb88..4d87654390d87 100644 --- a/clients/client-route-53/commands/GetHostedZoneCountCommand.ts +++ b/clients/client-route-53/commands/GetHostedZoneCountCommand.ts @@ -28,6 +28,7 @@ export class GetHostedZoneCountCommand extends $Command< GetHostedZoneCountCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetHostedZoneCountCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetHostedZoneLimitCommand.ts b/clients/client-route-53/commands/GetHostedZoneLimitCommand.ts index 7387b51dac007..6d024da8bd058 100644 --- a/clients/client-route-53/commands/GetHostedZoneLimitCommand.ts +++ b/clients/client-route-53/commands/GetHostedZoneLimitCommand.ts @@ -33,6 +33,7 @@ export class GetHostedZoneLimitCommand extends $Command< GetHostedZoneLimitCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class GetHostedZoneLimitCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetQueryLoggingConfigCommand.ts b/clients/client-route-53/commands/GetQueryLoggingConfigCommand.ts index 9439ff565ce1f..8c5dd7fa24fb8 100644 --- a/clients/client-route-53/commands/GetQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/commands/GetQueryLoggingConfigCommand.ts @@ -34,6 +34,7 @@ export class GetQueryLoggingConfigCommand extends $Command< GetQueryLoggingConfigCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,8 +52,11 @@ export class GetQueryLoggingConfigCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetReusableDelegationSetCommand.ts b/clients/client-route-53/commands/GetReusableDelegationSetCommand.ts index 027fd9cbd0180..49632efaeb8a6 100644 --- a/clients/client-route-53/commands/GetReusableDelegationSetCommand.ts +++ b/clients/client-route-53/commands/GetReusableDelegationSetCommand.ts @@ -30,6 +30,7 @@ export class GetReusableDelegationSetCommand extends $Command< GetReusableDelegationSetCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class GetReusableDelegationSetCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetReusableDelegationSetLimitCommand.ts b/clients/client-route-53/commands/GetReusableDelegationSetLimitCommand.ts index f6137dfd44cd1..f1d695e578ae8 100644 --- a/clients/client-route-53/commands/GetReusableDelegationSetLimitCommand.ts +++ b/clients/client-route-53/commands/GetReusableDelegationSetLimitCommand.ts @@ -32,6 +32,7 @@ export class GetReusableDelegationSetLimitCommand extends $Command< GetReusableDelegationSetLimitCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class GetReusableDelegationSetLimitCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetTrafficPolicyCommand.ts b/clients/client-route-53/commands/GetTrafficPolicyCommand.ts index bf5b6a2a63400..3aab1a226ad19 100644 --- a/clients/client-route-53/commands/GetTrafficPolicyCommand.ts +++ b/clients/client-route-53/commands/GetTrafficPolicyCommand.ts @@ -32,6 +32,7 @@ export class GetTrafficPolicyCommand extends $Command< GetTrafficPolicyCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class GetTrafficPolicyCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetTrafficPolicyInstanceCommand.ts b/clients/client-route-53/commands/GetTrafficPolicyInstanceCommand.ts index 747b4a9625491..150910a731805 100644 --- a/clients/client-route-53/commands/GetTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/commands/GetTrafficPolicyInstanceCommand.ts @@ -37,6 +37,7 @@ export class GetTrafficPolicyInstanceCommand extends $Command< GetTrafficPolicyInstanceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class GetTrafficPolicyInstanceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/GetTrafficPolicyInstanceCountCommand.ts b/clients/client-route-53/commands/GetTrafficPolicyInstanceCountCommand.ts index da637eca32d30..cb7f20b7df844 100644 --- a/clients/client-route-53/commands/GetTrafficPolicyInstanceCountCommand.ts +++ b/clients/client-route-53/commands/GetTrafficPolicyInstanceCountCommand.ts @@ -28,6 +28,7 @@ export class GetTrafficPolicyInstanceCountCommand extends $Command< GetTrafficPolicyInstanceCountCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTrafficPolicyInstanceCountCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListGeoLocationsCommand.ts b/clients/client-route-53/commands/ListGeoLocationsCommand.ts index 7a13a17b48c5d..a37de836e8a8d 100644 --- a/clients/client-route-53/commands/ListGeoLocationsCommand.ts +++ b/clients/client-route-53/commands/ListGeoLocationsCommand.ts @@ -32,6 +32,7 @@ export class ListGeoLocationsCommand extends $Command< ListGeoLocationsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListGeoLocationsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListHealthChecksCommand.ts b/clients/client-route-53/commands/ListHealthChecksCommand.ts index fbfa5a305d986..a489ffcbc0a77 100644 --- a/clients/client-route-53/commands/ListHealthChecksCommand.ts +++ b/clients/client-route-53/commands/ListHealthChecksCommand.ts @@ -28,6 +28,7 @@ export class ListHealthChecksCommand extends $Command< ListHealthChecksCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListHealthChecksCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListHostedZonesByNameCommand.ts b/clients/client-route-53/commands/ListHostedZonesByNameCommand.ts index 183a60e51453b..f93a7456b0fec 100644 --- a/clients/client-route-53/commands/ListHostedZonesByNameCommand.ts +++ b/clients/client-route-53/commands/ListHostedZonesByNameCommand.ts @@ -73,6 +73,7 @@ export class ListHostedZonesByNameCommand extends $Command< ListHostedZonesByNameCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,8 +91,11 @@ export class ListHostedZonesByNameCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListHostedZonesByVPCCommand.ts b/clients/client-route-53/commands/ListHostedZonesByVPCCommand.ts index 0bcaa2781b403..2d0c6e48bed87 100644 --- a/clients/client-route-53/commands/ListHostedZonesByVPCCommand.ts +++ b/clients/client-route-53/commands/ListHostedZonesByVPCCommand.ts @@ -40,6 +40,7 @@ export class ListHostedZonesByVPCCommand extends $Command< ListHostedZonesByVPCCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListHostedZonesByVPCCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListHostedZonesCommand.ts b/clients/client-route-53/commands/ListHostedZonesCommand.ts index 12ab2b32d4882..2b158be0fe3a5 100644 --- a/clients/client-route-53/commands/ListHostedZonesCommand.ts +++ b/clients/client-route-53/commands/ListHostedZonesCommand.ts @@ -32,6 +32,7 @@ export class ListHostedZonesCommand extends $Command< ListHostedZonesCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class ListHostedZonesCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListQueryLoggingConfigsCommand.ts b/clients/client-route-53/commands/ListQueryLoggingConfigsCommand.ts index 4fb25e71ddddb..b4b0039fc0e13 100644 --- a/clients/client-route-53/commands/ListQueryLoggingConfigsCommand.ts +++ b/clients/client-route-53/commands/ListQueryLoggingConfigsCommand.ts @@ -36,6 +36,7 @@ export class ListQueryLoggingConfigsCommand extends $Command< ListQueryLoggingConfigsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class ListQueryLoggingConfigsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListResourceRecordSetsCommand.ts b/clients/client-route-53/commands/ListResourceRecordSetsCommand.ts index 9926b52e7770c..bd4b3d7e4cb03 100644 --- a/clients/client-route-53/commands/ListResourceRecordSetsCommand.ts +++ b/clients/client-route-53/commands/ListResourceRecordSetsCommand.ts @@ -92,6 +92,7 @@ export class ListResourceRecordSetsCommand extends $Command< ListResourceRecordSetsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -109,8 +110,11 @@ export class ListResourceRecordSetsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListReusableDelegationSetsCommand.ts b/clients/client-route-53/commands/ListReusableDelegationSetsCommand.ts index 1a156edb5c59d..f638c173ba4b0 100644 --- a/clients/client-route-53/commands/ListReusableDelegationSetsCommand.ts +++ b/clients/client-route-53/commands/ListReusableDelegationSetsCommand.ts @@ -28,6 +28,7 @@ export class ListReusableDelegationSetsCommand extends $Command< ListReusableDelegationSetsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListReusableDelegationSetsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTagsForResourceCommand.ts b/clients/client-route-53/commands/ListTagsForResourceCommand.ts index 9337b57ff92df..cf4f2a0195b6f 100644 --- a/clients/client-route-53/commands/ListTagsForResourceCommand.ts +++ b/clients/client-route-53/commands/ListTagsForResourceCommand.ts @@ -31,6 +31,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTagsForResourcesCommand.ts b/clients/client-route-53/commands/ListTagsForResourcesCommand.ts index e61875246cf56..2f22e291824a8 100644 --- a/clients/client-route-53/commands/ListTagsForResourcesCommand.ts +++ b/clients/client-route-53/commands/ListTagsForResourcesCommand.ts @@ -31,6 +31,7 @@ export class ListTagsForResourcesCommand extends $Command< ListTagsForResourcesCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListTagsForResourcesCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTrafficPoliciesCommand.ts b/clients/client-route-53/commands/ListTrafficPoliciesCommand.ts index a25d695c67a5c..58fc22c9be216 100644 --- a/clients/client-route-53/commands/ListTrafficPoliciesCommand.ts +++ b/clients/client-route-53/commands/ListTrafficPoliciesCommand.ts @@ -34,6 +34,7 @@ export class ListTrafficPoliciesCommand extends $Command< ListTrafficPoliciesCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListTrafficPoliciesCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts b/clients/client-route-53/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts index 9a21661365934..cbd17a92e789e 100644 --- a/clients/client-route-53/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts +++ b/clients/client-route-53/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts @@ -40,6 +40,7 @@ export class ListTrafficPolicyInstancesByHostedZoneCommand extends $Command< ListTrafficPolicyInstancesByHostedZoneCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,8 +58,11 @@ export class ListTrafficPolicyInstancesByHostedZoneCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTrafficPolicyInstancesByPolicyCommand.ts b/clients/client-route-53/commands/ListTrafficPolicyInstancesByPolicyCommand.ts index ab35787b51b0a..4baf2870ae33b 100644 --- a/clients/client-route-53/commands/ListTrafficPolicyInstancesByPolicyCommand.ts +++ b/clients/client-route-53/commands/ListTrafficPolicyInstancesByPolicyCommand.ts @@ -39,6 +39,7 @@ export class ListTrafficPolicyInstancesByPolicyCommand extends $Command< ListTrafficPolicyInstancesByPolicyCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListTrafficPolicyInstancesByPolicyCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTrafficPolicyInstancesCommand.ts b/clients/client-route-53/commands/ListTrafficPolicyInstancesCommand.ts index 110570fb87fa8..f0fa550df496d 100644 --- a/clients/client-route-53/commands/ListTrafficPolicyInstancesCommand.ts +++ b/clients/client-route-53/commands/ListTrafficPolicyInstancesCommand.ts @@ -34,6 +34,7 @@ export class ListTrafficPolicyInstancesCommand extends $Command< ListTrafficPolicyInstancesCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListTrafficPolicyInstancesCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListTrafficPolicyVersionsCommand.ts b/clients/client-route-53/commands/ListTrafficPolicyVersionsCommand.ts index 7aa3960b364e5..534233def0a88 100644 --- a/clients/client-route-53/commands/ListTrafficPolicyVersionsCommand.ts +++ b/clients/client-route-53/commands/ListTrafficPolicyVersionsCommand.ts @@ -30,6 +30,7 @@ export class ListTrafficPolicyVersionsCommand extends $Command< ListTrafficPolicyVersionsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class ListTrafficPolicyVersionsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/ListVPCAssociationAuthorizationsCommand.ts b/clients/client-route-53/commands/ListVPCAssociationAuthorizationsCommand.ts index 8219225c9733f..d072041552a59 100644 --- a/clients/client-route-53/commands/ListVPCAssociationAuthorizationsCommand.ts +++ b/clients/client-route-53/commands/ListVPCAssociationAuthorizationsCommand.ts @@ -32,6 +32,7 @@ export class ListVPCAssociationAuthorizationsCommand extends $Command< ListVPCAssociationAuthorizationsCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class ListVPCAssociationAuthorizationsCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/TestDNSAnswerCommand.ts b/clients/client-route-53/commands/TestDNSAnswerCommand.ts index 20029bf3385a8..9a2d0e62d544b 100644 --- a/clients/client-route-53/commands/TestDNSAnswerCommand.ts +++ b/clients/client-route-53/commands/TestDNSAnswerCommand.ts @@ -30,6 +30,7 @@ export class TestDNSAnswerCommand extends $Command< TestDNSAnswerCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class TestDNSAnswerCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/UpdateHealthCheckCommand.ts b/clients/client-route-53/commands/UpdateHealthCheckCommand.ts index d8ecf8a21ed7f..23a3afd3127a1 100644 --- a/clients/client-route-53/commands/UpdateHealthCheckCommand.ts +++ b/clients/client-route-53/commands/UpdateHealthCheckCommand.ts @@ -31,6 +31,7 @@ export class UpdateHealthCheckCommand extends $Command< UpdateHealthCheckCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateHealthCheckCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/UpdateHostedZoneCommentCommand.ts b/clients/client-route-53/commands/UpdateHostedZoneCommentCommand.ts index 2381d4cfa7d08..484c87451289b 100644 --- a/clients/client-route-53/commands/UpdateHostedZoneCommentCommand.ts +++ b/clients/client-route-53/commands/UpdateHostedZoneCommentCommand.ts @@ -29,6 +29,7 @@ export class UpdateHostedZoneCommentCommand extends $Command< UpdateHostedZoneCommentCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,8 +47,11 @@ export class UpdateHostedZoneCommentCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/UpdateTrafficPolicyCommentCommand.ts b/clients/client-route-53/commands/UpdateTrafficPolicyCommentCommand.ts index d8d02c4790135..00a1deb3f0016 100644 --- a/clients/client-route-53/commands/UpdateTrafficPolicyCommentCommand.ts +++ b/clients/client-route-53/commands/UpdateTrafficPolicyCommentCommand.ts @@ -29,6 +29,7 @@ export class UpdateTrafficPolicyCommentCommand extends $Command< UpdateTrafficPolicyCommentCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,8 +47,11 @@ export class UpdateTrafficPolicyCommentCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/commands/UpdateTrafficPolicyInstanceCommand.ts b/clients/client-route-53/commands/UpdateTrafficPolicyInstanceCommand.ts index 2979f76d0a1c4..1e30facae2c69 100644 --- a/clients/client-route-53/commands/UpdateTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/commands/UpdateTrafficPolicyInstanceCommand.ts @@ -44,6 +44,7 @@ export class UpdateTrafficPolicyInstanceCommand extends $Command< UpdateTrafficPolicyInstanceCommandOutput, Route53ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class UpdateTrafficPolicyInstanceCommand extends $Command< configuration: Route53ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getIdNormalizerPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/AssociateResolverEndpointIpAddressCommand.ts b/clients/client-route53resolver/commands/AssociateResolverEndpointIpAddressCommand.ts index 1b1bd30f41691..94e756f3246d2 100644 --- a/clients/client-route53resolver/commands/AssociateResolverEndpointIpAddressCommand.ts +++ b/clients/client-route53resolver/commands/AssociateResolverEndpointIpAddressCommand.ts @@ -36,6 +36,7 @@ export class AssociateResolverEndpointIpAddressCommand extends $Command< AssociateResolverEndpointIpAddressCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateResolverEndpointIpAddressCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/AssociateResolverQueryLogConfigCommand.ts b/clients/client-route53resolver/commands/AssociateResolverQueryLogConfigCommand.ts index 25fd997e480ca..975fb9996e17c 100644 --- a/clients/client-route53resolver/commands/AssociateResolverQueryLogConfigCommand.ts +++ b/clients/client-route53resolver/commands/AssociateResolverQueryLogConfigCommand.ts @@ -38,6 +38,7 @@ export class AssociateResolverQueryLogConfigCommand extends $Command< AssociateResolverQueryLogConfigCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class AssociateResolverQueryLogConfigCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/AssociateResolverRuleCommand.ts b/clients/client-route53resolver/commands/AssociateResolverRuleCommand.ts index b4547e92b9aa9..a3990b08c7c0f 100644 --- a/clients/client-route53resolver/commands/AssociateResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/AssociateResolverRuleCommand.ts @@ -31,6 +31,7 @@ export class AssociateResolverRuleCommand extends $Command< AssociateResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AssociateResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/CreateResolverEndpointCommand.ts b/clients/client-route53resolver/commands/CreateResolverEndpointCommand.ts index 9d10144d86efa..1cd9136186940 100644 --- a/clients/client-route53resolver/commands/CreateResolverEndpointCommand.ts +++ b/clients/client-route53resolver/commands/CreateResolverEndpointCommand.ts @@ -38,6 +38,7 @@ export class CreateResolverEndpointCommand extends $Command< CreateResolverEndpointCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateResolverEndpointCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/CreateResolverQueryLogConfigCommand.ts b/clients/client-route53resolver/commands/CreateResolverQueryLogConfigCommand.ts index afa89afc82a42..ca7a8425c9097 100644 --- a/clients/client-route53resolver/commands/CreateResolverQueryLogConfigCommand.ts +++ b/clients/client-route53resolver/commands/CreateResolverQueryLogConfigCommand.ts @@ -36,6 +36,7 @@ export class CreateResolverQueryLogConfigCommand extends $Command< CreateResolverQueryLogConfigCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateResolverQueryLogConfigCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/CreateResolverRuleCommand.ts b/clients/client-route53resolver/commands/CreateResolverRuleCommand.ts index 0a66157072b94..70b75c639736c 100644 --- a/clients/client-route53resolver/commands/CreateResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/CreateResolverRuleCommand.ts @@ -29,6 +29,7 @@ export class CreateResolverRuleCommand extends $Command< CreateResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DeleteResolverEndpointCommand.ts b/clients/client-route53resolver/commands/DeleteResolverEndpointCommand.ts index 960f462b640f5..89b19c67b6e64 100644 --- a/clients/client-route53resolver/commands/DeleteResolverEndpointCommand.ts +++ b/clients/client-route53resolver/commands/DeleteResolverEndpointCommand.ts @@ -40,6 +40,7 @@ export class DeleteResolverEndpointCommand extends $Command< DeleteResolverEndpointCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteResolverEndpointCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DeleteResolverQueryLogConfigCommand.ts b/clients/client-route53resolver/commands/DeleteResolverQueryLogConfigCommand.ts index d6193b6e114e2..d5a8921e5072c 100644 --- a/clients/client-route53resolver/commands/DeleteResolverQueryLogConfigCommand.ts +++ b/clients/client-route53resolver/commands/DeleteResolverQueryLogConfigCommand.ts @@ -38,6 +38,7 @@ export class DeleteResolverQueryLogConfigCommand extends $Command< DeleteResolverQueryLogConfigCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteResolverQueryLogConfigCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DeleteResolverRuleCommand.ts b/clients/client-route53resolver/commands/DeleteResolverRuleCommand.ts index c7a4540128912..06f28359ac992 100644 --- a/clients/client-route53resolver/commands/DeleteResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/DeleteResolverRuleCommand.ts @@ -30,6 +30,7 @@ export class DeleteResolverRuleCommand extends $Command< DeleteResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DisassociateResolverEndpointIpAddressCommand.ts b/clients/client-route53resolver/commands/DisassociateResolverEndpointIpAddressCommand.ts index 07bfc44abb828..c2a6db8094c74 100644 --- a/clients/client-route53resolver/commands/DisassociateResolverEndpointIpAddressCommand.ts +++ b/clients/client-route53resolver/commands/DisassociateResolverEndpointIpAddressCommand.ts @@ -36,6 +36,7 @@ export class DisassociateResolverEndpointIpAddressCommand extends $Command< DisassociateResolverEndpointIpAddressCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisassociateResolverEndpointIpAddressCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DisassociateResolverQueryLogConfigCommand.ts b/clients/client-route53resolver/commands/DisassociateResolverQueryLogConfigCommand.ts index cd4100f04aee8..c6f1463157789 100644 --- a/clients/client-route53resolver/commands/DisassociateResolverQueryLogConfigCommand.ts +++ b/clients/client-route53resolver/commands/DisassociateResolverQueryLogConfigCommand.ts @@ -46,6 +46,7 @@ export class DisassociateResolverQueryLogConfigCommand extends $Command< DisassociateResolverQueryLogConfigCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DisassociateResolverQueryLogConfigCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/DisassociateResolverRuleCommand.ts b/clients/client-route53resolver/commands/DisassociateResolverRuleCommand.ts index fa7beb5fcafe3..8d97c2b885140 100644 --- a/clients/client-route53resolver/commands/DisassociateResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/DisassociateResolverRuleCommand.ts @@ -32,6 +32,7 @@ export class DisassociateResolverRuleCommand extends $Command< DisassociateResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverEndpointCommand.ts b/clients/client-route53resolver/commands/GetResolverEndpointCommand.ts index c243d05a51985..e0361739a5426 100644 --- a/clients/client-route53resolver/commands/GetResolverEndpointCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverEndpointCommand.ts @@ -29,6 +29,7 @@ export class GetResolverEndpointCommand extends $Command< GetResolverEndpointCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverEndpointCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverQueryLogConfigAssociationCommand.ts b/clients/client-route53resolver/commands/GetResolverQueryLogConfigAssociationCommand.ts index 4664a65656c20..4d33f6e6f1373 100644 --- a/clients/client-route53resolver/commands/GetResolverQueryLogConfigAssociationCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverQueryLogConfigAssociationCommand.ts @@ -33,6 +33,7 @@ export class GetResolverQueryLogConfigAssociationCommand extends $Command< GetResolverQueryLogConfigAssociationCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetResolverQueryLogConfigAssociationCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverQueryLogConfigCommand.ts b/clients/client-route53resolver/commands/GetResolverQueryLogConfigCommand.ts index 80004fcb3526b..5bf9b9866874b 100644 --- a/clients/client-route53resolver/commands/GetResolverQueryLogConfigCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverQueryLogConfigCommand.ts @@ -29,6 +29,7 @@ export class GetResolverQueryLogConfigCommand extends $Command< GetResolverQueryLogConfigCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverQueryLogConfigCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverQueryLogConfigPolicyCommand.ts b/clients/client-route53resolver/commands/GetResolverQueryLogConfigPolicyCommand.ts index 3c73271465f69..8919cd14e734f 100644 --- a/clients/client-route53resolver/commands/GetResolverQueryLogConfigPolicyCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverQueryLogConfigPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetResolverQueryLogConfigPolicyCommand extends $Command< GetResolverQueryLogConfigPolicyCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverQueryLogConfigPolicyCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverRuleAssociationCommand.ts b/clients/client-route53resolver/commands/GetResolverRuleAssociationCommand.ts index 3b46c56dc405f..cb5eeea2a06d1 100644 --- a/clients/client-route53resolver/commands/GetResolverRuleAssociationCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverRuleAssociationCommand.ts @@ -29,6 +29,7 @@ export class GetResolverRuleAssociationCommand extends $Command< GetResolverRuleAssociationCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverRuleAssociationCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverRuleCommand.ts b/clients/client-route53resolver/commands/GetResolverRuleCommand.ts index 1e4e88337960a..482d8c5232c89 100644 --- a/clients/client-route53resolver/commands/GetResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverRuleCommand.ts @@ -29,6 +29,7 @@ export class GetResolverRuleCommand extends $Command< GetResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/GetResolverRulePolicyCommand.ts b/clients/client-route53resolver/commands/GetResolverRulePolicyCommand.ts index 9ce96290bdfdc..1722dff45f290 100644 --- a/clients/client-route53resolver/commands/GetResolverRulePolicyCommand.ts +++ b/clients/client-route53resolver/commands/GetResolverRulePolicyCommand.ts @@ -29,6 +29,7 @@ export class GetResolverRulePolicyCommand extends $Command< GetResolverRulePolicyCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResolverRulePolicyCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverEndpointIpAddressesCommand.ts b/clients/client-route53resolver/commands/ListResolverEndpointIpAddressesCommand.ts index 510149d5470df..cdc5a2b28ac74 100644 --- a/clients/client-route53resolver/commands/ListResolverEndpointIpAddressesCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverEndpointIpAddressesCommand.ts @@ -28,6 +28,7 @@ export class ListResolverEndpointIpAddressesCommand extends $Command< ListResolverEndpointIpAddressesCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolverEndpointIpAddressesCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverEndpointsCommand.ts b/clients/client-route53resolver/commands/ListResolverEndpointsCommand.ts index 612fe289bcae4..c20e4c5e99b61 100644 --- a/clients/client-route53resolver/commands/ListResolverEndpointsCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverEndpointsCommand.ts @@ -28,6 +28,7 @@ export class ListResolverEndpointsCommand extends $Command< ListResolverEndpointsCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolverEndpointsCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverQueryLogConfigAssociationsCommand.ts b/clients/client-route53resolver/commands/ListResolverQueryLogConfigAssociationsCommand.ts index 40636dfff08a0..c6787c2a67da4 100644 --- a/clients/client-route53resolver/commands/ListResolverQueryLogConfigAssociationsCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverQueryLogConfigAssociationsCommand.ts @@ -32,6 +32,7 @@ export class ListResolverQueryLogConfigAssociationsCommand extends $Command< ListResolverQueryLogConfigAssociationsCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListResolverQueryLogConfigAssociationsCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverQueryLogConfigsCommand.ts b/clients/client-route53resolver/commands/ListResolverQueryLogConfigsCommand.ts index 291f1b80740b0..c689799643b82 100644 --- a/clients/client-route53resolver/commands/ListResolverQueryLogConfigsCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverQueryLogConfigsCommand.ts @@ -29,6 +29,7 @@ export class ListResolverQueryLogConfigsCommand extends $Command< ListResolverQueryLogConfigsCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListResolverQueryLogConfigsCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverRuleAssociationsCommand.ts b/clients/client-route53resolver/commands/ListResolverRuleAssociationsCommand.ts index b5fcff2f5a926..d06f1ec952c6b 100644 --- a/clients/client-route53resolver/commands/ListResolverRuleAssociationsCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverRuleAssociationsCommand.ts @@ -28,6 +28,7 @@ export class ListResolverRuleAssociationsCommand extends $Command< ListResolverRuleAssociationsCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolverRuleAssociationsCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListResolverRulesCommand.ts b/clients/client-route53resolver/commands/ListResolverRulesCommand.ts index bac3298d4aaa6..74e27b1094844 100644 --- a/clients/client-route53resolver/commands/ListResolverRulesCommand.ts +++ b/clients/client-route53resolver/commands/ListResolverRulesCommand.ts @@ -28,6 +28,7 @@ export class ListResolverRulesCommand extends $Command< ListResolverRulesCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResolverRulesCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/ListTagsForResourceCommand.ts b/clients/client-route53resolver/commands/ListTagsForResourceCommand.ts index ff84da43df6a2..cd0bcebb94e7f 100644 --- a/clients/client-route53resolver/commands/ListTagsForResourceCommand.ts +++ b/clients/client-route53resolver/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/PutResolverQueryLogConfigPolicyCommand.ts b/clients/client-route53resolver/commands/PutResolverQueryLogConfigPolicyCommand.ts index e47dc50bda1b9..caf8ae015b8a7 100644 --- a/clients/client-route53resolver/commands/PutResolverQueryLogConfigPolicyCommand.ts +++ b/clients/client-route53resolver/commands/PutResolverQueryLogConfigPolicyCommand.ts @@ -29,6 +29,7 @@ export class PutResolverQueryLogConfigPolicyCommand extends $Command< PutResolverQueryLogConfigPolicyCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutResolverQueryLogConfigPolicyCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/PutResolverRulePolicyCommand.ts b/clients/client-route53resolver/commands/PutResolverRulePolicyCommand.ts index 5f7e1d7c90eee..0d37933995817 100644 --- a/clients/client-route53resolver/commands/PutResolverRulePolicyCommand.ts +++ b/clients/client-route53resolver/commands/PutResolverRulePolicyCommand.ts @@ -29,6 +29,7 @@ export class PutResolverRulePolicyCommand extends $Command< PutResolverRulePolicyCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutResolverRulePolicyCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/TagResourceCommand.ts b/clients/client-route53resolver/commands/TagResourceCommand.ts index c12893761f55a..d01dd16b002d1 100644 --- a/clients/client-route53resolver/commands/TagResourceCommand.ts +++ b/clients/client-route53resolver/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/UntagResourceCommand.ts b/clients/client-route53resolver/commands/UntagResourceCommand.ts index 2cde8837d8fa1..21c3834fb03d2 100644 --- a/clients/client-route53resolver/commands/UntagResourceCommand.ts +++ b/clients/client-route53resolver/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/UpdateResolverEndpointCommand.ts b/clients/client-route53resolver/commands/UpdateResolverEndpointCommand.ts index 3084b0df3bb09..987c7524837a2 100644 --- a/clients/client-route53resolver/commands/UpdateResolverEndpointCommand.ts +++ b/clients/client-route53resolver/commands/UpdateResolverEndpointCommand.ts @@ -28,6 +28,7 @@ export class UpdateResolverEndpointCommand extends $Command< UpdateResolverEndpointCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateResolverEndpointCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route53resolver/commands/UpdateResolverRuleCommand.ts b/clients/client-route53resolver/commands/UpdateResolverRuleCommand.ts index 6b53128b498fa..a388b5b94c904 100644 --- a/clients/client-route53resolver/commands/UpdateResolverRuleCommand.ts +++ b/clients/client-route53resolver/commands/UpdateResolverRuleCommand.ts @@ -29,6 +29,7 @@ export class UpdateResolverRuleCommand extends $Command< UpdateResolverRuleCommandOutput, Route53ResolverClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateResolverRuleCommand extends $Command< configuration: Route53ResolverClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/CreateAccessPointCommand.ts b/clients/client-s3-control/commands/CreateAccessPointCommand.ts index de5423e617966..8547b8f20a030 100644 --- a/clients/client-s3-control/commands/CreateAccessPointCommand.ts +++ b/clients/client-s3-control/commands/CreateAccessPointCommand.ts @@ -72,6 +72,7 @@ export class CreateAccessPointCommand extends $Command< CreateAccessPointCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,8 +90,11 @@ export class CreateAccessPointCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/CreateBucketCommand.ts b/clients/client-s3-control/commands/CreateBucketCommand.ts index 315fed0329c9c..a2e8320dd4895 100644 --- a/clients/client-s3-control/commands/CreateBucketCommand.ts +++ b/clients/client-s3-control/commands/CreateBucketCommand.ts @@ -83,6 +83,7 @@ export class CreateBucketCommand extends $Command< CreateBucketCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -100,8 +101,11 @@ export class CreateBucketCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getRedirectFromPostIdPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getRedirectFromPostIdPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/CreateJobCommand.ts b/clients/client-s3-control/commands/CreateJobCommand.ts index de496b69a8418..39cb65ed3d80c 100644 --- a/clients/client-s3-control/commands/CreateJobCommand.ts +++ b/clients/client-s3-control/commands/CreateJobCommand.ts @@ -54,6 +54,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class CreateJobCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteAccessPointCommand.ts b/clients/client-s3-control/commands/DeleteAccessPointCommand.ts index 695abbf9e6187..1010358c98bae 100644 --- a/clients/client-s3-control/commands/DeleteAccessPointCommand.ts +++ b/clients/client-s3-control/commands/DeleteAccessPointCommand.ts @@ -49,6 +49,7 @@ export class DeleteAccessPointCommand extends $Command< DeleteAccessPointCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class DeleteAccessPointCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteAccessPointPolicyCommand.ts b/clients/client-s3-control/commands/DeleteAccessPointPolicyCommand.ts index c460776646e7a..3ee05d7319057 100644 --- a/clients/client-s3-control/commands/DeleteAccessPointPolicyCommand.ts +++ b/clients/client-s3-control/commands/DeleteAccessPointPolicyCommand.ts @@ -44,6 +44,7 @@ export class DeleteAccessPointPolicyCommand extends $Command< DeleteAccessPointPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class DeleteAccessPointPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteBucketCommand.ts b/clients/client-s3-control/commands/DeleteBucketCommand.ts index 535363ebe00f2..ba10df2f38c7d 100644 --- a/clients/client-s3-control/commands/DeleteBucketCommand.ts +++ b/clients/client-s3-control/commands/DeleteBucketCommand.ts @@ -57,6 +57,7 @@ export class DeleteBucketCommand extends $Command< DeleteBucketCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,8 +75,11 @@ export class DeleteBucketCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteBucketLifecycleConfigurationCommand.ts b/clients/client-s3-control/commands/DeleteBucketLifecycleConfigurationCommand.ts index a80f0872de735..d6259baa52b3b 100644 --- a/clients/client-s3-control/commands/DeleteBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3-control/commands/DeleteBucketLifecycleConfigurationCommand.ts @@ -58,6 +58,7 @@ export class DeleteBucketLifecycleConfigurationCommand extends $Command< DeleteBucketLifecycleConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class DeleteBucketLifecycleConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteBucketPolicyCommand.ts b/clients/client-s3-control/commands/DeleteBucketPolicyCommand.ts index 61bda6aa14394..d035ed3f0c775 100644 --- a/clients/client-s3-control/commands/DeleteBucketPolicyCommand.ts +++ b/clients/client-s3-control/commands/DeleteBucketPolicyCommand.ts @@ -70,6 +70,7 @@ export class DeleteBucketPolicyCommand extends $Command< DeleteBucketPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,8 +88,11 @@ export class DeleteBucketPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteBucketTaggingCommand.ts b/clients/client-s3-control/commands/DeleteBucketTaggingCommand.ts index 25643ec17d1b7..3fd7c65436aa0 100644 --- a/clients/client-s3-control/commands/DeleteBucketTaggingCommand.ts +++ b/clients/client-s3-control/commands/DeleteBucketTaggingCommand.ts @@ -55,6 +55,7 @@ export class DeleteBucketTaggingCommand extends $Command< DeleteBucketTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class DeleteBucketTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteJobTaggingCommand.ts b/clients/client-s3-control/commands/DeleteJobTaggingCommand.ts index 8e1b6a264834f..09a1a51745009 100644 --- a/clients/client-s3-control/commands/DeleteJobTaggingCommand.ts +++ b/clients/client-s3-control/commands/DeleteJobTaggingCommand.ts @@ -51,6 +51,7 @@ export class DeleteJobTaggingCommand extends $Command< DeleteJobTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,8 +69,11 @@ export class DeleteJobTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeletePublicAccessBlockCommand.ts b/clients/client-s3-control/commands/DeletePublicAccessBlockCommand.ts index 4a322b61afa10..9d6636672b3f0 100644 --- a/clients/client-s3-control/commands/DeletePublicAccessBlockCommand.ts +++ b/clients/client-s3-control/commands/DeletePublicAccessBlockCommand.ts @@ -44,6 +44,7 @@ export class DeletePublicAccessBlockCommand extends $Command< DeletePublicAccessBlockCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class DeletePublicAccessBlockCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteStorageLensConfigurationCommand.ts b/clients/client-s3-control/commands/DeleteStorageLensConfigurationCommand.ts index 0e6179bc37472..8e6ede0ab73bb 100644 --- a/clients/client-s3-control/commands/DeleteStorageLensConfigurationCommand.ts +++ b/clients/client-s3-control/commands/DeleteStorageLensConfigurationCommand.ts @@ -37,6 +37,7 @@ export class DeleteStorageLensConfigurationCommand extends $Command< DeleteStorageLensConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class DeleteStorageLensConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DeleteStorageLensConfigurationTaggingCommand.ts b/clients/client-s3-control/commands/DeleteStorageLensConfigurationTaggingCommand.ts index 593b4627c6bab..04499efc30f8e 100644 --- a/clients/client-s3-control/commands/DeleteStorageLensConfigurationTaggingCommand.ts +++ b/clients/client-s3-control/commands/DeleteStorageLensConfigurationTaggingCommand.ts @@ -41,6 +41,7 @@ export class DeleteStorageLensConfigurationTaggingCommand extends $Command< DeleteStorageLensConfigurationTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class DeleteStorageLensConfigurationTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/DescribeJobCommand.ts b/clients/client-s3-control/commands/DescribeJobCommand.ts index d1aa55797e6a4..f7581bf43d264 100644 --- a/clients/client-s3-control/commands/DescribeJobCommand.ts +++ b/clients/client-s3-control/commands/DescribeJobCommand.ts @@ -55,6 +55,7 @@ export class DescribeJobCommand extends $Command< DescribeJobCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class DescribeJobCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetAccessPointCommand.ts b/clients/client-s3-control/commands/GetAccessPointCommand.ts index fa47cba07bd85..204f92d544121 100644 --- a/clients/client-s3-control/commands/GetAccessPointCommand.ts +++ b/clients/client-s3-control/commands/GetAccessPointCommand.ts @@ -50,6 +50,7 @@ export class GetAccessPointCommand extends $Command< GetAccessPointCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,8 +68,11 @@ export class GetAccessPointCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetAccessPointPolicyCommand.ts b/clients/client-s3-control/commands/GetAccessPointPolicyCommand.ts index 8a5bd553aa8af..ab263c5cf77dc 100644 --- a/clients/client-s3-control/commands/GetAccessPointPolicyCommand.ts +++ b/clients/client-s3-control/commands/GetAccessPointPolicyCommand.ts @@ -42,6 +42,7 @@ export class GetAccessPointPolicyCommand extends $Command< GetAccessPointPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,8 +60,11 @@ export class GetAccessPointPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetAccessPointPolicyStatusCommand.ts b/clients/client-s3-control/commands/GetAccessPointPolicyStatusCommand.ts index 8124df85c12a8..a83b3088a2f82 100644 --- a/clients/client-s3-control/commands/GetAccessPointPolicyStatusCommand.ts +++ b/clients/client-s3-control/commands/GetAccessPointPolicyStatusCommand.ts @@ -29,6 +29,7 @@ export class GetAccessPointPolicyStatusCommand extends $Command< GetAccessPointPolicyStatusCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,8 +47,11 @@ export class GetAccessPointPolicyStatusCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetBucketCommand.ts b/clients/client-s3-control/commands/GetBucketCommand.ts index d96ec68537e5b..d2e79575ef2fe 100644 --- a/clients/client-s3-control/commands/GetBucketCommand.ts +++ b/clients/client-s3-control/commands/GetBucketCommand.ts @@ -53,6 +53,7 @@ export class GetBucketCommand extends $Command< GetBucketCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class GetBucketCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetBucketLifecycleConfigurationCommand.ts b/clients/client-s3-control/commands/GetBucketLifecycleConfigurationCommand.ts index a212cf093adb0..03a9be0571aa8 100644 --- a/clients/client-s3-control/commands/GetBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3-control/commands/GetBucketLifecycleConfigurationCommand.ts @@ -79,6 +79,7 @@ export class GetBucketLifecycleConfigurationCommand extends $Command< GetBucketLifecycleConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,8 +97,11 @@ export class GetBucketLifecycleConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetBucketPolicyCommand.ts b/clients/client-s3-control/commands/GetBucketPolicyCommand.ts index e16259e3019f1..35015450d4a01 100644 --- a/clients/client-s3-control/commands/GetBucketPolicyCommand.ts +++ b/clients/client-s3-control/commands/GetBucketPolicyCommand.ts @@ -69,6 +69,7 @@ export class GetBucketPolicyCommand extends $Command< GetBucketPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,8 +87,11 @@ export class GetBucketPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetBucketTaggingCommand.ts b/clients/client-s3-control/commands/GetBucketTaggingCommand.ts index 1df910420bc5b..c37bcd438368c 100644 --- a/clients/client-s3-control/commands/GetBucketTaggingCommand.ts +++ b/clients/client-s3-control/commands/GetBucketTaggingCommand.ts @@ -67,6 +67,7 @@ export class GetBucketTaggingCommand extends $Command< GetBucketTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,8 +85,11 @@ export class GetBucketTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetJobTaggingCommand.ts b/clients/client-s3-control/commands/GetJobTaggingCommand.ts index 21e6724762b9a..9b8720d0c37fe 100644 --- a/clients/client-s3-control/commands/GetJobTaggingCommand.ts +++ b/clients/client-s3-control/commands/GetJobTaggingCommand.ts @@ -52,6 +52,7 @@ export class GetJobTaggingCommand extends $Command< GetJobTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,8 +70,11 @@ export class GetJobTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetPublicAccessBlockCommand.ts b/clients/client-s3-control/commands/GetPublicAccessBlockCommand.ts index aa6b0e1830300..b0bedf112156b 100644 --- a/clients/client-s3-control/commands/GetPublicAccessBlockCommand.ts +++ b/clients/client-s3-control/commands/GetPublicAccessBlockCommand.ts @@ -44,6 +44,7 @@ export class GetPublicAccessBlockCommand extends $Command< GetPublicAccessBlockCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class GetPublicAccessBlockCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetStorageLensConfigurationCommand.ts b/clients/client-s3-control/commands/GetStorageLensConfigurationCommand.ts index 87fca63d7747b..bd8bf00255b49 100644 --- a/clients/client-s3-control/commands/GetStorageLensConfigurationCommand.ts +++ b/clients/client-s3-control/commands/GetStorageLensConfigurationCommand.ts @@ -37,6 +37,7 @@ export class GetStorageLensConfigurationCommand extends $Command< GetStorageLensConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class GetStorageLensConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/GetStorageLensConfigurationTaggingCommand.ts b/clients/client-s3-control/commands/GetStorageLensConfigurationTaggingCommand.ts index 901a33ac2cc34..e26ac3c492535 100644 --- a/clients/client-s3-control/commands/GetStorageLensConfigurationTaggingCommand.ts +++ b/clients/client-s3-control/commands/GetStorageLensConfigurationTaggingCommand.ts @@ -41,6 +41,7 @@ export class GetStorageLensConfigurationTaggingCommand extends $Command< GetStorageLensConfigurationTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class GetStorageLensConfigurationTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/ListAccessPointsCommand.ts b/clients/client-s3-control/commands/ListAccessPointsCommand.ts index 18170a3c0f47f..a71d383ee595b 100644 --- a/clients/client-s3-control/commands/ListAccessPointsCommand.ts +++ b/clients/client-s3-control/commands/ListAccessPointsCommand.ts @@ -53,6 +53,7 @@ export class ListAccessPointsCommand extends $Command< ListAccessPointsCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class ListAccessPointsCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/ListJobsCommand.ts b/clients/client-s3-control/commands/ListJobsCommand.ts index 0e68f9c40e8ea..ba651d879cb84 100644 --- a/clients/client-s3-control/commands/ListJobsCommand.ts +++ b/clients/client-s3-control/commands/ListJobsCommand.ts @@ -52,6 +52,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,8 +70,11 @@ export class ListJobsCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/ListRegionalBucketsCommand.ts b/clients/client-s3-control/commands/ListRegionalBucketsCommand.ts index c4a8462c226fc..b8911eb4a8aca 100644 --- a/clients/client-s3-control/commands/ListRegionalBucketsCommand.ts +++ b/clients/client-s3-control/commands/ListRegionalBucketsCommand.ts @@ -33,6 +33,7 @@ export class ListRegionalBucketsCommand extends $Command< ListRegionalBucketsCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class ListRegionalBucketsCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getRedirectFromPostIdPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getRedirectFromPostIdPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/ListStorageLensConfigurationsCommand.ts b/clients/client-s3-control/commands/ListStorageLensConfigurationsCommand.ts index b5dd6842151db..d5afe4a66148c 100644 --- a/clients/client-s3-control/commands/ListStorageLensConfigurationsCommand.ts +++ b/clients/client-s3-control/commands/ListStorageLensConfigurationsCommand.ts @@ -37,6 +37,7 @@ export class ListStorageLensConfigurationsCommand extends $Command< ListStorageLensConfigurationsCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class ListStorageLensConfigurationsCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutAccessPointPolicyCommand.ts b/clients/client-s3-control/commands/PutAccessPointPolicyCommand.ts index a2d6935d90915..9201a3a2671bd 100644 --- a/clients/client-s3-control/commands/PutAccessPointPolicyCommand.ts +++ b/clients/client-s3-control/commands/PutAccessPointPolicyCommand.ts @@ -45,6 +45,7 @@ export class PutAccessPointPolicyCommand extends $Command< PutAccessPointPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,8 +63,11 @@ export class PutAccessPointPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutBucketLifecycleConfigurationCommand.ts b/clients/client-s3-control/commands/PutBucketLifecycleConfigurationCommand.ts index 7737e12cdf2ec..29c874857f530 100644 --- a/clients/client-s3-control/commands/PutBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3-control/commands/PutBucketLifecycleConfigurationCommand.ts @@ -51,6 +51,7 @@ export class PutBucketLifecycleConfigurationCommand extends $Command< PutBucketLifecycleConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,8 +69,11 @@ export class PutBucketLifecycleConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutBucketPolicyCommand.ts b/clients/client-s3-control/commands/PutBucketPolicyCommand.ts index 4808b11a82e12..a00bd0d98a1d0 100644 --- a/clients/client-s3-control/commands/PutBucketPolicyCommand.ts +++ b/clients/client-s3-control/commands/PutBucketPolicyCommand.ts @@ -67,6 +67,7 @@ export class PutBucketPolicyCommand extends $Command< PutBucketPolicyCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,8 +85,11 @@ export class PutBucketPolicyCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutBucketTaggingCommand.ts b/clients/client-s3-control/commands/PutBucketTaggingCommand.ts index 76b0580eeb9e5..3dce33c3d5cae 100644 --- a/clients/client-s3-control/commands/PutBucketTaggingCommand.ts +++ b/clients/client-s3-control/commands/PutBucketTaggingCommand.ts @@ -111,6 +111,7 @@ export class PutBucketTaggingCommand extends $Command< PutBucketTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -128,8 +129,11 @@ export class PutBucketTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutJobTaggingCommand.ts b/clients/client-s3-control/commands/PutJobTaggingCommand.ts index cf7770666a686..0f31d92e2c97a 100644 --- a/clients/client-s3-control/commands/PutJobTaggingCommand.ts +++ b/clients/client-s3-control/commands/PutJobTaggingCommand.ts @@ -92,6 +92,7 @@ export class PutJobTaggingCommand extends $Command< PutJobTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -109,8 +110,11 @@ export class PutJobTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutPublicAccessBlockCommand.ts b/clients/client-s3-control/commands/PutPublicAccessBlockCommand.ts index 04618f55f0378..2df02624d2a7b 100644 --- a/clients/client-s3-control/commands/PutPublicAccessBlockCommand.ts +++ b/clients/client-s3-control/commands/PutPublicAccessBlockCommand.ts @@ -44,6 +44,7 @@ export class PutPublicAccessBlockCommand extends $Command< PutPublicAccessBlockCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class PutPublicAccessBlockCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutStorageLensConfigurationCommand.ts b/clients/client-s3-control/commands/PutStorageLensConfigurationCommand.ts index 270d03b4c8f22..f77728c9b2801 100644 --- a/clients/client-s3-control/commands/PutStorageLensConfigurationCommand.ts +++ b/clients/client-s3-control/commands/PutStorageLensConfigurationCommand.ts @@ -36,6 +36,7 @@ export class PutStorageLensConfigurationCommand extends $Command< PutStorageLensConfigurationCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,8 +54,11 @@ export class PutStorageLensConfigurationCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/PutStorageLensConfigurationTaggingCommand.ts b/clients/client-s3-control/commands/PutStorageLensConfigurationTaggingCommand.ts index a9a5c3be40cbb..b3807639b7346 100644 --- a/clients/client-s3-control/commands/PutStorageLensConfigurationTaggingCommand.ts +++ b/clients/client-s3-control/commands/PutStorageLensConfigurationTaggingCommand.ts @@ -41,6 +41,7 @@ export class PutStorageLensConfigurationTaggingCommand extends $Command< PutStorageLensConfigurationTaggingCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,8 +59,11 @@ export class PutStorageLensConfigurationTaggingCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/UpdateJobPriorityCommand.ts b/clients/client-s3-control/commands/UpdateJobPriorityCommand.ts index 1b32cbcc4079b..aa9965cabc775 100644 --- a/clients/client-s3-control/commands/UpdateJobPriorityCommand.ts +++ b/clients/client-s3-control/commands/UpdateJobPriorityCommand.ts @@ -54,6 +54,7 @@ export class UpdateJobPriorityCommand extends $Command< UpdateJobPriorityCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class UpdateJobPriorityCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3-control/commands/UpdateJobStatusCommand.ts b/clients/client-s3-control/commands/UpdateJobStatusCommand.ts index bc75536ec567e..a1d2e7b78b3c2 100644 --- a/clients/client-s3-control/commands/UpdateJobStatusCommand.ts +++ b/clients/client-s3-control/commands/UpdateJobStatusCommand.ts @@ -55,6 +55,7 @@ export class UpdateJobStatusCommand extends $Command< UpdateJobStatusCommandOutput, S3ControlClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class UpdateJobStatusCommand extends $Command< configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getProcessArnablesPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/AbortMultipartUploadCommand.ts b/clients/client-s3/commands/AbortMultipartUploadCommand.ts index f5fc9055bc76d..5a1d2feefe521 100644 --- a/clients/client-s3/commands/AbortMultipartUploadCommand.ts +++ b/clients/client-s3/commands/AbortMultipartUploadCommand.ts @@ -67,6 +67,7 @@ export class AbortMultipartUploadCommand extends $Command< AbortMultipartUploadCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,8 +85,11 @@ export class AbortMultipartUploadCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/CompleteMultipartUploadCommand.ts b/clients/client-s3/commands/CompleteMultipartUploadCommand.ts index 52d537ec86784..2fa665f772c1e 100644 --- a/clients/client-s3/commands/CompleteMultipartUploadCommand.ts +++ b/clients/client-s3/commands/CompleteMultipartUploadCommand.ts @@ -139,6 +139,7 @@ export class CompleteMultipartUploadCommand extends $Command< CompleteMultipartUploadCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -156,9 +157,12 @@ export class CompleteMultipartUploadCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/CopyObjectCommand.ts b/clients/client-s3/commands/CopyObjectCommand.ts index e5db0406813f5..8423cc959965d 100644 --- a/clients/client-s3/commands/CopyObjectCommand.ts +++ b/clients/client-s3/commands/CopyObjectCommand.ts @@ -196,6 +196,7 @@ export class CopyObjectCommand extends $Command< CopyObjectCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -213,10 +214,13 @@ export class CopyObjectCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/CreateBucketCommand.ts b/clients/client-s3/commands/CreateBucketCommand.ts index 5f2613516691c..43c99ddeebffa 100644 --- a/clients/client-s3/commands/CreateBucketCommand.ts +++ b/clients/client-s3/commands/CreateBucketCommand.ts @@ -140,6 +140,7 @@ export class CreateBucketCommand extends $Command< CreateBucketCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -157,8 +158,11 @@ export class CreateBucketCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getLocationConstraintPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getLocationConstraintPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/CreateMultipartUploadCommand.ts b/clients/client-s3/commands/CreateMultipartUploadCommand.ts index d753752050912..7535751eefa15 100644 --- a/clients/client-s3/commands/CreateMultipartUploadCommand.ts +++ b/clients/client-s3/commands/CreateMultipartUploadCommand.ts @@ -291,6 +291,7 @@ export class CreateMultipartUploadCommand extends $Command< CreateMultipartUploadCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -308,9 +309,12 @@ export class CreateMultipartUploadCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/commands/DeleteBucketAnalyticsConfigurationCommand.ts index 4d2157c60db93..4aa8c80b80751 100644 --- a/clients/client-s3/commands/DeleteBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/commands/DeleteBucketAnalyticsConfigurationCommand.ts @@ -58,6 +58,7 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command< DeleteBucketAnalyticsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketCommand.ts b/clients/client-s3/commands/DeleteBucketCommand.ts index 9552a3bdd7b4a..b1284caa7bd98 100644 --- a/clients/client-s3/commands/DeleteBucketCommand.ts +++ b/clients/client-s3/commands/DeleteBucketCommand.ts @@ -45,6 +45,7 @@ export class DeleteBucketCommand extends $Command< DeleteBucketCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DeleteBucketCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketCorsCommand.ts b/clients/client-s3/commands/DeleteBucketCorsCommand.ts index 70062bba477a5..f43e530a8ba67 100644 --- a/clients/client-s3/commands/DeleteBucketCorsCommand.ts +++ b/clients/client-s3/commands/DeleteBucketCorsCommand.ts @@ -50,6 +50,7 @@ export class DeleteBucketCorsCommand extends $Command< DeleteBucketCorsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,8 +68,11 @@ export class DeleteBucketCorsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketEncryptionCommand.ts b/clients/client-s3/commands/DeleteBucketEncryptionCommand.ts index e4b5198e2cf40..e2cf5ef9c803b 100644 --- a/clients/client-s3/commands/DeleteBucketEncryptionCommand.ts +++ b/clients/client-s3/commands/DeleteBucketEncryptionCommand.ts @@ -52,6 +52,7 @@ export class DeleteBucketEncryptionCommand extends $Command< DeleteBucketEncryptionCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,8 +70,11 @@ export class DeleteBucketEncryptionCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts index 7429f07283898..1d6d9d9042dad 100644 --- a/clients/client-s3/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts @@ -51,6 +51,7 @@ export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command DeleteBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command DeleteBucketIntelligentTieringConfigurationCommandInput, DeleteBucketIntelligentTieringConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketInventoryConfigurationCommand.ts b/clients/client-s3/commands/DeleteBucketInventoryConfigurationCommand.ts index e8396f53ca5f8..8b08b0b30f981 100644 --- a/clients/client-s3/commands/DeleteBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/commands/DeleteBucketInventoryConfigurationCommand.ts @@ -54,6 +54,7 @@ export class DeleteBucketInventoryConfigurationCommand extends $Command< DeleteBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class DeleteBucketInventoryConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketLifecycleCommand.ts b/clients/client-s3/commands/DeleteBucketLifecycleCommand.ts index e8ece791a9b13..d19c04551a007 100644 --- a/clients/client-s3/commands/DeleteBucketLifecycleCommand.ts +++ b/clients/client-s3/commands/DeleteBucketLifecycleCommand.ts @@ -54,6 +54,7 @@ export class DeleteBucketLifecycleCommand extends $Command< DeleteBucketLifecycleCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class DeleteBucketLifecycleCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketMetricsConfigurationCommand.ts b/clients/client-s3/commands/DeleteBucketMetricsConfigurationCommand.ts index ad393c36373cf..e8d02692bdd59 100644 --- a/clients/client-s3/commands/DeleteBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/commands/DeleteBucketMetricsConfigurationCommand.ts @@ -64,6 +64,7 @@ export class DeleteBucketMetricsConfigurationCommand extends $Command< DeleteBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,8 +82,11 @@ export class DeleteBucketMetricsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketOwnershipControlsCommand.ts b/clients/client-s3/commands/DeleteBucketOwnershipControlsCommand.ts index 026a2e33a64d7..07fabf79949a9 100644 --- a/clients/client-s3/commands/DeleteBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/commands/DeleteBucketOwnershipControlsCommand.ts @@ -47,6 +47,7 @@ export class DeleteBucketOwnershipControlsCommand extends $Command< DeleteBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,8 +65,11 @@ export class DeleteBucketOwnershipControlsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketPolicyCommand.ts b/clients/client-s3/commands/DeleteBucketPolicyCommand.ts index 3e1bb67db7c54..d947fabf7c695 100644 --- a/clients/client-s3/commands/DeleteBucketPolicyCommand.ts +++ b/clients/client-s3/commands/DeleteBucketPolicyCommand.ts @@ -62,6 +62,7 @@ export class DeleteBucketPolicyCommand extends $Command< DeleteBucketPolicyCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,8 +80,11 @@ export class DeleteBucketPolicyCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketReplicationCommand.ts b/clients/client-s3/commands/DeleteBucketReplicationCommand.ts index 0bb958cd4e443..8e76bed1e3963 100644 --- a/clients/client-s3/commands/DeleteBucketReplicationCommand.ts +++ b/clients/client-s3/commands/DeleteBucketReplicationCommand.ts @@ -55,6 +55,7 @@ export class DeleteBucketReplicationCommand extends $Command< DeleteBucketReplicationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class DeleteBucketReplicationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketTaggingCommand.ts b/clients/client-s3/commands/DeleteBucketTaggingCommand.ts index 6b2faf0305248..dc1c907712e6a 100644 --- a/clients/client-s3/commands/DeleteBucketTaggingCommand.ts +++ b/clients/client-s3/commands/DeleteBucketTaggingCommand.ts @@ -46,6 +46,7 @@ export class DeleteBucketTaggingCommand extends $Command< DeleteBucketTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,8 +64,11 @@ export class DeleteBucketTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteBucketWebsiteCommand.ts b/clients/client-s3/commands/DeleteBucketWebsiteCommand.ts index 611fb31faa3a9..85c503e8667a6 100644 --- a/clients/client-s3/commands/DeleteBucketWebsiteCommand.ts +++ b/clients/client-s3/commands/DeleteBucketWebsiteCommand.ts @@ -55,6 +55,7 @@ export class DeleteBucketWebsiteCommand extends $Command< DeleteBucketWebsiteCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class DeleteBucketWebsiteCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteObjectCommand.ts b/clients/client-s3/commands/DeleteObjectCommand.ts index 8dce04798d593..be5d4a29e19c3 100644 --- a/clients/client-s3/commands/DeleteObjectCommand.ts +++ b/clients/client-s3/commands/DeleteObjectCommand.ts @@ -59,6 +59,7 @@ export class DeleteObjectCommand extends $Command< DeleteObjectCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,8 +77,11 @@ export class DeleteObjectCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/commands/DeleteObjectTaggingCommand.ts index 4205a081e7969..0dc923f5b8242 100644 --- a/clients/client-s3/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/commands/DeleteObjectTaggingCommand.ts @@ -53,6 +53,7 @@ export class DeleteObjectTaggingCommand extends $Command< DeleteObjectTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class DeleteObjectTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeleteObjectsCommand.ts b/clients/client-s3/commands/DeleteObjectsCommand.ts index d1af63328fb85..9614cdfb1eaa8 100644 --- a/clients/client-s3/commands/DeleteObjectsCommand.ts +++ b/clients/client-s3/commands/DeleteObjectsCommand.ts @@ -86,6 +86,7 @@ export class DeleteObjectsCommand extends $Command< DeleteObjectsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,9 +104,12 @@ export class DeleteObjectsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/DeletePublicAccessBlockCommand.ts b/clients/client-s3/commands/DeletePublicAccessBlockCommand.ts index 1cbd8145d31d4..e3889129a8ed6 100644 --- a/clients/client-s3/commands/DeletePublicAccessBlockCommand.ts +++ b/clients/client-s3/commands/DeletePublicAccessBlockCommand.ts @@ -57,6 +57,7 @@ export class DeletePublicAccessBlockCommand extends $Command< DeletePublicAccessBlockCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,8 +75,11 @@ export class DeletePublicAccessBlockCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketAccelerateConfigurationCommand.ts b/clients/client-s3/commands/GetBucketAccelerateConfigurationCommand.ts index 716561f86b38a..84733e6d97353 100644 --- a/clients/client-s3/commands/GetBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketAccelerateConfigurationCommand.ts @@ -55,6 +55,7 @@ export class GetBucketAccelerateConfigurationCommand extends $Command< GetBucketAccelerateConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class GetBucketAccelerateConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketAclCommand.ts b/clients/client-s3/commands/GetBucketAclCommand.ts index cf844ec9f5324..5630addb11af7 100644 --- a/clients/client-s3/commands/GetBucketAclCommand.ts +++ b/clients/client-s3/commands/GetBucketAclCommand.ts @@ -44,6 +44,7 @@ export class GetBucketAclCommand extends $Command< GetBucketAclCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class GetBucketAclCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/commands/GetBucketAnalyticsConfigurationCommand.ts index 3019a1c25488b..fd0ef9618b00c 100644 --- a/clients/client-s3/commands/GetBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketAnalyticsConfigurationCommand.ts @@ -58,6 +58,7 @@ export class GetBucketAnalyticsConfigurationCommand extends $Command< GetBucketAnalyticsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class GetBucketAnalyticsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketCorsCommand.ts b/clients/client-s3/commands/GetBucketCorsCommand.ts index 6fc2235d6a7c5..936b63bda9f45 100644 --- a/clients/client-s3/commands/GetBucketCorsCommand.ts +++ b/clients/client-s3/commands/GetBucketCorsCommand.ts @@ -49,6 +49,7 @@ export class GetBucketCorsCommand extends $Command< GetBucketCorsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class GetBucketCorsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketEncryptionCommand.ts b/clients/client-s3/commands/GetBucketEncryptionCommand.ts index 1fc50a890ed6c..d92546e0abc23 100644 --- a/clients/client-s3/commands/GetBucketEncryptionCommand.ts +++ b/clients/client-s3/commands/GetBucketEncryptionCommand.ts @@ -49,6 +49,7 @@ export class GetBucketEncryptionCommand extends $Command< GetBucketEncryptionCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class GetBucketEncryptionCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/commands/GetBucketIntelligentTieringConfigurationCommand.ts index d010b69aa7683..367451dc56721 100644 --- a/clients/client-s3/commands/GetBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketIntelligentTieringConfigurationCommand.ts @@ -55,6 +55,7 @@ export class GetBucketIntelligentTieringConfigurationCommand extends $Command< GetBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class GetBucketIntelligentTieringConfigurationCommand extends $Command< GetBucketIntelligentTieringConfigurationCommandInput, GetBucketIntelligentTieringConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketInventoryConfigurationCommand.ts b/clients/client-s3/commands/GetBucketInventoryConfigurationCommand.ts index a01adfa192703..bcc8a18a29d9a 100644 --- a/clients/client-s3/commands/GetBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketInventoryConfigurationCommand.ts @@ -58,6 +58,7 @@ export class GetBucketInventoryConfigurationCommand extends $Command< GetBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class GetBucketInventoryConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketLifecycleConfigurationCommand.ts b/clients/client-s3/commands/GetBucketLifecycleConfigurationCommand.ts index aa4c58b9834d1..2340425500ab8 100644 --- a/clients/client-s3/commands/GetBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketLifecycleConfigurationCommand.ts @@ -84,6 +84,7 @@ export class GetBucketLifecycleConfigurationCommand extends $Command< GetBucketLifecycleConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -101,8 +102,11 @@ export class GetBucketLifecycleConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketLocationCommand.ts b/clients/client-s3/commands/GetBucketLocationCommand.ts index 4e7131f0fb909..ac8631ed16e98 100644 --- a/clients/client-s3/commands/GetBucketLocationCommand.ts +++ b/clients/client-s3/commands/GetBucketLocationCommand.ts @@ -47,6 +47,7 @@ export class GetBucketLocationCommand extends $Command< GetBucketLocationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,8 +65,11 @@ export class GetBucketLocationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketLoggingCommand.ts b/clients/client-s3/commands/GetBucketLoggingCommand.ts index a21706ac3aa38..3135420e52867 100644 --- a/clients/client-s3/commands/GetBucketLoggingCommand.ts +++ b/clients/client-s3/commands/GetBucketLoggingCommand.ts @@ -44,6 +44,7 @@ export class GetBucketLoggingCommand extends $Command< GetBucketLoggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,8 +62,11 @@ export class GetBucketLoggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketMetricsConfigurationCommand.ts b/clients/client-s3/commands/GetBucketMetricsConfigurationCommand.ts index 089ece91bd23d..954df605a38bd 100644 --- a/clients/client-s3/commands/GetBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketMetricsConfigurationCommand.ts @@ -65,6 +65,7 @@ export class GetBucketMetricsConfigurationCommand extends $Command< GetBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,8 +83,11 @@ export class GetBucketMetricsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketNotificationConfigurationCommand.ts b/clients/client-s3/commands/GetBucketNotificationConfigurationCommand.ts index afc789157dabd..a715c8e68a94a 100644 --- a/clients/client-s3/commands/GetBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/commands/GetBucketNotificationConfigurationCommand.ts @@ -49,6 +49,7 @@ export class GetBucketNotificationConfigurationCommand extends $Command< GetBucketNotificationConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class GetBucketNotificationConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketOwnershipControlsCommand.ts b/clients/client-s3/commands/GetBucketOwnershipControlsCommand.ts index 020e06eaf0448..4c9651e41df4b 100644 --- a/clients/client-s3/commands/GetBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/commands/GetBucketOwnershipControlsCommand.ts @@ -46,6 +46,7 @@ export class GetBucketOwnershipControlsCommand extends $Command< GetBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,8 +64,11 @@ export class GetBucketOwnershipControlsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketPolicyCommand.ts b/clients/client-s3/commands/GetBucketPolicyCommand.ts index c32da48983bc0..b2377d5d76d9f 100644 --- a/clients/client-s3/commands/GetBucketPolicyCommand.ts +++ b/clients/client-s3/commands/GetBucketPolicyCommand.ts @@ -55,6 +55,7 @@ export class GetBucketPolicyCommand extends $Command< GetBucketPolicyCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class GetBucketPolicyCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketPolicyStatusCommand.ts b/clients/client-s3/commands/GetBucketPolicyStatusCommand.ts index e2f1470900e24..c86b2d2d2f0e1 100644 --- a/clients/client-s3/commands/GetBucketPolicyStatusCommand.ts +++ b/clients/client-s3/commands/GetBucketPolicyStatusCommand.ts @@ -59,6 +59,7 @@ export class GetBucketPolicyStatusCommand extends $Command< GetBucketPolicyStatusCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,8 +77,11 @@ export class GetBucketPolicyStatusCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketReplicationCommand.ts b/clients/client-s3/commands/GetBucketReplicationCommand.ts index ad10fad505659..b3116fe1d5041 100644 --- a/clients/client-s3/commands/GetBucketReplicationCommand.ts +++ b/clients/client-s3/commands/GetBucketReplicationCommand.ts @@ -63,6 +63,7 @@ export class GetBucketReplicationCommand extends $Command< GetBucketReplicationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,8 +81,11 @@ export class GetBucketReplicationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketRequestPaymentCommand.ts b/clients/client-s3/commands/GetBucketRequestPaymentCommand.ts index 4db6a54a07c7c..d7a033d9f4feb 100644 --- a/clients/client-s3/commands/GetBucketRequestPaymentCommand.ts +++ b/clients/client-s3/commands/GetBucketRequestPaymentCommand.ts @@ -39,6 +39,7 @@ export class GetBucketRequestPaymentCommand extends $Command< GetBucketRequestPaymentCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,8 +57,11 @@ export class GetBucketRequestPaymentCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketTaggingCommand.ts b/clients/client-s3/commands/GetBucketTaggingCommand.ts index e1f4a01164a61..80302cdad24e1 100644 --- a/clients/client-s3/commands/GetBucketTaggingCommand.ts +++ b/clients/client-s3/commands/GetBucketTaggingCommand.ts @@ -60,6 +60,7 @@ export class GetBucketTaggingCommand extends $Command< GetBucketTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,8 +78,11 @@ export class GetBucketTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketVersioningCommand.ts b/clients/client-s3/commands/GetBucketVersioningCommand.ts index 701fe52f0f351..70ea03c6fbdcc 100644 --- a/clients/client-s3/commands/GetBucketVersioningCommand.ts +++ b/clients/client-s3/commands/GetBucketVersioningCommand.ts @@ -53,6 +53,7 @@ export class GetBucketVersioningCommand extends $Command< GetBucketVersioningCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,8 +71,11 @@ export class GetBucketVersioningCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetBucketWebsiteCommand.ts b/clients/client-s3/commands/GetBucketWebsiteCommand.ts index 28ba48af50785..b20c1eb24e45c 100644 --- a/clients/client-s3/commands/GetBucketWebsiteCommand.ts +++ b/clients/client-s3/commands/GetBucketWebsiteCommand.ts @@ -49,6 +49,7 @@ export class GetBucketWebsiteCommand extends $Command< GetBucketWebsiteCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,8 +67,11 @@ export class GetBucketWebsiteCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectAclCommand.ts b/clients/client-s3/commands/GetObjectAclCommand.ts index 08fe5e8464050..99ab0cb81cac9 100644 --- a/clients/client-s3/commands/GetObjectAclCommand.ts +++ b/clients/client-s3/commands/GetObjectAclCommand.ts @@ -55,6 +55,7 @@ export class GetObjectAclCommand extends $Command< GetObjectAclCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,8 +73,11 @@ export class GetObjectAclCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectCommand.ts b/clients/client-s3/commands/GetObjectCommand.ts index 534e74e5f968e..776e595458f3f 100644 --- a/clients/client-s3/commands/GetObjectCommand.ts +++ b/clients/client-s3/commands/GetObjectCommand.ts @@ -196,6 +196,7 @@ export type GetObjectCommandOutput = GetObjectOutput & __MetadataBearer; * */ export class GetObjectCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -213,9 +214,12 @@ export class GetObjectCommand extends $Command { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectLegalHoldCommand.ts b/clients/client-s3/commands/GetObjectLegalHoldCommand.ts index 42d1d88e953c7..73a74cfb27eb9 100644 --- a/clients/client-s3/commands/GetObjectLegalHoldCommand.ts +++ b/clients/client-s3/commands/GetObjectLegalHoldCommand.ts @@ -30,6 +30,7 @@ export class GetObjectLegalHoldCommand extends $Command< GetObjectLegalHoldCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class GetObjectLegalHoldCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectLockConfigurationCommand.ts b/clients/client-s3/commands/GetObjectLockConfigurationCommand.ts index a2e3746d4f18c..46a79b3ff9512 100644 --- a/clients/client-s3/commands/GetObjectLockConfigurationCommand.ts +++ b/clients/client-s3/commands/GetObjectLockConfigurationCommand.ts @@ -32,6 +32,7 @@ export class GetObjectLockConfigurationCommand extends $Command< GetObjectLockConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,8 +50,11 @@ export class GetObjectLockConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectRetentionCommand.ts b/clients/client-s3/commands/GetObjectRetentionCommand.ts index bec04a7219bc7..3467244221dd1 100644 --- a/clients/client-s3/commands/GetObjectRetentionCommand.ts +++ b/clients/client-s3/commands/GetObjectRetentionCommand.ts @@ -30,6 +30,7 @@ export class GetObjectRetentionCommand extends $Command< GetObjectRetentionCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,8 +48,11 @@ export class GetObjectRetentionCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectTaggingCommand.ts b/clients/client-s3/commands/GetObjectTaggingCommand.ts index f9efa1573f17e..1a7b75ca82c1f 100644 --- a/clients/client-s3/commands/GetObjectTaggingCommand.ts +++ b/clients/client-s3/commands/GetObjectTaggingCommand.ts @@ -51,6 +51,7 @@ export class GetObjectTaggingCommand extends $Command< GetObjectTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,8 +69,11 @@ export class GetObjectTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetObjectTorrentCommand.ts b/clients/client-s3/commands/GetObjectTorrentCommand.ts index ac39eb8275700..7a4ef7a9e384c 100644 --- a/clients/client-s3/commands/GetObjectTorrentCommand.ts +++ b/clients/client-s3/commands/GetObjectTorrentCommand.ts @@ -45,6 +45,7 @@ export class GetObjectTorrentCommand extends $Command< GetObjectTorrentCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,8 +63,11 @@ export class GetObjectTorrentCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/GetPublicAccessBlockCommand.ts b/clients/client-s3/commands/GetPublicAccessBlockCommand.ts index 1c8fdce15225b..6c599bf448c12 100644 --- a/clients/client-s3/commands/GetPublicAccessBlockCommand.ts +++ b/clients/client-s3/commands/GetPublicAccessBlockCommand.ts @@ -68,6 +68,7 @@ export class GetPublicAccessBlockCommand extends $Command< GetPublicAccessBlockCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,8 +86,11 @@ export class GetPublicAccessBlockCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/HeadBucketCommand.ts b/clients/client-s3/commands/HeadBucketCommand.ts index cf98ec97b25d2..18b63e218be95 100644 --- a/clients/client-s3/commands/HeadBucketCommand.ts +++ b/clients/client-s3/commands/HeadBucketCommand.ts @@ -37,6 +37,7 @@ export class HeadBucketCommand extends $Command< HeadBucketCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,8 +55,11 @@ export class HeadBucketCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/HeadObjectCommand.ts b/clients/client-s3/commands/HeadObjectCommand.ts index 6c71527e903a9..1452d543eddab 100644 --- a/clients/client-s3/commands/HeadObjectCommand.ts +++ b/clients/client-s3/commands/HeadObjectCommand.ts @@ -136,6 +136,7 @@ export class HeadObjectCommand extends $Command< HeadObjectCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -153,9 +154,12 @@ export class HeadObjectCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListBucketAnalyticsConfigurationsCommand.ts b/clients/client-s3/commands/ListBucketAnalyticsConfigurationsCommand.ts index 477753f2afdac..b9eaec85cb1ee 100644 --- a/clients/client-s3/commands/ListBucketAnalyticsConfigurationsCommand.ts +++ b/clients/client-s3/commands/ListBucketAnalyticsConfigurationsCommand.ts @@ -68,6 +68,7 @@ export class ListBucketAnalyticsConfigurationsCommand extends $Command< ListBucketAnalyticsConfigurationsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,8 +86,11 @@ export class ListBucketAnalyticsConfigurationsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListBucketIntelligentTieringConfigurationsCommand.ts b/clients/client-s3/commands/ListBucketIntelligentTieringConfigurationsCommand.ts index b8d460d8c0e92..9d02180a23bbe 100644 --- a/clients/client-s3/commands/ListBucketIntelligentTieringConfigurationsCommand.ts +++ b/clients/client-s3/commands/ListBucketIntelligentTieringConfigurationsCommand.ts @@ -55,6 +55,7 @@ export class ListBucketIntelligentTieringConfigurationsCommand extends $Command< ListBucketIntelligentTieringConfigurationsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,8 +76,11 @@ export class ListBucketIntelligentTieringConfigurationsCommand extends $Command< ListBucketIntelligentTieringConfigurationsCommandInput, ListBucketIntelligentTieringConfigurationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListBucketInventoryConfigurationsCommand.ts b/clients/client-s3/commands/ListBucketInventoryConfigurationsCommand.ts index 0adc8057ff381..f9e2cdf023c2b 100644 --- a/clients/client-s3/commands/ListBucketInventoryConfigurationsCommand.ts +++ b/clients/client-s3/commands/ListBucketInventoryConfigurationsCommand.ts @@ -67,6 +67,7 @@ export class ListBucketInventoryConfigurationsCommand extends $Command< ListBucketInventoryConfigurationsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,8 +85,11 @@ export class ListBucketInventoryConfigurationsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListBucketMetricsConfigurationsCommand.ts b/clients/client-s3/commands/ListBucketMetricsConfigurationsCommand.ts index d4ae3ef9bde6e..a2eee5e524cfd 100644 --- a/clients/client-s3/commands/ListBucketMetricsConfigurationsCommand.ts +++ b/clients/client-s3/commands/ListBucketMetricsConfigurationsCommand.ts @@ -69,6 +69,7 @@ export class ListBucketMetricsConfigurationsCommand extends $Command< ListBucketMetricsConfigurationsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,8 +87,11 @@ export class ListBucketMetricsConfigurationsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListBucketsCommand.ts b/clients/client-s3/commands/ListBucketsCommand.ts index c516180616d0e..ba41aa5a64645 100644 --- a/clients/client-s3/commands/ListBucketsCommand.ts +++ b/clients/client-s3/commands/ListBucketsCommand.ts @@ -28,6 +28,7 @@ export class ListBucketsCommand extends $Command< ListBucketsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBucketsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListMultipartUploadsCommand.ts b/clients/client-s3/commands/ListMultipartUploadsCommand.ts index 719002821847e..9a3f0235b48d8 100644 --- a/clients/client-s3/commands/ListMultipartUploadsCommand.ts +++ b/clients/client-s3/commands/ListMultipartUploadsCommand.ts @@ -79,6 +79,7 @@ export class ListMultipartUploadsCommand extends $Command< ListMultipartUploadsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,8 +97,11 @@ export class ListMultipartUploadsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListObjectVersionsCommand.ts b/clients/client-s3/commands/ListObjectVersionsCommand.ts index 429b0104a99aa..cfa18a0f575ec 100644 --- a/clients/client-s3/commands/ListObjectVersionsCommand.ts +++ b/clients/client-s3/commands/ListObjectVersionsCommand.ts @@ -61,6 +61,7 @@ export class ListObjectVersionsCommand extends $Command< ListObjectVersionsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,8 +79,11 @@ export class ListObjectVersionsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListObjectsCommand.ts b/clients/client-s3/commands/ListObjectsCommand.ts index e7c5101c72fd1..33d951c700378 100644 --- a/clients/client-s3/commands/ListObjectsCommand.ts +++ b/clients/client-s3/commands/ListObjectsCommand.ts @@ -66,6 +66,7 @@ export class ListObjectsCommand extends $Command< ListObjectsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,8 +84,11 @@ export class ListObjectsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListObjectsV2Command.ts b/clients/client-s3/commands/ListObjectsV2Command.ts index 40f13cdd01353..b56ab2d14f776 100644 --- a/clients/client-s3/commands/ListObjectsV2Command.ts +++ b/clients/client-s3/commands/ListObjectsV2Command.ts @@ -66,6 +66,7 @@ export class ListObjectsV2Command extends $Command< ListObjectsV2CommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,8 +84,11 @@ export class ListObjectsV2Command extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/ListPartsCommand.ts b/clients/client-s3/commands/ListPartsCommand.ts index 1cf938999a6dc..aad5b5b6d06f3 100644 --- a/clients/client-s3/commands/ListPartsCommand.ts +++ b/clients/client-s3/commands/ListPartsCommand.ts @@ -66,6 +66,7 @@ export type ListPartsCommandOutput = ListPartsOutput & __MetadataBearer; * */ export class ListPartsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,8 +84,11 @@ export class ListPartsCommand extends $Command { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketAccelerateConfigurationCommand.ts b/clients/client-s3/commands/PutBucketAccelerateConfigurationCommand.ts index 344c2bcae4192..7123615e45708 100644 --- a/clients/client-s3/commands/PutBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketAccelerateConfigurationCommand.ts @@ -74,6 +74,7 @@ export class PutBucketAccelerateConfigurationCommand extends $Command< PutBucketAccelerateConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,8 +92,11 @@ export class PutBucketAccelerateConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketAclCommand.ts b/clients/client-s3/commands/PutBucketAclCommand.ts index b148a89577e34..b1889690facd9 100644 --- a/clients/client-s3/commands/PutBucketAclCommand.ts +++ b/clients/client-s3/commands/PutBucketAclCommand.ts @@ -219,6 +219,7 @@ export class PutBucketAclCommand extends $Command< PutBucketAclCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -236,8 +237,11 @@ export class PutBucketAclCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/commands/PutBucketAnalyticsConfigurationCommand.ts index f3a888da98897..afd2c4a49ae43 100644 --- a/clients/client-s3/commands/PutBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketAnalyticsConfigurationCommand.ts @@ -144,6 +144,7 @@ export class PutBucketAnalyticsConfigurationCommand extends $Command< PutBucketAnalyticsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -161,8 +162,11 @@ export class PutBucketAnalyticsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketCorsCommand.ts b/clients/client-s3/commands/PutBucketCorsCommand.ts index 74f65d0196a6c..ac90d36252a14 100644 --- a/clients/client-s3/commands/PutBucketCorsCommand.ts +++ b/clients/client-s3/commands/PutBucketCorsCommand.ts @@ -86,6 +86,7 @@ export class PutBucketCorsCommand extends $Command< PutBucketCorsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,9 +104,12 @@ export class PutBucketCorsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketEncryptionCommand.ts b/clients/client-s3/commands/PutBucketEncryptionCommand.ts index 55b1b699c3461..79c826b6d2831 100644 --- a/clients/client-s3/commands/PutBucketEncryptionCommand.ts +++ b/clients/client-s3/commands/PutBucketEncryptionCommand.ts @@ -61,6 +61,7 @@ export class PutBucketEncryptionCommand extends $Command< PutBucketEncryptionCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,8 +79,11 @@ export class PutBucketEncryptionCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/commands/PutBucketIntelligentTieringConfigurationCommand.ts index 891dc4c5b553c..86600a3110da3 100644 --- a/clients/client-s3/commands/PutBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketIntelligentTieringConfigurationCommand.ts @@ -51,6 +51,7 @@ export class PutBucketIntelligentTieringConfigurationCommand extends $Command< PutBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,8 +72,11 @@ export class PutBucketIntelligentTieringConfigurationCommand extends $Command< PutBucketIntelligentTieringConfigurationCommandInput, PutBucketIntelligentTieringConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketInventoryConfigurationCommand.ts b/clients/client-s3/commands/PutBucketInventoryConfigurationCommand.ts index dd096fceaac08..ac1ad304380aa 100644 --- a/clients/client-s3/commands/PutBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketInventoryConfigurationCommand.ts @@ -129,6 +129,7 @@ export class PutBucketInventoryConfigurationCommand extends $Command< PutBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -146,8 +147,11 @@ export class PutBucketInventoryConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketLifecycleConfigurationCommand.ts b/clients/client-s3/commands/PutBucketLifecycleConfigurationCommand.ts index a8523684ab71a..aa08855c3eb02 100644 --- a/clients/client-s3/commands/PutBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketLifecycleConfigurationCommand.ts @@ -123,6 +123,7 @@ export class PutBucketLifecycleConfigurationCommand extends $Command< PutBucketLifecycleConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -140,9 +141,12 @@ export class PutBucketLifecycleConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketLoggingCommand.ts b/clients/client-s3/commands/PutBucketLoggingCommand.ts index 95df0c2049d48..f92e7cfbbc89b 100644 --- a/clients/client-s3/commands/PutBucketLoggingCommand.ts +++ b/clients/client-s3/commands/PutBucketLoggingCommand.ts @@ -108,6 +108,7 @@ export class PutBucketLoggingCommand extends $Command< PutBucketLoggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -125,8 +126,11 @@ export class PutBucketLoggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketMetricsConfigurationCommand.ts b/clients/client-s3/commands/PutBucketMetricsConfigurationCommand.ts index 4902a7acdab33..97752c4f6a773 100644 --- a/clients/client-s3/commands/PutBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketMetricsConfigurationCommand.ts @@ -84,6 +84,7 @@ export class PutBucketMetricsConfigurationCommand extends $Command< PutBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -101,8 +102,11 @@ export class PutBucketMetricsConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketNotificationConfigurationCommand.ts b/clients/client-s3/commands/PutBucketNotificationConfigurationCommand.ts index 8e160e5ca6831..afb1a1acebf04 100644 --- a/clients/client-s3/commands/PutBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/commands/PutBucketNotificationConfigurationCommand.ts @@ -90,6 +90,7 @@ export class PutBucketNotificationConfigurationCommand extends $Command< PutBucketNotificationConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -107,8 +108,11 @@ export class PutBucketNotificationConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketOwnershipControlsCommand.ts b/clients/client-s3/commands/PutBucketOwnershipControlsCommand.ts index a4b7c3e7b5a74..3ce8bb1d96e6b 100644 --- a/clients/client-s3/commands/PutBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/commands/PutBucketOwnershipControlsCommand.ts @@ -45,6 +45,7 @@ export class PutBucketOwnershipControlsCommand extends $Command< PutBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,8 +63,11 @@ export class PutBucketOwnershipControlsCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketPolicyCommand.ts b/clients/client-s3/commands/PutBucketPolicyCommand.ts index 09ffc85726933..6e73f6de4dbe2 100644 --- a/clients/client-s3/commands/PutBucketPolicyCommand.ts +++ b/clients/client-s3/commands/PutBucketPolicyCommand.ts @@ -62,6 +62,7 @@ export class PutBucketPolicyCommand extends $Command< PutBucketPolicyCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,9 +80,12 @@ export class PutBucketPolicyCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketReplicationCommand.ts b/clients/client-s3/commands/PutBucketReplicationCommand.ts index 183734d66bcd6..5e125f2051ecd 100644 --- a/clients/client-s3/commands/PutBucketReplicationCommand.ts +++ b/clients/client-s3/commands/PutBucketReplicationCommand.ts @@ -93,6 +93,7 @@ export class PutBucketReplicationCommand extends $Command< PutBucketReplicationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -110,9 +111,12 @@ export class PutBucketReplicationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketRequestPaymentCommand.ts b/clients/client-s3/commands/PutBucketRequestPaymentCommand.ts index 9c98e6a68aa20..98b0a03fdee4a 100644 --- a/clients/client-s3/commands/PutBucketRequestPaymentCommand.ts +++ b/clients/client-s3/commands/PutBucketRequestPaymentCommand.ts @@ -47,6 +47,7 @@ export class PutBucketRequestPaymentCommand extends $Command< PutBucketRequestPaymentCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,8 +65,11 @@ export class PutBucketRequestPaymentCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketTaggingCommand.ts b/clients/client-s3/commands/PutBucketTaggingCommand.ts index 06dff91db4644..4e9ec1bf16075 100644 --- a/clients/client-s3/commands/PutBucketTaggingCommand.ts +++ b/clients/client-s3/commands/PutBucketTaggingCommand.ts @@ -107,6 +107,7 @@ export class PutBucketTaggingCommand extends $Command< PutBucketTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -124,9 +125,12 @@ export class PutBucketTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketVersioningCommand.ts b/clients/client-s3/commands/PutBucketVersioningCommand.ts index 61c710cd93bfd..8182ce40726c4 100644 --- a/clients/client-s3/commands/PutBucketVersioningCommand.ts +++ b/clients/client-s3/commands/PutBucketVersioningCommand.ts @@ -77,6 +77,7 @@ export class PutBucketVersioningCommand extends $Command< PutBucketVersioningCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,8 +95,11 @@ export class PutBucketVersioningCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutBucketWebsiteCommand.ts b/clients/client-s3/commands/PutBucketWebsiteCommand.ts index 0eed62e579bd4..5bc16cc76b8b8 100644 --- a/clients/client-s3/commands/PutBucketWebsiteCommand.ts +++ b/clients/client-s3/commands/PutBucketWebsiteCommand.ts @@ -154,6 +154,7 @@ export class PutBucketWebsiteCommand extends $Command< PutBucketWebsiteCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -171,8 +172,11 @@ export class PutBucketWebsiteCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectAclCommand.ts b/clients/client-s3/commands/PutObjectAclCommand.ts index 6d13e055ff909..47a29dbc89ef8 100644 --- a/clients/client-s3/commands/PutObjectAclCommand.ts +++ b/clients/client-s3/commands/PutObjectAclCommand.ts @@ -207,6 +207,7 @@ export class PutObjectAclCommand extends $Command< PutObjectAclCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -224,8 +225,11 @@ export class PutObjectAclCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectCommand.ts b/clients/client-s3/commands/PutObjectCommand.ts index 4ab4b38259f21..d2a0f1b48fc6d 100644 --- a/clients/client-s3/commands/PutObjectCommand.ts +++ b/clients/client-s3/commands/PutObjectCommand.ts @@ -105,6 +105,7 @@ export type PutObjectCommandOutput = PutObjectOutput & __MetadataBearer; * */ export class PutObjectCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -122,9 +123,12 @@ export class PutObjectCommand extends $Command { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectLegalHoldCommand.ts b/clients/client-s3/commands/PutObjectLegalHoldCommand.ts index d888930686cce..ee0b84dfe97db 100644 --- a/clients/client-s3/commands/PutObjectLegalHoldCommand.ts +++ b/clients/client-s3/commands/PutObjectLegalHoldCommand.ts @@ -40,6 +40,7 @@ export class PutObjectLegalHoldCommand extends $Command< PutObjectLegalHoldCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,8 +58,11 @@ export class PutObjectLegalHoldCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectLockConfigurationCommand.ts b/clients/client-s3/commands/PutObjectLockConfigurationCommand.ts index e72f8dc82f960..936d0e4b4c92c 100644 --- a/clients/client-s3/commands/PutObjectLockConfigurationCommand.ts +++ b/clients/client-s3/commands/PutObjectLockConfigurationCommand.ts @@ -47,6 +47,7 @@ export class PutObjectLockConfigurationCommand extends $Command< PutObjectLockConfigurationCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,8 +65,11 @@ export class PutObjectLockConfigurationCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectRetentionCommand.ts b/clients/client-s3/commands/PutObjectRetentionCommand.ts index 4b417885c656e..19053a5ad7b29 100644 --- a/clients/client-s3/commands/PutObjectRetentionCommand.ts +++ b/clients/client-s3/commands/PutObjectRetentionCommand.ts @@ -40,6 +40,7 @@ export class PutObjectRetentionCommand extends $Command< PutObjectRetentionCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,8 +58,11 @@ export class PutObjectRetentionCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutObjectTaggingCommand.ts b/clients/client-s3/commands/PutObjectTaggingCommand.ts index 62a207d4c8a14..ab087344f6920 100644 --- a/clients/client-s3/commands/PutObjectTaggingCommand.ts +++ b/clients/client-s3/commands/PutObjectTaggingCommand.ts @@ -127,6 +127,7 @@ export class PutObjectTaggingCommand extends $Command< PutObjectTaggingCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -144,8 +145,11 @@ export class PutObjectTaggingCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/PutPublicAccessBlockCommand.ts b/clients/client-s3/commands/PutPublicAccessBlockCommand.ts index 44eeed73dedb2..732f21975a506 100644 --- a/clients/client-s3/commands/PutPublicAccessBlockCommand.ts +++ b/clients/client-s3/commands/PutPublicAccessBlockCommand.ts @@ -73,6 +73,7 @@ export class PutPublicAccessBlockCommand extends $Command< PutPublicAccessBlockCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,8 +91,11 @@ export class PutPublicAccessBlockCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/RestoreObjectCommand.ts b/clients/client-s3/commands/RestoreObjectCommand.ts index 2a2760e40a33a..1e30290b77f26 100644 --- a/clients/client-s3/commands/RestoreObjectCommand.ts +++ b/clients/client-s3/commands/RestoreObjectCommand.ts @@ -321,6 +321,7 @@ export class RestoreObjectCommand extends $Command< RestoreObjectCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -338,8 +339,11 @@ export class RestoreObjectCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/SelectObjectContentCommand.ts b/clients/client-s3/commands/SelectObjectContentCommand.ts index 10f5e461c0f54..d2c6adc903884 100644 --- a/clients/client-s3/commands/SelectObjectContentCommand.ts +++ b/clients/client-s3/commands/SelectObjectContentCommand.ts @@ -148,6 +148,7 @@ export class SelectObjectContentCommand extends $Command< SelectObjectContentCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -165,9 +166,12 @@ export class SelectObjectContentCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/UploadPartCommand.ts b/clients/client-s3/commands/UploadPartCommand.ts index 5739a125209ee..7fce38c93dd1b 100644 --- a/clients/client-s3/commands/UploadPartCommand.ts +++ b/clients/client-s3/commands/UploadPartCommand.ts @@ -169,6 +169,7 @@ export class UploadPartCommand extends $Command< UploadPartCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -186,9 +187,12 @@ export class UploadPartCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3/commands/UploadPartCopyCommand.ts b/clients/client-s3/commands/UploadPartCopyCommand.ts index 245feed988eae..5f18a70018cac 100644 --- a/clients/client-s3/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/commands/UploadPartCopyCommand.ts @@ -209,6 +209,7 @@ export class UploadPartCopyCommand extends $Command< UploadPartCopyCommandOutput, S3ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -226,10 +227,13 @@ export class UploadPartCopyCommand extends $Command< configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); - this.middlewareStack.use(getSsecPlugin(configuration)); - this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); + this.middlewareStack.use(getSsecPlugin(configuration)); + this.middlewareStack.use(getBucketEndpointPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3outposts/commands/CreateEndpointCommand.ts b/clients/client-s3outposts/commands/CreateEndpointCommand.ts index 8cb234e4e64ac..c9cfa369b919f 100644 --- a/clients/client-s3outposts/commands/CreateEndpointCommand.ts +++ b/clients/client-s3outposts/commands/CreateEndpointCommand.ts @@ -45,6 +45,7 @@ export class CreateEndpointCommand extends $Command< CreateEndpointCommandOutput, S3OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateEndpointCommand extends $Command< configuration: S3OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3outposts/commands/DeleteEndpointCommand.ts b/clients/client-s3outposts/commands/DeleteEndpointCommand.ts index 801a5f3f2ff38..d1940dfc438ee 100644 --- a/clients/client-s3outposts/commands/DeleteEndpointCommand.ts +++ b/clients/client-s3outposts/commands/DeleteEndpointCommand.ts @@ -46,6 +46,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, S3OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DeleteEndpointCommand extends $Command< configuration: S3OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-s3outposts/commands/ListEndpointsCommand.ts b/clients/client-s3outposts/commands/ListEndpointsCommand.ts index 6e06f17108c30..b014792fdde24 100644 --- a/clients/client-s3outposts/commands/ListEndpointsCommand.ts +++ b/clients/client-s3outposts/commands/ListEndpointsCommand.ts @@ -46,6 +46,7 @@ export class ListEndpointsCommand extends $Command< ListEndpointsCommandOutput, S3OutpostsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class ListEndpointsCommand extends $Command< configuration: S3OutpostsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-a2i-runtime/commands/DeleteHumanLoopCommand.ts b/clients/client-sagemaker-a2i-runtime/commands/DeleteHumanLoopCommand.ts index ef0f95082e4e5..78ca4f177a597 100644 --- a/clients/client-sagemaker-a2i-runtime/commands/DeleteHumanLoopCommand.ts +++ b/clients/client-sagemaker-a2i-runtime/commands/DeleteHumanLoopCommand.ts @@ -32,6 +32,7 @@ export class DeleteHumanLoopCommand extends $Command< DeleteHumanLoopCommandOutput, SageMakerA2IRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteHumanLoopCommand extends $Command< configuration: SageMakerA2IRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-a2i-runtime/commands/DescribeHumanLoopCommand.ts b/clients/client-sagemaker-a2i-runtime/commands/DescribeHumanLoopCommand.ts index e3509bbe2aad5..64d6b02da1ba8 100644 --- a/clients/client-sagemaker-a2i-runtime/commands/DescribeHumanLoopCommand.ts +++ b/clients/client-sagemaker-a2i-runtime/commands/DescribeHumanLoopCommand.ts @@ -32,6 +32,7 @@ export class DescribeHumanLoopCommand extends $Command< DescribeHumanLoopCommandOutput, SageMakerA2IRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeHumanLoopCommand extends $Command< configuration: SageMakerA2IRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-a2i-runtime/commands/ListHumanLoopsCommand.ts b/clients/client-sagemaker-a2i-runtime/commands/ListHumanLoopsCommand.ts index acc4f159819f7..d88b1408a31f6 100644 --- a/clients/client-sagemaker-a2i-runtime/commands/ListHumanLoopsCommand.ts +++ b/clients/client-sagemaker-a2i-runtime/commands/ListHumanLoopsCommand.ts @@ -32,6 +32,7 @@ export class ListHumanLoopsCommand extends $Command< ListHumanLoopsCommandOutput, SageMakerA2IRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListHumanLoopsCommand extends $Command< configuration: SageMakerA2IRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-a2i-runtime/commands/StartHumanLoopCommand.ts b/clients/client-sagemaker-a2i-runtime/commands/StartHumanLoopCommand.ts index 1f46e4884f6e0..b54d3b21dd8c7 100644 --- a/clients/client-sagemaker-a2i-runtime/commands/StartHumanLoopCommand.ts +++ b/clients/client-sagemaker-a2i-runtime/commands/StartHumanLoopCommand.ts @@ -32,6 +32,7 @@ export class StartHumanLoopCommand extends $Command< StartHumanLoopCommandOutput, SageMakerA2IRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartHumanLoopCommand extends $Command< configuration: SageMakerA2IRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-a2i-runtime/commands/StopHumanLoopCommand.ts b/clients/client-sagemaker-a2i-runtime/commands/StopHumanLoopCommand.ts index 1b64341180326..4e4cf077d5f0b 100644 --- a/clients/client-sagemaker-a2i-runtime/commands/StopHumanLoopCommand.ts +++ b/clients/client-sagemaker-a2i-runtime/commands/StopHumanLoopCommand.ts @@ -32,6 +32,7 @@ export class StopHumanLoopCommand extends $Command< StopHumanLoopCommandOutput, SageMakerA2IRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StopHumanLoopCommand extends $Command< configuration: SageMakerA2IRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-edge/commands/GetDeviceRegistrationCommand.ts b/clients/client-sagemaker-edge/commands/GetDeviceRegistrationCommand.ts index b78cc6d0ee2f0..69e450e897a75 100644 --- a/clients/client-sagemaker-edge/commands/GetDeviceRegistrationCommand.ts +++ b/clients/client-sagemaker-edge/commands/GetDeviceRegistrationCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceRegistrationCommand extends $Command< GetDeviceRegistrationCommandOutput, SagemakerEdgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceRegistrationCommand extends $Command< configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-edge/commands/SendHeartbeatCommand.ts b/clients/client-sagemaker-edge/commands/SendHeartbeatCommand.ts index 5db06d92bc610..00c73bf926e39 100644 --- a/clients/client-sagemaker-edge/commands/SendHeartbeatCommand.ts +++ b/clients/client-sagemaker-edge/commands/SendHeartbeatCommand.ts @@ -28,6 +28,7 @@ export class SendHeartbeatCommand extends $Command< SendHeartbeatCommandOutput, SagemakerEdgeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendHeartbeatCommand extends $Command< configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-featurestore-runtime/commands/DeleteRecordCommand.ts b/clients/client-sagemaker-featurestore-runtime/commands/DeleteRecordCommand.ts index fe2f3f58dcbed..f82b25a50e212 100644 --- a/clients/client-sagemaker-featurestore-runtime/commands/DeleteRecordCommand.ts +++ b/clients/client-sagemaker-featurestore-runtime/commands/DeleteRecordCommand.ts @@ -34,6 +34,7 @@ export class DeleteRecordCommand extends $Command< DeleteRecordCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteRecordCommand extends $Command< configuration: SageMakerFeatureStoreRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-featurestore-runtime/commands/GetRecordCommand.ts b/clients/client-sagemaker-featurestore-runtime/commands/GetRecordCommand.ts index 6cfcc4e10e4bc..2177f20af25c9 100644 --- a/clients/client-sagemaker-featurestore-runtime/commands/GetRecordCommand.ts +++ b/clients/client-sagemaker-featurestore-runtime/commands/GetRecordCommand.ts @@ -34,6 +34,7 @@ export class GetRecordCommand extends $Command< GetRecordCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetRecordCommand extends $Command< configuration: SageMakerFeatureStoreRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-featurestore-runtime/commands/PutRecordCommand.ts b/clients/client-sagemaker-featurestore-runtime/commands/PutRecordCommand.ts index ecc399f1d4794..b0c5e985532f4 100644 --- a/clients/client-sagemaker-featurestore-runtime/commands/PutRecordCommand.ts +++ b/clients/client-sagemaker-featurestore-runtime/commands/PutRecordCommand.ts @@ -36,6 +36,7 @@ export class PutRecordCommand extends $Command< PutRecordCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class PutRecordCommand extends $Command< configuration: SageMakerFeatureStoreRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker-runtime/commands/InvokeEndpointCommand.ts b/clients/client-sagemaker-runtime/commands/InvokeEndpointCommand.ts index f2fc2314c8de6..169dbde883a6c 100644 --- a/clients/client-sagemaker-runtime/commands/InvokeEndpointCommand.ts +++ b/clients/client-sagemaker-runtime/commands/InvokeEndpointCommand.ts @@ -47,6 +47,7 @@ export class InvokeEndpointCommand extends $Command< InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class InvokeEndpointCommand extends $Command< configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/AddAssociationCommand.ts b/clients/client-sagemaker/commands/AddAssociationCommand.ts index 973959d2d4928..14f2a753d52aa 100644 --- a/clients/client-sagemaker/commands/AddAssociationCommand.ts +++ b/clients/client-sagemaker/commands/AddAssociationCommand.ts @@ -32,6 +32,7 @@ export class AddAssociationCommand extends $Command< AddAssociationCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AddAssociationCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/AddTagsCommand.ts b/clients/client-sagemaker/commands/AddTagsCommand.ts index 8a7c9c872bb8f..b1230d0cf90e0 100644 --- a/clients/client-sagemaker/commands/AddTagsCommand.ts +++ b/clients/client-sagemaker/commands/AddTagsCommand.ts @@ -37,6 +37,7 @@ export type AddTagsCommandOutput = AddTagsOutput & __MetadataBearer; * */ export class AddTagsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AddTagsCommand 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-sagemaker/commands/AssociateTrialComponentCommand.ts b/clients/client-sagemaker/commands/AssociateTrialComponentCommand.ts index 0412c102dc5f6..f35b308c10cee 100644 --- a/clients/client-sagemaker/commands/AssociateTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/AssociateTrialComponentCommand.ts @@ -29,6 +29,7 @@ export class AssociateTrialComponentCommand extends $Command< AssociateTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateActionCommand.ts b/clients/client-sagemaker/commands/CreateActionCommand.ts index 44e748b532d2f..d74fe028d21c7 100644 --- a/clients/client-sagemaker/commands/CreateActionCommand.ts +++ b/clients/client-sagemaker/commands/CreateActionCommand.ts @@ -32,6 +32,7 @@ export class CreateActionCommand extends $Command< CreateActionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateActionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateAlgorithmCommand.ts b/clients/client-sagemaker/commands/CreateAlgorithmCommand.ts index ca572160d44d7..c94ac11ceb981 100644 --- a/clients/client-sagemaker/commands/CreateAlgorithmCommand.ts +++ b/clients/client-sagemaker/commands/CreateAlgorithmCommand.ts @@ -29,6 +29,7 @@ export class CreateAlgorithmCommand extends $Command< CreateAlgorithmCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateAlgorithmCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateAppCommand.ts b/clients/client-sagemaker/commands/CreateAppCommand.ts index 545046913b910..d44a2eaf0bdb8 100644 --- a/clients/client-sagemaker/commands/CreateAppCommand.ts +++ b/clients/client-sagemaker/commands/CreateAppCommand.ts @@ -30,6 +30,7 @@ export class CreateAppCommand extends $Command< CreateAppCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAppCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateAppImageConfigCommand.ts b/clients/client-sagemaker/commands/CreateAppImageConfigCommand.ts index 26ab8a33f736f..c7c7cd72f81f8 100644 --- a/clients/client-sagemaker/commands/CreateAppImageConfigCommand.ts +++ b/clients/client-sagemaker/commands/CreateAppImageConfigCommand.ts @@ -30,6 +30,7 @@ export class CreateAppImageConfigCommand extends $Command< CreateAppImageConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateAppImageConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateArtifactCommand.ts b/clients/client-sagemaker/commands/CreateArtifactCommand.ts index 74e3fed5687db..d400adc8ebb4e 100644 --- a/clients/client-sagemaker/commands/CreateArtifactCommand.ts +++ b/clients/client-sagemaker/commands/CreateArtifactCommand.ts @@ -32,6 +32,7 @@ export class CreateArtifactCommand extends $Command< CreateArtifactCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateArtifactCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateAutoMLJobCommand.ts b/clients/client-sagemaker/commands/CreateAutoMLJobCommand.ts index c9e88a500679f..aec227d810873 100644 --- a/clients/client-sagemaker/commands/CreateAutoMLJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateAutoMLJobCommand.ts @@ -33,6 +33,7 @@ export class CreateAutoMLJobCommand extends $Command< CreateAutoMLJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAutoMLJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateCodeRepositoryCommand.ts b/clients/client-sagemaker/commands/CreateCodeRepositoryCommand.ts index f4801cb620476..54387e8484177 100644 --- a/clients/client-sagemaker/commands/CreateCodeRepositoryCommand.ts +++ b/clients/client-sagemaker/commands/CreateCodeRepositoryCommand.ts @@ -34,6 +34,7 @@ export class CreateCodeRepositoryCommand extends $Command< CreateCodeRepositoryCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateCodeRepositoryCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateCompilationJobCommand.ts b/clients/client-sagemaker/commands/CreateCompilationJobCommand.ts index 582f6c8c97c54..d61b2caf5d2ab 100644 --- a/clients/client-sagemaker/commands/CreateCompilationJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateCompilationJobCommand.ts @@ -59,6 +59,7 @@ export class CreateCompilationJobCommand extends $Command< CreateCompilationJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateCompilationJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateContextCommand.ts b/clients/client-sagemaker/commands/CreateContextCommand.ts index 12e837515d236..54c902a435fd1 100644 --- a/clients/client-sagemaker/commands/CreateContextCommand.ts +++ b/clients/client-sagemaker/commands/CreateContextCommand.ts @@ -32,6 +32,7 @@ export class CreateContextCommand extends $Command< CreateContextCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateContextCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateDataQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/CreateDataQualityJobDefinitionCommand.ts index 7cddc488c31af..f9b45848b6f9a 100644 --- a/clients/client-sagemaker/commands/CreateDataQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/CreateDataQualityJobDefinitionCommand.ts @@ -29,6 +29,7 @@ export class CreateDataQualityJobDefinitionCommand extends $Command< CreateDataQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateDataQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateDeviceFleetCommand.ts b/clients/client-sagemaker/commands/CreateDeviceFleetCommand.ts index 5a2a257d84c88..0bc7b35ecf888 100644 --- a/clients/client-sagemaker/commands/CreateDeviceFleetCommand.ts +++ b/clients/client-sagemaker/commands/CreateDeviceFleetCommand.ts @@ -28,6 +28,7 @@ export class CreateDeviceFleetCommand extends $Command< CreateDeviceFleetCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDeviceFleetCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateDomainCommand.ts b/clients/client-sagemaker/commands/CreateDomainCommand.ts index a9832cc590598..7c2fc011a3e9d 100644 --- a/clients/client-sagemaker/commands/CreateDomainCommand.ts +++ b/clients/client-sagemaker/commands/CreateDomainCommand.ts @@ -70,6 +70,7 @@ export class CreateDomainCommand extends $Command< CreateDomainCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class CreateDomainCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateEdgePackagingJobCommand.ts b/clients/client-sagemaker/commands/CreateEdgePackagingJobCommand.ts index 4ecfa16333b62..973f3faa5f076 100644 --- a/clients/client-sagemaker/commands/CreateEdgePackagingJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateEdgePackagingJobCommand.ts @@ -28,6 +28,7 @@ export class CreateEdgePackagingJobCommand extends $Command< CreateEdgePackagingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateEdgePackagingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateEndpointCommand.ts b/clients/client-sagemaker/commands/CreateEndpointCommand.ts index 3eb6555f6168a..b32737684f41f 100644 --- a/clients/client-sagemaker/commands/CreateEndpointCommand.ts +++ b/clients/client-sagemaker/commands/CreateEndpointCommand.ts @@ -104,6 +104,7 @@ export class CreateEndpointCommand extends $Command< CreateEndpointCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -121,7 +122,10 @@ export class CreateEndpointCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateEndpointConfigCommand.ts b/clients/client-sagemaker/commands/CreateEndpointConfigCommand.ts index 6f319dda0d44d..8ccf3da782962 100644 --- a/clients/client-sagemaker/commands/CreateEndpointConfigCommand.ts +++ b/clients/client-sagemaker/commands/CreateEndpointConfigCommand.ts @@ -61,6 +61,7 @@ export class CreateEndpointConfigCommand extends $Command< CreateEndpointConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class CreateEndpointConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateExperimentCommand.ts b/clients/client-sagemaker/commands/CreateExperimentCommand.ts index 5e64a55e5596e..b3d32829a83c1 100644 --- a/clients/client-sagemaker/commands/CreateExperimentCommand.ts +++ b/clients/client-sagemaker/commands/CreateExperimentCommand.ts @@ -44,6 +44,7 @@ export class CreateExperimentCommand extends $Command< CreateExperimentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateExperimentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateFeatureGroupCommand.ts b/clients/client-sagemaker/commands/CreateFeatureGroupCommand.ts index 216d1efb78aad..9a5833c275599 100644 --- a/clients/client-sagemaker/commands/CreateFeatureGroupCommand.ts +++ b/clients/client-sagemaker/commands/CreateFeatureGroupCommand.ts @@ -40,6 +40,7 @@ export class CreateFeatureGroupCommand extends $Command< CreateFeatureGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class CreateFeatureGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateFlowDefinitionCommand.ts b/clients/client-sagemaker/commands/CreateFlowDefinitionCommand.ts index 56cbb97af9c57..bf60bb4be4d28 100644 --- a/clients/client-sagemaker/commands/CreateFlowDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/CreateFlowDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateFlowDefinitionCommand extends $Command< CreateFlowDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFlowDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateHumanTaskUiCommand.ts b/clients/client-sagemaker/commands/CreateHumanTaskUiCommand.ts index 7ea537b7d08b7..f59433c67dfc4 100644 --- a/clients/client-sagemaker/commands/CreateHumanTaskUiCommand.ts +++ b/clients/client-sagemaker/commands/CreateHumanTaskUiCommand.ts @@ -28,6 +28,7 @@ export class CreateHumanTaskUiCommand extends $Command< CreateHumanTaskUiCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateHumanTaskUiCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateHyperParameterTuningJobCommand.ts b/clients/client-sagemaker/commands/CreateHyperParameterTuningJobCommand.ts index 4c7e2c785c4bf..669596ee82400 100644 --- a/clients/client-sagemaker/commands/CreateHyperParameterTuningJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateHyperParameterTuningJobCommand.ts @@ -32,6 +32,7 @@ export class CreateHyperParameterTuningJobCommand extends $Command< CreateHyperParameterTuningJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateHyperParameterTuningJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateImageCommand.ts b/clients/client-sagemaker/commands/CreateImageCommand.ts index 1802d4724f492..ae76e925363ae 100644 --- a/clients/client-sagemaker/commands/CreateImageCommand.ts +++ b/clients/client-sagemaker/commands/CreateImageCommand.ts @@ -30,6 +30,7 @@ export class CreateImageCommand extends $Command< CreateImageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateImageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateImageVersionCommand.ts b/clients/client-sagemaker/commands/CreateImageVersionCommand.ts index b024480fd58a7..f84b91cb81eb3 100644 --- a/clients/client-sagemaker/commands/CreateImageVersionCommand.ts +++ b/clients/client-sagemaker/commands/CreateImageVersionCommand.ts @@ -29,6 +29,7 @@ export class CreateImageVersionCommand extends $Command< CreateImageVersionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateImageVersionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateLabelingJobCommand.ts b/clients/client-sagemaker/commands/CreateLabelingJobCommand.ts index d206da7b9e0fa..a8f6e5f501d38 100644 --- a/clients/client-sagemaker/commands/CreateLabelingJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateLabelingJobCommand.ts @@ -56,6 +56,7 @@ export class CreateLabelingJobCommand extends $Command< CreateLabelingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class CreateLabelingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelBiasJobDefinitionCommand.ts b/clients/client-sagemaker/commands/CreateModelBiasJobDefinitionCommand.ts index 4106fd5446c47..a9a601ae49ff6 100644 --- a/clients/client-sagemaker/commands/CreateModelBiasJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelBiasJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class CreateModelBiasJobDefinitionCommand extends $Command< CreateModelBiasJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateModelBiasJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelCommand.ts b/clients/client-sagemaker/commands/CreateModelCommand.ts index 87c0a34a2d8cc..1deffb3ae7d4e 100644 --- a/clients/client-sagemaker/commands/CreateModelCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelCommand.ts @@ -53,6 +53,7 @@ export class CreateModelCommand extends $Command< CreateModelCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class CreateModelCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelExplainabilityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/CreateModelExplainabilityJobDefinitionCommand.ts index 728c8da0c4719..cf16a260c90ae 100644 --- a/clients/client-sagemaker/commands/CreateModelExplainabilityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelExplainabilityJobDefinitionCommand.ts @@ -32,6 +32,7 @@ export class CreateModelExplainabilityJobDefinitionCommand extends $Command< CreateModelExplainabilityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateModelExplainabilityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelPackageCommand.ts b/clients/client-sagemaker/commands/CreateModelPackageCommand.ts index cbf8c8bbdb85a..d22431692988d 100644 --- a/clients/client-sagemaker/commands/CreateModelPackageCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelPackageCommand.ts @@ -46,6 +46,7 @@ export class CreateModelPackageCommand extends $Command< CreateModelPackageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreateModelPackageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelPackageGroupCommand.ts b/clients/client-sagemaker/commands/CreateModelPackageGroupCommand.ts index 5f067d663f78a..c955987163786 100644 --- a/clients/client-sagemaker/commands/CreateModelPackageGroupCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelPackageGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateModelPackageGroupCommand extends $Command< CreateModelPackageGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateModelPackageGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateModelQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/CreateModelQualityJobDefinitionCommand.ts index 685cf0954a197..be38f94bc7b91 100644 --- a/clients/client-sagemaker/commands/CreateModelQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/CreateModelQualityJobDefinitionCommand.ts @@ -29,6 +29,7 @@ export class CreateModelQualityJobDefinitionCommand extends $Command< CreateModelQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateModelQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/CreateMonitoringScheduleCommand.ts index 5ce34d59ec487..8516aaea879ab 100644 --- a/clients/client-sagemaker/commands/CreateMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/CreateMonitoringScheduleCommand.ts @@ -29,6 +29,7 @@ export class CreateMonitoringScheduleCommand extends $Command< CreateMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/CreateNotebookInstanceCommand.ts index 3aeb2ef79f517..987248ec6912d 100644 --- a/clients/client-sagemaker/commands/CreateNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/CreateNotebookInstanceCommand.ts @@ -64,6 +64,7 @@ export class CreateNotebookInstanceCommand extends $Command< CreateNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class CreateNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateNotebookInstanceLifecycleConfigCommand.ts b/clients/client-sagemaker/commands/CreateNotebookInstanceLifecycleConfigCommand.ts index 3220fdf96b2b6..39495e99744d1 100644 --- a/clients/client-sagemaker/commands/CreateNotebookInstanceLifecycleConfigCommand.ts +++ b/clients/client-sagemaker/commands/CreateNotebookInstanceLifecycleConfigCommand.ts @@ -45,6 +45,7 @@ export class CreateNotebookInstanceLifecycleConfigCommand extends $Command< CreateNotebookInstanceLifecycleConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateNotebookInstanceLifecycleConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreatePipelineCommand.ts b/clients/client-sagemaker/commands/CreatePipelineCommand.ts index 4030b6b26b1ec..2a870ab248872 100644 --- a/clients/client-sagemaker/commands/CreatePipelineCommand.ts +++ b/clients/client-sagemaker/commands/CreatePipelineCommand.ts @@ -28,6 +28,7 @@ export class CreatePipelineCommand extends $Command< CreatePipelineCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreatePipelineCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreatePresignedDomainUrlCommand.ts b/clients/client-sagemaker/commands/CreatePresignedDomainUrlCommand.ts index 237406cc2cdb1..f0252ad8966b3 100644 --- a/clients/client-sagemaker/commands/CreatePresignedDomainUrlCommand.ts +++ b/clients/client-sagemaker/commands/CreatePresignedDomainUrlCommand.ts @@ -37,6 +37,7 @@ export class CreatePresignedDomainUrlCommand extends $Command< CreatePresignedDomainUrlCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreatePresignedDomainUrlCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreatePresignedNotebookInstanceUrlCommand.ts b/clients/client-sagemaker/commands/CreatePresignedNotebookInstanceUrlCommand.ts index 938e50dd52195..6d1edff6e927e 100644 --- a/clients/client-sagemaker/commands/CreatePresignedNotebookInstanceUrlCommand.ts +++ b/clients/client-sagemaker/commands/CreatePresignedNotebookInstanceUrlCommand.ts @@ -46,6 +46,7 @@ export class CreatePresignedNotebookInstanceUrlCommand extends $Command< CreatePresignedNotebookInstanceUrlCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreatePresignedNotebookInstanceUrlCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateProcessingJobCommand.ts b/clients/client-sagemaker/commands/CreateProcessingJobCommand.ts index 78d44a4e1c3bb..3797d53d4b387 100644 --- a/clients/client-sagemaker/commands/CreateProcessingJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateProcessingJobCommand.ts @@ -28,6 +28,7 @@ export class CreateProcessingJobCommand extends $Command< CreateProcessingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProcessingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateProjectCommand.ts b/clients/client-sagemaker/commands/CreateProjectCommand.ts index 4e096556b69e6..6ca701327fa89 100644 --- a/clients/client-sagemaker/commands/CreateProjectCommand.ts +++ b/clients/client-sagemaker/commands/CreateProjectCommand.ts @@ -29,6 +29,7 @@ export class CreateProjectCommand extends $Command< CreateProjectCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateProjectCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateTrainingJobCommand.ts b/clients/client-sagemaker/commands/CreateTrainingJobCommand.ts index d9236460b9714..ebc489478a838 100644 --- a/clients/client-sagemaker/commands/CreateTrainingJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateTrainingJobCommand.ts @@ -92,6 +92,7 @@ export class CreateTrainingJobCommand extends $Command< CreateTrainingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -109,7 +110,10 @@ export class CreateTrainingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateTransformJobCommand.ts b/clients/client-sagemaker/commands/CreateTransformJobCommand.ts index aa093bbbeada1..13ba7b8624d38 100644 --- a/clients/client-sagemaker/commands/CreateTransformJobCommand.ts +++ b/clients/client-sagemaker/commands/CreateTransformJobCommand.ts @@ -62,6 +62,7 @@ export class CreateTransformJobCommand extends $Command< CreateTransformJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class CreateTransformJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateTrialCommand.ts b/clients/client-sagemaker/commands/CreateTrialCommand.ts index 45b6c9faa985d..c3a2a687a7c39 100644 --- a/clients/client-sagemaker/commands/CreateTrialCommand.ts +++ b/clients/client-sagemaker/commands/CreateTrialCommand.ts @@ -38,6 +38,7 @@ export class CreateTrialCommand extends $Command< CreateTrialCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateTrialCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateTrialComponentCommand.ts b/clients/client-sagemaker/commands/CreateTrialComponentCommand.ts index 481fd2104dcd9..934a659d5c1be 100644 --- a/clients/client-sagemaker/commands/CreateTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/CreateTrialComponentCommand.ts @@ -44,6 +44,7 @@ export class CreateTrialComponentCommand extends $Command< CreateTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateUserProfileCommand.ts b/clients/client-sagemaker/commands/CreateUserProfileCommand.ts index 7641be6cacc59..8f438cf00a743 100644 --- a/clients/client-sagemaker/commands/CreateUserProfileCommand.ts +++ b/clients/client-sagemaker/commands/CreateUserProfileCommand.ts @@ -34,6 +34,7 @@ export class CreateUserProfileCommand extends $Command< CreateUserProfileCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateUserProfileCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateWorkforceCommand.ts b/clients/client-sagemaker/commands/CreateWorkforceCommand.ts index 7f69af2139828..5393580c2da9a 100644 --- a/clients/client-sagemaker/commands/CreateWorkforceCommand.ts +++ b/clients/client-sagemaker/commands/CreateWorkforceCommand.ts @@ -48,6 +48,7 @@ export class CreateWorkforceCommand extends $Command< CreateWorkforceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class CreateWorkforceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/CreateWorkteamCommand.ts b/clients/client-sagemaker/commands/CreateWorkteamCommand.ts index 94b581e3fd457..2148244c092ef 100644 --- a/clients/client-sagemaker/commands/CreateWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/CreateWorkteamCommand.ts @@ -31,6 +31,7 @@ export class CreateWorkteamCommand extends $Command< CreateWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteActionCommand.ts b/clients/client-sagemaker/commands/DeleteActionCommand.ts index 068bec1ed0980..82da293b00631 100644 --- a/clients/client-sagemaker/commands/DeleteActionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteActionCommand.ts @@ -28,6 +28,7 @@ export class DeleteActionCommand extends $Command< DeleteActionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteActionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteAlgorithmCommand.ts b/clients/client-sagemaker/commands/DeleteAlgorithmCommand.ts index 3024226b87126..0dfe621890dfe 100644 --- a/clients/client-sagemaker/commands/DeleteAlgorithmCommand.ts +++ b/clients/client-sagemaker/commands/DeleteAlgorithmCommand.ts @@ -28,6 +28,7 @@ export class DeleteAlgorithmCommand extends $Command< DeleteAlgorithmCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAlgorithmCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteAppCommand.ts b/clients/client-sagemaker/commands/DeleteAppCommand.ts index 73b9056d5ef17..617a684e15a32 100644 --- a/clients/client-sagemaker/commands/DeleteAppCommand.ts +++ b/clients/client-sagemaker/commands/DeleteAppCommand.ts @@ -25,6 +25,7 @@ export class DeleteAppCommand extends $Command< DeleteAppCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class DeleteAppCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteAppImageConfigCommand.ts b/clients/client-sagemaker/commands/DeleteAppImageConfigCommand.ts index 2df7a5c71a28e..233b05e6f82f5 100644 --- a/clients/client-sagemaker/commands/DeleteAppImageConfigCommand.ts +++ b/clients/client-sagemaker/commands/DeleteAppImageConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppImageConfigCommand extends $Command< DeleteAppImageConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppImageConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteArtifactCommand.ts b/clients/client-sagemaker/commands/DeleteArtifactCommand.ts index 0f83cfa3fc873..c5de61ea64b26 100644 --- a/clients/client-sagemaker/commands/DeleteArtifactCommand.ts +++ b/clients/client-sagemaker/commands/DeleteArtifactCommand.ts @@ -29,6 +29,7 @@ export class DeleteArtifactCommand extends $Command< DeleteArtifactCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteArtifactCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteAssociationCommand.ts b/clients/client-sagemaker/commands/DeleteAssociationCommand.ts index 2f168793a2688..0197621bdb48a 100644 --- a/clients/client-sagemaker/commands/DeleteAssociationCommand.ts +++ b/clients/client-sagemaker/commands/DeleteAssociationCommand.ts @@ -28,6 +28,7 @@ export class DeleteAssociationCommand extends $Command< DeleteAssociationCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAssociationCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteCodeRepositoryCommand.ts b/clients/client-sagemaker/commands/DeleteCodeRepositoryCommand.ts index 0443a97cc1b7b..663d5710bc9a4 100644 --- a/clients/client-sagemaker/commands/DeleteCodeRepositoryCommand.ts +++ b/clients/client-sagemaker/commands/DeleteCodeRepositoryCommand.ts @@ -28,6 +28,7 @@ export class DeleteCodeRepositoryCommand extends $Command< DeleteCodeRepositoryCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCodeRepositoryCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteContextCommand.ts b/clients/client-sagemaker/commands/DeleteContextCommand.ts index 42cc7ccf6f33e..556466aaeda7f 100644 --- a/clients/client-sagemaker/commands/DeleteContextCommand.ts +++ b/clients/client-sagemaker/commands/DeleteContextCommand.ts @@ -28,6 +28,7 @@ export class DeleteContextCommand extends $Command< DeleteContextCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteContextCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteDataQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DeleteDataQualityJobDefinitionCommand.ts index b9491b49a6f9a..66b9c5290518e 100644 --- a/clients/client-sagemaker/commands/DeleteDataQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteDataQualityJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteDataQualityJobDefinitionCommand extends $Command< DeleteDataQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDataQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteDeviceFleetCommand.ts b/clients/client-sagemaker/commands/DeleteDeviceFleetCommand.ts index 5c5f44d0b589d..2f1b367059d7e 100644 --- a/clients/client-sagemaker/commands/DeleteDeviceFleetCommand.ts +++ b/clients/client-sagemaker/commands/DeleteDeviceFleetCommand.ts @@ -28,6 +28,7 @@ export class DeleteDeviceFleetCommand extends $Command< DeleteDeviceFleetCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDeviceFleetCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteDomainCommand.ts b/clients/client-sagemaker/commands/DeleteDomainCommand.ts index ec64fb3618856..5a20f2b5fc206 100644 --- a/clients/client-sagemaker/commands/DeleteDomainCommand.ts +++ b/clients/client-sagemaker/commands/DeleteDomainCommand.ts @@ -32,6 +32,7 @@ export class DeleteDomainCommand extends $Command< DeleteDomainCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteDomainCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteEndpointCommand.ts b/clients/client-sagemaker/commands/DeleteEndpointCommand.ts index 43ef06201a7b3..1c2277cf3a7af 100644 --- a/clients/client-sagemaker/commands/DeleteEndpointCommand.ts +++ b/clients/client-sagemaker/commands/DeleteEndpointCommand.ts @@ -31,6 +31,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteEndpointCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteEndpointConfigCommand.ts b/clients/client-sagemaker/commands/DeleteEndpointConfigCommand.ts index eed1faa17b9a3..483e3f591ca62 100644 --- a/clients/client-sagemaker/commands/DeleteEndpointConfigCommand.ts +++ b/clients/client-sagemaker/commands/DeleteEndpointConfigCommand.ts @@ -36,6 +36,7 @@ export class DeleteEndpointConfigCommand extends $Command< DeleteEndpointConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteEndpointConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteExperimentCommand.ts b/clients/client-sagemaker/commands/DeleteExperimentCommand.ts index ef47559629284..bb3d2db049ed1 100644 --- a/clients/client-sagemaker/commands/DeleteExperimentCommand.ts +++ b/clients/client-sagemaker/commands/DeleteExperimentCommand.ts @@ -30,6 +30,7 @@ export class DeleteExperimentCommand extends $Command< DeleteExperimentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteExperimentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteFeatureGroupCommand.ts b/clients/client-sagemaker/commands/DeleteFeatureGroupCommand.ts index 4574b93ac9257..10baca7e641d8 100644 --- a/clients/client-sagemaker/commands/DeleteFeatureGroupCommand.ts +++ b/clients/client-sagemaker/commands/DeleteFeatureGroupCommand.ts @@ -33,6 +33,7 @@ export class DeleteFeatureGroupCommand extends $Command< DeleteFeatureGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteFeatureGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteFlowDefinitionCommand.ts b/clients/client-sagemaker/commands/DeleteFlowDefinitionCommand.ts index 57dbc1123abfd..95ca332eee656 100644 --- a/clients/client-sagemaker/commands/DeleteFlowDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteFlowDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteFlowDefinitionCommand extends $Command< DeleteFlowDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFlowDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteHumanTaskUiCommand.ts b/clients/client-sagemaker/commands/DeleteHumanTaskUiCommand.ts index 26f155d80f3bb..af2f035e0d39b 100644 --- a/clients/client-sagemaker/commands/DeleteHumanTaskUiCommand.ts +++ b/clients/client-sagemaker/commands/DeleteHumanTaskUiCommand.ts @@ -32,6 +32,7 @@ export class DeleteHumanTaskUiCommand extends $Command< DeleteHumanTaskUiCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteHumanTaskUiCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteImageCommand.ts b/clients/client-sagemaker/commands/DeleteImageCommand.ts index d7d0596df994f..ec07bd385dc4e 100644 --- a/clients/client-sagemaker/commands/DeleteImageCommand.ts +++ b/clients/client-sagemaker/commands/DeleteImageCommand.ts @@ -29,6 +29,7 @@ export class DeleteImageCommand extends $Command< DeleteImageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteImageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteImageVersionCommand.ts b/clients/client-sagemaker/commands/DeleteImageVersionCommand.ts index 0200002147676..8dd872781cbd9 100644 --- a/clients/client-sagemaker/commands/DeleteImageVersionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteImageVersionCommand.ts @@ -29,6 +29,7 @@ export class DeleteImageVersionCommand extends $Command< DeleteImageVersionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteImageVersionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelBiasJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DeleteModelBiasJobDefinitionCommand.ts index 83016a12361d8..722e115a9f480 100644 --- a/clients/client-sagemaker/commands/DeleteModelBiasJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelBiasJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelBiasJobDefinitionCommand extends $Command< DeleteModelBiasJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelBiasJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelCommand.ts b/clients/client-sagemaker/commands/DeleteModelCommand.ts index 302ba44507650..d6d81371a7e9e 100644 --- a/clients/client-sagemaker/commands/DeleteModelCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelCommand.ts @@ -31,6 +31,7 @@ export class DeleteModelCommand extends $Command< DeleteModelCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteModelCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelExplainabilityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DeleteModelExplainabilityJobDefinitionCommand.ts index 911e019ef3dae..203e3827193a0 100644 --- a/clients/client-sagemaker/commands/DeleteModelExplainabilityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelExplainabilityJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelExplainabilityJobDefinitionCommand extends $Command< DeleteModelExplainabilityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelExplainabilityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelPackageCommand.ts b/clients/client-sagemaker/commands/DeleteModelPackageCommand.ts index 9b8d55928b4a6..8622190830db6 100644 --- a/clients/client-sagemaker/commands/DeleteModelPackageCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelPackageCommand.ts @@ -30,6 +30,7 @@ export class DeleteModelPackageCommand extends $Command< DeleteModelPackageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteModelPackageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelPackageGroupCommand.ts b/clients/client-sagemaker/commands/DeleteModelPackageGroupCommand.ts index 1f842dd7b3760..14a6b4699851e 100644 --- a/clients/client-sagemaker/commands/DeleteModelPackageGroupCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelPackageGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelPackageGroupCommand extends $Command< DeleteModelPackageGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelPackageGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelPackageGroupPolicyCommand.ts b/clients/client-sagemaker/commands/DeleteModelPackageGroupPolicyCommand.ts index b87652e4e36e3..ab51c6d314ae3 100644 --- a/clients/client-sagemaker/commands/DeleteModelPackageGroupPolicyCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelPackageGroupPolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelPackageGroupPolicyCommand extends $Command< DeleteModelPackageGroupPolicyCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelPackageGroupPolicyCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteModelQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DeleteModelQualityJobDefinitionCommand.ts index cac45e46abc10..5afc78a301018 100644 --- a/clients/client-sagemaker/commands/DeleteModelQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DeleteModelQualityJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DeleteModelQualityJobDefinitionCommand extends $Command< DeleteModelQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteModelQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/DeleteMonitoringScheduleCommand.ts index 03093633c84d1..2586a87a4fe08 100644 --- a/clients/client-sagemaker/commands/DeleteMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/DeleteMonitoringScheduleCommand.ts @@ -29,6 +29,7 @@ export class DeleteMonitoringScheduleCommand extends $Command< DeleteMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/DeleteNotebookInstanceCommand.ts index 0b6335d401b91..957a35836ca96 100644 --- a/clients/client-sagemaker/commands/DeleteNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/DeleteNotebookInstanceCommand.ts @@ -34,6 +34,7 @@ export class DeleteNotebookInstanceCommand extends $Command< DeleteNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteNotebookInstanceLifecycleConfigCommand.ts b/clients/client-sagemaker/commands/DeleteNotebookInstanceLifecycleConfigCommand.ts index c5c2d38c76414..c9fd188df168e 100644 --- a/clients/client-sagemaker/commands/DeleteNotebookInstanceLifecycleConfigCommand.ts +++ b/clients/client-sagemaker/commands/DeleteNotebookInstanceLifecycleConfigCommand.ts @@ -28,6 +28,7 @@ export class DeleteNotebookInstanceLifecycleConfigCommand extends $Command< DeleteNotebookInstanceLifecycleConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNotebookInstanceLifecycleConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeletePipelineCommand.ts b/clients/client-sagemaker/commands/DeletePipelineCommand.ts index e3254c7103768..de441273dc499 100644 --- a/clients/client-sagemaker/commands/DeletePipelineCommand.ts +++ b/clients/client-sagemaker/commands/DeletePipelineCommand.ts @@ -28,6 +28,7 @@ export class DeletePipelineCommand extends $Command< DeletePipelineCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePipelineCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteProjectCommand.ts b/clients/client-sagemaker/commands/DeleteProjectCommand.ts index 9ec421c9e4b46..4a0f15d3e9ee9 100644 --- a/clients/client-sagemaker/commands/DeleteProjectCommand.ts +++ b/clients/client-sagemaker/commands/DeleteProjectCommand.ts @@ -28,6 +28,7 @@ export class DeleteProjectCommand extends $Command< DeleteProjectCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProjectCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteTagsCommand.ts b/clients/client-sagemaker/commands/DeleteTagsCommand.ts index 25e5ff3d9044e..aeeafd9989ce1 100644 --- a/clients/client-sagemaker/commands/DeleteTagsCommand.ts +++ b/clients/client-sagemaker/commands/DeleteTagsCommand.ts @@ -34,6 +34,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteTagsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteTrialCommand.ts b/clients/client-sagemaker/commands/DeleteTrialCommand.ts index d153e34d83c0b..13b761a1e6fdf 100644 --- a/clients/client-sagemaker/commands/DeleteTrialCommand.ts +++ b/clients/client-sagemaker/commands/DeleteTrialCommand.ts @@ -30,6 +30,7 @@ export class DeleteTrialCommand extends $Command< DeleteTrialCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteTrialCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteTrialComponentCommand.ts b/clients/client-sagemaker/commands/DeleteTrialComponentCommand.ts index f77e8410fac71..17a2bed35eb84 100644 --- a/clients/client-sagemaker/commands/DeleteTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/DeleteTrialComponentCommand.ts @@ -30,6 +30,7 @@ export class DeleteTrialComponentCommand extends $Command< DeleteTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteUserProfileCommand.ts b/clients/client-sagemaker/commands/DeleteUserProfileCommand.ts index f28a5ab7a572e..cfd2c9311e48f 100644 --- a/clients/client-sagemaker/commands/DeleteUserProfileCommand.ts +++ b/clients/client-sagemaker/commands/DeleteUserProfileCommand.ts @@ -29,6 +29,7 @@ export class DeleteUserProfileCommand extends $Command< DeleteUserProfileCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteUserProfileCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteWorkforceCommand.ts b/clients/client-sagemaker/commands/DeleteWorkforceCommand.ts index 75b20272399c3..48fd6f8887510 100644 --- a/clients/client-sagemaker/commands/DeleteWorkforceCommand.ts +++ b/clients/client-sagemaker/commands/DeleteWorkforceCommand.ts @@ -40,6 +40,7 @@ export class DeleteWorkforceCommand extends $Command< DeleteWorkforceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteWorkforceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeleteWorkteamCommand.ts b/clients/client-sagemaker/commands/DeleteWorkteamCommand.ts index 84d3777bc7e1b..eb0705c7c5c56 100644 --- a/clients/client-sagemaker/commands/DeleteWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/DeleteWorkteamCommand.ts @@ -28,6 +28,7 @@ export class DeleteWorkteamCommand extends $Command< DeleteWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DeregisterDevicesCommand.ts b/clients/client-sagemaker/commands/DeregisterDevicesCommand.ts index 37ebcb97eb73d..dfd3d5ce539cb 100644 --- a/clients/client-sagemaker/commands/DeregisterDevicesCommand.ts +++ b/clients/client-sagemaker/commands/DeregisterDevicesCommand.ts @@ -28,6 +28,7 @@ export class DeregisterDevicesCommand extends $Command< DeregisterDevicesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeregisterDevicesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeActionCommand.ts b/clients/client-sagemaker/commands/DescribeActionCommand.ts index 6ec7c51b21140..15ccc8aa1d5cc 100644 --- a/clients/client-sagemaker/commands/DescribeActionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeActionCommand.ts @@ -28,6 +28,7 @@ export class DescribeActionCommand extends $Command< DescribeActionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeActionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeAlgorithmCommand.ts b/clients/client-sagemaker/commands/DescribeAlgorithmCommand.ts index 454c68366b184..11f7e0d56c311 100644 --- a/clients/client-sagemaker/commands/DescribeAlgorithmCommand.ts +++ b/clients/client-sagemaker/commands/DescribeAlgorithmCommand.ts @@ -28,6 +28,7 @@ export class DescribeAlgorithmCommand extends $Command< DescribeAlgorithmCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAlgorithmCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeAppCommand.ts b/clients/client-sagemaker/commands/DescribeAppCommand.ts index f43e8afb05378..3e72ea604f577 100644 --- a/clients/client-sagemaker/commands/DescribeAppCommand.ts +++ b/clients/client-sagemaker/commands/DescribeAppCommand.ts @@ -28,6 +28,7 @@ export class DescribeAppCommand extends $Command< DescribeAppCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAppCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeAppImageConfigCommand.ts b/clients/client-sagemaker/commands/DescribeAppImageConfigCommand.ts index 7fcdf547cd9a9..e5e2082b29875 100644 --- a/clients/client-sagemaker/commands/DescribeAppImageConfigCommand.ts +++ b/clients/client-sagemaker/commands/DescribeAppImageConfigCommand.ts @@ -28,6 +28,7 @@ export class DescribeAppImageConfigCommand extends $Command< DescribeAppImageConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAppImageConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeArtifactCommand.ts b/clients/client-sagemaker/commands/DescribeArtifactCommand.ts index 7cfe0213aea29..6b126a938876a 100644 --- a/clients/client-sagemaker/commands/DescribeArtifactCommand.ts +++ b/clients/client-sagemaker/commands/DescribeArtifactCommand.ts @@ -28,6 +28,7 @@ export class DescribeArtifactCommand extends $Command< DescribeArtifactCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeArtifactCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeAutoMLJobCommand.ts b/clients/client-sagemaker/commands/DescribeAutoMLJobCommand.ts index 7685a82a29e52..34134dd60cdfd 100644 --- a/clients/client-sagemaker/commands/DescribeAutoMLJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeAutoMLJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeAutoMLJobCommand extends $Command< DescribeAutoMLJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAutoMLJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeCodeRepositoryCommand.ts b/clients/client-sagemaker/commands/DescribeCodeRepositoryCommand.ts index 75b3006dfe7dc..0f2b271ac2fed 100644 --- a/clients/client-sagemaker/commands/DescribeCodeRepositoryCommand.ts +++ b/clients/client-sagemaker/commands/DescribeCodeRepositoryCommand.ts @@ -28,6 +28,7 @@ export class DescribeCodeRepositoryCommand extends $Command< DescribeCodeRepositoryCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCodeRepositoryCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeCompilationJobCommand.ts b/clients/client-sagemaker/commands/DescribeCompilationJobCommand.ts index 560ef1fbb1e05..03249f120bfa2 100644 --- a/clients/client-sagemaker/commands/DescribeCompilationJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeCompilationJobCommand.ts @@ -30,6 +30,7 @@ export class DescribeCompilationJobCommand extends $Command< DescribeCompilationJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeCompilationJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeContextCommand.ts b/clients/client-sagemaker/commands/DescribeContextCommand.ts index ce44462a79cb4..56e5d51c18364 100644 --- a/clients/client-sagemaker/commands/DescribeContextCommand.ts +++ b/clients/client-sagemaker/commands/DescribeContextCommand.ts @@ -28,6 +28,7 @@ export class DescribeContextCommand extends $Command< DescribeContextCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeContextCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeDataQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DescribeDataQualityJobDefinitionCommand.ts index 0d7cc4dc32b95..b7add5924d1b8 100644 --- a/clients/client-sagemaker/commands/DescribeDataQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeDataQualityJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DescribeDataQualityJobDefinitionCommand extends $Command< DescribeDataQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDataQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeDeviceCommand.ts b/clients/client-sagemaker/commands/DescribeDeviceCommand.ts index 8e4e9d20bb7c7..7e0ada3eacd1e 100644 --- a/clients/client-sagemaker/commands/DescribeDeviceCommand.ts +++ b/clients/client-sagemaker/commands/DescribeDeviceCommand.ts @@ -28,6 +28,7 @@ export class DescribeDeviceCommand extends $Command< DescribeDeviceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDeviceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeDeviceFleetCommand.ts b/clients/client-sagemaker/commands/DescribeDeviceFleetCommand.ts index 59e5acca862c2..bd7ad7adc5eb5 100644 --- a/clients/client-sagemaker/commands/DescribeDeviceFleetCommand.ts +++ b/clients/client-sagemaker/commands/DescribeDeviceFleetCommand.ts @@ -28,6 +28,7 @@ export class DescribeDeviceFleetCommand extends $Command< DescribeDeviceFleetCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDeviceFleetCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeDomainCommand.ts b/clients/client-sagemaker/commands/DescribeDomainCommand.ts index 1701a9bece2e8..7b45c9b9ec248 100644 --- a/clients/client-sagemaker/commands/DescribeDomainCommand.ts +++ b/clients/client-sagemaker/commands/DescribeDomainCommand.ts @@ -28,6 +28,7 @@ export class DescribeDomainCommand extends $Command< DescribeDomainCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDomainCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeEdgePackagingJobCommand.ts b/clients/client-sagemaker/commands/DescribeEdgePackagingJobCommand.ts index 65b992c412cf7..97581b1275ea1 100644 --- a/clients/client-sagemaker/commands/DescribeEdgePackagingJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeEdgePackagingJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeEdgePackagingJobCommand extends $Command< DescribeEdgePackagingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEdgePackagingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeEndpointCommand.ts b/clients/client-sagemaker/commands/DescribeEndpointCommand.ts index a6b2627c70644..843f0de713349 100644 --- a/clients/client-sagemaker/commands/DescribeEndpointCommand.ts +++ b/clients/client-sagemaker/commands/DescribeEndpointCommand.ts @@ -28,6 +28,7 @@ export class DescribeEndpointCommand extends $Command< DescribeEndpointCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEndpointCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeEndpointConfigCommand.ts b/clients/client-sagemaker/commands/DescribeEndpointConfigCommand.ts index dc342c3060ba2..7d936a028542f 100644 --- a/clients/client-sagemaker/commands/DescribeEndpointConfigCommand.ts +++ b/clients/client-sagemaker/commands/DescribeEndpointConfigCommand.ts @@ -29,6 +29,7 @@ export class DescribeEndpointConfigCommand extends $Command< DescribeEndpointConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeEndpointConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeExperimentCommand.ts b/clients/client-sagemaker/commands/DescribeExperimentCommand.ts index 51485b12e8846..f305a2bbc4b2c 100644 --- a/clients/client-sagemaker/commands/DescribeExperimentCommand.ts +++ b/clients/client-sagemaker/commands/DescribeExperimentCommand.ts @@ -28,6 +28,7 @@ export class DescribeExperimentCommand extends $Command< DescribeExperimentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeExperimentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeFeatureGroupCommand.ts b/clients/client-sagemaker/commands/DescribeFeatureGroupCommand.ts index d5b95073a1510..bf5624557033d 100644 --- a/clients/client-sagemaker/commands/DescribeFeatureGroupCommand.ts +++ b/clients/client-sagemaker/commands/DescribeFeatureGroupCommand.ts @@ -30,6 +30,7 @@ export class DescribeFeatureGroupCommand extends $Command< DescribeFeatureGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeFeatureGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeFlowDefinitionCommand.ts b/clients/client-sagemaker/commands/DescribeFlowDefinitionCommand.ts index 71fc54af0301a..6c4fbc4dbcbb7 100644 --- a/clients/client-sagemaker/commands/DescribeFlowDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeFlowDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DescribeFlowDefinitionCommand extends $Command< DescribeFlowDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeFlowDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeHumanTaskUiCommand.ts b/clients/client-sagemaker/commands/DescribeHumanTaskUiCommand.ts index a1acf1d0458ea..081218dc666be 100644 --- a/clients/client-sagemaker/commands/DescribeHumanTaskUiCommand.ts +++ b/clients/client-sagemaker/commands/DescribeHumanTaskUiCommand.ts @@ -28,6 +28,7 @@ export class DescribeHumanTaskUiCommand extends $Command< DescribeHumanTaskUiCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeHumanTaskUiCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeHyperParameterTuningJobCommand.ts b/clients/client-sagemaker/commands/DescribeHyperParameterTuningJobCommand.ts index a2c34f893dacc..6561dcaa53917 100644 --- a/clients/client-sagemaker/commands/DescribeHyperParameterTuningJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeHyperParameterTuningJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeHyperParameterTuningJobCommand extends $Command< DescribeHyperParameterTuningJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeHyperParameterTuningJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeImageCommand.ts b/clients/client-sagemaker/commands/DescribeImageCommand.ts index 6a54f99381cb0..8074876fb1911 100644 --- a/clients/client-sagemaker/commands/DescribeImageCommand.ts +++ b/clients/client-sagemaker/commands/DescribeImageCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageCommand extends $Command< DescribeImageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeImageVersionCommand.ts b/clients/client-sagemaker/commands/DescribeImageVersionCommand.ts index c2a8b9104e3b4..6297c28def163 100644 --- a/clients/client-sagemaker/commands/DescribeImageVersionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeImageVersionCommand.ts @@ -28,6 +28,7 @@ export class DescribeImageVersionCommand extends $Command< DescribeImageVersionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeImageVersionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeLabelingJobCommand.ts b/clients/client-sagemaker/commands/DescribeLabelingJobCommand.ts index a05a5297d8d5e..44ca6df478139 100644 --- a/clients/client-sagemaker/commands/DescribeLabelingJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeLabelingJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeLabelingJobCommand extends $Command< DescribeLabelingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeLabelingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelBiasJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DescribeModelBiasJobDefinitionCommand.ts index 8ea8338c99d02..75e628abbda1c 100644 --- a/clients/client-sagemaker/commands/DescribeModelBiasJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelBiasJobDefinitionCommand.ts @@ -28,6 +28,7 @@ export class DescribeModelBiasJobDefinitionCommand extends $Command< DescribeModelBiasJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeModelBiasJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelCommand.ts b/clients/client-sagemaker/commands/DescribeModelCommand.ts index 2d2209b8e9765..1add372f06030 100644 --- a/clients/client-sagemaker/commands/DescribeModelCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelCommand.ts @@ -29,6 +29,7 @@ export class DescribeModelCommand extends $Command< DescribeModelCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeModelCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelExplainabilityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DescribeModelExplainabilityJobDefinitionCommand.ts index 77138ed800810..0ae9dd85c906f 100644 --- a/clients/client-sagemaker/commands/DescribeModelExplainabilityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelExplainabilityJobDefinitionCommand.ts @@ -32,6 +32,7 @@ export class DescribeModelExplainabilityJobDefinitionCommand extends $Command< DescribeModelExplainabilityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeModelExplainabilityJobDefinitionCommand extends $Command< DescribeModelExplainabilityJobDefinitionCommandInput, DescribeModelExplainabilityJobDefinitionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelPackageCommand.ts b/clients/client-sagemaker/commands/DescribeModelPackageCommand.ts index 3ea1329acc84e..79f4591e17a96 100644 --- a/clients/client-sagemaker/commands/DescribeModelPackageCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelPackageCommand.ts @@ -31,6 +31,7 @@ export class DescribeModelPackageCommand extends $Command< DescribeModelPackageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeModelPackageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelPackageGroupCommand.ts b/clients/client-sagemaker/commands/DescribeModelPackageGroupCommand.ts index aea6519a43b0a..c9238e697c670 100644 --- a/clients/client-sagemaker/commands/DescribeModelPackageGroupCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelPackageGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeModelPackageGroupCommand extends $Command< DescribeModelPackageGroupCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeModelPackageGroupCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeModelQualityJobDefinitionCommand.ts b/clients/client-sagemaker/commands/DescribeModelQualityJobDefinitionCommand.ts index 94394e6c855d5..2836eb3543d66 100644 --- a/clients/client-sagemaker/commands/DescribeModelQualityJobDefinitionCommand.ts +++ b/clients/client-sagemaker/commands/DescribeModelQualityJobDefinitionCommand.ts @@ -32,6 +32,7 @@ export class DescribeModelQualityJobDefinitionCommand extends $Command< DescribeModelQualityJobDefinitionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeModelQualityJobDefinitionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/DescribeMonitoringScheduleCommand.ts index ed33fcf062a79..9bf4ed70835e6 100644 --- a/clients/client-sagemaker/commands/DescribeMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/DescribeMonitoringScheduleCommand.ts @@ -28,6 +28,7 @@ export class DescribeMonitoringScheduleCommand extends $Command< DescribeMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/DescribeNotebookInstanceCommand.ts index ee7964afeba90..bc239aa15377a 100644 --- a/clients/client-sagemaker/commands/DescribeNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/DescribeNotebookInstanceCommand.ts @@ -28,6 +28,7 @@ export class DescribeNotebookInstanceCommand extends $Command< DescribeNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeNotebookInstanceLifecycleConfigCommand.ts b/clients/client-sagemaker/commands/DescribeNotebookInstanceLifecycleConfigCommand.ts index db5ac51749810..96b9c8117758a 100644 --- a/clients/client-sagemaker/commands/DescribeNotebookInstanceLifecycleConfigCommand.ts +++ b/clients/client-sagemaker/commands/DescribeNotebookInstanceLifecycleConfigCommand.ts @@ -34,6 +34,7 @@ export class DescribeNotebookInstanceLifecycleConfigCommand extends $Command< DescribeNotebookInstanceLifecycleConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeNotebookInstanceLifecycleConfigCommand extends $Command< DescribeNotebookInstanceLifecycleConfigCommandInput, DescribeNotebookInstanceLifecycleConfigCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribePipelineCommand.ts b/clients/client-sagemaker/commands/DescribePipelineCommand.ts index e39e2e5dcf39a..47bd22fcf62d5 100644 --- a/clients/client-sagemaker/commands/DescribePipelineCommand.ts +++ b/clients/client-sagemaker/commands/DescribePipelineCommand.ts @@ -28,6 +28,7 @@ export class DescribePipelineCommand extends $Command< DescribePipelineCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePipelineCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribePipelineDefinitionForExecutionCommand.ts b/clients/client-sagemaker/commands/DescribePipelineDefinitionForExecutionCommand.ts index c22581a54ff26..74b279b97920b 100644 --- a/clients/client-sagemaker/commands/DescribePipelineDefinitionForExecutionCommand.ts +++ b/clients/client-sagemaker/commands/DescribePipelineDefinitionForExecutionCommand.ts @@ -32,6 +32,7 @@ export class DescribePipelineDefinitionForExecutionCommand extends $Command< DescribePipelineDefinitionForExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribePipelineDefinitionForExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribePipelineExecutionCommand.ts b/clients/client-sagemaker/commands/DescribePipelineExecutionCommand.ts index efc4a3fda91e5..83ade4df8b3ed 100644 --- a/clients/client-sagemaker/commands/DescribePipelineExecutionCommand.ts +++ b/clients/client-sagemaker/commands/DescribePipelineExecutionCommand.ts @@ -28,6 +28,7 @@ export class DescribePipelineExecutionCommand extends $Command< DescribePipelineExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePipelineExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeProcessingJobCommand.ts b/clients/client-sagemaker/commands/DescribeProcessingJobCommand.ts index 6a984ed54a9d8..812c6d061384e 100644 --- a/clients/client-sagemaker/commands/DescribeProcessingJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeProcessingJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeProcessingJobCommand extends $Command< DescribeProcessingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProcessingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeProjectCommand.ts b/clients/client-sagemaker/commands/DescribeProjectCommand.ts index ee568198790bc..36242c91f35ab 100644 --- a/clients/client-sagemaker/commands/DescribeProjectCommand.ts +++ b/clients/client-sagemaker/commands/DescribeProjectCommand.ts @@ -28,6 +28,7 @@ export class DescribeProjectCommand extends $Command< DescribeProjectCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProjectCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeSubscribedWorkteamCommand.ts b/clients/client-sagemaker/commands/DescribeSubscribedWorkteamCommand.ts index 8a15099746a51..1d74bbf1de320 100644 --- a/clients/client-sagemaker/commands/DescribeSubscribedWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/DescribeSubscribedWorkteamCommand.ts @@ -29,6 +29,7 @@ export class DescribeSubscribedWorkteamCommand extends $Command< DescribeSubscribedWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSubscribedWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeTrainingJobCommand.ts b/clients/client-sagemaker/commands/DescribeTrainingJobCommand.ts index 7d8e54d56b5c4..9877625c73e1e 100644 --- a/clients/client-sagemaker/commands/DescribeTrainingJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeTrainingJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrainingJobCommand extends $Command< DescribeTrainingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrainingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeTransformJobCommand.ts b/clients/client-sagemaker/commands/DescribeTransformJobCommand.ts index c43020394bd42..635f54ed02e26 100644 --- a/clients/client-sagemaker/commands/DescribeTransformJobCommand.ts +++ b/clients/client-sagemaker/commands/DescribeTransformJobCommand.ts @@ -28,6 +28,7 @@ export class DescribeTransformJobCommand extends $Command< DescribeTransformJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTransformJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeTrialCommand.ts b/clients/client-sagemaker/commands/DescribeTrialCommand.ts index 0602122dc351d..82e903b54de94 100644 --- a/clients/client-sagemaker/commands/DescribeTrialCommand.ts +++ b/clients/client-sagemaker/commands/DescribeTrialCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrialCommand extends $Command< DescribeTrialCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrialCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeTrialComponentCommand.ts b/clients/client-sagemaker/commands/DescribeTrialComponentCommand.ts index e50b763dabc93..6e53db41a5455 100644 --- a/clients/client-sagemaker/commands/DescribeTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/DescribeTrialComponentCommand.ts @@ -28,6 +28,7 @@ export class DescribeTrialComponentCommand extends $Command< DescribeTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeUserProfileCommand.ts b/clients/client-sagemaker/commands/DescribeUserProfileCommand.ts index 734877fae44a9..64073a4c2e462 100644 --- a/clients/client-sagemaker/commands/DescribeUserProfileCommand.ts +++ b/clients/client-sagemaker/commands/DescribeUserProfileCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserProfileCommand extends $Command< DescribeUserProfileCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserProfileCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeWorkforceCommand.ts b/clients/client-sagemaker/commands/DescribeWorkforceCommand.ts index b71b752784ba3..80fcc7845a7ec 100644 --- a/clients/client-sagemaker/commands/DescribeWorkforceCommand.ts +++ b/clients/client-sagemaker/commands/DescribeWorkforceCommand.ts @@ -33,6 +33,7 @@ export class DescribeWorkforceCommand extends $Command< DescribeWorkforceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeWorkforceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DescribeWorkteamCommand.ts b/clients/client-sagemaker/commands/DescribeWorkteamCommand.ts index bc05279ff5487..c575a80328d1e 100644 --- a/clients/client-sagemaker/commands/DescribeWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/DescribeWorkteamCommand.ts @@ -30,6 +30,7 @@ export class DescribeWorkteamCommand extends $Command< DescribeWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DisableSagemakerServicecatalogPortfolioCommand.ts b/clients/client-sagemaker/commands/DisableSagemakerServicecatalogPortfolioCommand.ts index 1ba280247b90b..ea5446fb57024 100644 --- a/clients/client-sagemaker/commands/DisableSagemakerServicecatalogPortfolioCommand.ts +++ b/clients/client-sagemaker/commands/DisableSagemakerServicecatalogPortfolioCommand.ts @@ -33,6 +33,7 @@ export class DisableSagemakerServicecatalogPortfolioCommand extends $Command< DisableSagemakerServicecatalogPortfolioCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisableSagemakerServicecatalogPortfolioCommand extends $Command< DisableSagemakerServicecatalogPortfolioCommandInput, DisableSagemakerServicecatalogPortfolioCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/DisassociateTrialComponentCommand.ts b/clients/client-sagemaker/commands/DisassociateTrialComponentCommand.ts index d4846c67914cc..a8a30a0a40fb4 100644 --- a/clients/client-sagemaker/commands/DisassociateTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/DisassociateTrialComponentCommand.ts @@ -33,6 +33,7 @@ export class DisassociateTrialComponentCommand extends $Command< DisassociateTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DisassociateTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/EnableSagemakerServicecatalogPortfolioCommand.ts b/clients/client-sagemaker/commands/EnableSagemakerServicecatalogPortfolioCommand.ts index 51f3ac2686bf1..88382395d0ada 100644 --- a/clients/client-sagemaker/commands/EnableSagemakerServicecatalogPortfolioCommand.ts +++ b/clients/client-sagemaker/commands/EnableSagemakerServicecatalogPortfolioCommand.ts @@ -33,6 +33,7 @@ export class EnableSagemakerServicecatalogPortfolioCommand extends $Command< EnableSagemakerServicecatalogPortfolioCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class EnableSagemakerServicecatalogPortfolioCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/GetDeviceFleetReportCommand.ts b/clients/client-sagemaker/commands/GetDeviceFleetReportCommand.ts index 27264609385b1..de19c7ea3eaac 100644 --- a/clients/client-sagemaker/commands/GetDeviceFleetReportCommand.ts +++ b/clients/client-sagemaker/commands/GetDeviceFleetReportCommand.ts @@ -28,6 +28,7 @@ export class GetDeviceFleetReportCommand extends $Command< GetDeviceFleetReportCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeviceFleetReportCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/GetModelPackageGroupPolicyCommand.ts b/clients/client-sagemaker/commands/GetModelPackageGroupPolicyCommand.ts index 17b798d351983..d107d6856e586 100644 --- a/clients/client-sagemaker/commands/GetModelPackageGroupPolicyCommand.ts +++ b/clients/client-sagemaker/commands/GetModelPackageGroupPolicyCommand.ts @@ -31,6 +31,7 @@ export class GetModelPackageGroupPolicyCommand extends $Command< GetModelPackageGroupPolicyCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetModelPackageGroupPolicyCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts b/clients/client-sagemaker/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts index a551d33637cc7..69c04c08703ef 100644 --- a/clients/client-sagemaker/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts +++ b/clients/client-sagemaker/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts @@ -33,6 +33,7 @@ export class GetSagemakerServicecatalogPortfolioStatusCommand extends $Command< GetSagemakerServicecatalogPortfolioStatusCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSagemakerServicecatalogPortfolioStatusCommand extends $Command< GetSagemakerServicecatalogPortfolioStatusCommandInput, GetSagemakerServicecatalogPortfolioStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/GetSearchSuggestionsCommand.ts b/clients/client-sagemaker/commands/GetSearchSuggestionsCommand.ts index c823810aea7a5..415249cebdca0 100644 --- a/clients/client-sagemaker/commands/GetSearchSuggestionsCommand.ts +++ b/clients/client-sagemaker/commands/GetSearchSuggestionsCommand.ts @@ -31,6 +31,7 @@ export class GetSearchSuggestionsCommand extends $Command< GetSearchSuggestionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetSearchSuggestionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListActionsCommand.ts b/clients/client-sagemaker/commands/ListActionsCommand.ts index 000a9318863d3..45b55166987d6 100644 --- a/clients/client-sagemaker/commands/ListActionsCommand.ts +++ b/clients/client-sagemaker/commands/ListActionsCommand.ts @@ -28,6 +28,7 @@ export class ListActionsCommand extends $Command< ListActionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListActionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListAlgorithmsCommand.ts b/clients/client-sagemaker/commands/ListAlgorithmsCommand.ts index 03792cb16c7a1..d9a145708b0e0 100644 --- a/clients/client-sagemaker/commands/ListAlgorithmsCommand.ts +++ b/clients/client-sagemaker/commands/ListAlgorithmsCommand.ts @@ -28,6 +28,7 @@ export class ListAlgorithmsCommand extends $Command< ListAlgorithmsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAlgorithmsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListAppImageConfigsCommand.ts b/clients/client-sagemaker/commands/ListAppImageConfigsCommand.ts index 90265e9be8ff5..6e155143a1b47 100644 --- a/clients/client-sagemaker/commands/ListAppImageConfigsCommand.ts +++ b/clients/client-sagemaker/commands/ListAppImageConfigsCommand.ts @@ -30,6 +30,7 @@ export class ListAppImageConfigsCommand extends $Command< ListAppImageConfigsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAppImageConfigsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListAppsCommand.ts b/clients/client-sagemaker/commands/ListAppsCommand.ts index cba469ac82757..63170edab526b 100644 --- a/clients/client-sagemaker/commands/ListAppsCommand.ts +++ b/clients/client-sagemaker/commands/ListAppsCommand.ts @@ -25,6 +25,7 @@ export class ListAppsCommand extends $Command< ListAppsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListAppsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListArtifactsCommand.ts b/clients/client-sagemaker/commands/ListArtifactsCommand.ts index 0776216617a21..5d29db299330a 100644 --- a/clients/client-sagemaker/commands/ListArtifactsCommand.ts +++ b/clients/client-sagemaker/commands/ListArtifactsCommand.ts @@ -28,6 +28,7 @@ export class ListArtifactsCommand extends $Command< ListArtifactsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListArtifactsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListAssociationsCommand.ts b/clients/client-sagemaker/commands/ListAssociationsCommand.ts index d7e5c6825d6cc..7a692dfce1487 100644 --- a/clients/client-sagemaker/commands/ListAssociationsCommand.ts +++ b/clients/client-sagemaker/commands/ListAssociationsCommand.ts @@ -28,6 +28,7 @@ export class ListAssociationsCommand extends $Command< ListAssociationsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssociationsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListAutoMLJobsCommand.ts b/clients/client-sagemaker/commands/ListAutoMLJobsCommand.ts index a77cb1d09500d..5cf3763a18996 100644 --- a/clients/client-sagemaker/commands/ListAutoMLJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListAutoMLJobsCommand.ts @@ -28,6 +28,7 @@ export class ListAutoMLJobsCommand extends $Command< ListAutoMLJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAutoMLJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListCandidatesForAutoMLJobCommand.ts b/clients/client-sagemaker/commands/ListCandidatesForAutoMLJobCommand.ts index fe90d8fa6d039..91b2feebf971b 100644 --- a/clients/client-sagemaker/commands/ListCandidatesForAutoMLJobCommand.ts +++ b/clients/client-sagemaker/commands/ListCandidatesForAutoMLJobCommand.ts @@ -28,6 +28,7 @@ export class ListCandidatesForAutoMLJobCommand extends $Command< ListCandidatesForAutoMLJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCandidatesForAutoMLJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListCodeRepositoriesCommand.ts b/clients/client-sagemaker/commands/ListCodeRepositoriesCommand.ts index 12f7ea54d2e95..a1f3e10b78f6a 100644 --- a/clients/client-sagemaker/commands/ListCodeRepositoriesCommand.ts +++ b/clients/client-sagemaker/commands/ListCodeRepositoriesCommand.ts @@ -28,6 +28,7 @@ export class ListCodeRepositoriesCommand extends $Command< ListCodeRepositoriesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCodeRepositoriesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListCompilationJobsCommand.ts b/clients/client-sagemaker/commands/ListCompilationJobsCommand.ts index 7473f38c364e8..24357e679c065 100644 --- a/clients/client-sagemaker/commands/ListCompilationJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListCompilationJobsCommand.ts @@ -30,6 +30,7 @@ export class ListCompilationJobsCommand extends $Command< ListCompilationJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListCompilationJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListContextsCommand.ts b/clients/client-sagemaker/commands/ListContextsCommand.ts index d63027a8a5a28..9d561d06596bb 100644 --- a/clients/client-sagemaker/commands/ListContextsCommand.ts +++ b/clients/client-sagemaker/commands/ListContextsCommand.ts @@ -28,6 +28,7 @@ export class ListContextsCommand extends $Command< ListContextsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListContextsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListDataQualityJobDefinitionsCommand.ts b/clients/client-sagemaker/commands/ListDataQualityJobDefinitionsCommand.ts index fb5f4ab98986f..d55fbd2e9120b 100644 --- a/clients/client-sagemaker/commands/ListDataQualityJobDefinitionsCommand.ts +++ b/clients/client-sagemaker/commands/ListDataQualityJobDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListDataQualityJobDefinitionsCommand extends $Command< ListDataQualityJobDefinitionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDataQualityJobDefinitionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListDeviceFleetsCommand.ts b/clients/client-sagemaker/commands/ListDeviceFleetsCommand.ts index 03794be38681b..97235d2a6a24c 100644 --- a/clients/client-sagemaker/commands/ListDeviceFleetsCommand.ts +++ b/clients/client-sagemaker/commands/ListDeviceFleetsCommand.ts @@ -28,6 +28,7 @@ export class ListDeviceFleetsCommand extends $Command< ListDeviceFleetsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDeviceFleetsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListDevicesCommand.ts b/clients/client-sagemaker/commands/ListDevicesCommand.ts index 50fd742ee5480..a50c0daa1a621 100644 --- a/clients/client-sagemaker/commands/ListDevicesCommand.ts +++ b/clients/client-sagemaker/commands/ListDevicesCommand.ts @@ -28,6 +28,7 @@ export class ListDevicesCommand extends $Command< ListDevicesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDevicesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListDomainsCommand.ts b/clients/client-sagemaker/commands/ListDomainsCommand.ts index 2163eaa77a304..f9a2c2a6e27e2 100644 --- a/clients/client-sagemaker/commands/ListDomainsCommand.ts +++ b/clients/client-sagemaker/commands/ListDomainsCommand.ts @@ -28,6 +28,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDomainsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListEdgePackagingJobsCommand.ts b/clients/client-sagemaker/commands/ListEdgePackagingJobsCommand.ts index 1aa875c14f29f..2e90b999b479a 100644 --- a/clients/client-sagemaker/commands/ListEdgePackagingJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListEdgePackagingJobsCommand.ts @@ -28,6 +28,7 @@ export class ListEdgePackagingJobsCommand extends $Command< ListEdgePackagingJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEdgePackagingJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListEndpointConfigsCommand.ts b/clients/client-sagemaker/commands/ListEndpointConfigsCommand.ts index e16c39577935c..1c8a69473d9c4 100644 --- a/clients/client-sagemaker/commands/ListEndpointConfigsCommand.ts +++ b/clients/client-sagemaker/commands/ListEndpointConfigsCommand.ts @@ -28,6 +28,7 @@ export class ListEndpointConfigsCommand extends $Command< ListEndpointConfigsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEndpointConfigsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListEndpointsCommand.ts b/clients/client-sagemaker/commands/ListEndpointsCommand.ts index 4dbe5d6dd34bd..483e9abe0f21e 100644 --- a/clients/client-sagemaker/commands/ListEndpointsCommand.ts +++ b/clients/client-sagemaker/commands/ListEndpointsCommand.ts @@ -28,6 +28,7 @@ export class ListEndpointsCommand extends $Command< ListEndpointsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListEndpointsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListExperimentsCommand.ts b/clients/client-sagemaker/commands/ListExperimentsCommand.ts index d4d0a0956e745..c820089a1a35d 100644 --- a/clients/client-sagemaker/commands/ListExperimentsCommand.ts +++ b/clients/client-sagemaker/commands/ListExperimentsCommand.ts @@ -30,6 +30,7 @@ export class ListExperimentsCommand extends $Command< ListExperimentsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListExperimentsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListFeatureGroupsCommand.ts b/clients/client-sagemaker/commands/ListFeatureGroupsCommand.ts index 310f1555019fa..a8e98ed377641 100644 --- a/clients/client-sagemaker/commands/ListFeatureGroupsCommand.ts +++ b/clients/client-sagemaker/commands/ListFeatureGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListFeatureGroupsCommand extends $Command< ListFeatureGroupsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFeatureGroupsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListFlowDefinitionsCommand.ts b/clients/client-sagemaker/commands/ListFlowDefinitionsCommand.ts index e1ebd49ae9d14..b8d8244b83321 100644 --- a/clients/client-sagemaker/commands/ListFlowDefinitionsCommand.ts +++ b/clients/client-sagemaker/commands/ListFlowDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListFlowDefinitionsCommand extends $Command< ListFlowDefinitionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFlowDefinitionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListHumanTaskUisCommand.ts b/clients/client-sagemaker/commands/ListHumanTaskUisCommand.ts index b773ee8ba2cda..025819505c64b 100644 --- a/clients/client-sagemaker/commands/ListHumanTaskUisCommand.ts +++ b/clients/client-sagemaker/commands/ListHumanTaskUisCommand.ts @@ -28,6 +28,7 @@ export class ListHumanTaskUisCommand extends $Command< ListHumanTaskUisCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListHumanTaskUisCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListHyperParameterTuningJobsCommand.ts b/clients/client-sagemaker/commands/ListHyperParameterTuningJobsCommand.ts index b16b83abd8efb..1520148b868d6 100644 --- a/clients/client-sagemaker/commands/ListHyperParameterTuningJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListHyperParameterTuningJobsCommand.ts @@ -30,6 +30,7 @@ export class ListHyperParameterTuningJobsCommand extends $Command< ListHyperParameterTuningJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListHyperParameterTuningJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListImageVersionsCommand.ts b/clients/client-sagemaker/commands/ListImageVersionsCommand.ts index 19fef2bf1d151..caa3b3cc0eca5 100644 --- a/clients/client-sagemaker/commands/ListImageVersionsCommand.ts +++ b/clients/client-sagemaker/commands/ListImageVersionsCommand.ts @@ -29,6 +29,7 @@ export class ListImageVersionsCommand extends $Command< ListImageVersionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListImageVersionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListImagesCommand.ts b/clients/client-sagemaker/commands/ListImagesCommand.ts index a91c2eff35805..d33d56c512013 100644 --- a/clients/client-sagemaker/commands/ListImagesCommand.ts +++ b/clients/client-sagemaker/commands/ListImagesCommand.ts @@ -29,6 +29,7 @@ export class ListImagesCommand extends $Command< ListImagesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListImagesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListLabelingJobsCommand.ts b/clients/client-sagemaker/commands/ListLabelingJobsCommand.ts index a25d2eb2b4d54..edfdfa01fb3ab 100644 --- a/clients/client-sagemaker/commands/ListLabelingJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListLabelingJobsCommand.ts @@ -28,6 +28,7 @@ export class ListLabelingJobsCommand extends $Command< ListLabelingJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLabelingJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListLabelingJobsForWorkteamCommand.ts b/clients/client-sagemaker/commands/ListLabelingJobsForWorkteamCommand.ts index a9aaf3fc8cf26..9ec0cf3d4aaba 100644 --- a/clients/client-sagemaker/commands/ListLabelingJobsForWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/ListLabelingJobsForWorkteamCommand.ts @@ -28,6 +28,7 @@ export class ListLabelingJobsForWorkteamCommand extends $Command< ListLabelingJobsForWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListLabelingJobsForWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelBiasJobDefinitionsCommand.ts b/clients/client-sagemaker/commands/ListModelBiasJobDefinitionsCommand.ts index 955f89d750b6b..7a3dc2078eb3c 100644 --- a/clients/client-sagemaker/commands/ListModelBiasJobDefinitionsCommand.ts +++ b/clients/client-sagemaker/commands/ListModelBiasJobDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListModelBiasJobDefinitionsCommand extends $Command< ListModelBiasJobDefinitionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelBiasJobDefinitionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelExplainabilityJobDefinitionsCommand.ts b/clients/client-sagemaker/commands/ListModelExplainabilityJobDefinitionsCommand.ts index eb2e66e12e96f..f74df99d1612b 100644 --- a/clients/client-sagemaker/commands/ListModelExplainabilityJobDefinitionsCommand.ts +++ b/clients/client-sagemaker/commands/ListModelExplainabilityJobDefinitionsCommand.ts @@ -32,6 +32,7 @@ export class ListModelExplainabilityJobDefinitionsCommand extends $Command< ListModelExplainabilityJobDefinitionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListModelExplainabilityJobDefinitionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelPackageGroupsCommand.ts b/clients/client-sagemaker/commands/ListModelPackageGroupsCommand.ts index cb08730a3ef68..471de8b475c24 100644 --- a/clients/client-sagemaker/commands/ListModelPackageGroupsCommand.ts +++ b/clients/client-sagemaker/commands/ListModelPackageGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListModelPackageGroupsCommand extends $Command< ListModelPackageGroupsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelPackageGroupsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelPackagesCommand.ts b/clients/client-sagemaker/commands/ListModelPackagesCommand.ts index e243f1e826562..7927dbc6516c9 100644 --- a/clients/client-sagemaker/commands/ListModelPackagesCommand.ts +++ b/clients/client-sagemaker/commands/ListModelPackagesCommand.ts @@ -28,6 +28,7 @@ export class ListModelPackagesCommand extends $Command< ListModelPackagesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelPackagesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelQualityJobDefinitionsCommand.ts b/clients/client-sagemaker/commands/ListModelQualityJobDefinitionsCommand.ts index 3616ce02824ab..23a52134b2e8e 100644 --- a/clients/client-sagemaker/commands/ListModelQualityJobDefinitionsCommand.ts +++ b/clients/client-sagemaker/commands/ListModelQualityJobDefinitionsCommand.ts @@ -28,6 +28,7 @@ export class ListModelQualityJobDefinitionsCommand extends $Command< ListModelQualityJobDefinitionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelQualityJobDefinitionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListModelsCommand.ts b/clients/client-sagemaker/commands/ListModelsCommand.ts index 6b55c2ad8cac3..d729e698a9052 100644 --- a/clients/client-sagemaker/commands/ListModelsCommand.ts +++ b/clients/client-sagemaker/commands/ListModelsCommand.ts @@ -28,6 +28,7 @@ export class ListModelsCommand extends $Command< ListModelsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListModelsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListMonitoringExecutionsCommand.ts b/clients/client-sagemaker/commands/ListMonitoringExecutionsCommand.ts index 0f7cc919166eb..f947f7e242448 100644 --- a/clients/client-sagemaker/commands/ListMonitoringExecutionsCommand.ts +++ b/clients/client-sagemaker/commands/ListMonitoringExecutionsCommand.ts @@ -28,6 +28,7 @@ export class ListMonitoringExecutionsCommand extends $Command< ListMonitoringExecutionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMonitoringExecutionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListMonitoringSchedulesCommand.ts b/clients/client-sagemaker/commands/ListMonitoringSchedulesCommand.ts index c5aa8d4c0288b..566547c49beb4 100644 --- a/clients/client-sagemaker/commands/ListMonitoringSchedulesCommand.ts +++ b/clients/client-sagemaker/commands/ListMonitoringSchedulesCommand.ts @@ -28,6 +28,7 @@ export class ListMonitoringSchedulesCommand extends $Command< ListMonitoringSchedulesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListMonitoringSchedulesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListNotebookInstanceLifecycleConfigsCommand.ts b/clients/client-sagemaker/commands/ListNotebookInstanceLifecycleConfigsCommand.ts index b7828b7c191e2..86c245ed969ad 100644 --- a/clients/client-sagemaker/commands/ListNotebookInstanceLifecycleConfigsCommand.ts +++ b/clients/client-sagemaker/commands/ListNotebookInstanceLifecycleConfigsCommand.ts @@ -32,6 +32,7 @@ export class ListNotebookInstanceLifecycleConfigsCommand extends $Command< ListNotebookInstanceLifecycleConfigsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListNotebookInstanceLifecycleConfigsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListNotebookInstancesCommand.ts b/clients/client-sagemaker/commands/ListNotebookInstancesCommand.ts index a111a68a2b978..ddaca513c8dcb 100644 --- a/clients/client-sagemaker/commands/ListNotebookInstancesCommand.ts +++ b/clients/client-sagemaker/commands/ListNotebookInstancesCommand.ts @@ -29,6 +29,7 @@ export class ListNotebookInstancesCommand extends $Command< ListNotebookInstancesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListNotebookInstancesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListPipelineExecutionStepsCommand.ts b/clients/client-sagemaker/commands/ListPipelineExecutionStepsCommand.ts index 0257f3ecdfef7..b6b510951cdbd 100644 --- a/clients/client-sagemaker/commands/ListPipelineExecutionStepsCommand.ts +++ b/clients/client-sagemaker/commands/ListPipelineExecutionStepsCommand.ts @@ -28,6 +28,7 @@ export class ListPipelineExecutionStepsCommand extends $Command< ListPipelineExecutionStepsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelineExecutionStepsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListPipelineExecutionsCommand.ts b/clients/client-sagemaker/commands/ListPipelineExecutionsCommand.ts index 61a23f5db801e..fc8fcd37346d0 100644 --- a/clients/client-sagemaker/commands/ListPipelineExecutionsCommand.ts +++ b/clients/client-sagemaker/commands/ListPipelineExecutionsCommand.ts @@ -28,6 +28,7 @@ export class ListPipelineExecutionsCommand extends $Command< ListPipelineExecutionsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelineExecutionsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListPipelineParametersForExecutionCommand.ts b/clients/client-sagemaker/commands/ListPipelineParametersForExecutionCommand.ts index 9fff258aa0484..cd417bfbe7a70 100644 --- a/clients/client-sagemaker/commands/ListPipelineParametersForExecutionCommand.ts +++ b/clients/client-sagemaker/commands/ListPipelineParametersForExecutionCommand.ts @@ -32,6 +32,7 @@ export class ListPipelineParametersForExecutionCommand extends $Command< ListPipelineParametersForExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPipelineParametersForExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListPipelinesCommand.ts b/clients/client-sagemaker/commands/ListPipelinesCommand.ts index f98cf7b131461..5e3b30cb29377 100644 --- a/clients/client-sagemaker/commands/ListPipelinesCommand.ts +++ b/clients/client-sagemaker/commands/ListPipelinesCommand.ts @@ -28,6 +28,7 @@ export class ListPipelinesCommand extends $Command< ListPipelinesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPipelinesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListProcessingJobsCommand.ts b/clients/client-sagemaker/commands/ListProcessingJobsCommand.ts index 0dab6aec4162d..89146e35b0626 100644 --- a/clients/client-sagemaker/commands/ListProcessingJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListProcessingJobsCommand.ts @@ -28,6 +28,7 @@ export class ListProcessingJobsCommand extends $Command< ListProcessingJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProcessingJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListProjectsCommand.ts b/clients/client-sagemaker/commands/ListProjectsCommand.ts index e035cd2a9e51b..7ab3a0f16446b 100644 --- a/clients/client-sagemaker/commands/ListProjectsCommand.ts +++ b/clients/client-sagemaker/commands/ListProjectsCommand.ts @@ -28,6 +28,7 @@ export class ListProjectsCommand extends $Command< ListProjectsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProjectsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListSubscribedWorkteamsCommand.ts b/clients/client-sagemaker/commands/ListSubscribedWorkteamsCommand.ts index 251b0e618bdea..ed4da2d161ca6 100644 --- a/clients/client-sagemaker/commands/ListSubscribedWorkteamsCommand.ts +++ b/clients/client-sagemaker/commands/ListSubscribedWorkteamsCommand.ts @@ -30,6 +30,7 @@ export class ListSubscribedWorkteamsCommand extends $Command< ListSubscribedWorkteamsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListSubscribedWorkteamsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTagsCommand.ts b/clients/client-sagemaker/commands/ListTagsCommand.ts index 73dc9f014fe73..5110d057b42fb 100644 --- a/clients/client-sagemaker/commands/ListTagsCommand.ts +++ b/clients/client-sagemaker/commands/ListTagsCommand.ts @@ -25,6 +25,7 @@ export class ListTagsCommand extends $Command< ListTagsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListTagsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTrainingJobsCommand.ts b/clients/client-sagemaker/commands/ListTrainingJobsCommand.ts index a1eddc29a04d1..d559c662f3fb9 100644 --- a/clients/client-sagemaker/commands/ListTrainingJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListTrainingJobsCommand.ts @@ -28,6 +28,7 @@ export class ListTrainingJobsCommand extends $Command< ListTrainingJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTrainingJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTrainingJobsForHyperParameterTuningJobCommand.ts b/clients/client-sagemaker/commands/ListTrainingJobsForHyperParameterTuningJobCommand.ts index e7134e2bcbc43..1c649a9234be0 100644 --- a/clients/client-sagemaker/commands/ListTrainingJobsForHyperParameterTuningJobCommand.ts +++ b/clients/client-sagemaker/commands/ListTrainingJobsForHyperParameterTuningJobCommand.ts @@ -33,6 +33,7 @@ export class ListTrainingJobsForHyperParameterTuningJobCommand extends $Command< ListTrainingJobsForHyperParameterTuningJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListTrainingJobsForHyperParameterTuningJobCommand extends $Command< ListTrainingJobsForHyperParameterTuningJobCommandInput, ListTrainingJobsForHyperParameterTuningJobCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTransformJobsCommand.ts b/clients/client-sagemaker/commands/ListTransformJobsCommand.ts index 999a0705c4cca..a44145f8ca273 100644 --- a/clients/client-sagemaker/commands/ListTransformJobsCommand.ts +++ b/clients/client-sagemaker/commands/ListTransformJobsCommand.ts @@ -28,6 +28,7 @@ export class ListTransformJobsCommand extends $Command< ListTransformJobsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTransformJobsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTrialComponentsCommand.ts b/clients/client-sagemaker/commands/ListTrialComponentsCommand.ts index 1683fe7534cfc..c2fd28401d967 100644 --- a/clients/client-sagemaker/commands/ListTrialComponentsCommand.ts +++ b/clients/client-sagemaker/commands/ListTrialComponentsCommand.ts @@ -47,6 +47,7 @@ export class ListTrialComponentsCommand extends $Command< ListTrialComponentsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class ListTrialComponentsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListTrialsCommand.ts b/clients/client-sagemaker/commands/ListTrialsCommand.ts index 9dcbd14b7242d..8153ea859f3ca 100644 --- a/clients/client-sagemaker/commands/ListTrialsCommand.ts +++ b/clients/client-sagemaker/commands/ListTrialsCommand.ts @@ -32,6 +32,7 @@ export class ListTrialsCommand extends $Command< ListTrialsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTrialsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListUserProfilesCommand.ts b/clients/client-sagemaker/commands/ListUserProfilesCommand.ts index f1b21608b1aef..4d52f13553cc2 100644 --- a/clients/client-sagemaker/commands/ListUserProfilesCommand.ts +++ b/clients/client-sagemaker/commands/ListUserProfilesCommand.ts @@ -28,6 +28,7 @@ export class ListUserProfilesCommand extends $Command< ListUserProfilesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListUserProfilesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListWorkforcesCommand.ts b/clients/client-sagemaker/commands/ListWorkforcesCommand.ts index f82bbcea3d96d..dd5f5e7be1f33 100644 --- a/clients/client-sagemaker/commands/ListWorkforcesCommand.ts +++ b/clients/client-sagemaker/commands/ListWorkforcesCommand.ts @@ -29,6 +29,7 @@ export class ListWorkforcesCommand extends $Command< ListWorkforcesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListWorkforcesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/ListWorkteamsCommand.ts b/clients/client-sagemaker/commands/ListWorkteamsCommand.ts index f5659725c7a29..6380290a27a33 100644 --- a/clients/client-sagemaker/commands/ListWorkteamsCommand.ts +++ b/clients/client-sagemaker/commands/ListWorkteamsCommand.ts @@ -30,6 +30,7 @@ export class ListWorkteamsCommand extends $Command< ListWorkteamsCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListWorkteamsCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/PutModelPackageGroupPolicyCommand.ts b/clients/client-sagemaker/commands/PutModelPackageGroupPolicyCommand.ts index 1b4daffaa3351..5b8dca954130c 100644 --- a/clients/client-sagemaker/commands/PutModelPackageGroupPolicyCommand.ts +++ b/clients/client-sagemaker/commands/PutModelPackageGroupPolicyCommand.ts @@ -30,6 +30,7 @@ export class PutModelPackageGroupPolicyCommand extends $Command< PutModelPackageGroupPolicyCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutModelPackageGroupPolicyCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/RegisterDevicesCommand.ts b/clients/client-sagemaker/commands/RegisterDevicesCommand.ts index ba7f19a6314d4..a9e8e029f2d53 100644 --- a/clients/client-sagemaker/commands/RegisterDevicesCommand.ts +++ b/clients/client-sagemaker/commands/RegisterDevicesCommand.ts @@ -28,6 +28,7 @@ export class RegisterDevicesCommand extends $Command< RegisterDevicesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterDevicesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/RenderUiTemplateCommand.ts b/clients/client-sagemaker/commands/RenderUiTemplateCommand.ts index 874ffae8679e0..75fe8bdbbc5fa 100644 --- a/clients/client-sagemaker/commands/RenderUiTemplateCommand.ts +++ b/clients/client-sagemaker/commands/RenderUiTemplateCommand.ts @@ -28,6 +28,7 @@ export class RenderUiTemplateCommand extends $Command< RenderUiTemplateCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RenderUiTemplateCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/SearchCommand.ts b/clients/client-sagemaker/commands/SearchCommand.ts index ab316ad0e27ef..3d1f59c25e112 100644 --- a/clients/client-sagemaker/commands/SearchCommand.ts +++ b/clients/client-sagemaker/commands/SearchCommand.ts @@ -26,6 +26,7 @@ export type SearchCommandOutput = SearchResponse & __MetadataBearer; * timestamp.

*/ export class SearchCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class SearchCommand 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-sagemaker/commands/StartMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/StartMonitoringScheduleCommand.ts index 77bdfe03b1a76..5511404decbbe 100644 --- a/clients/client-sagemaker/commands/StartMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/StartMonitoringScheduleCommand.ts @@ -32,6 +32,7 @@ export class StartMonitoringScheduleCommand extends $Command< StartMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StartNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/StartNotebookInstanceCommand.ts index 835a34c49fb2f..4d23b5b90644f 100644 --- a/clients/client-sagemaker/commands/StartNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/StartNotebookInstanceCommand.ts @@ -31,6 +31,7 @@ export class StartNotebookInstanceCommand extends $Command< StartNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StartNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StartPipelineExecutionCommand.ts b/clients/client-sagemaker/commands/StartPipelineExecutionCommand.ts index 4f000171cd7ed..d3ee945c441bd 100644 --- a/clients/client-sagemaker/commands/StartPipelineExecutionCommand.ts +++ b/clients/client-sagemaker/commands/StartPipelineExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartPipelineExecutionCommand extends $Command< StartPipelineExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartPipelineExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopAutoMLJobCommand.ts b/clients/client-sagemaker/commands/StopAutoMLJobCommand.ts index 354fc72cda8aa..74df791421971 100644 --- a/clients/client-sagemaker/commands/StopAutoMLJobCommand.ts +++ b/clients/client-sagemaker/commands/StopAutoMLJobCommand.ts @@ -28,6 +28,7 @@ export class StopAutoMLJobCommand extends $Command< StopAutoMLJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopAutoMLJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopCompilationJobCommand.ts b/clients/client-sagemaker/commands/StopCompilationJobCommand.ts index 76fef119501d6..7ef6e98ddda6d 100644 --- a/clients/client-sagemaker/commands/StopCompilationJobCommand.ts +++ b/clients/client-sagemaker/commands/StopCompilationJobCommand.ts @@ -33,6 +33,7 @@ export class StopCompilationJobCommand extends $Command< StopCompilationJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopCompilationJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopEdgePackagingJobCommand.ts b/clients/client-sagemaker/commands/StopEdgePackagingJobCommand.ts index 3001ad61a4754..12767924944ff 100644 --- a/clients/client-sagemaker/commands/StopEdgePackagingJobCommand.ts +++ b/clients/client-sagemaker/commands/StopEdgePackagingJobCommand.ts @@ -28,6 +28,7 @@ export class StopEdgePackagingJobCommand extends $Command< StopEdgePackagingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopEdgePackagingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopHyperParameterTuningJobCommand.ts b/clients/client-sagemaker/commands/StopHyperParameterTuningJobCommand.ts index cd4defabfcc89..a073249d8cec7 100644 --- a/clients/client-sagemaker/commands/StopHyperParameterTuningJobCommand.ts +++ b/clients/client-sagemaker/commands/StopHyperParameterTuningJobCommand.ts @@ -34,6 +34,7 @@ export class StopHyperParameterTuningJobCommand extends $Command< StopHyperParameterTuningJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopHyperParameterTuningJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopLabelingJobCommand.ts b/clients/client-sagemaker/commands/StopLabelingJobCommand.ts index 48cd0abe2c7e3..a312c868d0693 100644 --- a/clients/client-sagemaker/commands/StopLabelingJobCommand.ts +++ b/clients/client-sagemaker/commands/StopLabelingJobCommand.ts @@ -29,6 +29,7 @@ export class StopLabelingJobCommand extends $Command< StopLabelingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopLabelingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/StopMonitoringScheduleCommand.ts index 43dcde9ab43dc..4f414773270c4 100644 --- a/clients/client-sagemaker/commands/StopMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/StopMonitoringScheduleCommand.ts @@ -28,6 +28,7 @@ export class StopMonitoringScheduleCommand extends $Command< StopMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/StopNotebookInstanceCommand.ts index 851dfcc3de6aa..d70a9debb6ae2 100644 --- a/clients/client-sagemaker/commands/StopNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/StopNotebookInstanceCommand.ts @@ -36,6 +36,7 @@ export class StopNotebookInstanceCommand extends $Command< StopNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StopNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopPipelineExecutionCommand.ts b/clients/client-sagemaker/commands/StopPipelineExecutionCommand.ts index ef6a8acea954e..2c914d63434aa 100644 --- a/clients/client-sagemaker/commands/StopPipelineExecutionCommand.ts +++ b/clients/client-sagemaker/commands/StopPipelineExecutionCommand.ts @@ -28,6 +28,7 @@ export class StopPipelineExecutionCommand extends $Command< StopPipelineExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopPipelineExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopProcessingJobCommand.ts b/clients/client-sagemaker/commands/StopProcessingJobCommand.ts index d017686ce6a62..494379a3f4285 100644 --- a/clients/client-sagemaker/commands/StopProcessingJobCommand.ts +++ b/clients/client-sagemaker/commands/StopProcessingJobCommand.ts @@ -28,6 +28,7 @@ export class StopProcessingJobCommand extends $Command< StopProcessingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopProcessingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopTrainingJobCommand.ts b/clients/client-sagemaker/commands/StopTrainingJobCommand.ts index 5266dec228621..bc4317dab0983 100644 --- a/clients/client-sagemaker/commands/StopTrainingJobCommand.ts +++ b/clients/client-sagemaker/commands/StopTrainingJobCommand.ts @@ -34,6 +34,7 @@ export class StopTrainingJobCommand extends $Command< StopTrainingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopTrainingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/StopTransformJobCommand.ts b/clients/client-sagemaker/commands/StopTransformJobCommand.ts index 67da25988b5ae..3d5b53510905d 100644 --- a/clients/client-sagemaker/commands/StopTransformJobCommand.ts +++ b/clients/client-sagemaker/commands/StopTransformJobCommand.ts @@ -33,6 +33,7 @@ export class StopTransformJobCommand extends $Command< StopTransformJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopTransformJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateActionCommand.ts b/clients/client-sagemaker/commands/UpdateActionCommand.ts index d24017bf6e205..b53d42629fc99 100644 --- a/clients/client-sagemaker/commands/UpdateActionCommand.ts +++ b/clients/client-sagemaker/commands/UpdateActionCommand.ts @@ -28,6 +28,7 @@ export class UpdateActionCommand extends $Command< UpdateActionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateActionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateAppImageConfigCommand.ts b/clients/client-sagemaker/commands/UpdateAppImageConfigCommand.ts index 0eea92277492b..21b412b9ef832 100644 --- a/clients/client-sagemaker/commands/UpdateAppImageConfigCommand.ts +++ b/clients/client-sagemaker/commands/UpdateAppImageConfigCommand.ts @@ -28,6 +28,7 @@ export class UpdateAppImageConfigCommand extends $Command< UpdateAppImageConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAppImageConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateArtifactCommand.ts b/clients/client-sagemaker/commands/UpdateArtifactCommand.ts index 65ba533d65601..a085192465b2a 100644 --- a/clients/client-sagemaker/commands/UpdateArtifactCommand.ts +++ b/clients/client-sagemaker/commands/UpdateArtifactCommand.ts @@ -28,6 +28,7 @@ export class UpdateArtifactCommand extends $Command< UpdateArtifactCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateArtifactCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateCodeRepositoryCommand.ts b/clients/client-sagemaker/commands/UpdateCodeRepositoryCommand.ts index 8c8b3dee7da5c..259f0fb0bcce4 100644 --- a/clients/client-sagemaker/commands/UpdateCodeRepositoryCommand.ts +++ b/clients/client-sagemaker/commands/UpdateCodeRepositoryCommand.ts @@ -28,6 +28,7 @@ export class UpdateCodeRepositoryCommand extends $Command< UpdateCodeRepositoryCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateCodeRepositoryCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateContextCommand.ts b/clients/client-sagemaker/commands/UpdateContextCommand.ts index edeb33c948ced..0a8379ae8681b 100644 --- a/clients/client-sagemaker/commands/UpdateContextCommand.ts +++ b/clients/client-sagemaker/commands/UpdateContextCommand.ts @@ -28,6 +28,7 @@ export class UpdateContextCommand extends $Command< UpdateContextCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateContextCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateDeviceFleetCommand.ts b/clients/client-sagemaker/commands/UpdateDeviceFleetCommand.ts index d5de1a9262750..776bd71cf7943 100644 --- a/clients/client-sagemaker/commands/UpdateDeviceFleetCommand.ts +++ b/clients/client-sagemaker/commands/UpdateDeviceFleetCommand.ts @@ -28,6 +28,7 @@ export class UpdateDeviceFleetCommand extends $Command< UpdateDeviceFleetCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDeviceFleetCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateDevicesCommand.ts b/clients/client-sagemaker/commands/UpdateDevicesCommand.ts index 498989df99407..b3e46f7c58b50 100644 --- a/clients/client-sagemaker/commands/UpdateDevicesCommand.ts +++ b/clients/client-sagemaker/commands/UpdateDevicesCommand.ts @@ -28,6 +28,7 @@ export class UpdateDevicesCommand extends $Command< UpdateDevicesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDevicesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateDomainCommand.ts b/clients/client-sagemaker/commands/UpdateDomainCommand.ts index e117aa226bca3..d9726d744ad07 100644 --- a/clients/client-sagemaker/commands/UpdateDomainCommand.ts +++ b/clients/client-sagemaker/commands/UpdateDomainCommand.ts @@ -28,6 +28,7 @@ export class UpdateDomainCommand extends $Command< UpdateDomainCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDomainCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateEndpointCommand.ts b/clients/client-sagemaker/commands/UpdateEndpointCommand.ts index 04abc99a0f0ec..f6d13b26e275c 100644 --- a/clients/client-sagemaker/commands/UpdateEndpointCommand.ts +++ b/clients/client-sagemaker/commands/UpdateEndpointCommand.ts @@ -44,6 +44,7 @@ export class UpdateEndpointCommand extends $Command< UpdateEndpointCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class UpdateEndpointCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateEndpointWeightsAndCapacitiesCommand.ts b/clients/client-sagemaker/commands/UpdateEndpointWeightsAndCapacitiesCommand.ts index 6a83aa35eb7de..72a0d872c436b 100644 --- a/clients/client-sagemaker/commands/UpdateEndpointWeightsAndCapacitiesCommand.ts +++ b/clients/client-sagemaker/commands/UpdateEndpointWeightsAndCapacitiesCommand.ts @@ -33,6 +33,7 @@ export class UpdateEndpointWeightsAndCapacitiesCommand extends $Command< UpdateEndpointWeightsAndCapacitiesCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateEndpointWeightsAndCapacitiesCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateExperimentCommand.ts b/clients/client-sagemaker/commands/UpdateExperimentCommand.ts index 38b55afac16c1..3ff0cea831cf3 100644 --- a/clients/client-sagemaker/commands/UpdateExperimentCommand.ts +++ b/clients/client-sagemaker/commands/UpdateExperimentCommand.ts @@ -29,6 +29,7 @@ export class UpdateExperimentCommand extends $Command< UpdateExperimentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateExperimentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateImageCommand.ts b/clients/client-sagemaker/commands/UpdateImageCommand.ts index 8c592dd09adad..f18a619c29111 100644 --- a/clients/client-sagemaker/commands/UpdateImageCommand.ts +++ b/clients/client-sagemaker/commands/UpdateImageCommand.ts @@ -29,6 +29,7 @@ export class UpdateImageCommand extends $Command< UpdateImageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateImageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateModelPackageCommand.ts b/clients/client-sagemaker/commands/UpdateModelPackageCommand.ts index a845a4aad24d1..7c1795a15111e 100644 --- a/clients/client-sagemaker/commands/UpdateModelPackageCommand.ts +++ b/clients/client-sagemaker/commands/UpdateModelPackageCommand.ts @@ -28,6 +28,7 @@ export class UpdateModelPackageCommand extends $Command< UpdateModelPackageCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateModelPackageCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateMonitoringScheduleCommand.ts b/clients/client-sagemaker/commands/UpdateMonitoringScheduleCommand.ts index a6b57ae75e006..ec8ad42b43835 100644 --- a/clients/client-sagemaker/commands/UpdateMonitoringScheduleCommand.ts +++ b/clients/client-sagemaker/commands/UpdateMonitoringScheduleCommand.ts @@ -28,6 +28,7 @@ export class UpdateMonitoringScheduleCommand extends $Command< UpdateMonitoringScheduleCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMonitoringScheduleCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateNotebookInstanceCommand.ts b/clients/client-sagemaker/commands/UpdateNotebookInstanceCommand.ts index b0b4f8d7f8ce2..f9df90588f1d4 100644 --- a/clients/client-sagemaker/commands/UpdateNotebookInstanceCommand.ts +++ b/clients/client-sagemaker/commands/UpdateNotebookInstanceCommand.ts @@ -30,6 +30,7 @@ export class UpdateNotebookInstanceCommand extends $Command< UpdateNotebookInstanceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateNotebookInstanceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateNotebookInstanceLifecycleConfigCommand.ts b/clients/client-sagemaker/commands/UpdateNotebookInstanceLifecycleConfigCommand.ts index 22695f9f5c1cc..ff471a479166a 100644 --- a/clients/client-sagemaker/commands/UpdateNotebookInstanceLifecycleConfigCommand.ts +++ b/clients/client-sagemaker/commands/UpdateNotebookInstanceLifecycleConfigCommand.ts @@ -32,6 +32,7 @@ export class UpdateNotebookInstanceLifecycleConfigCommand extends $Command< UpdateNotebookInstanceLifecycleConfigCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateNotebookInstanceLifecycleConfigCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdatePipelineCommand.ts b/clients/client-sagemaker/commands/UpdatePipelineCommand.ts index e3593b68c5c93..549f67c391902 100644 --- a/clients/client-sagemaker/commands/UpdatePipelineCommand.ts +++ b/clients/client-sagemaker/commands/UpdatePipelineCommand.ts @@ -28,6 +28,7 @@ export class UpdatePipelineCommand extends $Command< UpdatePipelineCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePipelineCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdatePipelineExecutionCommand.ts b/clients/client-sagemaker/commands/UpdatePipelineExecutionCommand.ts index a38962f115861..02b6c5338c50f 100644 --- a/clients/client-sagemaker/commands/UpdatePipelineExecutionCommand.ts +++ b/clients/client-sagemaker/commands/UpdatePipelineExecutionCommand.ts @@ -28,6 +28,7 @@ export class UpdatePipelineExecutionCommand extends $Command< UpdatePipelineExecutionCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePipelineExecutionCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateTrainingJobCommand.ts b/clients/client-sagemaker/commands/UpdateTrainingJobCommand.ts index 3f38168996d50..c5f4a865ce510 100644 --- a/clients/client-sagemaker/commands/UpdateTrainingJobCommand.ts +++ b/clients/client-sagemaker/commands/UpdateTrainingJobCommand.ts @@ -28,6 +28,7 @@ export class UpdateTrainingJobCommand extends $Command< UpdateTrainingJobCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTrainingJobCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateTrialCommand.ts b/clients/client-sagemaker/commands/UpdateTrialCommand.ts index 6ab6982d48f7a..fa51b0e50451c 100644 --- a/clients/client-sagemaker/commands/UpdateTrialCommand.ts +++ b/clients/client-sagemaker/commands/UpdateTrialCommand.ts @@ -28,6 +28,7 @@ export class UpdateTrialCommand extends $Command< UpdateTrialCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTrialCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateTrialComponentCommand.ts b/clients/client-sagemaker/commands/UpdateTrialComponentCommand.ts index 7075eb8d6459f..60771855bdb57 100644 --- a/clients/client-sagemaker/commands/UpdateTrialComponentCommand.ts +++ b/clients/client-sagemaker/commands/UpdateTrialComponentCommand.ts @@ -28,6 +28,7 @@ export class UpdateTrialComponentCommand extends $Command< UpdateTrialComponentCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTrialComponentCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateUserProfileCommand.ts b/clients/client-sagemaker/commands/UpdateUserProfileCommand.ts index 7cd86074efa9f..831300ac7ebe7 100644 --- a/clients/client-sagemaker/commands/UpdateUserProfileCommand.ts +++ b/clients/client-sagemaker/commands/UpdateUserProfileCommand.ts @@ -28,6 +28,7 @@ export class UpdateUserProfileCommand extends $Command< UpdateUserProfileCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateUserProfileCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateWorkforceCommand.ts b/clients/client-sagemaker/commands/UpdateWorkforceCommand.ts index 4e2c56cde9152..2203f56af26ae 100644 --- a/clients/client-sagemaker/commands/UpdateWorkforceCommand.ts +++ b/clients/client-sagemaker/commands/UpdateWorkforceCommand.ts @@ -49,6 +49,7 @@ export class UpdateWorkforceCommand extends $Command< UpdateWorkforceCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class UpdateWorkforceCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sagemaker/commands/UpdateWorkteamCommand.ts b/clients/client-sagemaker/commands/UpdateWorkteamCommand.ts index cd189d6965c92..b2ec037768e99 100644 --- a/clients/client-sagemaker/commands/UpdateWorkteamCommand.ts +++ b/clients/client-sagemaker/commands/UpdateWorkteamCommand.ts @@ -28,6 +28,7 @@ export class UpdateWorkteamCommand extends $Command< UpdateWorkteamCommandOutput, SageMakerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateWorkteamCommand extends $Command< configuration: SageMakerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/CreateSavingsPlanCommand.ts b/clients/client-savingsplans/commands/CreateSavingsPlanCommand.ts index bac3789f0b860..b9863cb352fe9 100644 --- a/clients/client-savingsplans/commands/CreateSavingsPlanCommand.ts +++ b/clients/client-savingsplans/commands/CreateSavingsPlanCommand.ts @@ -28,6 +28,7 @@ export class CreateSavingsPlanCommand extends $Command< CreateSavingsPlanCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSavingsPlanCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/DeleteQueuedSavingsPlanCommand.ts b/clients/client-savingsplans/commands/DeleteQueuedSavingsPlanCommand.ts index fd4b2a47cad9b..86914ebeb5e57 100644 --- a/clients/client-savingsplans/commands/DeleteQueuedSavingsPlanCommand.ts +++ b/clients/client-savingsplans/commands/DeleteQueuedSavingsPlanCommand.ts @@ -28,6 +28,7 @@ export class DeleteQueuedSavingsPlanCommand extends $Command< DeleteQueuedSavingsPlanCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteQueuedSavingsPlanCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/DescribeSavingsPlanRatesCommand.ts b/clients/client-savingsplans/commands/DescribeSavingsPlanRatesCommand.ts index 37b28100e6810..5e22a7e2dfee6 100644 --- a/clients/client-savingsplans/commands/DescribeSavingsPlanRatesCommand.ts +++ b/clients/client-savingsplans/commands/DescribeSavingsPlanRatesCommand.ts @@ -28,6 +28,7 @@ export class DescribeSavingsPlanRatesCommand extends $Command< DescribeSavingsPlanRatesCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSavingsPlanRatesCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/DescribeSavingsPlansCommand.ts b/clients/client-savingsplans/commands/DescribeSavingsPlansCommand.ts index 2700e66d06cb0..c01776f257ef9 100644 --- a/clients/client-savingsplans/commands/DescribeSavingsPlansCommand.ts +++ b/clients/client-savingsplans/commands/DescribeSavingsPlansCommand.ts @@ -28,6 +28,7 @@ export class DescribeSavingsPlansCommand extends $Command< DescribeSavingsPlansCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSavingsPlansCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingRatesCommand.ts b/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingRatesCommand.ts index 03bfa89be77e0..c12bfc98c7569 100644 --- a/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingRatesCommand.ts +++ b/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingRatesCommand.ts @@ -32,6 +32,7 @@ export class DescribeSavingsPlansOfferingRatesCommand extends $Command< DescribeSavingsPlansOfferingRatesCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeSavingsPlansOfferingRatesCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingsCommand.ts b/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingsCommand.ts index cceee160e2878..378267247f861 100644 --- a/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingsCommand.ts +++ b/clients/client-savingsplans/commands/DescribeSavingsPlansOfferingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeSavingsPlansOfferingsCommand extends $Command< DescribeSavingsPlansOfferingsCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSavingsPlansOfferingsCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/ListTagsForResourceCommand.ts b/clients/client-savingsplans/commands/ListTagsForResourceCommand.ts index c1941c55707e6..90834f73bde56 100644 --- a/clients/client-savingsplans/commands/ListTagsForResourceCommand.ts +++ b/clients/client-savingsplans/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/TagResourceCommand.ts b/clients/client-savingsplans/commands/TagResourceCommand.ts index f601d6fd5a902..40257f5667fd9 100644 --- a/clients/client-savingsplans/commands/TagResourceCommand.ts +++ b/clients/client-savingsplans/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-savingsplans/commands/UntagResourceCommand.ts b/clients/client-savingsplans/commands/UntagResourceCommand.ts index fe70c102310b1..badedc20613c4 100644 --- a/clients/client-savingsplans/commands/UntagResourceCommand.ts +++ b/clients/client-savingsplans/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SavingsplansClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SavingsplansClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/CreateDiscovererCommand.ts b/clients/client-schemas/commands/CreateDiscovererCommand.ts index a24eb861cc2d6..9895eeb8605c7 100644 --- a/clients/client-schemas/commands/CreateDiscovererCommand.ts +++ b/clients/client-schemas/commands/CreateDiscovererCommand.ts @@ -28,6 +28,7 @@ export class CreateDiscovererCommand extends $Command< CreateDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/CreateRegistryCommand.ts b/clients/client-schemas/commands/CreateRegistryCommand.ts index eb97a71167ff7..a48013f64f97c 100644 --- a/clients/client-schemas/commands/CreateRegistryCommand.ts +++ b/clients/client-schemas/commands/CreateRegistryCommand.ts @@ -28,6 +28,7 @@ export class CreateRegistryCommand extends $Command< CreateRegistryCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateRegistryCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/CreateSchemaCommand.ts b/clients/client-schemas/commands/CreateSchemaCommand.ts index 0c9401d1f29de..e2d75ddf14aa2 100644 --- a/clients/client-schemas/commands/CreateSchemaCommand.ts +++ b/clients/client-schemas/commands/CreateSchemaCommand.ts @@ -28,6 +28,7 @@ export class CreateSchemaCommand extends $Command< CreateSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DeleteDiscovererCommand.ts b/clients/client-schemas/commands/DeleteDiscovererCommand.ts index 8ce6cad9144b9..c5ca58d40a251 100644 --- a/clients/client-schemas/commands/DeleteDiscovererCommand.ts +++ b/clients/client-schemas/commands/DeleteDiscovererCommand.ts @@ -28,6 +28,7 @@ export class DeleteDiscovererCommand extends $Command< DeleteDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DeleteRegistryCommand.ts b/clients/client-schemas/commands/DeleteRegistryCommand.ts index c65c350ad2b84..34ade24e73698 100644 --- a/clients/client-schemas/commands/DeleteRegistryCommand.ts +++ b/clients/client-schemas/commands/DeleteRegistryCommand.ts @@ -28,6 +28,7 @@ export class DeleteRegistryCommand extends $Command< DeleteRegistryCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteRegistryCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DeleteResourcePolicyCommand.ts b/clients/client-schemas/commands/DeleteResourcePolicyCommand.ts index 5e6f6b0956a38..1ba3e29f9d689 100644 --- a/clients/client-schemas/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-schemas/commands/DeleteResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DeleteSchemaCommand.ts b/clients/client-schemas/commands/DeleteSchemaCommand.ts index d2ac4172f21ba..ee7fbb76e36d6 100644 --- a/clients/client-schemas/commands/DeleteSchemaCommand.ts +++ b/clients/client-schemas/commands/DeleteSchemaCommand.ts @@ -28,6 +28,7 @@ export class DeleteSchemaCommand extends $Command< DeleteSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DeleteSchemaVersionCommand.ts b/clients/client-schemas/commands/DeleteSchemaVersionCommand.ts index 3f68d543d4513..a16419fb3da01 100644 --- a/clients/client-schemas/commands/DeleteSchemaVersionCommand.ts +++ b/clients/client-schemas/commands/DeleteSchemaVersionCommand.ts @@ -28,6 +28,7 @@ export class DeleteSchemaVersionCommand extends $Command< DeleteSchemaVersionCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSchemaVersionCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DescribeCodeBindingCommand.ts b/clients/client-schemas/commands/DescribeCodeBindingCommand.ts index 1b9efd6c9fa08..7c991f12130e2 100644 --- a/clients/client-schemas/commands/DescribeCodeBindingCommand.ts +++ b/clients/client-schemas/commands/DescribeCodeBindingCommand.ts @@ -28,6 +28,7 @@ export class DescribeCodeBindingCommand extends $Command< DescribeCodeBindingCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCodeBindingCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DescribeDiscovererCommand.ts b/clients/client-schemas/commands/DescribeDiscovererCommand.ts index dbaff5eae2fbd..10326ec81f096 100644 --- a/clients/client-schemas/commands/DescribeDiscovererCommand.ts +++ b/clients/client-schemas/commands/DescribeDiscovererCommand.ts @@ -28,6 +28,7 @@ export class DescribeDiscovererCommand extends $Command< DescribeDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DescribeRegistryCommand.ts b/clients/client-schemas/commands/DescribeRegistryCommand.ts index f1bb10c877a01..0c29b23c7c026 100644 --- a/clients/client-schemas/commands/DescribeRegistryCommand.ts +++ b/clients/client-schemas/commands/DescribeRegistryCommand.ts @@ -28,6 +28,7 @@ export class DescribeRegistryCommand extends $Command< DescribeRegistryCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeRegistryCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/DescribeSchemaCommand.ts b/clients/client-schemas/commands/DescribeSchemaCommand.ts index 46b6288533150..01c9b76b1600d 100644 --- a/clients/client-schemas/commands/DescribeSchemaCommand.ts +++ b/clients/client-schemas/commands/DescribeSchemaCommand.ts @@ -28,6 +28,7 @@ export class DescribeSchemaCommand extends $Command< DescribeSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ExportSchemaCommand.ts b/clients/client-schemas/commands/ExportSchemaCommand.ts index 36856c42e910e..b58e863d55895 100644 --- a/clients/client-schemas/commands/ExportSchemaCommand.ts +++ b/clients/client-schemas/commands/ExportSchemaCommand.ts @@ -25,6 +25,7 @@ export class ExportSchemaCommand extends $Command< ExportSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ExportSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/GetCodeBindingSourceCommand.ts b/clients/client-schemas/commands/GetCodeBindingSourceCommand.ts index a7fce2b281cef..ce80539a6de3f 100644 --- a/clients/client-schemas/commands/GetCodeBindingSourceCommand.ts +++ b/clients/client-schemas/commands/GetCodeBindingSourceCommand.ts @@ -28,6 +28,7 @@ export class GetCodeBindingSourceCommand extends $Command< GetCodeBindingSourceCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCodeBindingSourceCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/GetDiscoveredSchemaCommand.ts b/clients/client-schemas/commands/GetDiscoveredSchemaCommand.ts index ec12c1e9887bd..7a94edaea43c9 100644 --- a/clients/client-schemas/commands/GetDiscoveredSchemaCommand.ts +++ b/clients/client-schemas/commands/GetDiscoveredSchemaCommand.ts @@ -28,6 +28,7 @@ export class GetDiscoveredSchemaCommand extends $Command< GetDiscoveredSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDiscoveredSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/GetResourcePolicyCommand.ts b/clients/client-schemas/commands/GetResourcePolicyCommand.ts index e49efb4402fd4..f853d563fbc9f 100644 --- a/clients/client-schemas/commands/GetResourcePolicyCommand.ts +++ b/clients/client-schemas/commands/GetResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class GetResourcePolicyCommand extends $Command< GetResourcePolicyCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetResourcePolicyCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ListDiscoverersCommand.ts b/clients/client-schemas/commands/ListDiscoverersCommand.ts index a06c1ee428015..60d39acece831 100644 --- a/clients/client-schemas/commands/ListDiscoverersCommand.ts +++ b/clients/client-schemas/commands/ListDiscoverersCommand.ts @@ -28,6 +28,7 @@ export class ListDiscoverersCommand extends $Command< ListDiscoverersCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDiscoverersCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ListRegistriesCommand.ts b/clients/client-schemas/commands/ListRegistriesCommand.ts index 7b3c43959dc9d..6daee7690ddc4 100644 --- a/clients/client-schemas/commands/ListRegistriesCommand.ts +++ b/clients/client-schemas/commands/ListRegistriesCommand.ts @@ -28,6 +28,7 @@ export class ListRegistriesCommand extends $Command< ListRegistriesCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRegistriesCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ListSchemaVersionsCommand.ts b/clients/client-schemas/commands/ListSchemaVersionsCommand.ts index 552d9491d61c1..a7833c6a43a1a 100644 --- a/clients/client-schemas/commands/ListSchemaVersionsCommand.ts +++ b/clients/client-schemas/commands/ListSchemaVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListSchemaVersionsCommand extends $Command< ListSchemaVersionsCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSchemaVersionsCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ListSchemasCommand.ts b/clients/client-schemas/commands/ListSchemasCommand.ts index 868d0a6eb2e20..d9b715be8e918 100644 --- a/clients/client-schemas/commands/ListSchemasCommand.ts +++ b/clients/client-schemas/commands/ListSchemasCommand.ts @@ -28,6 +28,7 @@ export class ListSchemasCommand extends $Command< ListSchemasCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListSchemasCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/ListTagsForResourceCommand.ts b/clients/client-schemas/commands/ListTagsForResourceCommand.ts index 39e5ac6359c7f..edd152275cbd9 100644 --- a/clients/client-schemas/commands/ListTagsForResourceCommand.ts +++ b/clients/client-schemas/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/PutCodeBindingCommand.ts b/clients/client-schemas/commands/PutCodeBindingCommand.ts index a474407449564..f1a178834f854 100644 --- a/clients/client-schemas/commands/PutCodeBindingCommand.ts +++ b/clients/client-schemas/commands/PutCodeBindingCommand.ts @@ -28,6 +28,7 @@ export class PutCodeBindingCommand extends $Command< PutCodeBindingCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutCodeBindingCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/PutResourcePolicyCommand.ts b/clients/client-schemas/commands/PutResourcePolicyCommand.ts index c3722d5d6eeae..832d2e2201178 100644 --- a/clients/client-schemas/commands/PutResourcePolicyCommand.ts +++ b/clients/client-schemas/commands/PutResourcePolicyCommand.ts @@ -28,6 +28,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/SearchSchemasCommand.ts b/clients/client-schemas/commands/SearchSchemasCommand.ts index c33f592a34610..0557a634ff92d 100644 --- a/clients/client-schemas/commands/SearchSchemasCommand.ts +++ b/clients/client-schemas/commands/SearchSchemasCommand.ts @@ -28,6 +28,7 @@ export class SearchSchemasCommand extends $Command< SearchSchemasCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchSchemasCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/StartDiscovererCommand.ts b/clients/client-schemas/commands/StartDiscovererCommand.ts index fda2b06202019..8a35de0d7012b 100644 --- a/clients/client-schemas/commands/StartDiscovererCommand.ts +++ b/clients/client-schemas/commands/StartDiscovererCommand.ts @@ -28,6 +28,7 @@ export class StartDiscovererCommand extends $Command< StartDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/StopDiscovererCommand.ts b/clients/client-schemas/commands/StopDiscovererCommand.ts index 5722ebbd82148..4471e464bba01 100644 --- a/clients/client-schemas/commands/StopDiscovererCommand.ts +++ b/clients/client-schemas/commands/StopDiscovererCommand.ts @@ -28,6 +28,7 @@ export class StopDiscovererCommand extends $Command< StopDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/TagResourceCommand.ts b/clients/client-schemas/commands/TagResourceCommand.ts index fbe2b61f69cd6..db86505394861 100644 --- a/clients/client-schemas/commands/TagResourceCommand.ts +++ b/clients/client-schemas/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/UntagResourceCommand.ts b/clients/client-schemas/commands/UntagResourceCommand.ts index 3aea5202d225f..c3762ff442047 100644 --- a/clients/client-schemas/commands/UntagResourceCommand.ts +++ b/clients/client-schemas/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/UpdateDiscovererCommand.ts b/clients/client-schemas/commands/UpdateDiscovererCommand.ts index b9ffa6906c8fe..c04fc9fd008f6 100644 --- a/clients/client-schemas/commands/UpdateDiscovererCommand.ts +++ b/clients/client-schemas/commands/UpdateDiscovererCommand.ts @@ -28,6 +28,7 @@ export class UpdateDiscovererCommand extends $Command< UpdateDiscovererCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDiscovererCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/UpdateRegistryCommand.ts b/clients/client-schemas/commands/UpdateRegistryCommand.ts index e37fc892ef42e..2b205f3555669 100644 --- a/clients/client-schemas/commands/UpdateRegistryCommand.ts +++ b/clients/client-schemas/commands/UpdateRegistryCommand.ts @@ -28,6 +28,7 @@ export class UpdateRegistryCommand extends $Command< UpdateRegistryCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateRegistryCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-schemas/commands/UpdateSchemaCommand.ts b/clients/client-schemas/commands/UpdateSchemaCommand.ts index 0334cc09e0c4b..125b8e6d895d8 100644 --- a/clients/client-schemas/commands/UpdateSchemaCommand.ts +++ b/clients/client-schemas/commands/UpdateSchemaCommand.ts @@ -28,6 +28,7 @@ export class UpdateSchemaCommand extends $Command< UpdateSchemaCommandOutput, SchemasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSchemaCommand extends $Command< configuration: SchemasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/CancelRotateSecretCommand.ts b/clients/client-secrets-manager/commands/CancelRotateSecretCommand.ts index 719215156268f..244a9739b266f 100644 --- a/clients/client-secrets-manager/commands/CancelRotateSecretCommand.ts +++ b/clients/client-secrets-manager/commands/CancelRotateSecretCommand.ts @@ -80,6 +80,7 @@ export class CancelRotateSecretCommand extends $Command< CancelRotateSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,7 +98,10 @@ export class CancelRotateSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/CreateSecretCommand.ts b/clients/client-secrets-manager/commands/CreateSecretCommand.ts index c72c88e86aee3..09bb13d122e99 100644 --- a/clients/client-secrets-manager/commands/CreateSecretCommand.ts +++ b/clients/client-secrets-manager/commands/CreateSecretCommand.ts @@ -115,6 +115,7 @@ export class CreateSecretCommand extends $Command< CreateSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -132,7 +133,10 @@ export class CreateSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/DeleteResourcePolicyCommand.ts b/clients/client-secrets-manager/commands/DeleteResourcePolicyCommand.ts index 4db64f8cb0a2d..4aafc4f83c1f5 100644 --- a/clients/client-secrets-manager/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-secrets-manager/commands/DeleteResourcePolicyCommand.ts @@ -51,6 +51,7 @@ export class DeleteResourcePolicyCommand extends $Command< DeleteResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteResourcePolicyCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/DeleteSecretCommand.ts b/clients/client-secrets-manager/commands/DeleteSecretCommand.ts index a1d5075b3e88f..8116373833d20 100644 --- a/clients/client-secrets-manager/commands/DeleteSecretCommand.ts +++ b/clients/client-secrets-manager/commands/DeleteSecretCommand.ts @@ -73,6 +73,7 @@ export class DeleteSecretCommand extends $Command< DeleteSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -90,7 +91,10 @@ export class DeleteSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/DescribeSecretCommand.ts b/clients/client-secrets-manager/commands/DescribeSecretCommand.ts index a77ade764ac77..5e97d1e5e1786 100644 --- a/clients/client-secrets-manager/commands/DescribeSecretCommand.ts +++ b/clients/client-secrets-manager/commands/DescribeSecretCommand.ts @@ -55,6 +55,7 @@ export class DescribeSecretCommand extends $Command< DescribeSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class DescribeSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/GetRandomPasswordCommand.ts b/clients/client-secrets-manager/commands/GetRandomPasswordCommand.ts index f03ac49b81e84..0bd6fc72adb59 100644 --- a/clients/client-secrets-manager/commands/GetRandomPasswordCommand.ts +++ b/clients/client-secrets-manager/commands/GetRandomPasswordCommand.ts @@ -40,6 +40,7 @@ export class GetRandomPasswordCommand extends $Command< GetRandomPasswordCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetRandomPasswordCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/GetResourcePolicyCommand.ts b/clients/client-secrets-manager/commands/GetResourcePolicyCommand.ts index 715600290f8ac..e868cadf94f05 100644 --- a/clients/client-secrets-manager/commands/GetResourcePolicyCommand.ts +++ b/clients/client-secrets-manager/commands/GetResourcePolicyCommand.ts @@ -54,6 +54,7 @@ export class GetResourcePolicyCommand extends $Command< GetResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class GetResourcePolicyCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/GetSecretValueCommand.ts b/clients/client-secrets-manager/commands/GetSecretValueCommand.ts index b7cf476658361..28009090a07b0 100644 --- a/clients/client-secrets-manager/commands/GetSecretValueCommand.ts +++ b/clients/client-secrets-manager/commands/GetSecretValueCommand.ts @@ -55,6 +55,7 @@ export class GetSecretValueCommand extends $Command< GetSecretValueCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class GetSecretValueCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/ListSecretVersionIdsCommand.ts b/clients/client-secrets-manager/commands/ListSecretVersionIdsCommand.ts index bc0b2ceabd7a8..f523851e5b422 100644 --- a/clients/client-secrets-manager/commands/ListSecretVersionIdsCommand.ts +++ b/clients/client-secrets-manager/commands/ListSecretVersionIdsCommand.ts @@ -56,6 +56,7 @@ export class ListSecretVersionIdsCommand extends $Command< ListSecretVersionIdsCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class ListSecretVersionIdsCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/ListSecretsCommand.ts b/clients/client-secrets-manager/commands/ListSecretsCommand.ts index 8c2c1bd3edd95..d416ea06034c7 100644 --- a/clients/client-secrets-manager/commands/ListSecretsCommand.ts +++ b/clients/client-secrets-manager/commands/ListSecretsCommand.ts @@ -57,6 +57,7 @@ export class ListSecretsCommand extends $Command< ListSecretsCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class ListSecretsCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/PutResourcePolicyCommand.ts b/clients/client-secrets-manager/commands/PutResourcePolicyCommand.ts index 3f1af9746109d..531b4b491ead6 100644 --- a/clients/client-secrets-manager/commands/PutResourcePolicyCommand.ts +++ b/clients/client-secrets-manager/commands/PutResourcePolicyCommand.ts @@ -59,6 +59,7 @@ export class PutResourcePolicyCommand extends $Command< PutResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class PutResourcePolicyCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/PutSecretValueCommand.ts b/clients/client-secrets-manager/commands/PutSecretValueCommand.ts index a0fbaaece2fc1..5b2c773c4b372 100644 --- a/clients/client-secrets-manager/commands/PutSecretValueCommand.ts +++ b/clients/client-secrets-manager/commands/PutSecretValueCommand.ts @@ -117,6 +117,7 @@ export class PutSecretValueCommand extends $Command< PutSecretValueCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -134,7 +135,10 @@ export class PutSecretValueCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/RestoreSecretCommand.ts b/clients/client-secrets-manager/commands/RestoreSecretCommand.ts index 9388e6349676c..4669e6b27106f 100644 --- a/clients/client-secrets-manager/commands/RestoreSecretCommand.ts +++ b/clients/client-secrets-manager/commands/RestoreSecretCommand.ts @@ -46,6 +46,7 @@ export class RestoreSecretCommand extends $Command< RestoreSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class RestoreSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/RotateSecretCommand.ts b/clients/client-secrets-manager/commands/RotateSecretCommand.ts index 1bd1d9d6cdbd4..d1b94cdae42b8 100644 --- a/clients/client-secrets-manager/commands/RotateSecretCommand.ts +++ b/clients/client-secrets-manager/commands/RotateSecretCommand.ts @@ -89,6 +89,7 @@ export class RotateSecretCommand extends $Command< RotateSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -106,7 +107,10 @@ export class RotateSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/TagResourceCommand.ts b/clients/client-secrets-manager/commands/TagResourceCommand.ts index 7c77a400be33c..54396b9c541c8 100644 --- a/clients/client-secrets-manager/commands/TagResourceCommand.ts +++ b/clients/client-secrets-manager/commands/TagResourceCommand.ts @@ -83,6 +83,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -100,7 +101,10 @@ export class TagResourceCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/UntagResourceCommand.ts b/clients/client-secrets-manager/commands/UntagResourceCommand.ts index a889dff1c1585..4a29dc4433b8d 100644 --- a/clients/client-secrets-manager/commands/UntagResourceCommand.ts +++ b/clients/client-secrets-manager/commands/UntagResourceCommand.ts @@ -56,6 +56,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class UntagResourceCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/UpdateSecretCommand.ts b/clients/client-secrets-manager/commands/UpdateSecretCommand.ts index c3e1de60f27d1..aa4ee3cd0ccf3 100644 --- a/clients/client-secrets-manager/commands/UpdateSecretCommand.ts +++ b/clients/client-secrets-manager/commands/UpdateSecretCommand.ts @@ -112,6 +112,7 @@ export class UpdateSecretCommand extends $Command< UpdateSecretCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -129,7 +130,10 @@ export class UpdateSecretCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/UpdateSecretVersionStageCommand.ts b/clients/client-secrets-manager/commands/UpdateSecretVersionStageCommand.ts index 8a119083850f7..0b79dcfe10d39 100644 --- a/clients/client-secrets-manager/commands/UpdateSecretVersionStageCommand.ts +++ b/clients/client-secrets-manager/commands/UpdateSecretVersionStageCommand.ts @@ -64,6 +64,7 @@ export class UpdateSecretVersionStageCommand extends $Command< UpdateSecretVersionStageCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class UpdateSecretVersionStageCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-secrets-manager/commands/ValidateResourcePolicyCommand.ts b/clients/client-secrets-manager/commands/ValidateResourcePolicyCommand.ts index 8b60f4668651c..72ec1c6607be0 100644 --- a/clients/client-secrets-manager/commands/ValidateResourcePolicyCommand.ts +++ b/clients/client-secrets-manager/commands/ValidateResourcePolicyCommand.ts @@ -32,6 +32,7 @@ export class ValidateResourcePolicyCommand extends $Command< ValidateResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ValidateResourcePolicyCommand extends $Command< configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/AcceptInvitationCommand.ts b/clients/client-securityhub/commands/AcceptInvitationCommand.ts index e35079f6601e7..21c1c6c525214 100644 --- a/clients/client-securityhub/commands/AcceptInvitationCommand.ts +++ b/clients/client-securityhub/commands/AcceptInvitationCommand.ts @@ -33,6 +33,7 @@ export class AcceptInvitationCommand extends $Command< AcceptInvitationCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AcceptInvitationCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/BatchDisableStandardsCommand.ts b/clients/client-securityhub/commands/BatchDisableStandardsCommand.ts index 17ce79d6ba02c..d2d1130db57d7 100644 --- a/clients/client-securityhub/commands/BatchDisableStandardsCommand.ts +++ b/clients/client-securityhub/commands/BatchDisableStandardsCommand.ts @@ -31,6 +31,7 @@ export class BatchDisableStandardsCommand extends $Command< BatchDisableStandardsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class BatchDisableStandardsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/BatchEnableStandardsCommand.ts b/clients/client-securityhub/commands/BatchEnableStandardsCommand.ts index fe69d64067d83..382b6f2641e56 100644 --- a/clients/client-securityhub/commands/BatchEnableStandardsCommand.ts +++ b/clients/client-securityhub/commands/BatchEnableStandardsCommand.ts @@ -34,6 +34,7 @@ export class BatchEnableStandardsCommand extends $Command< BatchEnableStandardsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class BatchEnableStandardsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/BatchImportFindingsCommand.ts b/clients/client-securityhub/commands/BatchImportFindingsCommand.ts index 98271a1520abe..ea01ed66dd485 100644 --- a/clients/client-securityhub/commands/BatchImportFindingsCommand.ts +++ b/clients/client-securityhub/commands/BatchImportFindingsCommand.ts @@ -82,6 +82,7 @@ export class BatchImportFindingsCommand extends $Command< BatchImportFindingsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class BatchImportFindingsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/BatchUpdateFindingsCommand.ts b/clients/client-securityhub/commands/BatchUpdateFindingsCommand.ts index 9aef8db85d042..782826ac79ba4 100644 --- a/clients/client-securityhub/commands/BatchUpdateFindingsCommand.ts +++ b/clients/client-securityhub/commands/BatchUpdateFindingsCommand.ts @@ -86,6 +86,7 @@ export class BatchUpdateFindingsCommand extends $Command< BatchUpdateFindingsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class BatchUpdateFindingsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/CreateActionTargetCommand.ts b/clients/client-securityhub/commands/CreateActionTargetCommand.ts index 37cee62082e2d..c5e100820c825 100644 --- a/clients/client-securityhub/commands/CreateActionTargetCommand.ts +++ b/clients/client-securityhub/commands/CreateActionTargetCommand.ts @@ -30,6 +30,7 @@ export class CreateActionTargetCommand extends $Command< CreateActionTargetCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateActionTargetCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/CreateInsightCommand.ts b/clients/client-securityhub/commands/CreateInsightCommand.ts index fbfc8021dcc4d..879ac81140432 100644 --- a/clients/client-securityhub/commands/CreateInsightCommand.ts +++ b/clients/client-securityhub/commands/CreateInsightCommand.ts @@ -31,6 +31,7 @@ export class CreateInsightCommand extends $Command< CreateInsightCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateInsightCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/CreateMembersCommand.ts b/clients/client-securityhub/commands/CreateMembersCommand.ts index 4a7d33ef1cdb9..a984c65123dc8 100644 --- a/clients/client-securityhub/commands/CreateMembersCommand.ts +++ b/clients/client-securityhub/commands/CreateMembersCommand.ts @@ -65,6 +65,7 @@ export class CreateMembersCommand extends $Command< CreateMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class CreateMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DeclineInvitationsCommand.ts b/clients/client-securityhub/commands/DeclineInvitationsCommand.ts index 4a2a14b67cdae..17a2bb2585bf4 100644 --- a/clients/client-securityhub/commands/DeclineInvitationsCommand.ts +++ b/clients/client-securityhub/commands/DeclineInvitationsCommand.ts @@ -30,6 +30,7 @@ export class DeclineInvitationsCommand extends $Command< DeclineInvitationsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeclineInvitationsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DeleteActionTargetCommand.ts b/clients/client-securityhub/commands/DeleteActionTargetCommand.ts index adda89e073f50..407a2ba29c367 100644 --- a/clients/client-securityhub/commands/DeleteActionTargetCommand.ts +++ b/clients/client-securityhub/commands/DeleteActionTargetCommand.ts @@ -30,6 +30,7 @@ export class DeleteActionTargetCommand extends $Command< DeleteActionTargetCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteActionTargetCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DeleteInsightCommand.ts b/clients/client-securityhub/commands/DeleteInsightCommand.ts index 4ab896d001679..becbe3a7b5972 100644 --- a/clients/client-securityhub/commands/DeleteInsightCommand.ts +++ b/clients/client-securityhub/commands/DeleteInsightCommand.ts @@ -28,6 +28,7 @@ export class DeleteInsightCommand extends $Command< DeleteInsightCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteInsightCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DeleteInvitationsCommand.ts b/clients/client-securityhub/commands/DeleteInvitationsCommand.ts index 435413744d42b..c0b6f15b1b271 100644 --- a/clients/client-securityhub/commands/DeleteInvitationsCommand.ts +++ b/clients/client-securityhub/commands/DeleteInvitationsCommand.ts @@ -30,6 +30,7 @@ export class DeleteInvitationsCommand extends $Command< DeleteInvitationsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteInvitationsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DeleteMembersCommand.ts b/clients/client-securityhub/commands/DeleteMembersCommand.ts index 5f0655cd6e15d..5dd4a0e06a5e6 100644 --- a/clients/client-securityhub/commands/DeleteMembersCommand.ts +++ b/clients/client-securityhub/commands/DeleteMembersCommand.ts @@ -30,6 +30,7 @@ export class DeleteMembersCommand extends $Command< DeleteMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeActionTargetsCommand.ts b/clients/client-securityhub/commands/DescribeActionTargetsCommand.ts index f68e1ba3ae9f6..1a5e19926cb5d 100644 --- a/clients/client-securityhub/commands/DescribeActionTargetsCommand.ts +++ b/clients/client-securityhub/commands/DescribeActionTargetsCommand.ts @@ -28,6 +28,7 @@ export class DescribeActionTargetsCommand extends $Command< DescribeActionTargetsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeActionTargetsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeHubCommand.ts b/clients/client-securityhub/commands/DescribeHubCommand.ts index 17c027a9a725c..434561fd3f231 100644 --- a/clients/client-securityhub/commands/DescribeHubCommand.ts +++ b/clients/client-securityhub/commands/DescribeHubCommand.ts @@ -29,6 +29,7 @@ export class DescribeHubCommand extends $Command< DescribeHubCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeHubCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeOrganizationConfigurationCommand.ts b/clients/client-securityhub/commands/DescribeOrganizationConfigurationCommand.ts index 1278086b057a9..0ad718658f89e 100644 --- a/clients/client-securityhub/commands/DescribeOrganizationConfigurationCommand.ts +++ b/clients/client-securityhub/commands/DescribeOrganizationConfigurationCommand.ts @@ -33,6 +33,7 @@ export class DescribeOrganizationConfigurationCommand extends $Command< DescribeOrganizationConfigurationCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeOrganizationConfigurationCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeProductsCommand.ts b/clients/client-securityhub/commands/DescribeProductsCommand.ts index 1dfb16a81dd61..6611f5f513705 100644 --- a/clients/client-securityhub/commands/DescribeProductsCommand.ts +++ b/clients/client-securityhub/commands/DescribeProductsCommand.ts @@ -29,6 +29,7 @@ export class DescribeProductsCommand extends $Command< DescribeProductsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeProductsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeStandardsCommand.ts b/clients/client-securityhub/commands/DescribeStandardsCommand.ts index abed25366979f..76f677c878f7e 100644 --- a/clients/client-securityhub/commands/DescribeStandardsCommand.ts +++ b/clients/client-securityhub/commands/DescribeStandardsCommand.ts @@ -29,6 +29,7 @@ export class DescribeStandardsCommand extends $Command< DescribeStandardsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeStandardsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DescribeStandardsControlsCommand.ts b/clients/client-securityhub/commands/DescribeStandardsControlsCommand.ts index 731ddbad19ac0..bd871a45e7522 100644 --- a/clients/client-securityhub/commands/DescribeStandardsControlsCommand.ts +++ b/clients/client-securityhub/commands/DescribeStandardsControlsCommand.ts @@ -30,6 +30,7 @@ export class DescribeStandardsControlsCommand extends $Command< DescribeStandardsControlsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeStandardsControlsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DisableImportFindingsForProductCommand.ts b/clients/client-securityhub/commands/DisableImportFindingsForProductCommand.ts index 5a6ea47d0b883..5107dfac414bb 100644 --- a/clients/client-securityhub/commands/DisableImportFindingsForProductCommand.ts +++ b/clients/client-securityhub/commands/DisableImportFindingsForProductCommand.ts @@ -29,6 +29,7 @@ export class DisableImportFindingsForProductCommand extends $Command< DisableImportFindingsForProductCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableImportFindingsForProductCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DisableOrganizationAdminAccountCommand.ts b/clients/client-securityhub/commands/DisableOrganizationAdminAccountCommand.ts index ee863bd9aad71..ed34ff796e731 100644 --- a/clients/client-securityhub/commands/DisableOrganizationAdminAccountCommand.ts +++ b/clients/client-securityhub/commands/DisableOrganizationAdminAccountCommand.ts @@ -29,6 +29,7 @@ export class DisableOrganizationAdminAccountCommand extends $Command< DisableOrganizationAdminAccountCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisableOrganizationAdminAccountCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DisableSecurityHubCommand.ts b/clients/client-securityhub/commands/DisableSecurityHubCommand.ts index 502fb66b9c721..a6beae6f224f3 100644 --- a/clients/client-securityhub/commands/DisableSecurityHubCommand.ts +++ b/clients/client-securityhub/commands/DisableSecurityHubCommand.ts @@ -36,6 +36,7 @@ export class DisableSecurityHubCommand extends $Command< DisableSecurityHubCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisableSecurityHubCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DisassociateFromMasterAccountCommand.ts b/clients/client-securityhub/commands/DisassociateFromMasterAccountCommand.ts index 19d773856c236..a86717e1b8720 100644 --- a/clients/client-securityhub/commands/DisassociateFromMasterAccountCommand.ts +++ b/clients/client-securityhub/commands/DisassociateFromMasterAccountCommand.ts @@ -32,6 +32,7 @@ export class DisassociateFromMasterAccountCommand extends $Command< DisassociateFromMasterAccountCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateFromMasterAccountCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/DisassociateMembersCommand.ts b/clients/client-securityhub/commands/DisassociateMembersCommand.ts index 281303ce04b0e..1904729b727a6 100644 --- a/clients/client-securityhub/commands/DisassociateMembersCommand.ts +++ b/clients/client-securityhub/commands/DisassociateMembersCommand.ts @@ -30,6 +30,7 @@ export class DisassociateMembersCommand extends $Command< DisassociateMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociateMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/EnableImportFindingsForProductCommand.ts b/clients/client-securityhub/commands/EnableImportFindingsForProductCommand.ts index a69b5bd9bb165..41037b7e6c625 100644 --- a/clients/client-securityhub/commands/EnableImportFindingsForProductCommand.ts +++ b/clients/client-securityhub/commands/EnableImportFindingsForProductCommand.ts @@ -31,6 +31,7 @@ export class EnableImportFindingsForProductCommand extends $Command< EnableImportFindingsForProductCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EnableImportFindingsForProductCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/EnableOrganizationAdminAccountCommand.ts b/clients/client-securityhub/commands/EnableOrganizationAdminAccountCommand.ts index 43a6c4181ea05..6d79dac57aaaf 100644 --- a/clients/client-securityhub/commands/EnableOrganizationAdminAccountCommand.ts +++ b/clients/client-securityhub/commands/EnableOrganizationAdminAccountCommand.ts @@ -29,6 +29,7 @@ export class EnableOrganizationAdminAccountCommand extends $Command< EnableOrganizationAdminAccountCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class EnableOrganizationAdminAccountCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/EnableSecurityHubCommand.ts b/clients/client-securityhub/commands/EnableSecurityHubCommand.ts index 01c0e94dff5cb..bf232697d44e4 100644 --- a/clients/client-securityhub/commands/EnableSecurityHubCommand.ts +++ b/clients/client-securityhub/commands/EnableSecurityHubCommand.ts @@ -52,6 +52,7 @@ export class EnableSecurityHubCommand extends $Command< EnableSecurityHubCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class EnableSecurityHubCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetEnabledStandardsCommand.ts b/clients/client-securityhub/commands/GetEnabledStandardsCommand.ts index b8b992103a834..e9523c2173b1e 100644 --- a/clients/client-securityhub/commands/GetEnabledStandardsCommand.ts +++ b/clients/client-securityhub/commands/GetEnabledStandardsCommand.ts @@ -28,6 +28,7 @@ export class GetEnabledStandardsCommand extends $Command< GetEnabledStandardsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEnabledStandardsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetFindingsCommand.ts b/clients/client-securityhub/commands/GetFindingsCommand.ts index 0095b501b0944..558f80ee4acdc 100644 --- a/clients/client-securityhub/commands/GetFindingsCommand.ts +++ b/clients/client-securityhub/commands/GetFindingsCommand.ts @@ -29,6 +29,7 @@ export class GetFindingsCommand extends $Command< GetFindingsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetFindingsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetInsightResultsCommand.ts b/clients/client-securityhub/commands/GetInsightResultsCommand.ts index eec026cc44d25..ed579fc0493ed 100644 --- a/clients/client-securityhub/commands/GetInsightResultsCommand.ts +++ b/clients/client-securityhub/commands/GetInsightResultsCommand.ts @@ -28,6 +28,7 @@ export class GetInsightResultsCommand extends $Command< GetInsightResultsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInsightResultsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetInsightsCommand.ts b/clients/client-securityhub/commands/GetInsightsCommand.ts index 1522c82ec9922..bd46088b704a6 100644 --- a/clients/client-securityhub/commands/GetInsightsCommand.ts +++ b/clients/client-securityhub/commands/GetInsightsCommand.ts @@ -28,6 +28,7 @@ export class GetInsightsCommand extends $Command< GetInsightsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInsightsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetInvitationsCountCommand.ts b/clients/client-securityhub/commands/GetInvitationsCountCommand.ts index 5d01d07547d93..a53e496f671b1 100644 --- a/clients/client-securityhub/commands/GetInvitationsCountCommand.ts +++ b/clients/client-securityhub/commands/GetInvitationsCountCommand.ts @@ -29,6 +29,7 @@ export class GetInvitationsCountCommand extends $Command< GetInvitationsCountCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInvitationsCountCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetMasterAccountCommand.ts b/clients/client-securityhub/commands/GetMasterAccountCommand.ts index 1e43e394ef3df..271d94d001f47 100644 --- a/clients/client-securityhub/commands/GetMasterAccountCommand.ts +++ b/clients/client-securityhub/commands/GetMasterAccountCommand.ts @@ -30,6 +30,7 @@ export class GetMasterAccountCommand extends $Command< GetMasterAccountCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetMasterAccountCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/GetMembersCommand.ts b/clients/client-securityhub/commands/GetMembersCommand.ts index 71e5330aa3ae9..b4a48c5afe358 100644 --- a/clients/client-securityhub/commands/GetMembersCommand.ts +++ b/clients/client-securityhub/commands/GetMembersCommand.ts @@ -32,6 +32,7 @@ export class GetMembersCommand extends $Command< GetMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/InviteMembersCommand.ts b/clients/client-securityhub/commands/InviteMembersCommand.ts index ef00cb5e60ebf..6a12695c70fdc 100644 --- a/clients/client-securityhub/commands/InviteMembersCommand.ts +++ b/clients/client-securityhub/commands/InviteMembersCommand.ts @@ -36,6 +36,7 @@ export class InviteMembersCommand extends $Command< InviteMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class InviteMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/ListEnabledProductsForImportCommand.ts b/clients/client-securityhub/commands/ListEnabledProductsForImportCommand.ts index a248aac80b942..b00f4ffe22e71 100644 --- a/clients/client-securityhub/commands/ListEnabledProductsForImportCommand.ts +++ b/clients/client-securityhub/commands/ListEnabledProductsForImportCommand.ts @@ -29,6 +29,7 @@ export class ListEnabledProductsForImportCommand extends $Command< ListEnabledProductsForImportCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListEnabledProductsForImportCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/ListInvitationsCommand.ts b/clients/client-securityhub/commands/ListInvitationsCommand.ts index 1ed8cae4a5557..5b2c7300f2221 100644 --- a/clients/client-securityhub/commands/ListInvitationsCommand.ts +++ b/clients/client-securityhub/commands/ListInvitationsCommand.ts @@ -30,6 +30,7 @@ export class ListInvitationsCommand extends $Command< ListInvitationsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListInvitationsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/ListMembersCommand.ts b/clients/client-securityhub/commands/ListMembersCommand.ts index dac5fb53b4eb8..093653931e8fb 100644 --- a/clients/client-securityhub/commands/ListMembersCommand.ts +++ b/clients/client-securityhub/commands/ListMembersCommand.ts @@ -31,6 +31,7 @@ export class ListMembersCommand extends $Command< ListMembersCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListMembersCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/ListOrganizationAdminAccountsCommand.ts b/clients/client-securityhub/commands/ListOrganizationAdminAccountsCommand.ts index 89b8b14c94028..e22aaf021d69b 100644 --- a/clients/client-securityhub/commands/ListOrganizationAdminAccountsCommand.ts +++ b/clients/client-securityhub/commands/ListOrganizationAdminAccountsCommand.ts @@ -29,6 +29,7 @@ export class ListOrganizationAdminAccountsCommand extends $Command< ListOrganizationAdminAccountsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListOrganizationAdminAccountsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/ListTagsForResourceCommand.ts b/clients/client-securityhub/commands/ListTagsForResourceCommand.ts index a04a3b56e3b9a..05be586878004 100644 --- a/clients/client-securityhub/commands/ListTagsForResourceCommand.ts +++ b/clients/client-securityhub/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/TagResourceCommand.ts b/clients/client-securityhub/commands/TagResourceCommand.ts index c2fde801fc17d..ca2e51a599119 100644 --- a/clients/client-securityhub/commands/TagResourceCommand.ts +++ b/clients/client-securityhub/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UntagResourceCommand.ts b/clients/client-securityhub/commands/UntagResourceCommand.ts index b3b93ace9a417..59239b3ab25e7 100644 --- a/clients/client-securityhub/commands/UntagResourceCommand.ts +++ b/clients/client-securityhub/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateActionTargetCommand.ts b/clients/client-securityhub/commands/UpdateActionTargetCommand.ts index a0b25694689b9..0c4960602239f 100644 --- a/clients/client-securityhub/commands/UpdateActionTargetCommand.ts +++ b/clients/client-securityhub/commands/UpdateActionTargetCommand.ts @@ -28,6 +28,7 @@ export class UpdateActionTargetCommand extends $Command< UpdateActionTargetCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateActionTargetCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateFindingsCommand.ts b/clients/client-securityhub/commands/UpdateFindingsCommand.ts index 88508877f21df..2d49923ac7af0 100644 --- a/clients/client-securityhub/commands/UpdateFindingsCommand.ts +++ b/clients/client-securityhub/commands/UpdateFindingsCommand.ts @@ -33,6 +33,7 @@ export class UpdateFindingsCommand extends $Command< UpdateFindingsCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateFindingsCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateInsightCommand.ts b/clients/client-securityhub/commands/UpdateInsightCommand.ts index 912f5f69423e2..e5feb9a196807 100644 --- a/clients/client-securityhub/commands/UpdateInsightCommand.ts +++ b/clients/client-securityhub/commands/UpdateInsightCommand.ts @@ -28,6 +28,7 @@ export class UpdateInsightCommand extends $Command< UpdateInsightCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateInsightCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateOrganizationConfigurationCommand.ts b/clients/client-securityhub/commands/UpdateOrganizationConfigurationCommand.ts index 71b0ddbbd3a9b..38bac7ab97796 100644 --- a/clients/client-securityhub/commands/UpdateOrganizationConfigurationCommand.ts +++ b/clients/client-securityhub/commands/UpdateOrganizationConfigurationCommand.ts @@ -29,6 +29,7 @@ export class UpdateOrganizationConfigurationCommand extends $Command< UpdateOrganizationConfigurationCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateOrganizationConfigurationCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateSecurityHubConfigurationCommand.ts b/clients/client-securityhub/commands/UpdateSecurityHubConfigurationCommand.ts index 7a183aff8da01..96f0323a5657c 100644 --- a/clients/client-securityhub/commands/UpdateSecurityHubConfigurationCommand.ts +++ b/clients/client-securityhub/commands/UpdateSecurityHubConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateSecurityHubConfigurationCommand extends $Command< UpdateSecurityHubConfigurationCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSecurityHubConfigurationCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-securityhub/commands/UpdateStandardsControlCommand.ts b/clients/client-securityhub/commands/UpdateStandardsControlCommand.ts index e5cdd3cbea542..563be35e9f0a3 100644 --- a/clients/client-securityhub/commands/UpdateStandardsControlCommand.ts +++ b/clients/client-securityhub/commands/UpdateStandardsControlCommand.ts @@ -29,6 +29,7 @@ export class UpdateStandardsControlCommand extends $Command< UpdateStandardsControlCommandOutput, SecurityHubClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateStandardsControlCommand extends $Command< configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/CreateApplicationCommand.ts b/clients/client-serverlessapplicationrepository/commands/CreateApplicationCommand.ts index 07d2ee3efb697..a7f3b2b5446d5 100644 --- a/clients/client-serverlessapplicationrepository/commands/CreateApplicationCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/CreateApplicationCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/CreateApplicationVersionCommand.ts b/clients/client-serverlessapplicationrepository/commands/CreateApplicationVersionCommand.ts index f7330d71833dc..fb8482c4861ff 100644 --- a/clients/client-serverlessapplicationrepository/commands/CreateApplicationVersionCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/CreateApplicationVersionCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationVersionCommand extends $Command< CreateApplicationVersionCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationVersionCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationChangeSetCommand.ts b/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationChangeSetCommand.ts index 311061e73bcd8..db1f760e1d056 100644 --- a/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationChangeSetCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationChangeSetCommand.ts @@ -32,6 +32,7 @@ export class CreateCloudFormationChangeSetCommand extends $Command< CreateCloudFormationChangeSetCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateCloudFormationChangeSetCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationTemplateCommand.ts b/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationTemplateCommand.ts index 33c55b8a988b4..4c37caff34573 100644 --- a/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationTemplateCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/CreateCloudFormationTemplateCommand.ts @@ -32,6 +32,7 @@ export class CreateCloudFormationTemplateCommand extends $Command< CreateCloudFormationTemplateCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateCloudFormationTemplateCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/DeleteApplicationCommand.ts b/clients/client-serverlessapplicationrepository/commands/DeleteApplicationCommand.ts index b8e795dac776e..d5123cd732139 100644 --- a/clients/client-serverlessapplicationrepository/commands/DeleteApplicationCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/DeleteApplicationCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/GetApplicationCommand.ts b/clients/client-serverlessapplicationrepository/commands/GetApplicationCommand.ts index 07bf5f66d5321..aed2e5f57b7c3 100644 --- a/clients/client-serverlessapplicationrepository/commands/GetApplicationCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/GetApplicationCommand.ts @@ -32,6 +32,7 @@ export class GetApplicationCommand extends $Command< GetApplicationCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetApplicationCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/GetApplicationPolicyCommand.ts b/clients/client-serverlessapplicationrepository/commands/GetApplicationPolicyCommand.ts index d4995dace2e83..efb0b72ad8ae9 100644 --- a/clients/client-serverlessapplicationrepository/commands/GetApplicationPolicyCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/GetApplicationPolicyCommand.ts @@ -32,6 +32,7 @@ export class GetApplicationPolicyCommand extends $Command< GetApplicationPolicyCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetApplicationPolicyCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/GetCloudFormationTemplateCommand.ts b/clients/client-serverlessapplicationrepository/commands/GetCloudFormationTemplateCommand.ts index 8f2191dc3e572..3812b58ac0d6a 100644 --- a/clients/client-serverlessapplicationrepository/commands/GetCloudFormationTemplateCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/GetCloudFormationTemplateCommand.ts @@ -32,6 +32,7 @@ export class GetCloudFormationTemplateCommand extends $Command< GetCloudFormationTemplateCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetCloudFormationTemplateCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/ListApplicationDependenciesCommand.ts b/clients/client-serverlessapplicationrepository/commands/ListApplicationDependenciesCommand.ts index d95d52f1bec1f..1a0b72180edd5 100644 --- a/clients/client-serverlessapplicationrepository/commands/ListApplicationDependenciesCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/ListApplicationDependenciesCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationDependenciesCommand extends $Command< ListApplicationDependenciesCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationDependenciesCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/ListApplicationVersionsCommand.ts b/clients/client-serverlessapplicationrepository/commands/ListApplicationVersionsCommand.ts index 0d9f8d458f0d5..b1c68cac4289a 100644 --- a/clients/client-serverlessapplicationrepository/commands/ListApplicationVersionsCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/ListApplicationVersionsCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationVersionsCommand extends $Command< ListApplicationVersionsCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationVersionsCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/ListApplicationsCommand.ts b/clients/client-serverlessapplicationrepository/commands/ListApplicationsCommand.ts index 63c365a39aa8f..19024a276c0a3 100644 --- a/clients/client-serverlessapplicationrepository/commands/ListApplicationsCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/ListApplicationsCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationsCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/PutApplicationPolicyCommand.ts b/clients/client-serverlessapplicationrepository/commands/PutApplicationPolicyCommand.ts index b245b5ccb554a..274b6e24e1057 100644 --- a/clients/client-serverlessapplicationrepository/commands/PutApplicationPolicyCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/PutApplicationPolicyCommand.ts @@ -35,6 +35,7 @@ export class PutApplicationPolicyCommand extends $Command< PutApplicationPolicyCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class PutApplicationPolicyCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/UnshareApplicationCommand.ts b/clients/client-serverlessapplicationrepository/commands/UnshareApplicationCommand.ts index 9aaf809246f4f..5fb7d86baad35 100644 --- a/clients/client-serverlessapplicationrepository/commands/UnshareApplicationCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/UnshareApplicationCommand.ts @@ -32,6 +32,7 @@ export class UnshareApplicationCommand extends $Command< UnshareApplicationCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UnshareApplicationCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-serverlessapplicationrepository/commands/UpdateApplicationCommand.ts b/clients/client-serverlessapplicationrepository/commands/UpdateApplicationCommand.ts index 8cbe97f3776ba..b8d077199c5f8 100644 --- a/clients/client-serverlessapplicationrepository/commands/UpdateApplicationCommand.ts +++ b/clients/client-serverlessapplicationrepository/commands/UpdateApplicationCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, ServerlessApplicationRepositoryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationCommand extends $Command< configuration: ServerlessApplicationRepositoryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/AssociateAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/AssociateAttributeGroupCommand.ts index b8c09d2a6a3c6..11d3dfab41865 100644 --- a/clients/client-service-catalog-appregistry/commands/AssociateAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/AssociateAttributeGroupCommand.ts @@ -34,6 +34,7 @@ export class AssociateAttributeGroupCommand extends $Command< AssociateAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssociateAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/AssociateResourceCommand.ts b/clients/client-service-catalog-appregistry/commands/AssociateResourceCommand.ts index 8bdaeb02f5708..61f30d4f7ef97 100644 --- a/clients/client-service-catalog-appregistry/commands/AssociateResourceCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/AssociateResourceCommand.ts @@ -32,6 +32,7 @@ export class AssociateResourceCommand extends $Command< AssociateResourceCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateResourceCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/CreateApplicationCommand.ts b/clients/client-service-catalog-appregistry/commands/CreateApplicationCommand.ts index 38bff0377cfe4..d21aae4f72866 100644 --- a/clients/client-service-catalog-appregistry/commands/CreateApplicationCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/CreateApplicationCommand.ts @@ -32,6 +32,7 @@ export class CreateApplicationCommand extends $Command< CreateApplicationCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateApplicationCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/CreateAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/CreateAttributeGroupCommand.ts index 260757b720770..53f4556289803 100644 --- a/clients/client-service-catalog-appregistry/commands/CreateAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/CreateAttributeGroupCommand.ts @@ -35,6 +35,7 @@ export class CreateAttributeGroupCommand extends $Command< CreateAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/DeleteApplicationCommand.ts b/clients/client-service-catalog-appregistry/commands/DeleteApplicationCommand.ts index 128e751d122da..8c167d324750e 100644 --- a/clients/client-service-catalog-appregistry/commands/DeleteApplicationCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/DeleteApplicationCommand.ts @@ -32,6 +32,7 @@ export class DeleteApplicationCommand extends $Command< DeleteApplicationCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteApplicationCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/DeleteAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/DeleteAttributeGroupCommand.ts index ebe773634e7f3..66f40c6d50cc2 100644 --- a/clients/client-service-catalog-appregistry/commands/DeleteAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/DeleteAttributeGroupCommand.ts @@ -32,6 +32,7 @@ export class DeleteAttributeGroupCommand extends $Command< DeleteAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/DisassociateAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/DisassociateAttributeGroupCommand.ts index e91a08402b027..0bf68b4cd3515 100644 --- a/clients/client-service-catalog-appregistry/commands/DisassociateAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/DisassociateAttributeGroupCommand.ts @@ -32,6 +32,7 @@ export class DisassociateAttributeGroupCommand extends $Command< DisassociateAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/DisassociateResourceCommand.ts b/clients/client-service-catalog-appregistry/commands/DisassociateResourceCommand.ts index 0840d80acb38d..46ea0e174d340 100644 --- a/clients/client-service-catalog-appregistry/commands/DisassociateResourceCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/DisassociateResourceCommand.ts @@ -32,6 +32,7 @@ export class DisassociateResourceCommand extends $Command< DisassociateResourceCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateResourceCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/GetApplicationCommand.ts b/clients/client-service-catalog-appregistry/commands/GetApplicationCommand.ts index 2c411dd9569ae..8ad5971ec645f 100644 --- a/clients/client-service-catalog-appregistry/commands/GetApplicationCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/GetApplicationCommand.ts @@ -32,6 +32,7 @@ export class GetApplicationCommand extends $Command< GetApplicationCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetApplicationCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/GetAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/GetAttributeGroupCommand.ts index 72f1cc65d90b8..d4cfe58329f09 100644 --- a/clients/client-service-catalog-appregistry/commands/GetAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/GetAttributeGroupCommand.ts @@ -32,6 +32,7 @@ export class GetAttributeGroupCommand extends $Command< GetAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/ListApplicationsCommand.ts b/clients/client-service-catalog-appregistry/commands/ListApplicationsCommand.ts index 0732331360998..4fce3e4aebda8 100644 --- a/clients/client-service-catalog-appregistry/commands/ListApplicationsCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/ListApplicationsCommand.ts @@ -32,6 +32,7 @@ export class ListApplicationsCommand extends $Command< ListApplicationsCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListApplicationsCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/ListAssociatedAttributeGroupsCommand.ts b/clients/client-service-catalog-appregistry/commands/ListAssociatedAttributeGroupsCommand.ts index c027d6504f696..8d75417e50cb1 100644 --- a/clients/client-service-catalog-appregistry/commands/ListAssociatedAttributeGroupsCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/ListAssociatedAttributeGroupsCommand.ts @@ -32,6 +32,7 @@ export class ListAssociatedAttributeGroupsCommand extends $Command< ListAssociatedAttributeGroupsCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListAssociatedAttributeGroupsCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/ListAssociatedResourcesCommand.ts b/clients/client-service-catalog-appregistry/commands/ListAssociatedResourcesCommand.ts index 68492e03ff2fe..5b75f85ed820f 100644 --- a/clients/client-service-catalog-appregistry/commands/ListAssociatedResourcesCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/ListAssociatedResourcesCommand.ts @@ -32,6 +32,7 @@ export class ListAssociatedResourcesCommand extends $Command< ListAssociatedResourcesCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListAssociatedResourcesCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/ListAttributeGroupsCommand.ts b/clients/client-service-catalog-appregistry/commands/ListAttributeGroupsCommand.ts index b7ae3606dd0d1..974e2fe8fde3b 100644 --- a/clients/client-service-catalog-appregistry/commands/ListAttributeGroupsCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/ListAttributeGroupsCommand.ts @@ -32,6 +32,7 @@ export class ListAttributeGroupsCommand extends $Command< ListAttributeGroupsCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListAttributeGroupsCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/ListTagsForResourceCommand.ts b/clients/client-service-catalog-appregistry/commands/ListTagsForResourceCommand.ts index a7341caf7831b..e173e2cb4d109 100644 --- a/clients/client-service-catalog-appregistry/commands/ListTagsForResourceCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/ListTagsForResourceCommand.ts @@ -32,6 +32,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/TagResourceCommand.ts b/clients/client-service-catalog-appregistry/commands/TagResourceCommand.ts index 26aa45cf52f53..9ec7919cb1e52 100644 --- a/clients/client-service-catalog-appregistry/commands/TagResourceCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/UntagResourceCommand.ts b/clients/client-service-catalog-appregistry/commands/UntagResourceCommand.ts index 392909d468ba2..468de04c4d5e7 100644 --- a/clients/client-service-catalog-appregistry/commands/UntagResourceCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/UntagResourceCommand.ts @@ -32,6 +32,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UntagResourceCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/UpdateApplicationCommand.ts b/clients/client-service-catalog-appregistry/commands/UpdateApplicationCommand.ts index dce554d1609d0..f394991213ccb 100644 --- a/clients/client-service-catalog-appregistry/commands/UpdateApplicationCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/UpdateApplicationCommand.ts @@ -32,6 +32,7 @@ export class UpdateApplicationCommand extends $Command< UpdateApplicationCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateApplicationCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog-appregistry/commands/UpdateAttributeGroupCommand.ts b/clients/client-service-catalog-appregistry/commands/UpdateAttributeGroupCommand.ts index 915bbdafae100..be03ac2e098da 100644 --- a/clients/client-service-catalog-appregistry/commands/UpdateAttributeGroupCommand.ts +++ b/clients/client-service-catalog-appregistry/commands/UpdateAttributeGroupCommand.ts @@ -32,6 +32,7 @@ export class UpdateAttributeGroupCommand extends $Command< UpdateAttributeGroupCommandOutput, ServiceCatalogAppRegistryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateAttributeGroupCommand extends $Command< configuration: ServiceCatalogAppRegistryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AcceptPortfolioShareCommand.ts b/clients/client-service-catalog/commands/AcceptPortfolioShareCommand.ts index 10dee68ad7cb0..9b1f4780b8c02 100644 --- a/clients/client-service-catalog/commands/AcceptPortfolioShareCommand.ts +++ b/clients/client-service-catalog/commands/AcceptPortfolioShareCommand.ts @@ -28,6 +28,7 @@ export class AcceptPortfolioShareCommand extends $Command< AcceptPortfolioShareCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AcceptPortfolioShareCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AssociateBudgetWithResourceCommand.ts b/clients/client-service-catalog/commands/AssociateBudgetWithResourceCommand.ts index 2fc46240c9fd6..cfd41324f03d0 100644 --- a/clients/client-service-catalog/commands/AssociateBudgetWithResourceCommand.ts +++ b/clients/client-service-catalog/commands/AssociateBudgetWithResourceCommand.ts @@ -28,6 +28,7 @@ export class AssociateBudgetWithResourceCommand extends $Command< AssociateBudgetWithResourceCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateBudgetWithResourceCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AssociatePrincipalWithPortfolioCommand.ts b/clients/client-service-catalog/commands/AssociatePrincipalWithPortfolioCommand.ts index b93016c764027..afae7819737d5 100644 --- a/clients/client-service-catalog/commands/AssociatePrincipalWithPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/AssociatePrincipalWithPortfolioCommand.ts @@ -28,6 +28,7 @@ export class AssociatePrincipalWithPortfolioCommand extends $Command< AssociatePrincipalWithPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociatePrincipalWithPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AssociateProductWithPortfolioCommand.ts b/clients/client-service-catalog/commands/AssociateProductWithPortfolioCommand.ts index 899ca34b8611f..1a4fd7b9a04b9 100644 --- a/clients/client-service-catalog/commands/AssociateProductWithPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/AssociateProductWithPortfolioCommand.ts @@ -29,6 +29,7 @@ export class AssociateProductWithPortfolioCommand extends $Command< AssociateProductWithPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateProductWithPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AssociateServiceActionWithProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/AssociateServiceActionWithProvisioningArtifactCommand.ts index f44d7f5f243d2..3e6f7e3e489d3 100644 --- a/clients/client-service-catalog/commands/AssociateServiceActionWithProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/AssociateServiceActionWithProvisioningArtifactCommand.ts @@ -32,6 +32,7 @@ export class AssociateServiceActionWithProvisioningArtifactCommand extends $Comm AssociateServiceActionWithProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociateServiceActionWithProvisioningArtifactCommand extends $Comm AssociateServiceActionWithProvisioningArtifactCommandInput, AssociateServiceActionWithProvisioningArtifactCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/AssociateTagOptionWithResourceCommand.ts b/clients/client-service-catalog/commands/AssociateTagOptionWithResourceCommand.ts index 715d4fff129a1..56100728b05b5 100644 --- a/clients/client-service-catalog/commands/AssociateTagOptionWithResourceCommand.ts +++ b/clients/client-service-catalog/commands/AssociateTagOptionWithResourceCommand.ts @@ -28,6 +28,7 @@ export class AssociateTagOptionWithResourceCommand extends $Command< AssociateTagOptionWithResourceCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateTagOptionWithResourceCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.ts index 277715cde1a9d..3b6865e3bfd78 100644 --- a/clients/client-service-catalog/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.ts @@ -32,6 +32,7 @@ export class BatchAssociateServiceActionWithProvisioningArtifactCommand extends BatchAssociateServiceActionWithProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchAssociateServiceActionWithProvisioningArtifactCommand extends BatchAssociateServiceActionWithProvisioningArtifactCommandInput, BatchAssociateServiceActionWithProvisioningArtifactCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.ts index 3c3f9e2603d4d..b06538878ecd3 100644 --- a/clients/client-service-catalog/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.ts @@ -32,6 +32,7 @@ export class BatchDisassociateServiceActionFromProvisioningArtifactCommand exten BatchDisassociateServiceActionFromProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class BatchDisassociateServiceActionFromProvisioningArtifactCommand exten BatchDisassociateServiceActionFromProvisioningArtifactCommandInput, BatchDisassociateServiceActionFromProvisioningArtifactCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CopyProductCommand.ts b/clients/client-service-catalog/commands/CopyProductCommand.ts index 4c87ffb7c4c91..6b524cd190f02 100644 --- a/clients/client-service-catalog/commands/CopyProductCommand.ts +++ b/clients/client-service-catalog/commands/CopyProductCommand.ts @@ -32,6 +32,7 @@ export class CopyProductCommand extends $Command< CopyProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CopyProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateConstraintCommand.ts b/clients/client-service-catalog/commands/CreateConstraintCommand.ts index 6e77d75b861ca..dbc09be6fdb68 100644 --- a/clients/client-service-catalog/commands/CreateConstraintCommand.ts +++ b/clients/client-service-catalog/commands/CreateConstraintCommand.ts @@ -29,6 +29,7 @@ export class CreateConstraintCommand extends $Command< CreateConstraintCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateConstraintCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreatePortfolioCommand.ts b/clients/client-service-catalog/commands/CreatePortfolioCommand.ts index de4254fd9f842..20e35d13d94a4 100644 --- a/clients/client-service-catalog/commands/CreatePortfolioCommand.ts +++ b/clients/client-service-catalog/commands/CreatePortfolioCommand.ts @@ -29,6 +29,7 @@ export class CreatePortfolioCommand extends $Command< CreatePortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreatePortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreatePortfolioShareCommand.ts b/clients/client-service-catalog/commands/CreatePortfolioShareCommand.ts index 48af2a2d5657e..1c79c09c9db40 100644 --- a/clients/client-service-catalog/commands/CreatePortfolioShareCommand.ts +++ b/clients/client-service-catalog/commands/CreatePortfolioShareCommand.ts @@ -35,6 +35,7 @@ export class CreatePortfolioShareCommand extends $Command< CreatePortfolioShareCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreatePortfolioShareCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateProductCommand.ts b/clients/client-service-catalog/commands/CreateProductCommand.ts index 1c57b1d1714ca..7eabb52f63add 100644 --- a/clients/client-service-catalog/commands/CreateProductCommand.ts +++ b/clients/client-service-catalog/commands/CreateProductCommand.ts @@ -29,6 +29,7 @@ export class CreateProductCommand extends $Command< CreateProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateProvisionedProductPlanCommand.ts b/clients/client-service-catalog/commands/CreateProvisionedProductPlanCommand.ts index 301f330a2958b..465bbdb21f56c 100644 --- a/clients/client-service-catalog/commands/CreateProvisionedProductPlanCommand.ts +++ b/clients/client-service-catalog/commands/CreateProvisionedProductPlanCommand.ts @@ -34,6 +34,7 @@ export class CreateProvisionedProductPlanCommand extends $Command< CreateProvisionedProductPlanCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateProvisionedProductPlanCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/CreateProvisioningArtifactCommand.ts index a08484b929b5c..3385325d7831e 100644 --- a/clients/client-service-catalog/commands/CreateProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/CreateProvisioningArtifactCommand.ts @@ -29,6 +29,7 @@ export class CreateProvisioningArtifactCommand extends $Command< CreateProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateProvisioningArtifactCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateServiceActionCommand.ts b/clients/client-service-catalog/commands/CreateServiceActionCommand.ts index 632b16799a51a..6b0faebe1d861 100644 --- a/clients/client-service-catalog/commands/CreateServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/CreateServiceActionCommand.ts @@ -28,6 +28,7 @@ export class CreateServiceActionCommand extends $Command< CreateServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateServiceActionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/CreateTagOptionCommand.ts b/clients/client-service-catalog/commands/CreateTagOptionCommand.ts index e41061e74c84f..e78d4ab6150b2 100644 --- a/clients/client-service-catalog/commands/CreateTagOptionCommand.ts +++ b/clients/client-service-catalog/commands/CreateTagOptionCommand.ts @@ -28,6 +28,7 @@ export class CreateTagOptionCommand extends $Command< CreateTagOptionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTagOptionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteConstraintCommand.ts b/clients/client-service-catalog/commands/DeleteConstraintCommand.ts index c024df94991eb..737a84c3eb140 100644 --- a/clients/client-service-catalog/commands/DeleteConstraintCommand.ts +++ b/clients/client-service-catalog/commands/DeleteConstraintCommand.ts @@ -29,6 +29,7 @@ export class DeleteConstraintCommand extends $Command< DeleteConstraintCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteConstraintCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeletePortfolioCommand.ts b/clients/client-service-catalog/commands/DeletePortfolioCommand.ts index 0e9316cac8f04..6f1b4b6f104d4 100644 --- a/clients/client-service-catalog/commands/DeletePortfolioCommand.ts +++ b/clients/client-service-catalog/commands/DeletePortfolioCommand.ts @@ -31,6 +31,7 @@ export class DeletePortfolioCommand extends $Command< DeletePortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeletePortfolioShareCommand.ts b/clients/client-service-catalog/commands/DeletePortfolioShareCommand.ts index 0d133c7ae3deb..a10993896bf06 100644 --- a/clients/client-service-catalog/commands/DeletePortfolioShareCommand.ts +++ b/clients/client-service-catalog/commands/DeletePortfolioShareCommand.ts @@ -31,6 +31,7 @@ export class DeletePortfolioShareCommand extends $Command< DeletePortfolioShareCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePortfolioShareCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteProductCommand.ts b/clients/client-service-catalog/commands/DeleteProductCommand.ts index eff1c9f9d7dff..68e27eb935e0a 100644 --- a/clients/client-service-catalog/commands/DeleteProductCommand.ts +++ b/clients/client-service-catalog/commands/DeleteProductCommand.ts @@ -30,6 +30,7 @@ export class DeleteProductCommand extends $Command< DeleteProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteProvisionedProductPlanCommand.ts b/clients/client-service-catalog/commands/DeleteProvisionedProductPlanCommand.ts index 61922b23dbbd4..663650a367a03 100644 --- a/clients/client-service-catalog/commands/DeleteProvisionedProductPlanCommand.ts +++ b/clients/client-service-catalog/commands/DeleteProvisionedProductPlanCommand.ts @@ -28,6 +28,7 @@ export class DeleteProvisionedProductPlanCommand extends $Command< DeleteProvisionedProductPlanCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProvisionedProductPlanCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/DeleteProvisioningArtifactCommand.ts index 6d76a6c9a3348..7153935a7917e 100644 --- a/clients/client-service-catalog/commands/DeleteProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/DeleteProvisioningArtifactCommand.ts @@ -31,6 +31,7 @@ export class DeleteProvisioningArtifactCommand extends $Command< DeleteProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteProvisioningArtifactCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteServiceActionCommand.ts b/clients/client-service-catalog/commands/DeleteServiceActionCommand.ts index d57724ec76a03..f2b810f5167eb 100644 --- a/clients/client-service-catalog/commands/DeleteServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/DeleteServiceActionCommand.ts @@ -28,6 +28,7 @@ export class DeleteServiceActionCommand extends $Command< DeleteServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteServiceActionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DeleteTagOptionCommand.ts b/clients/client-service-catalog/commands/DeleteTagOptionCommand.ts index 72edf83cf95f3..72193eb2bc9a1 100644 --- a/clients/client-service-catalog/commands/DeleteTagOptionCommand.ts +++ b/clients/client-service-catalog/commands/DeleteTagOptionCommand.ts @@ -29,6 +29,7 @@ export class DeleteTagOptionCommand extends $Command< DeleteTagOptionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTagOptionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeConstraintCommand.ts b/clients/client-service-catalog/commands/DescribeConstraintCommand.ts index 32b90ff699bc7..e5972f7dbabcf 100644 --- a/clients/client-service-catalog/commands/DescribeConstraintCommand.ts +++ b/clients/client-service-catalog/commands/DescribeConstraintCommand.ts @@ -28,6 +28,7 @@ export class DescribeConstraintCommand extends $Command< DescribeConstraintCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeConstraintCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeCopyProductStatusCommand.ts b/clients/client-service-catalog/commands/DescribeCopyProductStatusCommand.ts index 4b7e35b7697d8..9068ffda47667 100644 --- a/clients/client-service-catalog/commands/DescribeCopyProductStatusCommand.ts +++ b/clients/client-service-catalog/commands/DescribeCopyProductStatusCommand.ts @@ -28,6 +28,7 @@ export class DescribeCopyProductStatusCommand extends $Command< DescribeCopyProductStatusCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCopyProductStatusCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribePortfolioCommand.ts b/clients/client-service-catalog/commands/DescribePortfolioCommand.ts index 2e1f9a36f5bee..0a63908359d58 100644 --- a/clients/client-service-catalog/commands/DescribePortfolioCommand.ts +++ b/clients/client-service-catalog/commands/DescribePortfolioCommand.ts @@ -29,6 +29,7 @@ export class DescribePortfolioCommand extends $Command< DescribePortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribePortfolioShareStatusCommand.ts b/clients/client-service-catalog/commands/DescribePortfolioShareStatusCommand.ts index dc3539adb4529..6ab08bb5f348b 100644 --- a/clients/client-service-catalog/commands/DescribePortfolioShareStatusCommand.ts +++ b/clients/client-service-catalog/commands/DescribePortfolioShareStatusCommand.ts @@ -29,6 +29,7 @@ export class DescribePortfolioShareStatusCommand extends $Command< DescribePortfolioShareStatusCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePortfolioShareStatusCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProductAsAdminCommand.ts b/clients/client-service-catalog/commands/DescribeProductAsAdminCommand.ts index 61065267c8cd3..6654ae3bc16f9 100644 --- a/clients/client-service-catalog/commands/DescribeProductAsAdminCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProductAsAdminCommand.ts @@ -28,6 +28,7 @@ export class DescribeProductAsAdminCommand extends $Command< DescribeProductAsAdminCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProductAsAdminCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProductCommand.ts b/clients/client-service-catalog/commands/DescribeProductCommand.ts index cf60cf3b54611..abb928fce1f3b 100644 --- a/clients/client-service-catalog/commands/DescribeProductCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProductCommand.ts @@ -28,6 +28,7 @@ export class DescribeProductCommand extends $Command< DescribeProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProductViewCommand.ts b/clients/client-service-catalog/commands/DescribeProductViewCommand.ts index b2c9c6c77578d..ec68a2e48e4a8 100644 --- a/clients/client-service-catalog/commands/DescribeProductViewCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProductViewCommand.ts @@ -28,6 +28,7 @@ export class DescribeProductViewCommand extends $Command< DescribeProductViewCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProductViewCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProvisionedProductCommand.ts b/clients/client-service-catalog/commands/DescribeProvisionedProductCommand.ts index 722e61f714060..1abccd923dbc4 100644 --- a/clients/client-service-catalog/commands/DescribeProvisionedProductCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProvisionedProductCommand.ts @@ -28,6 +28,7 @@ export class DescribeProvisionedProductCommand extends $Command< DescribeProvisionedProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProvisionedProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProvisionedProductPlanCommand.ts b/clients/client-service-catalog/commands/DescribeProvisionedProductPlanCommand.ts index aaa9a60ed3362..6d4f646e6575a 100644 --- a/clients/client-service-catalog/commands/DescribeProvisionedProductPlanCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProvisionedProductPlanCommand.ts @@ -28,6 +28,7 @@ export class DescribeProvisionedProductPlanCommand extends $Command< DescribeProvisionedProductPlanCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProvisionedProductPlanCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/DescribeProvisioningArtifactCommand.ts index da4be0ed5f2bb..0f5d05be13456 100644 --- a/clients/client-service-catalog/commands/DescribeProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProvisioningArtifactCommand.ts @@ -28,6 +28,7 @@ export class DescribeProvisioningArtifactCommand extends $Command< DescribeProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProvisioningArtifactCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeProvisioningParametersCommand.ts b/clients/client-service-catalog/commands/DescribeProvisioningParametersCommand.ts index 27b9a342f5f02..32dd6a845f85a 100644 --- a/clients/client-service-catalog/commands/DescribeProvisioningParametersCommand.ts +++ b/clients/client-service-catalog/commands/DescribeProvisioningParametersCommand.ts @@ -35,6 +35,7 @@ export class DescribeProvisioningParametersCommand extends $Command< DescribeProvisioningParametersCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeProvisioningParametersCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeRecordCommand.ts b/clients/client-service-catalog/commands/DescribeRecordCommand.ts index 2f52c7307bb49..8d13af31412e8 100644 --- a/clients/client-service-catalog/commands/DescribeRecordCommand.ts +++ b/clients/client-service-catalog/commands/DescribeRecordCommand.ts @@ -36,6 +36,7 @@ export class DescribeRecordCommand extends $Command< DescribeRecordCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeRecordCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeServiceActionCommand.ts b/clients/client-service-catalog/commands/DescribeServiceActionCommand.ts index 8b22572a77005..2f38eaf85c9b2 100644 --- a/clients/client-service-catalog/commands/DescribeServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/DescribeServiceActionCommand.ts @@ -28,6 +28,7 @@ export class DescribeServiceActionCommand extends $Command< DescribeServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeServiceActionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeServiceActionExecutionParametersCommand.ts b/clients/client-service-catalog/commands/DescribeServiceActionExecutionParametersCommand.ts index 6c44ff6bdae4a..fb826591326b4 100644 --- a/clients/client-service-catalog/commands/DescribeServiceActionExecutionParametersCommand.ts +++ b/clients/client-service-catalog/commands/DescribeServiceActionExecutionParametersCommand.ts @@ -32,6 +32,7 @@ export class DescribeServiceActionExecutionParametersCommand extends $Command< DescribeServiceActionExecutionParametersCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeServiceActionExecutionParametersCommand extends $Command< DescribeServiceActionExecutionParametersCommandInput, DescribeServiceActionExecutionParametersCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DescribeTagOptionCommand.ts b/clients/client-service-catalog/commands/DescribeTagOptionCommand.ts index 55b03f085197c..02372bcacfde9 100644 --- a/clients/client-service-catalog/commands/DescribeTagOptionCommand.ts +++ b/clients/client-service-catalog/commands/DescribeTagOptionCommand.ts @@ -28,6 +28,7 @@ export class DescribeTagOptionCommand extends $Command< DescribeTagOptionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTagOptionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisableAWSOrganizationsAccessCommand.ts b/clients/client-service-catalog/commands/DisableAWSOrganizationsAccessCommand.ts index c008aed517e62..e393366502f34 100644 --- a/clients/client-service-catalog/commands/DisableAWSOrganizationsAccessCommand.ts +++ b/clients/client-service-catalog/commands/DisableAWSOrganizationsAccessCommand.ts @@ -34,6 +34,7 @@ export class DisableAWSOrganizationsAccessCommand extends $Command< DisableAWSOrganizationsAccessCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DisableAWSOrganizationsAccessCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisassociateBudgetFromResourceCommand.ts b/clients/client-service-catalog/commands/DisassociateBudgetFromResourceCommand.ts index 8b8fd3d4f52e4..3124c0690868c 100644 --- a/clients/client-service-catalog/commands/DisassociateBudgetFromResourceCommand.ts +++ b/clients/client-service-catalog/commands/DisassociateBudgetFromResourceCommand.ts @@ -28,6 +28,7 @@ export class DisassociateBudgetFromResourceCommand extends $Command< DisassociateBudgetFromResourceCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateBudgetFromResourceCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisassociatePrincipalFromPortfolioCommand.ts b/clients/client-service-catalog/commands/DisassociatePrincipalFromPortfolioCommand.ts index c6e5f485a8c9f..fd0fd54b7c1f6 100644 --- a/clients/client-service-catalog/commands/DisassociatePrincipalFromPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/DisassociatePrincipalFromPortfolioCommand.ts @@ -30,6 +30,7 @@ export class DisassociatePrincipalFromPortfolioCommand extends $Command< DisassociatePrincipalFromPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociatePrincipalFromPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisassociateProductFromPortfolioCommand.ts b/clients/client-service-catalog/commands/DisassociateProductFromPortfolioCommand.ts index 8994fc03665a2..9d07516e096d9 100644 --- a/clients/client-service-catalog/commands/DisassociateProductFromPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/DisassociateProductFromPortfolioCommand.ts @@ -29,6 +29,7 @@ export class DisassociateProductFromPortfolioCommand extends $Command< DisassociateProductFromPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateProductFromPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisassociateServiceActionFromProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/DisassociateServiceActionFromProvisioningArtifactCommand.ts index ec7907e5cd241..424279a019dfc 100644 --- a/clients/client-service-catalog/commands/DisassociateServiceActionFromProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/DisassociateServiceActionFromProvisioningArtifactCommand.ts @@ -32,6 +32,7 @@ export class DisassociateServiceActionFromProvisioningArtifactCommand extends $C DisassociateServiceActionFromProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociateServiceActionFromProvisioningArtifactCommand extends $C DisassociateServiceActionFromProvisioningArtifactCommandInput, DisassociateServiceActionFromProvisioningArtifactCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/DisassociateTagOptionFromResourceCommand.ts b/clients/client-service-catalog/commands/DisassociateTagOptionFromResourceCommand.ts index 48dc58c696c16..2067027f1cf04 100644 --- a/clients/client-service-catalog/commands/DisassociateTagOptionFromResourceCommand.ts +++ b/clients/client-service-catalog/commands/DisassociateTagOptionFromResourceCommand.ts @@ -28,6 +28,7 @@ export class DisassociateTagOptionFromResourceCommand extends $Command< DisassociateTagOptionFromResourceCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateTagOptionFromResourceCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/EnableAWSOrganizationsAccessCommand.ts b/clients/client-service-catalog/commands/EnableAWSOrganizationsAccessCommand.ts index d3b1a44601c9c..ac7f1b31db2ac 100644 --- a/clients/client-service-catalog/commands/EnableAWSOrganizationsAccessCommand.ts +++ b/clients/client-service-catalog/commands/EnableAWSOrganizationsAccessCommand.ts @@ -33,6 +33,7 @@ export class EnableAWSOrganizationsAccessCommand extends $Command< EnableAWSOrganizationsAccessCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class EnableAWSOrganizationsAccessCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ExecuteProvisionedProductPlanCommand.ts b/clients/client-service-catalog/commands/ExecuteProvisionedProductPlanCommand.ts index efdd322bd6ce4..0c104837e6a74 100644 --- a/clients/client-service-catalog/commands/ExecuteProvisionedProductPlanCommand.ts +++ b/clients/client-service-catalog/commands/ExecuteProvisionedProductPlanCommand.ts @@ -28,6 +28,7 @@ export class ExecuteProvisionedProductPlanCommand extends $Command< ExecuteProvisionedProductPlanCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ExecuteProvisionedProductPlanCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ExecuteProvisionedProductServiceActionCommand.ts b/clients/client-service-catalog/commands/ExecuteProvisionedProductServiceActionCommand.ts index 717aa510beb20..6d662afd203ca 100644 --- a/clients/client-service-catalog/commands/ExecuteProvisionedProductServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/ExecuteProvisionedProductServiceActionCommand.ts @@ -32,6 +32,7 @@ export class ExecuteProvisionedProductServiceActionCommand extends $Command< ExecuteProvisionedProductServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ExecuteProvisionedProductServiceActionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/GetAWSOrganizationsAccessStatusCommand.ts b/clients/client-service-catalog/commands/GetAWSOrganizationsAccessStatusCommand.ts index 7eca606352fe7..5fe10abbb99fd 100644 --- a/clients/client-service-catalog/commands/GetAWSOrganizationsAccessStatusCommand.ts +++ b/clients/client-service-catalog/commands/GetAWSOrganizationsAccessStatusCommand.ts @@ -29,6 +29,7 @@ export class GetAWSOrganizationsAccessStatusCommand extends $Command< GetAWSOrganizationsAccessStatusCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAWSOrganizationsAccessStatusCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/GetProvisionedProductOutputsCommand.ts b/clients/client-service-catalog/commands/GetProvisionedProductOutputsCommand.ts index d494fe55ed315..f0636b4c04673 100644 --- a/clients/client-service-catalog/commands/GetProvisionedProductOutputsCommand.ts +++ b/clients/client-service-catalog/commands/GetProvisionedProductOutputsCommand.ts @@ -28,6 +28,7 @@ export class GetProvisionedProductOutputsCommand extends $Command< GetProvisionedProductOutputsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetProvisionedProductOutputsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ImportAsProvisionedProductCommand.ts b/clients/client-service-catalog/commands/ImportAsProvisionedProductCommand.ts index 6b84687abe395..9b5e9a3940dc9 100644 --- a/clients/client-service-catalog/commands/ImportAsProvisionedProductCommand.ts +++ b/clients/client-service-catalog/commands/ImportAsProvisionedProductCommand.ts @@ -38,6 +38,7 @@ export class ImportAsProvisionedProductCommand extends $Command< ImportAsProvisionedProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ImportAsProvisionedProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListAcceptedPortfolioSharesCommand.ts b/clients/client-service-catalog/commands/ListAcceptedPortfolioSharesCommand.ts index b0aac152b100b..7d6c35f315726 100644 --- a/clients/client-service-catalog/commands/ListAcceptedPortfolioSharesCommand.ts +++ b/clients/client-service-catalog/commands/ListAcceptedPortfolioSharesCommand.ts @@ -28,6 +28,7 @@ export class ListAcceptedPortfolioSharesCommand extends $Command< ListAcceptedPortfolioSharesCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAcceptedPortfolioSharesCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListBudgetsForResourceCommand.ts b/clients/client-service-catalog/commands/ListBudgetsForResourceCommand.ts index 70355e19444c4..415401cfa67a4 100644 --- a/clients/client-service-catalog/commands/ListBudgetsForResourceCommand.ts +++ b/clients/client-service-catalog/commands/ListBudgetsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListBudgetsForResourceCommand extends $Command< ListBudgetsForResourceCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListBudgetsForResourceCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListConstraintsForPortfolioCommand.ts b/clients/client-service-catalog/commands/ListConstraintsForPortfolioCommand.ts index 89c4fa85e0722..7fbd8d366ba95 100644 --- a/clients/client-service-catalog/commands/ListConstraintsForPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/ListConstraintsForPortfolioCommand.ts @@ -28,6 +28,7 @@ export class ListConstraintsForPortfolioCommand extends $Command< ListConstraintsForPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListConstraintsForPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListLaunchPathsCommand.ts b/clients/client-service-catalog/commands/ListLaunchPathsCommand.ts index 4cb2910217f24..97c7b48020e5b 100644 --- a/clients/client-service-catalog/commands/ListLaunchPathsCommand.ts +++ b/clients/client-service-catalog/commands/ListLaunchPathsCommand.ts @@ -30,6 +30,7 @@ export class ListLaunchPathsCommand extends $Command< ListLaunchPathsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListLaunchPathsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListOrganizationPortfolioAccessCommand.ts b/clients/client-service-catalog/commands/ListOrganizationPortfolioAccessCommand.ts index 95a8edeb6b637..92305975f150f 100644 --- a/clients/client-service-catalog/commands/ListOrganizationPortfolioAccessCommand.ts +++ b/clients/client-service-catalog/commands/ListOrganizationPortfolioAccessCommand.ts @@ -31,6 +31,7 @@ export class ListOrganizationPortfolioAccessCommand extends $Command< ListOrganizationPortfolioAccessCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListOrganizationPortfolioAccessCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListPortfolioAccessCommand.ts b/clients/client-service-catalog/commands/ListPortfolioAccessCommand.ts index db92be6cf6b0a..56ef267841d8a 100644 --- a/clients/client-service-catalog/commands/ListPortfolioAccessCommand.ts +++ b/clients/client-service-catalog/commands/ListPortfolioAccessCommand.ts @@ -29,6 +29,7 @@ export class ListPortfolioAccessCommand extends $Command< ListPortfolioAccessCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListPortfolioAccessCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListPortfoliosCommand.ts b/clients/client-service-catalog/commands/ListPortfoliosCommand.ts index 3b8e52a22e7d3..68cd0daf536e4 100644 --- a/clients/client-service-catalog/commands/ListPortfoliosCommand.ts +++ b/clients/client-service-catalog/commands/ListPortfoliosCommand.ts @@ -28,6 +28,7 @@ export class ListPortfoliosCommand extends $Command< ListPortfoliosCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPortfoliosCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListPortfoliosForProductCommand.ts b/clients/client-service-catalog/commands/ListPortfoliosForProductCommand.ts index 0473802d94ca3..f4256c849b9e6 100644 --- a/clients/client-service-catalog/commands/ListPortfoliosForProductCommand.ts +++ b/clients/client-service-catalog/commands/ListPortfoliosForProductCommand.ts @@ -28,6 +28,7 @@ export class ListPortfoliosForProductCommand extends $Command< ListPortfoliosForProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPortfoliosForProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListPrincipalsForPortfolioCommand.ts b/clients/client-service-catalog/commands/ListPrincipalsForPortfolioCommand.ts index 8704ff92349c0..0ba5f238600a1 100644 --- a/clients/client-service-catalog/commands/ListPrincipalsForPortfolioCommand.ts +++ b/clients/client-service-catalog/commands/ListPrincipalsForPortfolioCommand.ts @@ -28,6 +28,7 @@ export class ListPrincipalsForPortfolioCommand extends $Command< ListPrincipalsForPortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPrincipalsForPortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListProvisionedProductPlansCommand.ts b/clients/client-service-catalog/commands/ListProvisionedProductPlansCommand.ts index 246618fc62905..665a19f96b86b 100644 --- a/clients/client-service-catalog/commands/ListProvisionedProductPlansCommand.ts +++ b/clients/client-service-catalog/commands/ListProvisionedProductPlansCommand.ts @@ -28,6 +28,7 @@ export class ListProvisionedProductPlansCommand extends $Command< ListProvisionedProductPlansCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProvisionedProductPlansCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListProvisioningArtifactsCommand.ts b/clients/client-service-catalog/commands/ListProvisioningArtifactsCommand.ts index fff4dd3b0ce61..63ac269b31219 100644 --- a/clients/client-service-catalog/commands/ListProvisioningArtifactsCommand.ts +++ b/clients/client-service-catalog/commands/ListProvisioningArtifactsCommand.ts @@ -28,6 +28,7 @@ export class ListProvisioningArtifactsCommand extends $Command< ListProvisioningArtifactsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProvisioningArtifactsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListProvisioningArtifactsForServiceActionCommand.ts b/clients/client-service-catalog/commands/ListProvisioningArtifactsForServiceActionCommand.ts index bb70afc9ab06f..306bec3686dd3 100644 --- a/clients/client-service-catalog/commands/ListProvisioningArtifactsForServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/ListProvisioningArtifactsForServiceActionCommand.ts @@ -32,6 +32,7 @@ export class ListProvisioningArtifactsForServiceActionCommand extends $Command< ListProvisioningArtifactsForServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListProvisioningArtifactsForServiceActionCommand extends $Command< ListProvisioningArtifactsForServiceActionCommandInput, ListProvisioningArtifactsForServiceActionCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListRecordHistoryCommand.ts b/clients/client-service-catalog/commands/ListRecordHistoryCommand.ts index a916d9081a913..75c24e32e9398 100644 --- a/clients/client-service-catalog/commands/ListRecordHistoryCommand.ts +++ b/clients/client-service-catalog/commands/ListRecordHistoryCommand.ts @@ -28,6 +28,7 @@ export class ListRecordHistoryCommand extends $Command< ListRecordHistoryCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListRecordHistoryCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListResourcesForTagOptionCommand.ts b/clients/client-service-catalog/commands/ListResourcesForTagOptionCommand.ts index 9493ff8b4b52b..c696c6b0dccfb 100644 --- a/clients/client-service-catalog/commands/ListResourcesForTagOptionCommand.ts +++ b/clients/client-service-catalog/commands/ListResourcesForTagOptionCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesForTagOptionCommand extends $Command< ListResourcesForTagOptionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesForTagOptionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListServiceActionsCommand.ts b/clients/client-service-catalog/commands/ListServiceActionsCommand.ts index e373df6a62531..32e2e769c2e9f 100644 --- a/clients/client-service-catalog/commands/ListServiceActionsCommand.ts +++ b/clients/client-service-catalog/commands/ListServiceActionsCommand.ts @@ -28,6 +28,7 @@ export class ListServiceActionsCommand extends $Command< ListServiceActionsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListServiceActionsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListServiceActionsForProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/ListServiceActionsForProvisioningArtifactCommand.ts index 46aacaae37fc8..6c3286f544843 100644 --- a/clients/client-service-catalog/commands/ListServiceActionsForProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/ListServiceActionsForProvisioningArtifactCommand.ts @@ -32,6 +32,7 @@ export class ListServiceActionsForProvisioningArtifactCommand extends $Command< ListServiceActionsForProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListServiceActionsForProvisioningArtifactCommand extends $Command< ListServiceActionsForProvisioningArtifactCommandInput, ListServiceActionsForProvisioningArtifactCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListStackInstancesForProvisionedProductCommand.ts b/clients/client-service-catalog/commands/ListStackInstancesForProvisionedProductCommand.ts index 380b3e4f9a1d7..0a17260460337 100644 --- a/clients/client-service-catalog/commands/ListStackInstancesForProvisionedProductCommand.ts +++ b/clients/client-service-catalog/commands/ListStackInstancesForProvisionedProductCommand.ts @@ -32,6 +32,7 @@ export class ListStackInstancesForProvisionedProductCommand extends $Command< ListStackInstancesForProvisionedProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListStackInstancesForProvisionedProductCommand extends $Command< ListStackInstancesForProvisionedProductCommandInput, ListStackInstancesForProvisionedProductCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ListTagOptionsCommand.ts b/clients/client-service-catalog/commands/ListTagOptionsCommand.ts index a2d0b0af59558..1d542c45990a6 100644 --- a/clients/client-service-catalog/commands/ListTagOptionsCommand.ts +++ b/clients/client-service-catalog/commands/ListTagOptionsCommand.ts @@ -28,6 +28,7 @@ export class ListTagOptionsCommand extends $Command< ListTagOptionsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagOptionsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ProvisionProductCommand.ts b/clients/client-service-catalog/commands/ProvisionProductCommand.ts index eb947803bf6f7..fdf2b03025c8b 100644 --- a/clients/client-service-catalog/commands/ProvisionProductCommand.ts +++ b/clients/client-service-catalog/commands/ProvisionProductCommand.ts @@ -36,6 +36,7 @@ export class ProvisionProductCommand extends $Command< ProvisionProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ProvisionProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/RejectPortfolioShareCommand.ts b/clients/client-service-catalog/commands/RejectPortfolioShareCommand.ts index f7e1383b67662..573ee7d83d789 100644 --- a/clients/client-service-catalog/commands/RejectPortfolioShareCommand.ts +++ b/clients/client-service-catalog/commands/RejectPortfolioShareCommand.ts @@ -28,6 +28,7 @@ export class RejectPortfolioShareCommand extends $Command< RejectPortfolioShareCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RejectPortfolioShareCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/ScanProvisionedProductsCommand.ts b/clients/client-service-catalog/commands/ScanProvisionedProductsCommand.ts index 62e5919887be2..d5e93c3ef8189 100644 --- a/clients/client-service-catalog/commands/ScanProvisionedProductsCommand.ts +++ b/clients/client-service-catalog/commands/ScanProvisionedProductsCommand.ts @@ -29,6 +29,7 @@ export class ScanProvisionedProductsCommand extends $Command< ScanProvisionedProductsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ScanProvisionedProductsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/SearchProductsAsAdminCommand.ts b/clients/client-service-catalog/commands/SearchProductsAsAdminCommand.ts index 4759f1a680c29..20faec9d9fa65 100644 --- a/clients/client-service-catalog/commands/SearchProductsAsAdminCommand.ts +++ b/clients/client-service-catalog/commands/SearchProductsAsAdminCommand.ts @@ -28,6 +28,7 @@ export class SearchProductsAsAdminCommand extends $Command< SearchProductsAsAdminCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchProductsAsAdminCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/SearchProductsCommand.ts b/clients/client-service-catalog/commands/SearchProductsCommand.ts index fff076a18248c..0802e6946ec5d 100644 --- a/clients/client-service-catalog/commands/SearchProductsCommand.ts +++ b/clients/client-service-catalog/commands/SearchProductsCommand.ts @@ -28,6 +28,7 @@ export class SearchProductsCommand extends $Command< SearchProductsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchProductsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/SearchProvisionedProductsCommand.ts b/clients/client-service-catalog/commands/SearchProvisionedProductsCommand.ts index 40e466c438ed0..71b8ab15f59b0 100644 --- a/clients/client-service-catalog/commands/SearchProvisionedProductsCommand.ts +++ b/clients/client-service-catalog/commands/SearchProvisionedProductsCommand.ts @@ -28,6 +28,7 @@ export class SearchProvisionedProductsCommand extends $Command< SearchProvisionedProductsCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SearchProvisionedProductsCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/TerminateProvisionedProductCommand.ts b/clients/client-service-catalog/commands/TerminateProvisionedProductCommand.ts index 4d3afdbe8c418..7f663c892a4d8 100644 --- a/clients/client-service-catalog/commands/TerminateProvisionedProductCommand.ts +++ b/clients/client-service-catalog/commands/TerminateProvisionedProductCommand.ts @@ -30,6 +30,7 @@ export class TerminateProvisionedProductCommand extends $Command< TerminateProvisionedProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TerminateProvisionedProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateConstraintCommand.ts b/clients/client-service-catalog/commands/UpdateConstraintCommand.ts index 0c619901001ac..4f80a3ae97037 100644 --- a/clients/client-service-catalog/commands/UpdateConstraintCommand.ts +++ b/clients/client-service-catalog/commands/UpdateConstraintCommand.ts @@ -28,6 +28,7 @@ export class UpdateConstraintCommand extends $Command< UpdateConstraintCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateConstraintCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdatePortfolioCommand.ts b/clients/client-service-catalog/commands/UpdatePortfolioCommand.ts index 943cf99191a64..def41259396ed 100644 --- a/clients/client-service-catalog/commands/UpdatePortfolioCommand.ts +++ b/clients/client-service-catalog/commands/UpdatePortfolioCommand.ts @@ -29,6 +29,7 @@ export class UpdatePortfolioCommand extends $Command< UpdatePortfolioCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdatePortfolioCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateProductCommand.ts b/clients/client-service-catalog/commands/UpdateProductCommand.ts index d5f6c9f72c013..e060f938e7393 100644 --- a/clients/client-service-catalog/commands/UpdateProductCommand.ts +++ b/clients/client-service-catalog/commands/UpdateProductCommand.ts @@ -28,6 +28,7 @@ export class UpdateProductCommand extends $Command< UpdateProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateProvisionedProductCommand.ts b/clients/client-service-catalog/commands/UpdateProvisionedProductCommand.ts index b4636439db2c9..c843109301750 100644 --- a/clients/client-service-catalog/commands/UpdateProvisionedProductCommand.ts +++ b/clients/client-service-catalog/commands/UpdateProvisionedProductCommand.ts @@ -32,6 +32,7 @@ export class UpdateProvisionedProductCommand extends $Command< UpdateProvisionedProductCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateProvisionedProductCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateProvisionedProductPropertiesCommand.ts b/clients/client-service-catalog/commands/UpdateProvisionedProductPropertiesCommand.ts index 649c8259ad26e..18e26a8f34073 100644 --- a/clients/client-service-catalog/commands/UpdateProvisionedProductPropertiesCommand.ts +++ b/clients/client-service-catalog/commands/UpdateProvisionedProductPropertiesCommand.ts @@ -29,6 +29,7 @@ export class UpdateProvisionedProductPropertiesCommand extends $Command< UpdateProvisionedProductPropertiesCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateProvisionedProductPropertiesCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateProvisioningArtifactCommand.ts b/clients/client-service-catalog/commands/UpdateProvisioningArtifactCommand.ts index da2961180190c..e8afd7519cb94 100644 --- a/clients/client-service-catalog/commands/UpdateProvisioningArtifactCommand.ts +++ b/clients/client-service-catalog/commands/UpdateProvisioningArtifactCommand.ts @@ -29,6 +29,7 @@ export class UpdateProvisioningArtifactCommand extends $Command< UpdateProvisioningArtifactCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateProvisioningArtifactCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateServiceActionCommand.ts b/clients/client-service-catalog/commands/UpdateServiceActionCommand.ts index 084aff6eb19fb..696323722154d 100644 --- a/clients/client-service-catalog/commands/UpdateServiceActionCommand.ts +++ b/clients/client-service-catalog/commands/UpdateServiceActionCommand.ts @@ -28,6 +28,7 @@ export class UpdateServiceActionCommand extends $Command< UpdateServiceActionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateServiceActionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-catalog/commands/UpdateTagOptionCommand.ts b/clients/client-service-catalog/commands/UpdateTagOptionCommand.ts index 868912da3bdec..d0a94fcfdca98 100644 --- a/clients/client-service-catalog/commands/UpdateTagOptionCommand.ts +++ b/clients/client-service-catalog/commands/UpdateTagOptionCommand.ts @@ -28,6 +28,7 @@ export class UpdateTagOptionCommand extends $Command< UpdateTagOptionCommandOutput, ServiceCatalogClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateTagOptionCommand extends $Command< configuration: ServiceCatalogClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/AssociateServiceQuotaTemplateCommand.ts b/clients/client-service-quotas/commands/AssociateServiceQuotaTemplateCommand.ts index db9db39b43011..d51266ca521ef 100644 --- a/clients/client-service-quotas/commands/AssociateServiceQuotaTemplateCommand.ts +++ b/clients/client-service-quotas/commands/AssociateServiceQuotaTemplateCommand.ts @@ -32,6 +32,7 @@ export class AssociateServiceQuotaTemplateCommand extends $Command< AssociateServiceQuotaTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateServiceQuotaTemplateCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts b/clients/client-service-quotas/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts index 8b3cd6f975687..33073fa49593c 100644 --- a/clients/client-service-quotas/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts +++ b/clients/client-service-quotas/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts @@ -32,6 +32,7 @@ export class DeleteServiceQuotaIncreaseRequestFromTemplateCommand extends $Comma DeleteServiceQuotaIncreaseRequestFromTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteServiceQuotaIncreaseRequestFromTemplateCommand extends $Comma DeleteServiceQuotaIncreaseRequestFromTemplateCommandInput, DeleteServiceQuotaIncreaseRequestFromTemplateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/DisassociateServiceQuotaTemplateCommand.ts b/clients/client-service-quotas/commands/DisassociateServiceQuotaTemplateCommand.ts index d13eeb97d6fe3..4e162991b3ed0 100644 --- a/clients/client-service-quotas/commands/DisassociateServiceQuotaTemplateCommand.ts +++ b/clients/client-service-quotas/commands/DisassociateServiceQuotaTemplateCommand.ts @@ -43,6 +43,7 @@ export class DisassociateServiceQuotaTemplateCommand extends $Command< DisassociateServiceQuotaTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class DisassociateServiceQuotaTemplateCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/GetAWSDefaultServiceQuotaCommand.ts b/clients/client-service-quotas/commands/GetAWSDefaultServiceQuotaCommand.ts index 95710be72d878..dfabf93273930 100644 --- a/clients/client-service-quotas/commands/GetAWSDefaultServiceQuotaCommand.ts +++ b/clients/client-service-quotas/commands/GetAWSDefaultServiceQuotaCommand.ts @@ -29,6 +29,7 @@ export class GetAWSDefaultServiceQuotaCommand extends $Command< GetAWSDefaultServiceQuotaCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAWSDefaultServiceQuotaCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/GetAssociationForServiceQuotaTemplateCommand.ts b/clients/client-service-quotas/commands/GetAssociationForServiceQuotaTemplateCommand.ts index 5eb768b56cbef..2b0ae77a46ff9 100644 --- a/clients/client-service-quotas/commands/GetAssociationForServiceQuotaTemplateCommand.ts +++ b/clients/client-service-quotas/commands/GetAssociationForServiceQuotaTemplateCommand.ts @@ -33,6 +33,7 @@ export class GetAssociationForServiceQuotaTemplateCommand extends $Command< GetAssociationForServiceQuotaTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetAssociationForServiceQuotaTemplateCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/GetRequestedServiceQuotaChangeCommand.ts b/clients/client-service-quotas/commands/GetRequestedServiceQuotaChangeCommand.ts index 5ccb044937d8e..a350703f87762 100644 --- a/clients/client-service-quotas/commands/GetRequestedServiceQuotaChangeCommand.ts +++ b/clients/client-service-quotas/commands/GetRequestedServiceQuotaChangeCommand.ts @@ -28,6 +28,7 @@ export class GetRequestedServiceQuotaChangeCommand extends $Command< GetRequestedServiceQuotaChangeCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetRequestedServiceQuotaChangeCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/GetServiceQuotaCommand.ts b/clients/client-service-quotas/commands/GetServiceQuotaCommand.ts index 131a3dc4e2460..1e308f0e429a6 100644 --- a/clients/client-service-quotas/commands/GetServiceQuotaCommand.ts +++ b/clients/client-service-quotas/commands/GetServiceQuotaCommand.ts @@ -31,6 +31,7 @@ export class GetServiceQuotaCommand extends $Command< GetServiceQuotaCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetServiceQuotaCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts b/clients/client-service-quotas/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts index c38c3b2bd83c7..0f4a7da889fa7 100644 --- a/clients/client-service-quotas/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts +++ b/clients/client-service-quotas/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts @@ -32,6 +32,7 @@ export class GetServiceQuotaIncreaseRequestFromTemplateCommand extends $Command< GetServiceQuotaIncreaseRequestFromTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetServiceQuotaIncreaseRequestFromTemplateCommand extends $Command< GetServiceQuotaIncreaseRequestFromTemplateCommandInput, GetServiceQuotaIncreaseRequestFromTemplateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListAWSDefaultServiceQuotasCommand.ts b/clients/client-service-quotas/commands/ListAWSDefaultServiceQuotasCommand.ts index f9b4ff08c2974..ea59c142e17ba 100644 --- a/clients/client-service-quotas/commands/ListAWSDefaultServiceQuotasCommand.ts +++ b/clients/client-service-quotas/commands/ListAWSDefaultServiceQuotasCommand.ts @@ -40,6 +40,7 @@ export class ListAWSDefaultServiceQuotasCommand extends $Command< ListAWSDefaultServiceQuotasCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ListAWSDefaultServiceQuotasCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts b/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts index b5c4c70f0307a..575fbac4691ef 100644 --- a/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts +++ b/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts @@ -35,6 +35,7 @@ export class ListRequestedServiceQuotaChangeHistoryByQuotaCommand extends $Comma ListRequestedServiceQuotaChangeHistoryByQuotaCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListRequestedServiceQuotaChangeHistoryByQuotaCommand extends $Comma ListRequestedServiceQuotaChangeHistoryByQuotaCommandInput, ListRequestedServiceQuotaChangeHistoryByQuotaCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts b/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts index 886f83bff1614..e575805ba1bc7 100644 --- a/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts +++ b/clients/client-service-quotas/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts @@ -32,6 +32,7 @@ export class ListRequestedServiceQuotaChangeHistoryCommand extends $Command< ListRequestedServiceQuotaChangeHistoryCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListRequestedServiceQuotaChangeHistoryCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts b/clients/client-service-quotas/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts index 88f79babec7b0..43ec6d41d3cbb 100644 --- a/clients/client-service-quotas/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts +++ b/clients/client-service-quotas/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts @@ -32,6 +32,7 @@ export class ListServiceQuotaIncreaseRequestsInTemplateCommand extends $Command< ListServiceQuotaIncreaseRequestsInTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListServiceQuotaIncreaseRequestsInTemplateCommand extends $Command< ListServiceQuotaIncreaseRequestsInTemplateCommandInput, ListServiceQuotaIncreaseRequestsInTemplateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListServiceQuotasCommand.ts b/clients/client-service-quotas/commands/ListServiceQuotasCommand.ts index 7a16e41451ee7..813bd1a57fa42 100644 --- a/clients/client-service-quotas/commands/ListServiceQuotasCommand.ts +++ b/clients/client-service-quotas/commands/ListServiceQuotasCommand.ts @@ -37,6 +37,7 @@ export class ListServiceQuotasCommand extends $Command< ListServiceQuotasCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListServiceQuotasCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/ListServicesCommand.ts b/clients/client-service-quotas/commands/ListServicesCommand.ts index e415cb5860523..f4a4d21d68cc4 100644 --- a/clients/client-service-quotas/commands/ListServicesCommand.ts +++ b/clients/client-service-quotas/commands/ListServicesCommand.ts @@ -30,6 +30,7 @@ export class ListServicesCommand extends $Command< ListServicesCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListServicesCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts b/clients/client-service-quotas/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts index 426f5525677c9..7a5b4c6e9b3de 100644 --- a/clients/client-service-quotas/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts +++ b/clients/client-service-quotas/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts @@ -35,6 +35,7 @@ export class PutServiceQuotaIncreaseRequestIntoTemplateCommand extends $Command< PutServiceQuotaIncreaseRequestIntoTemplateCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutServiceQuotaIncreaseRequestIntoTemplateCommand extends $Command< PutServiceQuotaIncreaseRequestIntoTemplateCommandInput, PutServiceQuotaIncreaseRequestIntoTemplateCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-service-quotas/commands/RequestServiceQuotaIncreaseCommand.ts b/clients/client-service-quotas/commands/RequestServiceQuotaIncreaseCommand.ts index a2096acc4f4cb..8f5d6c9b33c37 100644 --- a/clients/client-service-quotas/commands/RequestServiceQuotaIncreaseCommand.ts +++ b/clients/client-service-quotas/commands/RequestServiceQuotaIncreaseCommand.ts @@ -29,6 +29,7 @@ export class RequestServiceQuotaIncreaseCommand extends $Command< RequestServiceQuotaIncreaseCommandOutput, ServiceQuotasClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RequestServiceQuotaIncreaseCommand extends $Command< configuration: ServiceQuotasClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/CreateHttpNamespaceCommand.ts b/clients/client-servicediscovery/commands/CreateHttpNamespaceCommand.ts index c9e210427e5e7..49e9e43f895e1 100644 --- a/clients/client-servicediscovery/commands/CreateHttpNamespaceCommand.ts +++ b/clients/client-servicediscovery/commands/CreateHttpNamespaceCommand.ts @@ -31,6 +31,7 @@ export class CreateHttpNamespaceCommand extends $Command< CreateHttpNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateHttpNamespaceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/CreatePrivateDnsNamespaceCommand.ts b/clients/client-servicediscovery/commands/CreatePrivateDnsNamespaceCommand.ts index 7580a279e1484..356fd02171c16 100644 --- a/clients/client-servicediscovery/commands/CreatePrivateDnsNamespaceCommand.ts +++ b/clients/client-servicediscovery/commands/CreatePrivateDnsNamespaceCommand.ts @@ -33,6 +33,7 @@ export class CreatePrivateDnsNamespaceCommand extends $Command< CreatePrivateDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreatePrivateDnsNamespaceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/CreatePublicDnsNamespaceCommand.ts b/clients/client-servicediscovery/commands/CreatePublicDnsNamespaceCommand.ts index 3b40fab475dec..4f42e350cd6f8 100644 --- a/clients/client-servicediscovery/commands/CreatePublicDnsNamespaceCommand.ts +++ b/clients/client-servicediscovery/commands/CreatePublicDnsNamespaceCommand.ts @@ -32,6 +32,7 @@ export class CreatePublicDnsNamespaceCommand extends $Command< CreatePublicDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePublicDnsNamespaceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/CreateServiceCommand.ts b/clients/client-servicediscovery/commands/CreateServiceCommand.ts index 1418b8aa4f988..1b62c99d988a0 100644 --- a/clients/client-servicediscovery/commands/CreateServiceCommand.ts +++ b/clients/client-servicediscovery/commands/CreateServiceCommand.ts @@ -68,6 +68,7 @@ export class CreateServiceCommand extends $Command< CreateServiceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class CreateServiceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/DeleteNamespaceCommand.ts b/clients/client-servicediscovery/commands/DeleteNamespaceCommand.ts index f57a6102bae1c..4cf23d291e88c 100644 --- a/clients/client-servicediscovery/commands/DeleteNamespaceCommand.ts +++ b/clients/client-servicediscovery/commands/DeleteNamespaceCommand.ts @@ -29,6 +29,7 @@ export class DeleteNamespaceCommand extends $Command< DeleteNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteNamespaceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/DeleteServiceCommand.ts b/clients/client-servicediscovery/commands/DeleteServiceCommand.ts index 8aa92b49eda4d..593957efe7252 100644 --- a/clients/client-servicediscovery/commands/DeleteServiceCommand.ts +++ b/clients/client-servicediscovery/commands/DeleteServiceCommand.ts @@ -29,6 +29,7 @@ export class DeleteServiceCommand extends $Command< DeleteServiceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteServiceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/DeregisterInstanceCommand.ts b/clients/client-servicediscovery/commands/DeregisterInstanceCommand.ts index 7d051b320dc3e..2c7a92483147d 100644 --- a/clients/client-servicediscovery/commands/DeregisterInstanceCommand.ts +++ b/clients/client-servicediscovery/commands/DeregisterInstanceCommand.ts @@ -29,6 +29,7 @@ export class DeregisterInstanceCommand extends $Command< DeregisterInstanceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeregisterInstanceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/DiscoverInstancesCommand.ts b/clients/client-servicediscovery/commands/DiscoverInstancesCommand.ts index 2d5127a7e92b4..094dd62535c10 100644 --- a/clients/client-servicediscovery/commands/DiscoverInstancesCommand.ts +++ b/clients/client-servicediscovery/commands/DiscoverInstancesCommand.ts @@ -30,6 +30,7 @@ export class DiscoverInstancesCommand extends $Command< DiscoverInstancesCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DiscoverInstancesCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/GetInstanceCommand.ts b/clients/client-servicediscovery/commands/GetInstanceCommand.ts index d6b66fc376101..4377412659e85 100644 --- a/clients/client-servicediscovery/commands/GetInstanceCommand.ts +++ b/clients/client-servicediscovery/commands/GetInstanceCommand.ts @@ -28,6 +28,7 @@ export class GetInstanceCommand extends $Command< GetInstanceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInstanceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/GetInstancesHealthStatusCommand.ts b/clients/client-servicediscovery/commands/GetInstancesHealthStatusCommand.ts index cda3e4260a2a2..aed5362416652 100644 --- a/clients/client-servicediscovery/commands/GetInstancesHealthStatusCommand.ts +++ b/clients/client-servicediscovery/commands/GetInstancesHealthStatusCommand.ts @@ -33,6 +33,7 @@ export class GetInstancesHealthStatusCommand extends $Command< GetInstancesHealthStatusCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetInstancesHealthStatusCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/GetNamespaceCommand.ts b/clients/client-servicediscovery/commands/GetNamespaceCommand.ts index e351f00c620fc..007c04481171e 100644 --- a/clients/client-servicediscovery/commands/GetNamespaceCommand.ts +++ b/clients/client-servicediscovery/commands/GetNamespaceCommand.ts @@ -28,6 +28,7 @@ export class GetNamespaceCommand extends $Command< GetNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetNamespaceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/GetOperationCommand.ts b/clients/client-servicediscovery/commands/GetOperationCommand.ts index b6c3ea59435f7..bc7de93dd454e 100644 --- a/clients/client-servicediscovery/commands/GetOperationCommand.ts +++ b/clients/client-servicediscovery/commands/GetOperationCommand.ts @@ -32,6 +32,7 @@ export class GetOperationCommand extends $Command< GetOperationCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetOperationCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/GetServiceCommand.ts b/clients/client-servicediscovery/commands/GetServiceCommand.ts index 7c210cedf9360..1ae6749e201b8 100644 --- a/clients/client-servicediscovery/commands/GetServiceCommand.ts +++ b/clients/client-servicediscovery/commands/GetServiceCommand.ts @@ -28,6 +28,7 @@ export class GetServiceCommand extends $Command< GetServiceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetServiceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/ListInstancesCommand.ts b/clients/client-servicediscovery/commands/ListInstancesCommand.ts index c23830e713654..ee63c9154f11a 100644 --- a/clients/client-servicediscovery/commands/ListInstancesCommand.ts +++ b/clients/client-servicediscovery/commands/ListInstancesCommand.ts @@ -28,6 +28,7 @@ export class ListInstancesCommand extends $Command< ListInstancesCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInstancesCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/ListNamespacesCommand.ts b/clients/client-servicediscovery/commands/ListNamespacesCommand.ts index 750ca1cd2e37c..a58d75b6067e8 100644 --- a/clients/client-servicediscovery/commands/ListNamespacesCommand.ts +++ b/clients/client-servicediscovery/commands/ListNamespacesCommand.ts @@ -28,6 +28,7 @@ export class ListNamespacesCommand extends $Command< ListNamespacesCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListNamespacesCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/ListOperationsCommand.ts b/clients/client-servicediscovery/commands/ListOperationsCommand.ts index 181c2171ab084..8f36c5b6ef393 100644 --- a/clients/client-servicediscovery/commands/ListOperationsCommand.ts +++ b/clients/client-servicediscovery/commands/ListOperationsCommand.ts @@ -28,6 +28,7 @@ export class ListOperationsCommand extends $Command< ListOperationsCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOperationsCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/ListServicesCommand.ts b/clients/client-servicediscovery/commands/ListServicesCommand.ts index cd3bf62c0b397..29462be424499 100644 --- a/clients/client-servicediscovery/commands/ListServicesCommand.ts +++ b/clients/client-servicediscovery/commands/ListServicesCommand.ts @@ -28,6 +28,7 @@ export class ListServicesCommand extends $Command< ListServicesCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListServicesCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/ListTagsForResourceCommand.ts b/clients/client-servicediscovery/commands/ListTagsForResourceCommand.ts index 261afc1b77667..4abfd4a16ab8a 100644 --- a/clients/client-servicediscovery/commands/ListTagsForResourceCommand.ts +++ b/clients/client-servicediscovery/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/RegisterInstanceCommand.ts b/clients/client-servicediscovery/commands/RegisterInstanceCommand.ts index 123c6772cecda..2729f55473947 100644 --- a/clients/client-servicediscovery/commands/RegisterInstanceCommand.ts +++ b/clients/client-servicediscovery/commands/RegisterInstanceCommand.ts @@ -67,6 +67,7 @@ export class RegisterInstanceCommand extends $Command< RegisterInstanceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class RegisterInstanceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/TagResourceCommand.ts b/clients/client-servicediscovery/commands/TagResourceCommand.ts index 51a80f032e6fb..b93bd537da383 100644 --- a/clients/client-servicediscovery/commands/TagResourceCommand.ts +++ b/clients/client-servicediscovery/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/UntagResourceCommand.ts b/clients/client-servicediscovery/commands/UntagResourceCommand.ts index d982b1376e2dd..326dd8aa69a61 100644 --- a/clients/client-servicediscovery/commands/UntagResourceCommand.ts +++ b/clients/client-servicediscovery/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/UpdateInstanceCustomHealthStatusCommand.ts b/clients/client-servicediscovery/commands/UpdateInstanceCustomHealthStatusCommand.ts index a91c453409c7c..2dd71710466b0 100644 --- a/clients/client-servicediscovery/commands/UpdateInstanceCustomHealthStatusCommand.ts +++ b/clients/client-servicediscovery/commands/UpdateInstanceCustomHealthStatusCommand.ts @@ -32,6 +32,7 @@ export class UpdateInstanceCustomHealthStatusCommand extends $Command< UpdateInstanceCustomHealthStatusCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateInstanceCustomHealthStatusCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-servicediscovery/commands/UpdateServiceCommand.ts b/clients/client-servicediscovery/commands/UpdateServiceCommand.ts index 4d0506830b54a..92a6d77248e24 100644 --- a/clients/client-servicediscovery/commands/UpdateServiceCommand.ts +++ b/clients/client-servicediscovery/commands/UpdateServiceCommand.ts @@ -52,6 +52,7 @@ export class UpdateServiceCommand extends $Command< UpdateServiceCommandOutput, ServiceDiscoveryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class UpdateServiceCommand extends $Command< configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CloneReceiptRuleSetCommand.ts b/clients/client-ses/commands/CloneReceiptRuleSetCommand.ts index f2a03af13e12d..d5ad4d2e79828 100644 --- a/clients/client-ses/commands/CloneReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/CloneReceiptRuleSetCommand.ts @@ -33,6 +33,7 @@ export class CloneReceiptRuleSetCommand extends $Command< CloneReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CloneReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateConfigurationSetCommand.ts b/clients/client-ses/commands/CreateConfigurationSetCommand.ts index 7d067793b98f8..83e3f1db259e9 100644 --- a/clients/client-ses/commands/CreateConfigurationSetCommand.ts +++ b/clients/client-ses/commands/CreateConfigurationSetCommand.ts @@ -32,6 +32,7 @@ export class CreateConfigurationSetCommand extends $Command< CreateConfigurationSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateConfigurationSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateConfigurationSetEventDestinationCommand.ts b/clients/client-ses/commands/CreateConfigurationSetEventDestinationCommand.ts index 419e6ac2d6837..68a6c69a00e10 100644 --- a/clients/client-ses/commands/CreateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-ses/commands/CreateConfigurationSetEventDestinationCommand.ts @@ -41,6 +41,7 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< CreateConfigurationSetEventDestinationCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateConfigurationSetTrackingOptionsCommand.ts b/clients/client-ses/commands/CreateConfigurationSetTrackingOptionsCommand.ts index d95d8cda5553e..d7f9f225578b6 100644 --- a/clients/client-ses/commands/CreateConfigurationSetTrackingOptionsCommand.ts +++ b/clients/client-ses/commands/CreateConfigurationSetTrackingOptionsCommand.ts @@ -36,6 +36,7 @@ export class CreateConfigurationSetTrackingOptionsCommand extends $Command< CreateConfigurationSetTrackingOptionsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateConfigurationSetTrackingOptionsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateCustomVerificationEmailTemplateCommand.ts b/clients/client-ses/commands/CreateCustomVerificationEmailTemplateCommand.ts index b07836d20a8bf..21ba4ff34f1ee 100644 --- a/clients/client-ses/commands/CreateCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-ses/commands/CreateCustomVerificationEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class CreateCustomVerificationEmailTemplateCommand extends $Command< CreateCustomVerificationEmailTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateCustomVerificationEmailTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateReceiptFilterCommand.ts b/clients/client-ses/commands/CreateReceiptFilterCommand.ts index 37ae9ed03bfdf..bf2ada17a5680 100644 --- a/clients/client-ses/commands/CreateReceiptFilterCommand.ts +++ b/clients/client-ses/commands/CreateReceiptFilterCommand.ts @@ -30,6 +30,7 @@ export class CreateReceiptFilterCommand extends $Command< CreateReceiptFilterCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateReceiptFilterCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateReceiptRuleCommand.ts b/clients/client-ses/commands/CreateReceiptRuleCommand.ts index 9fa690ea07a60..1b312cb365406 100644 --- a/clients/client-ses/commands/CreateReceiptRuleCommand.ts +++ b/clients/client-ses/commands/CreateReceiptRuleCommand.ts @@ -31,6 +31,7 @@ export class CreateReceiptRuleCommand extends $Command< CreateReceiptRuleCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateReceiptRuleCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateReceiptRuleSetCommand.ts b/clients/client-ses/commands/CreateReceiptRuleSetCommand.ts index 0db836b9c75fa..c4398a5f350c9 100644 --- a/clients/client-ses/commands/CreateReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/CreateReceiptRuleSetCommand.ts @@ -31,6 +31,7 @@ export class CreateReceiptRuleSetCommand extends $Command< CreateReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/CreateTemplateCommand.ts b/clients/client-ses/commands/CreateTemplateCommand.ts index 4e61f154716a7..8f4f38ede3a2e 100644 --- a/clients/client-ses/commands/CreateTemplateCommand.ts +++ b/clients/client-ses/commands/CreateTemplateCommand.ts @@ -31,6 +31,7 @@ export class CreateTemplateCommand extends $Command< CreateTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteConfigurationSetCommand.ts b/clients/client-ses/commands/DeleteConfigurationSetCommand.ts index b9d3606cb082a..53aadd5f680b1 100644 --- a/clients/client-ses/commands/DeleteConfigurationSetCommand.ts +++ b/clients/client-ses/commands/DeleteConfigurationSetCommand.ts @@ -30,6 +30,7 @@ export class DeleteConfigurationSetCommand extends $Command< DeleteConfigurationSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteConfigurationSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteConfigurationSetEventDestinationCommand.ts b/clients/client-ses/commands/DeleteConfigurationSetEventDestinationCommand.ts index 174f287b40d70..1e661062e0c42 100644 --- a/clients/client-ses/commands/DeleteConfigurationSetEventDestinationCommand.ts +++ b/clients/client-ses/commands/DeleteConfigurationSetEventDestinationCommand.ts @@ -35,6 +35,7 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< DeleteConfigurationSetEventDestinationCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteConfigurationSetTrackingOptionsCommand.ts b/clients/client-ses/commands/DeleteConfigurationSetTrackingOptionsCommand.ts index e281c87773d31..e195ad0e2f109 100644 --- a/clients/client-ses/commands/DeleteConfigurationSetTrackingOptionsCommand.ts +++ b/clients/client-ses/commands/DeleteConfigurationSetTrackingOptionsCommand.ts @@ -41,6 +41,7 @@ export class DeleteConfigurationSetTrackingOptionsCommand extends $Command< DeleteConfigurationSetTrackingOptionsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DeleteConfigurationSetTrackingOptionsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteCustomVerificationEmailTemplateCommand.ts b/clients/client-ses/commands/DeleteCustomVerificationEmailTemplateCommand.ts index b5d6a977837f5..6d01ce7b9d0db 100644 --- a/clients/client-ses/commands/DeleteCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-ses/commands/DeleteCustomVerificationEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class DeleteCustomVerificationEmailTemplateCommand extends $Command< DeleteCustomVerificationEmailTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteCustomVerificationEmailTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteIdentityCommand.ts b/clients/client-ses/commands/DeleteIdentityCommand.ts index dd1b50de0a629..5453255ee4b3c 100644 --- a/clients/client-ses/commands/DeleteIdentityCommand.ts +++ b/clients/client-ses/commands/DeleteIdentityCommand.ts @@ -30,6 +30,7 @@ export class DeleteIdentityCommand extends $Command< DeleteIdentityCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteIdentityCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteIdentityPolicyCommand.ts b/clients/client-ses/commands/DeleteIdentityPolicyCommand.ts index 193d7915570da..c1f522af4b2d2 100644 --- a/clients/client-ses/commands/DeleteIdentityPolicyCommand.ts +++ b/clients/client-ses/commands/DeleteIdentityPolicyCommand.ts @@ -39,6 +39,7 @@ export class DeleteIdentityPolicyCommand extends $Command< DeleteIdentityPolicyCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteIdentityPolicyCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteReceiptFilterCommand.ts b/clients/client-ses/commands/DeleteReceiptFilterCommand.ts index 475d13bca262f..c463bc44ef326 100644 --- a/clients/client-ses/commands/DeleteReceiptFilterCommand.ts +++ b/clients/client-ses/commands/DeleteReceiptFilterCommand.ts @@ -31,6 +31,7 @@ export class DeleteReceiptFilterCommand extends $Command< DeleteReceiptFilterCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteReceiptFilterCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteReceiptRuleCommand.ts b/clients/client-ses/commands/DeleteReceiptRuleCommand.ts index 34ae75d35c4d5..b4057e58fba88 100644 --- a/clients/client-ses/commands/DeleteReceiptRuleCommand.ts +++ b/clients/client-ses/commands/DeleteReceiptRuleCommand.ts @@ -31,6 +31,7 @@ export class DeleteReceiptRuleCommand extends $Command< DeleteReceiptRuleCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteReceiptRuleCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteReceiptRuleSetCommand.ts b/clients/client-ses/commands/DeleteReceiptRuleSetCommand.ts index 30b2cbfdc2193..03542293316d7 100644 --- a/clients/client-ses/commands/DeleteReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/DeleteReceiptRuleSetCommand.ts @@ -34,6 +34,7 @@ export class DeleteReceiptRuleSetCommand extends $Command< DeleteReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteTemplateCommand.ts b/clients/client-ses/commands/DeleteTemplateCommand.ts index 1faf56521d57c..57bc75e435cab 100644 --- a/clients/client-ses/commands/DeleteTemplateCommand.ts +++ b/clients/client-ses/commands/DeleteTemplateCommand.ts @@ -29,6 +29,7 @@ export class DeleteTemplateCommand extends $Command< DeleteTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DeleteVerifiedEmailAddressCommand.ts b/clients/client-ses/commands/DeleteVerifiedEmailAddressCommand.ts index 51c6e3f75be4e..298587f6b1a0d 100644 --- a/clients/client-ses/commands/DeleteVerifiedEmailAddressCommand.ts +++ b/clients/client-ses/commands/DeleteVerifiedEmailAddressCommand.ts @@ -29,6 +29,7 @@ export class DeleteVerifiedEmailAddressCommand extends $Command< DeleteVerifiedEmailAddressCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteVerifiedEmailAddressCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DescribeActiveReceiptRuleSetCommand.ts b/clients/client-ses/commands/DescribeActiveReceiptRuleSetCommand.ts index f0ad60848b645..857f4f6278bd8 100644 --- a/clients/client-ses/commands/DescribeActiveReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/DescribeActiveReceiptRuleSetCommand.ts @@ -32,6 +32,7 @@ export class DescribeActiveReceiptRuleSetCommand extends $Command< DescribeActiveReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeActiveReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DescribeConfigurationSetCommand.ts b/clients/client-ses/commands/DescribeConfigurationSetCommand.ts index 276efe0c9ac56..d2f876b576614 100644 --- a/clients/client-ses/commands/DescribeConfigurationSetCommand.ts +++ b/clients/client-ses/commands/DescribeConfigurationSetCommand.ts @@ -31,6 +31,7 @@ export class DescribeConfigurationSetCommand extends $Command< DescribeConfigurationSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeConfigurationSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DescribeReceiptRuleCommand.ts b/clients/client-ses/commands/DescribeReceiptRuleCommand.ts index f94f101f82d81..6a13730ac26a0 100644 --- a/clients/client-ses/commands/DescribeReceiptRuleCommand.ts +++ b/clients/client-ses/commands/DescribeReceiptRuleCommand.ts @@ -31,6 +31,7 @@ export class DescribeReceiptRuleCommand extends $Command< DescribeReceiptRuleCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeReceiptRuleCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/DescribeReceiptRuleSetCommand.ts b/clients/client-ses/commands/DescribeReceiptRuleSetCommand.ts index 8efa1e8f192b2..3fbc88bec6879 100644 --- a/clients/client-ses/commands/DescribeReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/DescribeReceiptRuleSetCommand.ts @@ -30,6 +30,7 @@ export class DescribeReceiptRuleSetCommand extends $Command< DescribeReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetAccountSendingEnabledCommand.ts b/clients/client-ses/commands/GetAccountSendingEnabledCommand.ts index dcdd554b0cd66..83812e64649b5 100644 --- a/clients/client-ses/commands/GetAccountSendingEnabledCommand.ts +++ b/clients/client-ses/commands/GetAccountSendingEnabledCommand.ts @@ -29,6 +29,7 @@ export class GetAccountSendingEnabledCommand extends $Command< GetAccountSendingEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccountSendingEnabledCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetCustomVerificationEmailTemplateCommand.ts b/clients/client-ses/commands/GetCustomVerificationEmailTemplateCommand.ts index 000b1f1c917bd..79ceec5eae6a8 100644 --- a/clients/client-ses/commands/GetCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-ses/commands/GetCustomVerificationEmailTemplateCommand.ts @@ -36,6 +36,7 @@ export class GetCustomVerificationEmailTemplateCommand extends $Command< GetCustomVerificationEmailTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetCustomVerificationEmailTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetIdentityDkimAttributesCommand.ts b/clients/client-ses/commands/GetIdentityDkimAttributesCommand.ts index 1d4647764c7ce..00f940b258ecc 100644 --- a/clients/client-ses/commands/GetIdentityDkimAttributesCommand.ts +++ b/clients/client-ses/commands/GetIdentityDkimAttributesCommand.ts @@ -50,6 +50,7 @@ export class GetIdentityDkimAttributesCommand extends $Command< GetIdentityDkimAttributesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class GetIdentityDkimAttributesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetIdentityMailFromDomainAttributesCommand.ts b/clients/client-ses/commands/GetIdentityMailFromDomainAttributesCommand.ts index ff47cf853f82f..5f5ca962f3c9c 100644 --- a/clients/client-ses/commands/GetIdentityMailFromDomainAttributesCommand.ts +++ b/clients/client-ses/commands/GetIdentityMailFromDomainAttributesCommand.ts @@ -35,6 +35,7 @@ export class GetIdentityMailFromDomainAttributesCommand extends $Command< GetIdentityMailFromDomainAttributesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetIdentityMailFromDomainAttributesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetIdentityNotificationAttributesCommand.ts b/clients/client-ses/commands/GetIdentityNotificationAttributesCommand.ts index 24471bbfd03ad..8a0901ba8e8a9 100644 --- a/clients/client-ses/commands/GetIdentityNotificationAttributesCommand.ts +++ b/clients/client-ses/commands/GetIdentityNotificationAttributesCommand.ts @@ -37,6 +37,7 @@ export class GetIdentityNotificationAttributesCommand extends $Command< GetIdentityNotificationAttributesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetIdentityNotificationAttributesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetIdentityPoliciesCommand.ts b/clients/client-ses/commands/GetIdentityPoliciesCommand.ts index e5029dbacf9b8..08e4ed39e9952 100644 --- a/clients/client-ses/commands/GetIdentityPoliciesCommand.ts +++ b/clients/client-ses/commands/GetIdentityPoliciesCommand.ts @@ -39,6 +39,7 @@ export class GetIdentityPoliciesCommand extends $Command< GetIdentityPoliciesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetIdentityPoliciesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetIdentityVerificationAttributesCommand.ts b/clients/client-ses/commands/GetIdentityVerificationAttributesCommand.ts index bba2584cbed40..56f2d151eea9b 100644 --- a/clients/client-ses/commands/GetIdentityVerificationAttributesCommand.ts +++ b/clients/client-ses/commands/GetIdentityVerificationAttributesCommand.ts @@ -47,6 +47,7 @@ export class GetIdentityVerificationAttributesCommand extends $Command< GetIdentityVerificationAttributesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class GetIdentityVerificationAttributesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetSendQuotaCommand.ts b/clients/client-ses/commands/GetSendQuotaCommand.ts index 73359f606e51d..5b7839dd8ebcb 100644 --- a/clients/client-ses/commands/GetSendQuotaCommand.ts +++ b/clients/client-ses/commands/GetSendQuotaCommand.ts @@ -26,6 +26,7 @@ export class GetSendQuotaCommand extends $Command< GetSendQuotaCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class GetSendQuotaCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetSendStatisticsCommand.ts b/clients/client-ses/commands/GetSendStatisticsCommand.ts index 1810ef98a8d55..bd4fb0f1f816e 100644 --- a/clients/client-ses/commands/GetSendStatisticsCommand.ts +++ b/clients/client-ses/commands/GetSendStatisticsCommand.ts @@ -31,6 +31,7 @@ export class GetSendStatisticsCommand extends $Command< GetSendStatisticsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetSendStatisticsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/GetTemplateCommand.ts b/clients/client-ses/commands/GetTemplateCommand.ts index 06d8860d573ad..7a161a9847c08 100644 --- a/clients/client-ses/commands/GetTemplateCommand.ts +++ b/clients/client-ses/commands/GetTemplateCommand.ts @@ -27,6 +27,7 @@ export class GetTemplateCommand extends $Command< GetTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class GetTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListConfigurationSetsCommand.ts b/clients/client-ses/commands/ListConfigurationSetsCommand.ts index e31f38b728f99..a49779f21b7a9 100644 --- a/clients/client-ses/commands/ListConfigurationSetsCommand.ts +++ b/clients/client-ses/commands/ListConfigurationSetsCommand.ts @@ -37,6 +37,7 @@ export class ListConfigurationSetsCommand extends $Command< ListConfigurationSetsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListConfigurationSetsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListCustomVerificationEmailTemplatesCommand.ts b/clients/client-ses/commands/ListCustomVerificationEmailTemplatesCommand.ts index 1c70d2aaaa128..bbaed92457854 100644 --- a/clients/client-ses/commands/ListCustomVerificationEmailTemplatesCommand.ts +++ b/clients/client-ses/commands/ListCustomVerificationEmailTemplatesCommand.ts @@ -36,6 +36,7 @@ export class ListCustomVerificationEmailTemplatesCommand extends $Command< ListCustomVerificationEmailTemplatesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListCustomVerificationEmailTemplatesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListIdentitiesCommand.ts b/clients/client-ses/commands/ListIdentitiesCommand.ts index 4d16692bf5d2c..606a5933aeb5e 100644 --- a/clients/client-ses/commands/ListIdentitiesCommand.ts +++ b/clients/client-ses/commands/ListIdentitiesCommand.ts @@ -30,6 +30,7 @@ export class ListIdentitiesCommand extends $Command< ListIdentitiesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListIdentitiesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListIdentityPoliciesCommand.ts b/clients/client-ses/commands/ListIdentityPoliciesCommand.ts index f279b3d57d751..d0cd3b9febd44 100644 --- a/clients/client-ses/commands/ListIdentityPoliciesCommand.ts +++ b/clients/client-ses/commands/ListIdentityPoliciesCommand.ts @@ -39,6 +39,7 @@ export class ListIdentityPoliciesCommand extends $Command< ListIdentityPoliciesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class ListIdentityPoliciesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListReceiptFiltersCommand.ts b/clients/client-ses/commands/ListReceiptFiltersCommand.ts index 745cad8c7f3bf..d0815284d7220 100644 --- a/clients/client-ses/commands/ListReceiptFiltersCommand.ts +++ b/clients/client-ses/commands/ListReceiptFiltersCommand.ts @@ -32,6 +32,7 @@ export class ListReceiptFiltersCommand extends $Command< ListReceiptFiltersCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListReceiptFiltersCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListReceiptRuleSetsCommand.ts b/clients/client-ses/commands/ListReceiptRuleSetsCommand.ts index 69054be51d891..f550709b68c2e 100644 --- a/clients/client-ses/commands/ListReceiptRuleSetsCommand.ts +++ b/clients/client-ses/commands/ListReceiptRuleSetsCommand.ts @@ -33,6 +33,7 @@ export class ListReceiptRuleSetsCommand extends $Command< ListReceiptRuleSetsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListReceiptRuleSetsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListTemplatesCommand.ts b/clients/client-ses/commands/ListTemplatesCommand.ts index 2d5283fcb6178..4da1649c2d3c5 100644 --- a/clients/client-ses/commands/ListTemplatesCommand.ts +++ b/clients/client-ses/commands/ListTemplatesCommand.ts @@ -30,6 +30,7 @@ export class ListTemplatesCommand extends $Command< ListTemplatesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTemplatesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ListVerifiedEmailAddressesCommand.ts b/clients/client-ses/commands/ListVerifiedEmailAddressesCommand.ts index 4aebbe57d6a33..f23c42d5224f5 100644 --- a/clients/client-ses/commands/ListVerifiedEmailAddressesCommand.ts +++ b/clients/client-ses/commands/ListVerifiedEmailAddressesCommand.ts @@ -29,6 +29,7 @@ export class ListVerifiedEmailAddressesCommand extends $Command< ListVerifiedEmailAddressesCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListVerifiedEmailAddressesCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/PutConfigurationSetDeliveryOptionsCommand.ts b/clients/client-ses/commands/PutConfigurationSetDeliveryOptionsCommand.ts index b47d5ef02fe2b..9cb8ff0a9c3ca 100644 --- a/clients/client-ses/commands/PutConfigurationSetDeliveryOptionsCommand.ts +++ b/clients/client-ses/commands/PutConfigurationSetDeliveryOptionsCommand.ts @@ -32,6 +32,7 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< PutConfigurationSetDeliveryOptionsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/PutIdentityPolicyCommand.ts b/clients/client-ses/commands/PutIdentityPolicyCommand.ts index 37a6f503ccdd0..824a203d3f680 100644 --- a/clients/client-ses/commands/PutIdentityPolicyCommand.ts +++ b/clients/client-ses/commands/PutIdentityPolicyCommand.ts @@ -38,6 +38,7 @@ export class PutIdentityPolicyCommand extends $Command< PutIdentityPolicyCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PutIdentityPolicyCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/ReorderReceiptRuleSetCommand.ts b/clients/client-ses/commands/ReorderReceiptRuleSetCommand.ts index 89c4a3564f6e5..6976fd3efdbff 100644 --- a/clients/client-ses/commands/ReorderReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/ReorderReceiptRuleSetCommand.ts @@ -35,6 +35,7 @@ export class ReorderReceiptRuleSetCommand extends $Command< ReorderReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ReorderReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SendBounceCommand.ts b/clients/client-ses/commands/SendBounceCommand.ts index 57319753e3cbc..dc633475ebecb 100644 --- a/clients/client-ses/commands/SendBounceCommand.ts +++ b/clients/client-ses/commands/SendBounceCommand.ts @@ -33,6 +33,7 @@ export class SendBounceCommand extends $Command< SendBounceCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SendBounceCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SendBulkTemplatedEmailCommand.ts b/clients/client-ses/commands/SendBulkTemplatedEmailCommand.ts index 96a9540a5abc8..12b12002cf683 100644 --- a/clients/client-ses/commands/SendBulkTemplatedEmailCommand.ts +++ b/clients/client-ses/commands/SendBulkTemplatedEmailCommand.ts @@ -70,6 +70,7 @@ export class SendBulkTemplatedEmailCommand extends $Command< SendBulkTemplatedEmailCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class SendBulkTemplatedEmailCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SendCustomVerificationEmailCommand.ts b/clients/client-ses/commands/SendCustomVerificationEmailCommand.ts index a7126d5421bb0..ff0171de13dd8 100644 --- a/clients/client-ses/commands/SendCustomVerificationEmailCommand.ts +++ b/clients/client-ses/commands/SendCustomVerificationEmailCommand.ts @@ -36,6 +36,7 @@ export class SendCustomVerificationEmailCommand extends $Command< SendCustomVerificationEmailCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class SendCustomVerificationEmailCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SendEmailCommand.ts b/clients/client-ses/commands/SendEmailCommand.ts index 904b467b97f2e..03cf09b9925ce 100644 --- a/clients/client-ses/commands/SendEmailCommand.ts +++ b/clients/client-ses/commands/SendEmailCommand.ts @@ -65,6 +65,7 @@ export type SendEmailCommandOutput = SendEmailResponse & __MetadataBearer; * */ export class SendEmailCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class SendEmailCommand 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-ses/commands/SendRawEmailCommand.ts b/clients/client-ses/commands/SendRawEmailCommand.ts index b5fb0b6417bd2..25188df75b2f6 100644 --- a/clients/client-ses/commands/SendRawEmailCommand.ts +++ b/clients/client-ses/commands/SendRawEmailCommand.ts @@ -133,6 +133,7 @@ export class SendRawEmailCommand extends $Command< SendRawEmailCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -150,7 +151,10 @@ export class SendRawEmailCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SendTemplatedEmailCommand.ts b/clients/client-ses/commands/SendTemplatedEmailCommand.ts index 415eb3283ebdf..79e60bf957b3b 100644 --- a/clients/client-ses/commands/SendTemplatedEmailCommand.ts +++ b/clients/client-ses/commands/SendTemplatedEmailCommand.ts @@ -77,6 +77,7 @@ export class SendTemplatedEmailCommand extends $Command< SendTemplatedEmailCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class SendTemplatedEmailCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetActiveReceiptRuleSetCommand.ts b/clients/client-ses/commands/SetActiveReceiptRuleSetCommand.ts index c965c8ef02ab9..4f01dedda2a41 100644 --- a/clients/client-ses/commands/SetActiveReceiptRuleSetCommand.ts +++ b/clients/client-ses/commands/SetActiveReceiptRuleSetCommand.ts @@ -34,6 +34,7 @@ export class SetActiveReceiptRuleSetCommand extends $Command< SetActiveReceiptRuleSetCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class SetActiveReceiptRuleSetCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetIdentityDkimEnabledCommand.ts b/clients/client-ses/commands/SetIdentityDkimEnabledCommand.ts index 78e7c063f2cf0..3f0952305076f 100644 --- a/clients/client-ses/commands/SetIdentityDkimEnabledCommand.ts +++ b/clients/client-ses/commands/SetIdentityDkimEnabledCommand.ts @@ -40,6 +40,7 @@ export class SetIdentityDkimEnabledCommand extends $Command< SetIdentityDkimEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class SetIdentityDkimEnabledCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetIdentityFeedbackForwardingEnabledCommand.ts b/clients/client-ses/commands/SetIdentityFeedbackForwardingEnabledCommand.ts index 104b824653145..aa5e5934a1c83 100644 --- a/clients/client-ses/commands/SetIdentityFeedbackForwardingEnabledCommand.ts +++ b/clients/client-ses/commands/SetIdentityFeedbackForwardingEnabledCommand.ts @@ -42,6 +42,7 @@ export class SetIdentityFeedbackForwardingEnabledCommand extends $Command< SetIdentityFeedbackForwardingEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class SetIdentityFeedbackForwardingEnabledCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetIdentityHeadersInNotificationsEnabledCommand.ts b/clients/client-ses/commands/SetIdentityHeadersInNotificationsEnabledCommand.ts index ea6ebc1f0d895..1f7c21f28db68 100644 --- a/clients/client-ses/commands/SetIdentityHeadersInNotificationsEnabledCommand.ts +++ b/clients/client-ses/commands/SetIdentityHeadersInNotificationsEnabledCommand.ts @@ -37,6 +37,7 @@ export class SetIdentityHeadersInNotificationsEnabledCommand extends $Command< SetIdentityHeadersInNotificationsEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class SetIdentityHeadersInNotificationsEnabledCommand extends $Command< SetIdentityHeadersInNotificationsEnabledCommandInput, SetIdentityHeadersInNotificationsEnabledCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetIdentityMailFromDomainCommand.ts b/clients/client-ses/commands/SetIdentityMailFromDomainCommand.ts index 63842f1e35942..fa7c8fa5a049e 100644 --- a/clients/client-ses/commands/SetIdentityMailFromDomainCommand.ts +++ b/clients/client-ses/commands/SetIdentityMailFromDomainCommand.ts @@ -37,6 +37,7 @@ export class SetIdentityMailFromDomainCommand extends $Command< SetIdentityMailFromDomainCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class SetIdentityMailFromDomainCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetIdentityNotificationTopicCommand.ts b/clients/client-ses/commands/SetIdentityNotificationTopicCommand.ts index 9ac52c01294d4..51cef0424bc5e 100644 --- a/clients/client-ses/commands/SetIdentityNotificationTopicCommand.ts +++ b/clients/client-ses/commands/SetIdentityNotificationTopicCommand.ts @@ -36,6 +36,7 @@ export class SetIdentityNotificationTopicCommand extends $Command< SetIdentityNotificationTopicCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class SetIdentityNotificationTopicCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/SetReceiptRulePositionCommand.ts b/clients/client-ses/commands/SetReceiptRulePositionCommand.ts index bbda4fdf3b787..03d0a2e7b52b9 100644 --- a/clients/client-ses/commands/SetReceiptRulePositionCommand.ts +++ b/clients/client-ses/commands/SetReceiptRulePositionCommand.ts @@ -31,6 +31,7 @@ export class SetReceiptRulePositionCommand extends $Command< SetReceiptRulePositionCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class SetReceiptRulePositionCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/TestRenderTemplateCommand.ts b/clients/client-ses/commands/TestRenderTemplateCommand.ts index 74df48614ba88..287ccf5fa04fb 100644 --- a/clients/client-ses/commands/TestRenderTemplateCommand.ts +++ b/clients/client-ses/commands/TestRenderTemplateCommand.ts @@ -30,6 +30,7 @@ export class TestRenderTemplateCommand extends $Command< TestRenderTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class TestRenderTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateAccountSendingEnabledCommand.ts b/clients/client-ses/commands/UpdateAccountSendingEnabledCommand.ts index 3bd1ae67db7bd..a66ab27f01365 100644 --- a/clients/client-ses/commands/UpdateAccountSendingEnabledCommand.ts +++ b/clients/client-ses/commands/UpdateAccountSendingEnabledCommand.ts @@ -33,6 +33,7 @@ export class UpdateAccountSendingEnabledCommand extends $Command< UpdateAccountSendingEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateAccountSendingEnabledCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateConfigurationSetEventDestinationCommand.ts b/clients/client-ses/commands/UpdateConfigurationSetEventDestinationCommand.ts index 10cfa238145c2..f2481056f46f7 100644 --- a/clients/client-ses/commands/UpdateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-ses/commands/UpdateConfigurationSetEventDestinationCommand.ts @@ -43,6 +43,7 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< UpdateConfigurationSetEventDestinationCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.ts b/clients/client-ses/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.ts index d9e7d395ff971..f03fecbf35e8f 100644 --- a/clients/client-ses/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.ts +++ b/clients/client-ses/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.ts @@ -32,6 +32,7 @@ export class UpdateConfigurationSetReputationMetricsEnabledCommand extends $Comm UpdateConfigurationSetReputationMetricsEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateConfigurationSetReputationMetricsEnabledCommand extends $Comm UpdateConfigurationSetReputationMetricsEnabledCommandInput, UpdateConfigurationSetReputationMetricsEnabledCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateConfigurationSetSendingEnabledCommand.ts b/clients/client-ses/commands/UpdateConfigurationSetSendingEnabledCommand.ts index 3b3b8ab8d8579..cf254c1dde101 100644 --- a/clients/client-ses/commands/UpdateConfigurationSetSendingEnabledCommand.ts +++ b/clients/client-ses/commands/UpdateConfigurationSetSendingEnabledCommand.ts @@ -33,6 +33,7 @@ export class UpdateConfigurationSetSendingEnabledCommand extends $Command< UpdateConfigurationSetSendingEnabledCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateConfigurationSetSendingEnabledCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateConfigurationSetTrackingOptionsCommand.ts b/clients/client-ses/commands/UpdateConfigurationSetTrackingOptionsCommand.ts index b5f4c43ac603a..9f65232e41686 100644 --- a/clients/client-ses/commands/UpdateConfigurationSetTrackingOptionsCommand.ts +++ b/clients/client-ses/commands/UpdateConfigurationSetTrackingOptionsCommand.ts @@ -36,6 +36,7 @@ export class UpdateConfigurationSetTrackingOptionsCommand extends $Command< UpdateConfigurationSetTrackingOptionsCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateConfigurationSetTrackingOptionsCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateCustomVerificationEmailTemplateCommand.ts b/clients/client-ses/commands/UpdateCustomVerificationEmailTemplateCommand.ts index e65a5467823bf..baf363df673e3 100644 --- a/clients/client-ses/commands/UpdateCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-ses/commands/UpdateCustomVerificationEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class UpdateCustomVerificationEmailTemplateCommand extends $Command< UpdateCustomVerificationEmailTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateCustomVerificationEmailTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateReceiptRuleCommand.ts b/clients/client-ses/commands/UpdateReceiptRuleCommand.ts index 3ef0cc8ac266b..fd9c707274073 100644 --- a/clients/client-ses/commands/UpdateReceiptRuleCommand.ts +++ b/clients/client-ses/commands/UpdateReceiptRuleCommand.ts @@ -31,6 +31,7 @@ export class UpdateReceiptRuleCommand extends $Command< UpdateReceiptRuleCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateReceiptRuleCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/UpdateTemplateCommand.ts b/clients/client-ses/commands/UpdateTemplateCommand.ts index 75be010a50eb7..9b3ca03bea9f3 100644 --- a/clients/client-ses/commands/UpdateTemplateCommand.ts +++ b/clients/client-ses/commands/UpdateTemplateCommand.ts @@ -31,6 +31,7 @@ export class UpdateTemplateCommand extends $Command< UpdateTemplateCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateTemplateCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/VerifyDomainDkimCommand.ts b/clients/client-ses/commands/VerifyDomainDkimCommand.ts index 983c1216af477..37f959e1e3ce2 100644 --- a/clients/client-ses/commands/VerifyDomainDkimCommand.ts +++ b/clients/client-ses/commands/VerifyDomainDkimCommand.ts @@ -66,6 +66,7 @@ export class VerifyDomainDkimCommand extends $Command< VerifyDomainDkimCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class VerifyDomainDkimCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/VerifyDomainIdentityCommand.ts b/clients/client-ses/commands/VerifyDomainIdentityCommand.ts index fc13f2de44a86..fa6c8cc65a35b 100644 --- a/clients/client-ses/commands/VerifyDomainIdentityCommand.ts +++ b/clients/client-ses/commands/VerifyDomainIdentityCommand.ts @@ -34,6 +34,7 @@ export class VerifyDomainIdentityCommand extends $Command< VerifyDomainIdentityCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class VerifyDomainIdentityCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/VerifyEmailAddressCommand.ts b/clients/client-ses/commands/VerifyEmailAddressCommand.ts index 9ad3785fedd82..2a79eb0c84ecf 100644 --- a/clients/client-ses/commands/VerifyEmailAddressCommand.ts +++ b/clients/client-ses/commands/VerifyEmailAddressCommand.ts @@ -29,6 +29,7 @@ export class VerifyEmailAddressCommand extends $Command< VerifyEmailAddressCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class VerifyEmailAddressCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ses/commands/VerifyEmailIdentityCommand.ts b/clients/client-ses/commands/VerifyEmailIdentityCommand.ts index a7ed04ae8c7ee..b4aa4c5268acb 100644 --- a/clients/client-ses/commands/VerifyEmailIdentityCommand.ts +++ b/clients/client-ses/commands/VerifyEmailIdentityCommand.ts @@ -31,6 +31,7 @@ export class VerifyEmailIdentityCommand extends $Command< VerifyEmailIdentityCommandOutput, SESClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class VerifyEmailIdentityCommand extends $Command< configuration: SESClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateConfigurationSetCommand.ts b/clients/client-sesv2/commands/CreateConfigurationSetCommand.ts index c61f3b3eb8521..5d434c2488b4a 100644 --- a/clients/client-sesv2/commands/CreateConfigurationSetCommand.ts +++ b/clients/client-sesv2/commands/CreateConfigurationSetCommand.ts @@ -32,6 +32,7 @@ export class CreateConfigurationSetCommand extends $Command< CreateConfigurationSetCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateConfigurationSetCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateConfigurationSetEventDestinationCommand.ts b/clients/client-sesv2/commands/CreateConfigurationSetEventDestinationCommand.ts index b19b32d8819a2..d52845b154159 100644 --- a/clients/client-sesv2/commands/CreateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-sesv2/commands/CreateConfigurationSetEventDestinationCommand.ts @@ -38,6 +38,7 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< CreateConfigurationSetEventDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class CreateConfigurationSetEventDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateContactCommand.ts b/clients/client-sesv2/commands/CreateContactCommand.ts index 2a714dff345fd..da530367b8951 100644 --- a/clients/client-sesv2/commands/CreateContactCommand.ts +++ b/clients/client-sesv2/commands/CreateContactCommand.ts @@ -29,6 +29,7 @@ export class CreateContactCommand extends $Command< CreateContactCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateContactCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateContactListCommand.ts b/clients/client-sesv2/commands/CreateContactListCommand.ts index a2969ac58b26d..9c3147b12629f 100644 --- a/clients/client-sesv2/commands/CreateContactListCommand.ts +++ b/clients/client-sesv2/commands/CreateContactListCommand.ts @@ -28,6 +28,7 @@ export class CreateContactListCommand extends $Command< CreateContactListCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateContactListCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateCustomVerificationEmailTemplateCommand.ts b/clients/client-sesv2/commands/CreateCustomVerificationEmailTemplateCommand.ts index 19793343754ed..7aabdce7b0492 100644 --- a/clients/client-sesv2/commands/CreateCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/CreateCustomVerificationEmailTemplateCommand.ts @@ -35,6 +35,7 @@ export class CreateCustomVerificationEmailTemplateCommand extends $Command< CreateCustomVerificationEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateCustomVerificationEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateDedicatedIpPoolCommand.ts b/clients/client-sesv2/commands/CreateDedicatedIpPoolCommand.ts index 0d46f389a3194..6bb9a656dda33 100644 --- a/clients/client-sesv2/commands/CreateDedicatedIpPoolCommand.ts +++ b/clients/client-sesv2/commands/CreateDedicatedIpPoolCommand.ts @@ -31,6 +31,7 @@ export class CreateDedicatedIpPoolCommand extends $Command< CreateDedicatedIpPoolCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDedicatedIpPoolCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateDeliverabilityTestReportCommand.ts b/clients/client-sesv2/commands/CreateDeliverabilityTestReportCommand.ts index a29377af8447a..32238228b5ad9 100644 --- a/clients/client-sesv2/commands/CreateDeliverabilityTestReportCommand.ts +++ b/clients/client-sesv2/commands/CreateDeliverabilityTestReportCommand.ts @@ -34,6 +34,7 @@ export class CreateDeliverabilityTestReportCommand extends $Command< CreateDeliverabilityTestReportCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateDeliverabilityTestReportCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateEmailIdentityCommand.ts b/clients/client-sesv2/commands/CreateEmailIdentityCommand.ts index 38bd37f845c34..b183a2219f75f 100644 --- a/clients/client-sesv2/commands/CreateEmailIdentityCommand.ts +++ b/clients/client-sesv2/commands/CreateEmailIdentityCommand.ts @@ -47,6 +47,7 @@ export class CreateEmailIdentityCommand extends $Command< CreateEmailIdentityCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class CreateEmailIdentityCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateEmailIdentityPolicyCommand.ts b/clients/client-sesv2/commands/CreateEmailIdentityPolicyCommand.ts index f2434e24c6e71..b7375b5754f5b 100644 --- a/clients/client-sesv2/commands/CreateEmailIdentityPolicyCommand.ts +++ b/clients/client-sesv2/commands/CreateEmailIdentityPolicyCommand.ts @@ -39,6 +39,7 @@ export class CreateEmailIdentityPolicyCommand extends $Command< CreateEmailIdentityPolicyCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateEmailIdentityPolicyCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateEmailTemplateCommand.ts b/clients/client-sesv2/commands/CreateEmailTemplateCommand.ts index add76c17a93bb..869b56136abef 100644 --- a/clients/client-sesv2/commands/CreateEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/CreateEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class CreateEmailTemplateCommand extends $Command< CreateEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/CreateImportJobCommand.ts b/clients/client-sesv2/commands/CreateImportJobCommand.ts index 14ad52f822fe0..fbb7b4cf651d7 100644 --- a/clients/client-sesv2/commands/CreateImportJobCommand.ts +++ b/clients/client-sesv2/commands/CreateImportJobCommand.ts @@ -28,6 +28,7 @@ export class CreateImportJobCommand extends $Command< CreateImportJobCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateImportJobCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteConfigurationSetCommand.ts b/clients/client-sesv2/commands/DeleteConfigurationSetCommand.ts index 3efcb157faf53..5c4ea4a079bab 100644 --- a/clients/client-sesv2/commands/DeleteConfigurationSetCommand.ts +++ b/clients/client-sesv2/commands/DeleteConfigurationSetCommand.ts @@ -33,6 +33,7 @@ export class DeleteConfigurationSetCommand extends $Command< DeleteConfigurationSetCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteConfigurationSetCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteConfigurationSetEventDestinationCommand.ts b/clients/client-sesv2/commands/DeleteConfigurationSetEventDestinationCommand.ts index 2a3a4c951e1f4..a20687ec9d4cc 100644 --- a/clients/client-sesv2/commands/DeleteConfigurationSetEventDestinationCommand.ts +++ b/clients/client-sesv2/commands/DeleteConfigurationSetEventDestinationCommand.ts @@ -38,6 +38,7 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< DeleteConfigurationSetEventDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DeleteConfigurationSetEventDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteContactCommand.ts b/clients/client-sesv2/commands/DeleteContactCommand.ts index 034760cc39ae5..edc97e6f3354c 100644 --- a/clients/client-sesv2/commands/DeleteContactCommand.ts +++ b/clients/client-sesv2/commands/DeleteContactCommand.ts @@ -28,6 +28,7 @@ export class DeleteContactCommand extends $Command< DeleteContactCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteContactCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteContactListCommand.ts b/clients/client-sesv2/commands/DeleteContactListCommand.ts index 221b69629b691..d497c402e255f 100644 --- a/clients/client-sesv2/commands/DeleteContactListCommand.ts +++ b/clients/client-sesv2/commands/DeleteContactListCommand.ts @@ -28,6 +28,7 @@ export class DeleteContactListCommand extends $Command< DeleteContactListCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteContactListCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteCustomVerificationEmailTemplateCommand.ts b/clients/client-sesv2/commands/DeleteCustomVerificationEmailTemplateCommand.ts index a358b18305c42..630fd9e139f68 100644 --- a/clients/client-sesv2/commands/DeleteCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/DeleteCustomVerificationEmailTemplateCommand.ts @@ -35,6 +35,7 @@ export class DeleteCustomVerificationEmailTemplateCommand extends $Command< DeleteCustomVerificationEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteCustomVerificationEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteDedicatedIpPoolCommand.ts b/clients/client-sesv2/commands/DeleteDedicatedIpPoolCommand.ts index c7bd2d7dcf838..2117a57b154e0 100644 --- a/clients/client-sesv2/commands/DeleteDedicatedIpPoolCommand.ts +++ b/clients/client-sesv2/commands/DeleteDedicatedIpPoolCommand.ts @@ -28,6 +28,7 @@ export class DeleteDedicatedIpPoolCommand extends $Command< DeleteDedicatedIpPoolCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDedicatedIpPoolCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteEmailIdentityCommand.ts b/clients/client-sesv2/commands/DeleteEmailIdentityCommand.ts index 527c646b7d2b0..37ea6b682bde5 100644 --- a/clients/client-sesv2/commands/DeleteEmailIdentityCommand.ts +++ b/clients/client-sesv2/commands/DeleteEmailIdentityCommand.ts @@ -29,6 +29,7 @@ export class DeleteEmailIdentityCommand extends $Command< DeleteEmailIdentityCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteEmailIdentityCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteEmailIdentityPolicyCommand.ts b/clients/client-sesv2/commands/DeleteEmailIdentityPolicyCommand.ts index 3d9ef174883f0..7d3638aada95e 100644 --- a/clients/client-sesv2/commands/DeleteEmailIdentityPolicyCommand.ts +++ b/clients/client-sesv2/commands/DeleteEmailIdentityPolicyCommand.ts @@ -40,6 +40,7 @@ export class DeleteEmailIdentityPolicyCommand extends $Command< DeleteEmailIdentityPolicyCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteEmailIdentityPolicyCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteEmailTemplateCommand.ts b/clients/client-sesv2/commands/DeleteEmailTemplateCommand.ts index a4a2ea89978a9..46c9f0a23ed0d 100644 --- a/clients/client-sesv2/commands/DeleteEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/DeleteEmailTemplateCommand.ts @@ -30,6 +30,7 @@ export class DeleteEmailTemplateCommand extends $Command< DeleteEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/DeleteSuppressedDestinationCommand.ts b/clients/client-sesv2/commands/DeleteSuppressedDestinationCommand.ts index 8106955d76b1c..37e75448a8d17 100644 --- a/clients/client-sesv2/commands/DeleteSuppressedDestinationCommand.ts +++ b/clients/client-sesv2/commands/DeleteSuppressedDestinationCommand.ts @@ -28,6 +28,7 @@ export class DeleteSuppressedDestinationCommand extends $Command< DeleteSuppressedDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSuppressedDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetAccountCommand.ts b/clients/client-sesv2/commands/GetAccountCommand.ts index b4bbddc4fe2a1..44fd2eb22d295 100644 --- a/clients/client-sesv2/commands/GetAccountCommand.ts +++ b/clients/client-sesv2/commands/GetAccountCommand.ts @@ -29,6 +29,7 @@ export class GetAccountCommand extends $Command< GetAccountCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAccountCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetBlacklistReportsCommand.ts b/clients/client-sesv2/commands/GetBlacklistReportsCommand.ts index 78f6028f6ea37..c668a5d843c49 100644 --- a/clients/client-sesv2/commands/GetBlacklistReportsCommand.ts +++ b/clients/client-sesv2/commands/GetBlacklistReportsCommand.ts @@ -28,6 +28,7 @@ export class GetBlacklistReportsCommand extends $Command< GetBlacklistReportsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetBlacklistReportsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetConfigurationSetCommand.ts b/clients/client-sesv2/commands/GetConfigurationSetCommand.ts index 4d4bed9de348d..186dc49d51c59 100644 --- a/clients/client-sesv2/commands/GetConfigurationSetCommand.ts +++ b/clients/client-sesv2/commands/GetConfigurationSetCommand.ts @@ -35,6 +35,7 @@ export class GetConfigurationSetCommand extends $Command< GetConfigurationSetCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetConfigurationSetCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetConfigurationSetEventDestinationsCommand.ts b/clients/client-sesv2/commands/GetConfigurationSetEventDestinationsCommand.ts index 40b17f45ac3b9..e92d7210ee8c0 100644 --- a/clients/client-sesv2/commands/GetConfigurationSetEventDestinationsCommand.ts +++ b/clients/client-sesv2/commands/GetConfigurationSetEventDestinationsCommand.ts @@ -39,6 +39,7 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< GetConfigurationSetEventDestinationsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetConfigurationSetEventDestinationsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetContactCommand.ts b/clients/client-sesv2/commands/GetContactCommand.ts index 0339a891d63ba..3378649bbb338 100644 --- a/clients/client-sesv2/commands/GetContactCommand.ts +++ b/clients/client-sesv2/commands/GetContactCommand.ts @@ -28,6 +28,7 @@ export class GetContactCommand extends $Command< GetContactCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetContactCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetContactListCommand.ts b/clients/client-sesv2/commands/GetContactListCommand.ts index 1095a65149169..d14c01b9d6cb7 100644 --- a/clients/client-sesv2/commands/GetContactListCommand.ts +++ b/clients/client-sesv2/commands/GetContactListCommand.ts @@ -29,6 +29,7 @@ export class GetContactListCommand extends $Command< GetContactListCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetContactListCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetCustomVerificationEmailTemplateCommand.ts b/clients/client-sesv2/commands/GetCustomVerificationEmailTemplateCommand.ts index 6ab604a102a6a..39960ab03a167 100644 --- a/clients/client-sesv2/commands/GetCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/GetCustomVerificationEmailTemplateCommand.ts @@ -36,6 +36,7 @@ export class GetCustomVerificationEmailTemplateCommand extends $Command< GetCustomVerificationEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetCustomVerificationEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDedicatedIpCommand.ts b/clients/client-sesv2/commands/GetDedicatedIpCommand.ts index 91d0e44cce668..97f50228fd888 100644 --- a/clients/client-sesv2/commands/GetDedicatedIpCommand.ts +++ b/clients/client-sesv2/commands/GetDedicatedIpCommand.ts @@ -30,6 +30,7 @@ export class GetDedicatedIpCommand extends $Command< GetDedicatedIpCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDedicatedIpCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDedicatedIpsCommand.ts b/clients/client-sesv2/commands/GetDedicatedIpsCommand.ts index eb28dee0f306d..4439ff6e065a9 100644 --- a/clients/client-sesv2/commands/GetDedicatedIpsCommand.ts +++ b/clients/client-sesv2/commands/GetDedicatedIpsCommand.ts @@ -29,6 +29,7 @@ export class GetDedicatedIpsCommand extends $Command< GetDedicatedIpsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDedicatedIpsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDeliverabilityDashboardOptionsCommand.ts b/clients/client-sesv2/commands/GetDeliverabilityDashboardOptionsCommand.ts index 2db63d249e214..350783429fbd5 100644 --- a/clients/client-sesv2/commands/GetDeliverabilityDashboardOptionsCommand.ts +++ b/clients/client-sesv2/commands/GetDeliverabilityDashboardOptionsCommand.ts @@ -39,6 +39,7 @@ export class GetDeliverabilityDashboardOptionsCommand extends $Command< GetDeliverabilityDashboardOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetDeliverabilityDashboardOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDeliverabilityTestReportCommand.ts b/clients/client-sesv2/commands/GetDeliverabilityTestReportCommand.ts index 0b8d20a900974..dbb17197b7a27 100644 --- a/clients/client-sesv2/commands/GetDeliverabilityTestReportCommand.ts +++ b/clients/client-sesv2/commands/GetDeliverabilityTestReportCommand.ts @@ -28,6 +28,7 @@ export class GetDeliverabilityTestReportCommand extends $Command< GetDeliverabilityTestReportCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDeliverabilityTestReportCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDomainDeliverabilityCampaignCommand.ts b/clients/client-sesv2/commands/GetDomainDeliverabilityCampaignCommand.ts index 650b469529857..62d4d50bdf56c 100644 --- a/clients/client-sesv2/commands/GetDomainDeliverabilityCampaignCommand.ts +++ b/clients/client-sesv2/commands/GetDomainDeliverabilityCampaignCommand.ts @@ -30,6 +30,7 @@ export class GetDomainDeliverabilityCampaignCommand extends $Command< GetDomainDeliverabilityCampaignCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetDomainDeliverabilityCampaignCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetDomainStatisticsReportCommand.ts b/clients/client-sesv2/commands/GetDomainStatisticsReportCommand.ts index ceecd8216f8f8..58cf369ccb1bb 100644 --- a/clients/client-sesv2/commands/GetDomainStatisticsReportCommand.ts +++ b/clients/client-sesv2/commands/GetDomainStatisticsReportCommand.ts @@ -29,6 +29,7 @@ export class GetDomainStatisticsReportCommand extends $Command< GetDomainStatisticsReportCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetDomainStatisticsReportCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetEmailIdentityCommand.ts b/clients/client-sesv2/commands/GetEmailIdentityCommand.ts index 2120340f6b0b2..90dde414a6725 100644 --- a/clients/client-sesv2/commands/GetEmailIdentityCommand.ts +++ b/clients/client-sesv2/commands/GetEmailIdentityCommand.ts @@ -30,6 +30,7 @@ export class GetEmailIdentityCommand extends $Command< GetEmailIdentityCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEmailIdentityCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetEmailIdentityPoliciesCommand.ts b/clients/client-sesv2/commands/GetEmailIdentityPoliciesCommand.ts index a4c0bda9330b9..5ab1364595ae0 100644 --- a/clients/client-sesv2/commands/GetEmailIdentityPoliciesCommand.ts +++ b/clients/client-sesv2/commands/GetEmailIdentityPoliciesCommand.ts @@ -39,6 +39,7 @@ export class GetEmailIdentityPoliciesCommand extends $Command< GetEmailIdentityPoliciesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class GetEmailIdentityPoliciesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetEmailTemplateCommand.ts b/clients/client-sesv2/commands/GetEmailTemplateCommand.ts index 667859cee07c1..46741e99a3e47 100644 --- a/clients/client-sesv2/commands/GetEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/GetEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class GetEmailTemplateCommand extends $Command< GetEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetImportJobCommand.ts b/clients/client-sesv2/commands/GetImportJobCommand.ts index 760b646bf80b9..fb1cf4696f401 100644 --- a/clients/client-sesv2/commands/GetImportJobCommand.ts +++ b/clients/client-sesv2/commands/GetImportJobCommand.ts @@ -28,6 +28,7 @@ export class GetImportJobCommand extends $Command< GetImportJobCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetImportJobCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/GetSuppressedDestinationCommand.ts b/clients/client-sesv2/commands/GetSuppressedDestinationCommand.ts index 328e75af87ed6..f8c34bd4cf446 100644 --- a/clients/client-sesv2/commands/GetSuppressedDestinationCommand.ts +++ b/clients/client-sesv2/commands/GetSuppressedDestinationCommand.ts @@ -29,6 +29,7 @@ export class GetSuppressedDestinationCommand extends $Command< GetSuppressedDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSuppressedDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListConfigurationSetsCommand.ts b/clients/client-sesv2/commands/ListConfigurationSetsCommand.ts index 040ed752abb42..ba1a4cce51df9 100644 --- a/clients/client-sesv2/commands/ListConfigurationSetsCommand.ts +++ b/clients/client-sesv2/commands/ListConfigurationSetsCommand.ts @@ -34,6 +34,7 @@ export class ListConfigurationSetsCommand extends $Command< ListConfigurationSetsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListConfigurationSetsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListContactListsCommand.ts b/clients/client-sesv2/commands/ListContactListsCommand.ts index fce6998f03bc7..21cb20cd284b9 100644 --- a/clients/client-sesv2/commands/ListContactListsCommand.ts +++ b/clients/client-sesv2/commands/ListContactListsCommand.ts @@ -28,6 +28,7 @@ export class ListContactListsCommand extends $Command< ListContactListsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListContactListsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListContactsCommand.ts b/clients/client-sesv2/commands/ListContactsCommand.ts index 0bb557eecc007..eb7e675006840 100644 --- a/clients/client-sesv2/commands/ListContactsCommand.ts +++ b/clients/client-sesv2/commands/ListContactsCommand.ts @@ -28,6 +28,7 @@ export class ListContactsCommand extends $Command< ListContactsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListContactsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListCustomVerificationEmailTemplatesCommand.ts b/clients/client-sesv2/commands/ListCustomVerificationEmailTemplatesCommand.ts index bbe596f47a249..6effb138a90fc 100644 --- a/clients/client-sesv2/commands/ListCustomVerificationEmailTemplatesCommand.ts +++ b/clients/client-sesv2/commands/ListCustomVerificationEmailTemplatesCommand.ts @@ -36,6 +36,7 @@ export class ListCustomVerificationEmailTemplatesCommand extends $Command< ListCustomVerificationEmailTemplatesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListCustomVerificationEmailTemplatesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListDedicatedIpPoolsCommand.ts b/clients/client-sesv2/commands/ListDedicatedIpPoolsCommand.ts index ba6842906d09b..fc23cdb758f9d 100644 --- a/clients/client-sesv2/commands/ListDedicatedIpPoolsCommand.ts +++ b/clients/client-sesv2/commands/ListDedicatedIpPoolsCommand.ts @@ -29,6 +29,7 @@ export class ListDedicatedIpPoolsCommand extends $Command< ListDedicatedIpPoolsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDedicatedIpPoolsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListDeliverabilityTestReportsCommand.ts b/clients/client-sesv2/commands/ListDeliverabilityTestReportsCommand.ts index 7f290607bf158..5ad6cf99a4bab 100644 --- a/clients/client-sesv2/commands/ListDeliverabilityTestReportsCommand.ts +++ b/clients/client-sesv2/commands/ListDeliverabilityTestReportsCommand.ts @@ -30,6 +30,7 @@ export class ListDeliverabilityTestReportsCommand extends $Command< ListDeliverabilityTestReportsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDeliverabilityTestReportsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListDomainDeliverabilityCampaignsCommand.ts b/clients/client-sesv2/commands/ListDomainDeliverabilityCampaignsCommand.ts index deb6dadd3121e..d0c5ee1d0dff3 100644 --- a/clients/client-sesv2/commands/ListDomainDeliverabilityCampaignsCommand.ts +++ b/clients/client-sesv2/commands/ListDomainDeliverabilityCampaignsCommand.ts @@ -34,6 +34,7 @@ export class ListDomainDeliverabilityCampaignsCommand extends $Command< ListDomainDeliverabilityCampaignsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListDomainDeliverabilityCampaignsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListEmailIdentitiesCommand.ts b/clients/client-sesv2/commands/ListEmailIdentitiesCommand.ts index a0b07add80f23..61578dd0d0291 100644 --- a/clients/client-sesv2/commands/ListEmailIdentitiesCommand.ts +++ b/clients/client-sesv2/commands/ListEmailIdentitiesCommand.ts @@ -31,6 +31,7 @@ export class ListEmailIdentitiesCommand extends $Command< ListEmailIdentitiesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListEmailIdentitiesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListEmailTemplatesCommand.ts b/clients/client-sesv2/commands/ListEmailTemplatesCommand.ts index afd193ce1a191..9313aff3a1438 100644 --- a/clients/client-sesv2/commands/ListEmailTemplatesCommand.ts +++ b/clients/client-sesv2/commands/ListEmailTemplatesCommand.ts @@ -31,6 +31,7 @@ export class ListEmailTemplatesCommand extends $Command< ListEmailTemplatesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListEmailTemplatesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListImportJobsCommand.ts b/clients/client-sesv2/commands/ListImportJobsCommand.ts index 5209db5b484c3..71fbfcbd75b22 100644 --- a/clients/client-sesv2/commands/ListImportJobsCommand.ts +++ b/clients/client-sesv2/commands/ListImportJobsCommand.ts @@ -28,6 +28,7 @@ export class ListImportJobsCommand extends $Command< ListImportJobsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListImportJobsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListSuppressedDestinationsCommand.ts b/clients/client-sesv2/commands/ListSuppressedDestinationsCommand.ts index 6ff8eb1bd0142..6329b0391eeca 100644 --- a/clients/client-sesv2/commands/ListSuppressedDestinationsCommand.ts +++ b/clients/client-sesv2/commands/ListSuppressedDestinationsCommand.ts @@ -29,6 +29,7 @@ export class ListSuppressedDestinationsCommand extends $Command< ListSuppressedDestinationsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSuppressedDestinationsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/ListTagsForResourceCommand.ts b/clients/client-sesv2/commands/ListTagsForResourceCommand.ts index 521fccefdb773..49ac05299ea4d 100644 --- a/clients/client-sesv2/commands/ListTagsForResourceCommand.ts +++ b/clients/client-sesv2/commands/ListTagsForResourceCommand.ts @@ -33,6 +33,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts b/clients/client-sesv2/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts index fbb9fab5c1d1c..5cfd5c84da1eb 100644 --- a/clients/client-sesv2/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutAccountDedicatedIpWarmupAttributesCommand.ts @@ -32,6 +32,7 @@ export class PutAccountDedicatedIpWarmupAttributesCommand extends $Command< PutAccountDedicatedIpWarmupAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutAccountDedicatedIpWarmupAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutAccountDetailsCommand.ts b/clients/client-sesv2/commands/PutAccountDetailsCommand.ts index 33358f93eb3df..81cb27e2074a5 100644 --- a/clients/client-sesv2/commands/PutAccountDetailsCommand.ts +++ b/clients/client-sesv2/commands/PutAccountDetailsCommand.ts @@ -28,6 +28,7 @@ export class PutAccountDetailsCommand extends $Command< PutAccountDetailsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAccountDetailsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutAccountSendingAttributesCommand.ts b/clients/client-sesv2/commands/PutAccountSendingAttributesCommand.ts index 10a04d11fb1b8..1d9ff15d440ae 100644 --- a/clients/client-sesv2/commands/PutAccountSendingAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutAccountSendingAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutAccountSendingAttributesCommand extends $Command< PutAccountSendingAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAccountSendingAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutAccountSuppressionAttributesCommand.ts b/clients/client-sesv2/commands/PutAccountSuppressionAttributesCommand.ts index a1c187a36ce32..4728baa260aba 100644 --- a/clients/client-sesv2/commands/PutAccountSuppressionAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutAccountSuppressionAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutAccountSuppressionAttributesCommand extends $Command< PutAccountSuppressionAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAccountSuppressionAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutConfigurationSetDeliveryOptionsCommand.ts b/clients/client-sesv2/commands/PutConfigurationSetDeliveryOptionsCommand.ts index b572572a6017a..64e1526687ed3 100644 --- a/clients/client-sesv2/commands/PutConfigurationSetDeliveryOptionsCommand.ts +++ b/clients/client-sesv2/commands/PutConfigurationSetDeliveryOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< PutConfigurationSetDeliveryOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetDeliveryOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutConfigurationSetReputationOptionsCommand.ts b/clients/client-sesv2/commands/PutConfigurationSetReputationOptionsCommand.ts index 7274509f7e109..62c61b9706285 100644 --- a/clients/client-sesv2/commands/PutConfigurationSetReputationOptionsCommand.ts +++ b/clients/client-sesv2/commands/PutConfigurationSetReputationOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetReputationOptionsCommand extends $Command< PutConfigurationSetReputationOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetReputationOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutConfigurationSetSendingOptionsCommand.ts b/clients/client-sesv2/commands/PutConfigurationSetSendingOptionsCommand.ts index d2cb3ff5f1588..751e12901b8a5 100644 --- a/clients/client-sesv2/commands/PutConfigurationSetSendingOptionsCommand.ts +++ b/clients/client-sesv2/commands/PutConfigurationSetSendingOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetSendingOptionsCommand extends $Command< PutConfigurationSetSendingOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetSendingOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutConfigurationSetSuppressionOptionsCommand.ts b/clients/client-sesv2/commands/PutConfigurationSetSuppressionOptionsCommand.ts index 0f1e8d8a6ee67..4740034da2bd3 100644 --- a/clients/client-sesv2/commands/PutConfigurationSetSuppressionOptionsCommand.ts +++ b/clients/client-sesv2/commands/PutConfigurationSetSuppressionOptionsCommand.ts @@ -32,6 +32,7 @@ export class PutConfigurationSetSuppressionOptionsCommand extends $Command< PutConfigurationSetSuppressionOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class PutConfigurationSetSuppressionOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutConfigurationSetTrackingOptionsCommand.ts b/clients/client-sesv2/commands/PutConfigurationSetTrackingOptionsCommand.ts index 91792ccf4cf1d..71981df5153b7 100644 --- a/clients/client-sesv2/commands/PutConfigurationSetTrackingOptionsCommand.ts +++ b/clients/client-sesv2/commands/PutConfigurationSetTrackingOptionsCommand.ts @@ -33,6 +33,7 @@ export class PutConfigurationSetTrackingOptionsCommand extends $Command< PutConfigurationSetTrackingOptionsCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutConfigurationSetTrackingOptionsCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutDedicatedIpInPoolCommand.ts b/clients/client-sesv2/commands/PutDedicatedIpInPoolCommand.ts index cafd6523f2296..08d58c5584f2e 100644 --- a/clients/client-sesv2/commands/PutDedicatedIpInPoolCommand.ts +++ b/clients/client-sesv2/commands/PutDedicatedIpInPoolCommand.ts @@ -37,6 +37,7 @@ export class PutDedicatedIpInPoolCommand extends $Command< PutDedicatedIpInPoolCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class PutDedicatedIpInPoolCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutDedicatedIpWarmupAttributesCommand.ts b/clients/client-sesv2/commands/PutDedicatedIpWarmupAttributesCommand.ts index ec3e2df749c84..c1c4cf1ae51a7 100644 --- a/clients/client-sesv2/commands/PutDedicatedIpWarmupAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutDedicatedIpWarmupAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutDedicatedIpWarmupAttributesCommand extends $Command< PutDedicatedIpWarmupAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutDedicatedIpWarmupAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutDeliverabilityDashboardOptionCommand.ts b/clients/client-sesv2/commands/PutDeliverabilityDashboardOptionCommand.ts index 81c49a7fc4a61..b5a15d36c71bb 100644 --- a/clients/client-sesv2/commands/PutDeliverabilityDashboardOptionCommand.ts +++ b/clients/client-sesv2/commands/PutDeliverabilityDashboardOptionCommand.ts @@ -34,6 +34,7 @@ export class PutDeliverabilityDashboardOptionCommand extends $Command< PutDeliverabilityDashboardOptionCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class PutDeliverabilityDashboardOptionCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutEmailIdentityDkimAttributesCommand.ts b/clients/client-sesv2/commands/PutEmailIdentityDkimAttributesCommand.ts index 2ec479d87c615..30c1988ffbf62 100644 --- a/clients/client-sesv2/commands/PutEmailIdentityDkimAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutEmailIdentityDkimAttributesCommand.ts @@ -28,6 +28,7 @@ export class PutEmailIdentityDkimAttributesCommand extends $Command< PutEmailIdentityDkimAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEmailIdentityDkimAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutEmailIdentityDkimSigningAttributesCommand.ts b/clients/client-sesv2/commands/PutEmailIdentityDkimSigningAttributesCommand.ts index 311832034a61d..b89d0d3c1e219 100644 --- a/clients/client-sesv2/commands/PutEmailIdentityDkimSigningAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutEmailIdentityDkimSigningAttributesCommand.ts @@ -51,6 +51,7 @@ export class PutEmailIdentityDkimSigningAttributesCommand extends $Command< PutEmailIdentityDkimSigningAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class PutEmailIdentityDkimSigningAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutEmailIdentityFeedbackAttributesCommand.ts b/clients/client-sesv2/commands/PutEmailIdentityFeedbackAttributesCommand.ts index b559845fed238..b8f8d0feb269c 100644 --- a/clients/client-sesv2/commands/PutEmailIdentityFeedbackAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutEmailIdentityFeedbackAttributesCommand.ts @@ -41,6 +41,7 @@ export class PutEmailIdentityFeedbackAttributesCommand extends $Command< PutEmailIdentityFeedbackAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class PutEmailIdentityFeedbackAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutEmailIdentityMailFromAttributesCommand.ts b/clients/client-sesv2/commands/PutEmailIdentityMailFromAttributesCommand.ts index 5948178a6c0cd..db1165bcb6919 100644 --- a/clients/client-sesv2/commands/PutEmailIdentityMailFromAttributesCommand.ts +++ b/clients/client-sesv2/commands/PutEmailIdentityMailFromAttributesCommand.ts @@ -33,6 +33,7 @@ export class PutEmailIdentityMailFromAttributesCommand extends $Command< PutEmailIdentityMailFromAttributesCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutEmailIdentityMailFromAttributesCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/PutSuppressedDestinationCommand.ts b/clients/client-sesv2/commands/PutSuppressedDestinationCommand.ts index 07421185fcbb3..879e19a1e263b 100644 --- a/clients/client-sesv2/commands/PutSuppressedDestinationCommand.ts +++ b/clients/client-sesv2/commands/PutSuppressedDestinationCommand.ts @@ -28,6 +28,7 @@ export class PutSuppressedDestinationCommand extends $Command< PutSuppressedDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutSuppressedDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/SendBulkEmailCommand.ts b/clients/client-sesv2/commands/SendBulkEmailCommand.ts index 936df0fd11c26..0b5174c92f631 100644 --- a/clients/client-sesv2/commands/SendBulkEmailCommand.ts +++ b/clients/client-sesv2/commands/SendBulkEmailCommand.ts @@ -28,6 +28,7 @@ export class SendBulkEmailCommand extends $Command< SendBulkEmailCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendBulkEmailCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/SendCustomVerificationEmailCommand.ts b/clients/client-sesv2/commands/SendCustomVerificationEmailCommand.ts index 2454507b80b9a..381100ad52007 100644 --- a/clients/client-sesv2/commands/SendCustomVerificationEmailCommand.ts +++ b/clients/client-sesv2/commands/SendCustomVerificationEmailCommand.ts @@ -35,6 +35,7 @@ export class SendCustomVerificationEmailCommand extends $Command< SendCustomVerificationEmailCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class SendCustomVerificationEmailCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/SendEmailCommand.ts b/clients/client-sesv2/commands/SendEmailCommand.ts index 112f253a48448..573d3aee34fb0 100644 --- a/clients/client-sesv2/commands/SendEmailCommand.ts +++ b/clients/client-sesv2/commands/SendEmailCommand.ts @@ -51,6 +51,7 @@ export class SendEmailCommand extends $Command< SendEmailCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class SendEmailCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/TagResourceCommand.ts b/clients/client-sesv2/commands/TagResourceCommand.ts index 2fd7453dd3220..f3c83a2d1b67a 100644 --- a/clients/client-sesv2/commands/TagResourceCommand.ts +++ b/clients/client-sesv2/commands/TagResourceCommand.ts @@ -36,6 +36,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class TagResourceCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/TestRenderEmailTemplateCommand.ts b/clients/client-sesv2/commands/TestRenderEmailTemplateCommand.ts index eb62e1dafc7e1..a150cbe95cb3d 100644 --- a/clients/client-sesv2/commands/TestRenderEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/TestRenderEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class TestRenderEmailTemplateCommand extends $Command< TestRenderEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TestRenderEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UntagResourceCommand.ts b/clients/client-sesv2/commands/UntagResourceCommand.ts index ad2fe0361f5a0..f86f24059950d 100644 --- a/clients/client-sesv2/commands/UntagResourceCommand.ts +++ b/clients/client-sesv2/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateConfigurationSetEventDestinationCommand.ts b/clients/client-sesv2/commands/UpdateConfigurationSetEventDestinationCommand.ts index a63bdd75180f4..b6cb48e54ec75 100644 --- a/clients/client-sesv2/commands/UpdateConfigurationSetEventDestinationCommand.ts +++ b/clients/client-sesv2/commands/UpdateConfigurationSetEventDestinationCommand.ts @@ -38,6 +38,7 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< UpdateConfigurationSetEventDestinationCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateConfigurationSetEventDestinationCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateContactCommand.ts b/clients/client-sesv2/commands/UpdateContactCommand.ts index 112b70e58a585..1d7e67a3f4863 100644 --- a/clients/client-sesv2/commands/UpdateContactCommand.ts +++ b/clients/client-sesv2/commands/UpdateContactCommand.ts @@ -30,6 +30,7 @@ export class UpdateContactCommand extends $Command< UpdateContactCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateContactCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateContactListCommand.ts b/clients/client-sesv2/commands/UpdateContactListCommand.ts index 69202588943b7..45767fed0d2b5 100644 --- a/clients/client-sesv2/commands/UpdateContactListCommand.ts +++ b/clients/client-sesv2/commands/UpdateContactListCommand.ts @@ -28,6 +28,7 @@ export class UpdateContactListCommand extends $Command< UpdateContactListCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateContactListCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateCustomVerificationEmailTemplateCommand.ts b/clients/client-sesv2/commands/UpdateCustomVerificationEmailTemplateCommand.ts index aa83710139b02..d2ee982473110 100644 --- a/clients/client-sesv2/commands/UpdateCustomVerificationEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/UpdateCustomVerificationEmailTemplateCommand.ts @@ -35,6 +35,7 @@ export class UpdateCustomVerificationEmailTemplateCommand extends $Command< UpdateCustomVerificationEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateCustomVerificationEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateEmailIdentityPolicyCommand.ts b/clients/client-sesv2/commands/UpdateEmailIdentityPolicyCommand.ts index 40366c5abe3d6..5921f90983f7f 100644 --- a/clients/client-sesv2/commands/UpdateEmailIdentityPolicyCommand.ts +++ b/clients/client-sesv2/commands/UpdateEmailIdentityPolicyCommand.ts @@ -40,6 +40,7 @@ export class UpdateEmailIdentityPolicyCommand extends $Command< UpdateEmailIdentityPolicyCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateEmailIdentityPolicyCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sesv2/commands/UpdateEmailTemplateCommand.ts b/clients/client-sesv2/commands/UpdateEmailTemplateCommand.ts index 4592a05ef38f2..d9309697f84dc 100644 --- a/clients/client-sesv2/commands/UpdateEmailTemplateCommand.ts +++ b/clients/client-sesv2/commands/UpdateEmailTemplateCommand.ts @@ -31,6 +31,7 @@ export class UpdateEmailTemplateCommand extends $Command< UpdateEmailTemplateCommandOutput, SESv2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateEmailTemplateCommand extends $Command< configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/CreateActivityCommand.ts b/clients/client-sfn/commands/CreateActivityCommand.ts index 79b53e14433e5..297629ee5b766 100644 --- a/clients/client-sfn/commands/CreateActivityCommand.ts +++ b/clients/client-sfn/commands/CreateActivityCommand.ts @@ -44,6 +44,7 @@ export class CreateActivityCommand extends $Command< CreateActivityCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CreateActivityCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/CreateStateMachineCommand.ts b/clients/client-sfn/commands/CreateStateMachineCommand.ts index 8720e32c09004..6b976dce92862 100644 --- a/clients/client-sfn/commands/CreateStateMachineCommand.ts +++ b/clients/client-sfn/commands/CreateStateMachineCommand.ts @@ -46,6 +46,7 @@ export class CreateStateMachineCommand extends $Command< CreateStateMachineCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class CreateStateMachineCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DeleteActivityCommand.ts b/clients/client-sfn/commands/DeleteActivityCommand.ts index afbc26040ef10..7c00f73fe1ba5 100644 --- a/clients/client-sfn/commands/DeleteActivityCommand.ts +++ b/clients/client-sfn/commands/DeleteActivityCommand.ts @@ -28,6 +28,7 @@ export class DeleteActivityCommand extends $Command< DeleteActivityCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteActivityCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DeleteStateMachineCommand.ts b/clients/client-sfn/commands/DeleteStateMachineCommand.ts index 1703b27a1166d..eb7f402892058 100644 --- a/clients/client-sfn/commands/DeleteStateMachineCommand.ts +++ b/clients/client-sfn/commands/DeleteStateMachineCommand.ts @@ -34,6 +34,7 @@ export class DeleteStateMachineCommand extends $Command< DeleteStateMachineCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteStateMachineCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DescribeActivityCommand.ts b/clients/client-sfn/commands/DescribeActivityCommand.ts index 338e50032742c..53e35707b80f2 100644 --- a/clients/client-sfn/commands/DescribeActivityCommand.ts +++ b/clients/client-sfn/commands/DescribeActivityCommand.ts @@ -31,6 +31,7 @@ export class DescribeActivityCommand extends $Command< DescribeActivityCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeActivityCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DescribeExecutionCommand.ts b/clients/client-sfn/commands/DescribeExecutionCommand.ts index 06a63d944651d..58d018d6d5aae 100644 --- a/clients/client-sfn/commands/DescribeExecutionCommand.ts +++ b/clients/client-sfn/commands/DescribeExecutionCommand.ts @@ -32,6 +32,7 @@ export class DescribeExecutionCommand extends $Command< DescribeExecutionCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeExecutionCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DescribeStateMachineCommand.ts b/clients/client-sfn/commands/DescribeStateMachineCommand.ts index b3c7bbdc59edd..a5363d5664444 100644 --- a/clients/client-sfn/commands/DescribeStateMachineCommand.ts +++ b/clients/client-sfn/commands/DescribeStateMachineCommand.ts @@ -31,6 +31,7 @@ export class DescribeStateMachineCommand extends $Command< DescribeStateMachineCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeStateMachineCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/DescribeStateMachineForExecutionCommand.ts b/clients/client-sfn/commands/DescribeStateMachineForExecutionCommand.ts index 4c081a1fef6ef..3670b536d296d 100644 --- a/clients/client-sfn/commands/DescribeStateMachineForExecutionCommand.ts +++ b/clients/client-sfn/commands/DescribeStateMachineForExecutionCommand.ts @@ -32,6 +32,7 @@ export class DescribeStateMachineForExecutionCommand extends $Command< DescribeStateMachineForExecutionCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeStateMachineForExecutionCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/GetActivityTaskCommand.ts b/clients/client-sfn/commands/GetActivityTaskCommand.ts index 97d3441d4386d..313ad378b48a6 100644 --- a/clients/client-sfn/commands/GetActivityTaskCommand.ts +++ b/clients/client-sfn/commands/GetActivityTaskCommand.ts @@ -40,6 +40,7 @@ export class GetActivityTaskCommand extends $Command< GetActivityTaskCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetActivityTaskCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/GetExecutionHistoryCommand.ts b/clients/client-sfn/commands/GetExecutionHistoryCommand.ts index 1576128371702..56bd6ea4b9a07 100644 --- a/clients/client-sfn/commands/GetExecutionHistoryCommand.ts +++ b/clients/client-sfn/commands/GetExecutionHistoryCommand.ts @@ -33,6 +33,7 @@ export class GetExecutionHistoryCommand extends $Command< GetExecutionHistoryCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetExecutionHistoryCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/ListActivitiesCommand.ts b/clients/client-sfn/commands/ListActivitiesCommand.ts index 8f66f9b7b0ce0..e67632c3943cc 100644 --- a/clients/client-sfn/commands/ListActivitiesCommand.ts +++ b/clients/client-sfn/commands/ListActivitiesCommand.ts @@ -33,6 +33,7 @@ export class ListActivitiesCommand extends $Command< ListActivitiesCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListActivitiesCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/ListExecutionsCommand.ts b/clients/client-sfn/commands/ListExecutionsCommand.ts index bcd875d97a464..2059e2833a6f1 100644 --- a/clients/client-sfn/commands/ListExecutionsCommand.ts +++ b/clients/client-sfn/commands/ListExecutionsCommand.ts @@ -35,6 +35,7 @@ export class ListExecutionsCommand extends $Command< ListExecutionsCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListExecutionsCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/ListStateMachinesCommand.ts b/clients/client-sfn/commands/ListStateMachinesCommand.ts index edbcd12f22707..772e7bc5cbf62 100644 --- a/clients/client-sfn/commands/ListStateMachinesCommand.ts +++ b/clients/client-sfn/commands/ListStateMachinesCommand.ts @@ -33,6 +33,7 @@ export class ListStateMachinesCommand extends $Command< ListStateMachinesCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListStateMachinesCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/ListTagsForResourceCommand.ts b/clients/client-sfn/commands/ListTagsForResourceCommand.ts index 021d951a35855..a56492594d01a 100644 --- a/clients/client-sfn/commands/ListTagsForResourceCommand.ts +++ b/clients/client-sfn/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/SendTaskFailureCommand.ts b/clients/client-sfn/commands/SendTaskFailureCommand.ts index 95c1eb05bae3a..157819aff43e5 100644 --- a/clients/client-sfn/commands/SendTaskFailureCommand.ts +++ b/clients/client-sfn/commands/SendTaskFailureCommand.ts @@ -29,6 +29,7 @@ export class SendTaskFailureCommand extends $Command< SendTaskFailureCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SendTaskFailureCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/SendTaskHeartbeatCommand.ts b/clients/client-sfn/commands/SendTaskHeartbeatCommand.ts index a37f2050bf8f3..52957d9cd2add 100644 --- a/clients/client-sfn/commands/SendTaskHeartbeatCommand.ts +++ b/clients/client-sfn/commands/SendTaskHeartbeatCommand.ts @@ -42,6 +42,7 @@ export class SendTaskHeartbeatCommand extends $Command< SendTaskHeartbeatCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class SendTaskHeartbeatCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/SendTaskSuccessCommand.ts b/clients/client-sfn/commands/SendTaskSuccessCommand.ts index 5f4539e73f5eb..fc07fb5a90087 100644 --- a/clients/client-sfn/commands/SendTaskSuccessCommand.ts +++ b/clients/client-sfn/commands/SendTaskSuccessCommand.ts @@ -30,6 +30,7 @@ export class SendTaskSuccessCommand extends $Command< SendTaskSuccessCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SendTaskSuccessCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/StartExecutionCommand.ts b/clients/client-sfn/commands/StartExecutionCommand.ts index ea01642c4ee53..e9f68ae0ac686 100644 --- a/clients/client-sfn/commands/StartExecutionCommand.ts +++ b/clients/client-sfn/commands/StartExecutionCommand.ts @@ -36,6 +36,7 @@ export class StartExecutionCommand extends $Command< StartExecutionCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartExecutionCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/StartSyncExecutionCommand.ts b/clients/client-sfn/commands/StartSyncExecutionCommand.ts index c338fbf67faf6..a38d103e86cfe 100644 --- a/clients/client-sfn/commands/StartSyncExecutionCommand.ts +++ b/clients/client-sfn/commands/StartSyncExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartSyncExecutionCommand extends $Command< StartSyncExecutionCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartSyncExecutionCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/StopExecutionCommand.ts b/clients/client-sfn/commands/StopExecutionCommand.ts index f9d52c203f577..d709bcf4dc8bf 100644 --- a/clients/client-sfn/commands/StopExecutionCommand.ts +++ b/clients/client-sfn/commands/StopExecutionCommand.ts @@ -29,6 +29,7 @@ export class StopExecutionCommand extends $Command< StopExecutionCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopExecutionCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/TagResourceCommand.ts b/clients/client-sfn/commands/TagResourceCommand.ts index 3422ce9004511..8d2d53327ade7 100644 --- a/clients/client-sfn/commands/TagResourceCommand.ts +++ b/clients/client-sfn/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/UntagResourceCommand.ts b/clients/client-sfn/commands/UntagResourceCommand.ts index ce9533070a085..b274b0e79cca0 100644 --- a/clients/client-sfn/commands/UntagResourceCommand.ts +++ b/clients/client-sfn/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sfn/commands/UpdateStateMachineCommand.ts b/clients/client-sfn/commands/UpdateStateMachineCommand.ts index 4b197b3434c91..e7f56690337c4 100644 --- a/clients/client-sfn/commands/UpdateStateMachineCommand.ts +++ b/clients/client-sfn/commands/UpdateStateMachineCommand.ts @@ -38,6 +38,7 @@ export class UpdateStateMachineCommand extends $Command< UpdateStateMachineCommandOutput, SFNClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateStateMachineCommand extends $Command< configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/AssociateDRTLogBucketCommand.ts b/clients/client-shield/commands/AssociateDRTLogBucketCommand.ts index e0ffff611ffdb..1876e4f3a1517 100644 --- a/clients/client-shield/commands/AssociateDRTLogBucketCommand.ts +++ b/clients/client-shield/commands/AssociateDRTLogBucketCommand.ts @@ -29,6 +29,7 @@ export class AssociateDRTLogBucketCommand extends $Command< AssociateDRTLogBucketCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateDRTLogBucketCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/AssociateDRTRoleCommand.ts b/clients/client-shield/commands/AssociateDRTRoleCommand.ts index f6d0a5646b9b5..333e1921bfe1b 100644 --- a/clients/client-shield/commands/AssociateDRTRoleCommand.ts +++ b/clients/client-shield/commands/AssociateDRTRoleCommand.ts @@ -34,6 +34,7 @@ export class AssociateDRTRoleCommand extends $Command< AssociateDRTRoleCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssociateDRTRoleCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/AssociateHealthCheckCommand.ts b/clients/client-shield/commands/AssociateHealthCheckCommand.ts index 973e241ce9a6f..5cd847426e97c 100644 --- a/clients/client-shield/commands/AssociateHealthCheckCommand.ts +++ b/clients/client-shield/commands/AssociateHealthCheckCommand.ts @@ -29,6 +29,7 @@ export class AssociateHealthCheckCommand extends $Command< AssociateHealthCheckCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AssociateHealthCheckCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/AssociateProactiveEngagementDetailsCommand.ts b/clients/client-shield/commands/AssociateProactiveEngagementDetailsCommand.ts index d25df3c9bf67c..e60eb3352b72c 100644 --- a/clients/client-shield/commands/AssociateProactiveEngagementDetailsCommand.ts +++ b/clients/client-shield/commands/AssociateProactiveEngagementDetailsCommand.ts @@ -37,6 +37,7 @@ export class AssociateProactiveEngagementDetailsCommand extends $Command< AssociateProactiveEngagementDetailsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AssociateProactiveEngagementDetailsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/CreateProtectionCommand.ts b/clients/client-shield/commands/CreateProtectionCommand.ts index 91f0a6e11a42a..c8dfe53a4b1c7 100644 --- a/clients/client-shield/commands/CreateProtectionCommand.ts +++ b/clients/client-shield/commands/CreateProtectionCommand.ts @@ -30,6 +30,7 @@ export class CreateProtectionCommand extends $Command< CreateProtectionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateProtectionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/CreateProtectionGroupCommand.ts b/clients/client-shield/commands/CreateProtectionGroupCommand.ts index b341e54f416d9..f13036162c13b 100644 --- a/clients/client-shield/commands/CreateProtectionGroupCommand.ts +++ b/clients/client-shield/commands/CreateProtectionGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateProtectionGroupCommand extends $Command< CreateProtectionGroupCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateProtectionGroupCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/CreateSubscriptionCommand.ts b/clients/client-shield/commands/CreateSubscriptionCommand.ts index 90cf123a3ead2..3b5ba8500204d 100644 --- a/clients/client-shield/commands/CreateSubscriptionCommand.ts +++ b/clients/client-shield/commands/CreateSubscriptionCommand.ts @@ -30,6 +30,7 @@ export class CreateSubscriptionCommand extends $Command< CreateSubscriptionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateSubscriptionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DeleteProtectionCommand.ts b/clients/client-shield/commands/DeleteProtectionCommand.ts index f6348f300849e..9d7161f783f91 100644 --- a/clients/client-shield/commands/DeleteProtectionCommand.ts +++ b/clients/client-shield/commands/DeleteProtectionCommand.ts @@ -28,6 +28,7 @@ export class DeleteProtectionCommand extends $Command< DeleteProtectionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProtectionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DeleteProtectionGroupCommand.ts b/clients/client-shield/commands/DeleteProtectionGroupCommand.ts index 6baa7e958550d..2c1a01e232141 100644 --- a/clients/client-shield/commands/DeleteProtectionGroupCommand.ts +++ b/clients/client-shield/commands/DeleteProtectionGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteProtectionGroupCommand extends $Command< DeleteProtectionGroupCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteProtectionGroupCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DeleteSubscriptionCommand.ts b/clients/client-shield/commands/DeleteSubscriptionCommand.ts index 392d2a9953ddc..52884c6fb4b1a 100644 --- a/clients/client-shield/commands/DeleteSubscriptionCommand.ts +++ b/clients/client-shield/commands/DeleteSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteSubscriptionCommand extends $Command< DeleteSubscriptionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSubscriptionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeAttackCommand.ts b/clients/client-shield/commands/DescribeAttackCommand.ts index c31736030767d..d9e79762fe1a9 100644 --- a/clients/client-shield/commands/DescribeAttackCommand.ts +++ b/clients/client-shield/commands/DescribeAttackCommand.ts @@ -28,6 +28,7 @@ export class DescribeAttackCommand extends $Command< DescribeAttackCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAttackCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeAttackStatisticsCommand.ts b/clients/client-shield/commands/DescribeAttackStatisticsCommand.ts index f3e7bed38da46..32d6b1177bcfc 100644 --- a/clients/client-shield/commands/DescribeAttackStatisticsCommand.ts +++ b/clients/client-shield/commands/DescribeAttackStatisticsCommand.ts @@ -30,6 +30,7 @@ export class DescribeAttackStatisticsCommand extends $Command< DescribeAttackStatisticsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAttackStatisticsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeDRTAccessCommand.ts b/clients/client-shield/commands/DescribeDRTAccessCommand.ts index ae90b3d38c705..108ba5ccd02d1 100644 --- a/clients/client-shield/commands/DescribeDRTAccessCommand.ts +++ b/clients/client-shield/commands/DescribeDRTAccessCommand.ts @@ -28,6 +28,7 @@ export class DescribeDRTAccessCommand extends $Command< DescribeDRTAccessCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDRTAccessCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeEmergencyContactSettingsCommand.ts b/clients/client-shield/commands/DescribeEmergencyContactSettingsCommand.ts index 3e53ceb730d9e..13230b6e70183 100644 --- a/clients/client-shield/commands/DescribeEmergencyContactSettingsCommand.ts +++ b/clients/client-shield/commands/DescribeEmergencyContactSettingsCommand.ts @@ -28,6 +28,7 @@ export class DescribeEmergencyContactSettingsCommand extends $Command< DescribeEmergencyContactSettingsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeEmergencyContactSettingsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeProtectionCommand.ts b/clients/client-shield/commands/DescribeProtectionCommand.ts index eb4465a2ff3de..bc53f77923fc0 100644 --- a/clients/client-shield/commands/DescribeProtectionCommand.ts +++ b/clients/client-shield/commands/DescribeProtectionCommand.ts @@ -28,6 +28,7 @@ export class DescribeProtectionCommand extends $Command< DescribeProtectionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProtectionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeProtectionGroupCommand.ts b/clients/client-shield/commands/DescribeProtectionGroupCommand.ts index 8dbcc36852b9b..cda6b238ea851 100644 --- a/clients/client-shield/commands/DescribeProtectionGroupCommand.ts +++ b/clients/client-shield/commands/DescribeProtectionGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeProtectionGroupCommand extends $Command< DescribeProtectionGroupCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeProtectionGroupCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DescribeSubscriptionCommand.ts b/clients/client-shield/commands/DescribeSubscriptionCommand.ts index f13387a0e15bd..ecc176268e787 100644 --- a/clients/client-shield/commands/DescribeSubscriptionCommand.ts +++ b/clients/client-shield/commands/DescribeSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DescribeSubscriptionCommand extends $Command< DescribeSubscriptionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeSubscriptionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DisableProactiveEngagementCommand.ts b/clients/client-shield/commands/DisableProactiveEngagementCommand.ts index c442661678f52..cc73c00e8be05 100644 --- a/clients/client-shield/commands/DisableProactiveEngagementCommand.ts +++ b/clients/client-shield/commands/DisableProactiveEngagementCommand.ts @@ -28,6 +28,7 @@ export class DisableProactiveEngagementCommand extends $Command< DisableProactiveEngagementCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisableProactiveEngagementCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DisassociateDRTLogBucketCommand.ts b/clients/client-shield/commands/DisassociateDRTLogBucketCommand.ts index 191bbdbf33e5e..a1373e99ccba0 100644 --- a/clients/client-shield/commands/DisassociateDRTLogBucketCommand.ts +++ b/clients/client-shield/commands/DisassociateDRTLogBucketCommand.ts @@ -29,6 +29,7 @@ export class DisassociateDRTLogBucketCommand extends $Command< DisassociateDRTLogBucketCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateDRTLogBucketCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DisassociateDRTRoleCommand.ts b/clients/client-shield/commands/DisassociateDRTRoleCommand.ts index 91cb5e658ad68..d857df9274f02 100644 --- a/clients/client-shield/commands/DisassociateDRTRoleCommand.ts +++ b/clients/client-shield/commands/DisassociateDRTRoleCommand.ts @@ -29,6 +29,7 @@ export class DisassociateDRTRoleCommand extends $Command< DisassociateDRTRoleCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateDRTRoleCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/DisassociateHealthCheckCommand.ts b/clients/client-shield/commands/DisassociateHealthCheckCommand.ts index 98b95f21c26b8..c8b4d097ccd1a 100644 --- a/clients/client-shield/commands/DisassociateHealthCheckCommand.ts +++ b/clients/client-shield/commands/DisassociateHealthCheckCommand.ts @@ -29,6 +29,7 @@ export class DisassociateHealthCheckCommand extends $Command< DisassociateHealthCheckCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DisassociateHealthCheckCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/EnableProactiveEngagementCommand.ts b/clients/client-shield/commands/EnableProactiveEngagementCommand.ts index 12f5ce274ae76..fe1e68bab0873 100644 --- a/clients/client-shield/commands/EnableProactiveEngagementCommand.ts +++ b/clients/client-shield/commands/EnableProactiveEngagementCommand.ts @@ -28,6 +28,7 @@ export class EnableProactiveEngagementCommand extends $Command< EnableProactiveEngagementCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class EnableProactiveEngagementCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/GetSubscriptionStateCommand.ts b/clients/client-shield/commands/GetSubscriptionStateCommand.ts index 84bb71cde34c6..1e58edcce4dcd 100644 --- a/clients/client-shield/commands/GetSubscriptionStateCommand.ts +++ b/clients/client-shield/commands/GetSubscriptionStateCommand.ts @@ -28,6 +28,7 @@ export class GetSubscriptionStateCommand extends $Command< GetSubscriptionStateCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSubscriptionStateCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/ListAttacksCommand.ts b/clients/client-shield/commands/ListAttacksCommand.ts index 1543a303720ff..6090f94db2159 100644 --- a/clients/client-shield/commands/ListAttacksCommand.ts +++ b/clients/client-shield/commands/ListAttacksCommand.ts @@ -29,6 +29,7 @@ export class ListAttacksCommand extends $Command< ListAttacksCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAttacksCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/ListProtectionGroupsCommand.ts b/clients/client-shield/commands/ListProtectionGroupsCommand.ts index a5824eb36d8eb..a5f878eea7cfa 100644 --- a/clients/client-shield/commands/ListProtectionGroupsCommand.ts +++ b/clients/client-shield/commands/ListProtectionGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListProtectionGroupsCommand extends $Command< ListProtectionGroupsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProtectionGroupsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/ListProtectionsCommand.ts b/clients/client-shield/commands/ListProtectionsCommand.ts index 2429e1818dab1..029b7728f7857 100644 --- a/clients/client-shield/commands/ListProtectionsCommand.ts +++ b/clients/client-shield/commands/ListProtectionsCommand.ts @@ -28,6 +28,7 @@ export class ListProtectionsCommand extends $Command< ListProtectionsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProtectionsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/ListResourcesInProtectionGroupCommand.ts b/clients/client-shield/commands/ListResourcesInProtectionGroupCommand.ts index f6a6842e5ce00..1e568f2f6022a 100644 --- a/clients/client-shield/commands/ListResourcesInProtectionGroupCommand.ts +++ b/clients/client-shield/commands/ListResourcesInProtectionGroupCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesInProtectionGroupCommand extends $Command< ListResourcesInProtectionGroupCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesInProtectionGroupCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/UpdateEmergencyContactSettingsCommand.ts b/clients/client-shield/commands/UpdateEmergencyContactSettingsCommand.ts index ee3d346644bb1..b16e7a7e598c9 100644 --- a/clients/client-shield/commands/UpdateEmergencyContactSettingsCommand.ts +++ b/clients/client-shield/commands/UpdateEmergencyContactSettingsCommand.ts @@ -28,6 +28,7 @@ export class UpdateEmergencyContactSettingsCommand extends $Command< UpdateEmergencyContactSettingsCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateEmergencyContactSettingsCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/UpdateProtectionGroupCommand.ts b/clients/client-shield/commands/UpdateProtectionGroupCommand.ts index be8985cbb5977..509aacdfaa9fa 100644 --- a/clients/client-shield/commands/UpdateProtectionGroupCommand.ts +++ b/clients/client-shield/commands/UpdateProtectionGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateProtectionGroupCommand extends $Command< UpdateProtectionGroupCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateProtectionGroupCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-shield/commands/UpdateSubscriptionCommand.ts b/clients/client-shield/commands/UpdateSubscriptionCommand.ts index 0c4e54fd0d386..f283af658aeda 100644 --- a/clients/client-shield/commands/UpdateSubscriptionCommand.ts +++ b/clients/client-shield/commands/UpdateSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class UpdateSubscriptionCommand extends $Command< UpdateSubscriptionCommandOutput, ShieldClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSubscriptionCommand extends $Command< configuration: ShieldClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/AddProfilePermissionCommand.ts b/clients/client-signer/commands/AddProfilePermissionCommand.ts index 248535d760e61..21dffc51a00ee 100644 --- a/clients/client-signer/commands/AddProfilePermissionCommand.ts +++ b/clients/client-signer/commands/AddProfilePermissionCommand.ts @@ -28,6 +28,7 @@ export class AddProfilePermissionCommand extends $Command< AddProfilePermissionCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AddProfilePermissionCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/CancelSigningProfileCommand.ts b/clients/client-signer/commands/CancelSigningProfileCommand.ts index 3cd55e5f4cd60..abb8f103d291f 100644 --- a/clients/client-signer/commands/CancelSigningProfileCommand.ts +++ b/clients/client-signer/commands/CancelSigningProfileCommand.ts @@ -31,6 +31,7 @@ export class CancelSigningProfileCommand extends $Command< CancelSigningProfileCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CancelSigningProfileCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/DescribeSigningJobCommand.ts b/clients/client-signer/commands/DescribeSigningJobCommand.ts index 02334826b1744..fd9111809dfa8 100644 --- a/clients/client-signer/commands/DescribeSigningJobCommand.ts +++ b/clients/client-signer/commands/DescribeSigningJobCommand.ts @@ -30,6 +30,7 @@ export class DescribeSigningJobCommand extends $Command< DescribeSigningJobCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeSigningJobCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/GetSigningPlatformCommand.ts b/clients/client-signer/commands/GetSigningPlatformCommand.ts index a1a0951f48ff1..3fcf81fc8b457 100644 --- a/clients/client-signer/commands/GetSigningPlatformCommand.ts +++ b/clients/client-signer/commands/GetSigningPlatformCommand.ts @@ -28,6 +28,7 @@ export class GetSigningPlatformCommand extends $Command< GetSigningPlatformCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSigningPlatformCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/GetSigningProfileCommand.ts b/clients/client-signer/commands/GetSigningProfileCommand.ts index 8f2d351281150..49d745cbeb3c6 100644 --- a/clients/client-signer/commands/GetSigningProfileCommand.ts +++ b/clients/client-signer/commands/GetSigningProfileCommand.ts @@ -28,6 +28,7 @@ export class GetSigningProfileCommand extends $Command< GetSigningProfileCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSigningProfileCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/ListProfilePermissionsCommand.ts b/clients/client-signer/commands/ListProfilePermissionsCommand.ts index 8bea71ad72977..e9f8603454642 100644 --- a/clients/client-signer/commands/ListProfilePermissionsCommand.ts +++ b/clients/client-signer/commands/ListProfilePermissionsCommand.ts @@ -28,6 +28,7 @@ export class ListProfilePermissionsCommand extends $Command< ListProfilePermissionsCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListProfilePermissionsCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/ListSigningJobsCommand.ts b/clients/client-signer/commands/ListSigningJobsCommand.ts index 575d4b428f6f9..b1814430ec04f 100644 --- a/clients/client-signer/commands/ListSigningJobsCommand.ts +++ b/clients/client-signer/commands/ListSigningJobsCommand.ts @@ -34,6 +34,7 @@ export class ListSigningJobsCommand extends $Command< ListSigningJobsCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListSigningJobsCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/ListSigningPlatformsCommand.ts b/clients/client-signer/commands/ListSigningPlatformsCommand.ts index 423ddae56d762..2699e31ea9c6f 100644 --- a/clients/client-signer/commands/ListSigningPlatformsCommand.ts +++ b/clients/client-signer/commands/ListSigningPlatformsCommand.ts @@ -34,6 +34,7 @@ export class ListSigningPlatformsCommand extends $Command< ListSigningPlatformsCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListSigningPlatformsCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/ListSigningProfilesCommand.ts b/clients/client-signer/commands/ListSigningProfilesCommand.ts index 39c62613386e1..8fdbf22508f3b 100644 --- a/clients/client-signer/commands/ListSigningProfilesCommand.ts +++ b/clients/client-signer/commands/ListSigningProfilesCommand.ts @@ -35,6 +35,7 @@ export class ListSigningProfilesCommand extends $Command< ListSigningProfilesCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListSigningProfilesCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/ListTagsForResourceCommand.ts b/clients/client-signer/commands/ListTagsForResourceCommand.ts index 65fef32f89173..c82a42c948023 100644 --- a/clients/client-signer/commands/ListTagsForResourceCommand.ts +++ b/clients/client-signer/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/PutSigningProfileCommand.ts b/clients/client-signer/commands/PutSigningProfileCommand.ts index 997d31b0d1d8c..c79c54575b6c1 100644 --- a/clients/client-signer/commands/PutSigningProfileCommand.ts +++ b/clients/client-signer/commands/PutSigningProfileCommand.ts @@ -30,6 +30,7 @@ export class PutSigningProfileCommand extends $Command< PutSigningProfileCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class PutSigningProfileCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/RemoveProfilePermissionCommand.ts b/clients/client-signer/commands/RemoveProfilePermissionCommand.ts index ecfe1cae4e156..3e7a39f24d74d 100644 --- a/clients/client-signer/commands/RemoveProfilePermissionCommand.ts +++ b/clients/client-signer/commands/RemoveProfilePermissionCommand.ts @@ -28,6 +28,7 @@ export class RemoveProfilePermissionCommand extends $Command< RemoveProfilePermissionCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveProfilePermissionCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/RevokeSignatureCommand.ts b/clients/client-signer/commands/RevokeSignatureCommand.ts index 7e158d0002c45..c7a2dcb1d5c05 100644 --- a/clients/client-signer/commands/RevokeSignatureCommand.ts +++ b/clients/client-signer/commands/RevokeSignatureCommand.ts @@ -29,6 +29,7 @@ export class RevokeSignatureCommand extends $Command< RevokeSignatureCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RevokeSignatureCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/RevokeSigningProfileCommand.ts b/clients/client-signer/commands/RevokeSigningProfileCommand.ts index da4f112df0c68..a0b2eb589cc39 100644 --- a/clients/client-signer/commands/RevokeSigningProfileCommand.ts +++ b/clients/client-signer/commands/RevokeSigningProfileCommand.ts @@ -30,6 +30,7 @@ export class RevokeSigningProfileCommand extends $Command< RevokeSigningProfileCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class RevokeSigningProfileCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/StartSigningJobCommand.ts b/clients/client-signer/commands/StartSigningJobCommand.ts index 9482c67dae759..6a769188f3571 100644 --- a/clients/client-signer/commands/StartSigningJobCommand.ts +++ b/clients/client-signer/commands/StartSigningJobCommand.ts @@ -55,6 +55,7 @@ export class StartSigningJobCommand extends $Command< StartSigningJobCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class StartSigningJobCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/TagResourceCommand.ts b/clients/client-signer/commands/TagResourceCommand.ts index 277cf9ccd5499..cf3d9a53ea401 100644 --- a/clients/client-signer/commands/TagResourceCommand.ts +++ b/clients/client-signer/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-signer/commands/UntagResourceCommand.ts b/clients/client-signer/commands/UntagResourceCommand.ts index 7e20e2df2f975..531d8b5c61613 100644 --- a/clients/client-signer/commands/UntagResourceCommand.ts +++ b/clients/client-signer/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SignerClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/CreateAppCommand.ts b/clients/client-sms/commands/CreateAppCommand.ts index 902f51aec700a..1553538987917 100644 --- a/clients/client-sms/commands/CreateAppCommand.ts +++ b/clients/client-sms/commands/CreateAppCommand.ts @@ -22,6 +22,7 @@ export type CreateAppCommandOutput = CreateAppResponse & __MetadataBearer; * server group contain one or more servers.

*/ export class CreateAppCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class CreateAppCommand 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-sms/commands/CreateReplicationJobCommand.ts b/clients/client-sms/commands/CreateReplicationJobCommand.ts index 5d92e97c6be62..626b3cab46033 100644 --- a/clients/client-sms/commands/CreateReplicationJobCommand.ts +++ b/clients/client-sms/commands/CreateReplicationJobCommand.ts @@ -30,6 +30,7 @@ export class CreateReplicationJobCommand extends $Command< CreateReplicationJobCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateReplicationJobCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DeleteAppCommand.ts b/clients/client-sms/commands/DeleteAppCommand.ts index 1b7e581975c0c..03e03268a917c 100644 --- a/clients/client-sms/commands/DeleteAppCommand.ts +++ b/clients/client-sms/commands/DeleteAppCommand.ts @@ -22,6 +22,7 @@ export type DeleteAppCommandOutput = DeleteAppResponse & __MetadataBearer; * the application and all AWS SMS replication jobs for servers in the application.

*/ export class DeleteAppCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class DeleteAppCommand 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-sms/commands/DeleteAppLaunchConfigurationCommand.ts b/clients/client-sms/commands/DeleteAppLaunchConfigurationCommand.ts index 03e96b5a6e070..161a02cefc7e1 100644 --- a/clients/client-sms/commands/DeleteAppLaunchConfigurationCommand.ts +++ b/clients/client-sms/commands/DeleteAppLaunchConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppLaunchConfigurationCommand extends $Command< DeleteAppLaunchConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppLaunchConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DeleteAppReplicationConfigurationCommand.ts b/clients/client-sms/commands/DeleteAppReplicationConfigurationCommand.ts index e538a022d96d8..b66e408cc1d90 100644 --- a/clients/client-sms/commands/DeleteAppReplicationConfigurationCommand.ts +++ b/clients/client-sms/commands/DeleteAppReplicationConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DeleteAppReplicationConfigurationCommand extends $Command< DeleteAppReplicationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAppReplicationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DeleteAppValidationConfigurationCommand.ts b/clients/client-sms/commands/DeleteAppValidationConfigurationCommand.ts index 020777e622607..9b4577eaed068 100644 --- a/clients/client-sms/commands/DeleteAppValidationConfigurationCommand.ts +++ b/clients/client-sms/commands/DeleteAppValidationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DeleteAppValidationConfigurationCommand extends $Command< DeleteAppValidationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteAppValidationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DeleteReplicationJobCommand.ts b/clients/client-sms/commands/DeleteReplicationJobCommand.ts index a9569c7388825..4e268aef19b52 100644 --- a/clients/client-sms/commands/DeleteReplicationJobCommand.ts +++ b/clients/client-sms/commands/DeleteReplicationJobCommand.ts @@ -31,6 +31,7 @@ export class DeleteReplicationJobCommand extends $Command< DeleteReplicationJobCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteReplicationJobCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DeleteServerCatalogCommand.ts b/clients/client-sms/commands/DeleteServerCatalogCommand.ts index bf3a1a04fb54f..bc0e9434800f3 100644 --- a/clients/client-sms/commands/DeleteServerCatalogCommand.ts +++ b/clients/client-sms/commands/DeleteServerCatalogCommand.ts @@ -28,6 +28,7 @@ export class DeleteServerCatalogCommand extends $Command< DeleteServerCatalogCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteServerCatalogCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/DisassociateConnectorCommand.ts b/clients/client-sms/commands/DisassociateConnectorCommand.ts index db4cce169c25d..9ed242b7e517b 100644 --- a/clients/client-sms/commands/DisassociateConnectorCommand.ts +++ b/clients/client-sms/commands/DisassociateConnectorCommand.ts @@ -30,6 +30,7 @@ export class DisassociateConnectorCommand extends $Command< DisassociateConnectorCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DisassociateConnectorCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GenerateChangeSetCommand.ts b/clients/client-sms/commands/GenerateChangeSetCommand.ts index 7cd158f825a2f..862df0bd3b317 100644 --- a/clients/client-sms/commands/GenerateChangeSetCommand.ts +++ b/clients/client-sms/commands/GenerateChangeSetCommand.ts @@ -29,6 +29,7 @@ export class GenerateChangeSetCommand extends $Command< GenerateChangeSetCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GenerateChangeSetCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GenerateTemplateCommand.ts b/clients/client-sms/commands/GenerateTemplateCommand.ts index 91dda0bca7031..d31b5fff76018 100644 --- a/clients/client-sms/commands/GenerateTemplateCommand.ts +++ b/clients/client-sms/commands/GenerateTemplateCommand.ts @@ -29,6 +29,7 @@ export class GenerateTemplateCommand extends $Command< GenerateTemplateCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GenerateTemplateCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetAppCommand.ts b/clients/client-sms/commands/GetAppCommand.ts index 148833444727a..4430ba99bdf6f 100644 --- a/clients/client-sms/commands/GetAppCommand.ts +++ b/clients/client-sms/commands/GetAppCommand.ts @@ -21,6 +21,7 @@ export type GetAppCommandOutput = GetAppResponse & __MetadataBearer; *

Retrieve information about the specified application.

*/ 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-sms/commands/GetAppLaunchConfigurationCommand.ts b/clients/client-sms/commands/GetAppLaunchConfigurationCommand.ts index adaf7cfb475bc..7cbe4e67eb7a9 100644 --- a/clients/client-sms/commands/GetAppLaunchConfigurationCommand.ts +++ b/clients/client-sms/commands/GetAppLaunchConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetAppLaunchConfigurationCommand extends $Command< GetAppLaunchConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppLaunchConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetAppReplicationConfigurationCommand.ts b/clients/client-sms/commands/GetAppReplicationConfigurationCommand.ts index 1d4ab73282d18..42766986f61ca 100644 --- a/clients/client-sms/commands/GetAppReplicationConfigurationCommand.ts +++ b/clients/client-sms/commands/GetAppReplicationConfigurationCommand.ts @@ -29,6 +29,7 @@ export class GetAppReplicationConfigurationCommand extends $Command< GetAppReplicationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetAppReplicationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetAppValidationConfigurationCommand.ts b/clients/client-sms/commands/GetAppValidationConfigurationCommand.ts index eaca8a5ea584d..e95d2aae0887e 100644 --- a/clients/client-sms/commands/GetAppValidationConfigurationCommand.ts +++ b/clients/client-sms/commands/GetAppValidationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class GetAppValidationConfigurationCommand extends $Command< GetAppValidationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppValidationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetAppValidationOutputCommand.ts b/clients/client-sms/commands/GetAppValidationOutputCommand.ts index df19c6ecefdcb..7c3ec6207ac9a 100644 --- a/clients/client-sms/commands/GetAppValidationOutputCommand.ts +++ b/clients/client-sms/commands/GetAppValidationOutputCommand.ts @@ -28,6 +28,7 @@ export class GetAppValidationOutputCommand extends $Command< GetAppValidationOutputCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAppValidationOutputCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetConnectorsCommand.ts b/clients/client-sms/commands/GetConnectorsCommand.ts index ae655d47a2290..4e0a72d5f5c14 100644 --- a/clients/client-sms/commands/GetConnectorsCommand.ts +++ b/clients/client-sms/commands/GetConnectorsCommand.ts @@ -28,6 +28,7 @@ export class GetConnectorsCommand extends $Command< GetConnectorsCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetConnectorsCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetReplicationJobsCommand.ts b/clients/client-sms/commands/GetReplicationJobsCommand.ts index 48d35ece5ae06..3d3dfb5a8aee7 100644 --- a/clients/client-sms/commands/GetReplicationJobsCommand.ts +++ b/clients/client-sms/commands/GetReplicationJobsCommand.ts @@ -28,6 +28,7 @@ export class GetReplicationJobsCommand extends $Command< GetReplicationJobsCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetReplicationJobsCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetReplicationRunsCommand.ts b/clients/client-sms/commands/GetReplicationRunsCommand.ts index 97a9ca5744d4d..69bc977c3a68c 100644 --- a/clients/client-sms/commands/GetReplicationRunsCommand.ts +++ b/clients/client-sms/commands/GetReplicationRunsCommand.ts @@ -28,6 +28,7 @@ export class GetReplicationRunsCommand extends $Command< GetReplicationRunsCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetReplicationRunsCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/GetServersCommand.ts b/clients/client-sms/commands/GetServersCommand.ts index b1639db3e5cdd..681587ef06ce2 100644 --- a/clients/client-sms/commands/GetServersCommand.ts +++ b/clients/client-sms/commands/GetServersCommand.ts @@ -29,6 +29,7 @@ export class GetServersCommand extends $Command< GetServersCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetServersCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/ImportAppCatalogCommand.ts b/clients/client-sms/commands/ImportAppCatalogCommand.ts index 1e1936a220de9..da3ffb25930d9 100644 --- a/clients/client-sms/commands/ImportAppCatalogCommand.ts +++ b/clients/client-sms/commands/ImportAppCatalogCommand.ts @@ -28,6 +28,7 @@ export class ImportAppCatalogCommand extends $Command< ImportAppCatalogCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ImportAppCatalogCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/ImportServerCatalogCommand.ts b/clients/client-sms/commands/ImportServerCatalogCommand.ts index 6496f6f42911d..8d168e29f9990 100644 --- a/clients/client-sms/commands/ImportServerCatalogCommand.ts +++ b/clients/client-sms/commands/ImportServerCatalogCommand.ts @@ -31,6 +31,7 @@ export class ImportServerCatalogCommand extends $Command< ImportServerCatalogCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ImportServerCatalogCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/LaunchAppCommand.ts b/clients/client-sms/commands/LaunchAppCommand.ts index 7bf405f4050f1..01a38fec45070 100644 --- a/clients/client-sms/commands/LaunchAppCommand.ts +++ b/clients/client-sms/commands/LaunchAppCommand.ts @@ -21,6 +21,7 @@ export type LaunchAppCommandOutput = LaunchAppResponse & __MetadataBearer; *

Launches the specified application as a stack in AWS CloudFormation.

*/ export class LaunchAppCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class LaunchAppCommand 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-sms/commands/ListAppsCommand.ts b/clients/client-sms/commands/ListAppsCommand.ts index 2937fde3e74a8..1a620972bd477 100644 --- a/clients/client-sms/commands/ListAppsCommand.ts +++ b/clients/client-sms/commands/ListAppsCommand.ts @@ -21,6 +21,7 @@ export type ListAppsCommandOutput = ListAppsResponse & __MetadataBearer; *

Retrieves summaries for all applications.

*/ export class ListAppsCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class ListAppsCommand 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-sms/commands/NotifyAppValidationOutputCommand.ts b/clients/client-sms/commands/NotifyAppValidationOutputCommand.ts index 6698b669e4f33..2d17cedc6244c 100644 --- a/clients/client-sms/commands/NotifyAppValidationOutputCommand.ts +++ b/clients/client-sms/commands/NotifyAppValidationOutputCommand.ts @@ -28,6 +28,7 @@ export class NotifyAppValidationOutputCommand extends $Command< NotifyAppValidationOutputCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NotifyAppValidationOutputCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/PutAppLaunchConfigurationCommand.ts b/clients/client-sms/commands/PutAppLaunchConfigurationCommand.ts index e13670556a82c..cd836faf381e0 100644 --- a/clients/client-sms/commands/PutAppLaunchConfigurationCommand.ts +++ b/clients/client-sms/commands/PutAppLaunchConfigurationCommand.ts @@ -28,6 +28,7 @@ export class PutAppLaunchConfigurationCommand extends $Command< PutAppLaunchConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAppLaunchConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/PutAppReplicationConfigurationCommand.ts b/clients/client-sms/commands/PutAppReplicationConfigurationCommand.ts index 733783c97c111..f194dab57cde4 100644 --- a/clients/client-sms/commands/PutAppReplicationConfigurationCommand.ts +++ b/clients/client-sms/commands/PutAppReplicationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class PutAppReplicationConfigurationCommand extends $Command< PutAppReplicationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAppReplicationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/PutAppValidationConfigurationCommand.ts b/clients/client-sms/commands/PutAppValidationConfigurationCommand.ts index 1e99cd758f378..03da69e7e7f3e 100644 --- a/clients/client-sms/commands/PutAppValidationConfigurationCommand.ts +++ b/clients/client-sms/commands/PutAppValidationConfigurationCommand.ts @@ -28,6 +28,7 @@ export class PutAppValidationConfigurationCommand extends $Command< PutAppValidationConfigurationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAppValidationConfigurationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/StartAppReplicationCommand.ts b/clients/client-sms/commands/StartAppReplicationCommand.ts index ad3352008c5a1..d4124fd66e6d0 100644 --- a/clients/client-sms/commands/StartAppReplicationCommand.ts +++ b/clients/client-sms/commands/StartAppReplicationCommand.ts @@ -29,6 +29,7 @@ export class StartAppReplicationCommand extends $Command< StartAppReplicationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartAppReplicationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/StartOnDemandAppReplicationCommand.ts b/clients/client-sms/commands/StartOnDemandAppReplicationCommand.ts index e89427b4524b8..7c246f9a598b0 100644 --- a/clients/client-sms/commands/StartOnDemandAppReplicationCommand.ts +++ b/clients/client-sms/commands/StartOnDemandAppReplicationCommand.ts @@ -28,6 +28,7 @@ export class StartOnDemandAppReplicationCommand extends $Command< StartOnDemandAppReplicationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartOnDemandAppReplicationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/StartOnDemandReplicationRunCommand.ts b/clients/client-sms/commands/StartOnDemandReplicationRunCommand.ts index 0368eafd7e13c..819a5cbbc83fc 100644 --- a/clients/client-sms/commands/StartOnDemandReplicationRunCommand.ts +++ b/clients/client-sms/commands/StartOnDemandReplicationRunCommand.ts @@ -32,6 +32,7 @@ export class StartOnDemandReplicationRunCommand extends $Command< StartOnDemandReplicationRunCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class StartOnDemandReplicationRunCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/StopAppReplicationCommand.ts b/clients/client-sms/commands/StopAppReplicationCommand.ts index 5336f02b5bf85..b5fdc4456ced5 100644 --- a/clients/client-sms/commands/StopAppReplicationCommand.ts +++ b/clients/client-sms/commands/StopAppReplicationCommand.ts @@ -29,6 +29,7 @@ export class StopAppReplicationCommand extends $Command< StopAppReplicationCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StopAppReplicationCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/TerminateAppCommand.ts b/clients/client-sms/commands/TerminateAppCommand.ts index 18591b86b53ee..8d9f9e0bed904 100644 --- a/clients/client-sms/commands/TerminateAppCommand.ts +++ b/clients/client-sms/commands/TerminateAppCommand.ts @@ -28,6 +28,7 @@ export class TerminateAppCommand extends $Command< TerminateAppCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TerminateAppCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sms/commands/UpdateAppCommand.ts b/clients/client-sms/commands/UpdateAppCommand.ts index cbb463ddacdce..f4b2d09dadbd2 100644 --- a/clients/client-sms/commands/UpdateAppCommand.ts +++ b/clients/client-sms/commands/UpdateAppCommand.ts @@ -21,6 +21,7 @@ export type UpdateAppCommandOutput = UpdateAppResponse & __MetadataBearer; *

Updates the specified application.

*/ export class UpdateAppCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class UpdateAppCommand 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-sms/commands/UpdateReplicationJobCommand.ts b/clients/client-sms/commands/UpdateReplicationJobCommand.ts index db8b5918abb7a..695790922731b 100644 --- a/clients/client-sms/commands/UpdateReplicationJobCommand.ts +++ b/clients/client-sms/commands/UpdateReplicationJobCommand.ts @@ -28,6 +28,7 @@ export class UpdateReplicationJobCommand extends $Command< UpdateReplicationJobCommandOutput, SMSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateReplicationJobCommand extends $Command< configuration: SMSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CancelClusterCommand.ts b/clients/client-snowball/commands/CancelClusterCommand.ts index 5b740b30a0727..1a60abcc3f2a0 100644 --- a/clients/client-snowball/commands/CancelClusterCommand.ts +++ b/clients/client-snowball/commands/CancelClusterCommand.ts @@ -30,6 +30,7 @@ export class CancelClusterCommand extends $Command< CancelClusterCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CancelClusterCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CancelJobCommand.ts b/clients/client-snowball/commands/CancelJobCommand.ts index 2a45988559af1..9e0211ce868a8 100644 --- a/clients/client-snowball/commands/CancelJobCommand.ts +++ b/clients/client-snowball/commands/CancelJobCommand.ts @@ -28,6 +28,7 @@ export class CancelJobCommand extends $Command< CancelJobCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CancelJobCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CreateAddressCommand.ts b/clients/client-snowball/commands/CreateAddressCommand.ts index ccc1b32b08dc0..bb0651b51d346 100644 --- a/clients/client-snowball/commands/CreateAddressCommand.ts +++ b/clients/client-snowball/commands/CreateAddressCommand.ts @@ -31,6 +31,7 @@ export class CreateAddressCommand extends $Command< CreateAddressCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateAddressCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CreateClusterCommand.ts b/clients/client-snowball/commands/CreateClusterCommand.ts index 94e99ad566a3b..46f8b7a9ccc92 100644 --- a/clients/client-snowball/commands/CreateClusterCommand.ts +++ b/clients/client-snowball/commands/CreateClusterCommand.ts @@ -29,6 +29,7 @@ export class CreateClusterCommand extends $Command< CreateClusterCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateClusterCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CreateJobCommand.ts b/clients/client-snowball/commands/CreateJobCommand.ts index 8782e5f6158cb..6ee5153a4752e 100644 --- a/clients/client-snowball/commands/CreateJobCommand.ts +++ b/clients/client-snowball/commands/CreateJobCommand.ts @@ -29,6 +29,7 @@ export class CreateJobCommand extends $Command< CreateJobCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateJobCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/CreateReturnShippingLabelCommand.ts b/clients/client-snowball/commands/CreateReturnShippingLabelCommand.ts index 5f652b368573e..b245d70d61783 100644 --- a/clients/client-snowball/commands/CreateReturnShippingLabelCommand.ts +++ b/clients/client-snowball/commands/CreateReturnShippingLabelCommand.ts @@ -28,6 +28,7 @@ export class CreateReturnShippingLabelCommand extends $Command< CreateReturnShippingLabelCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateReturnShippingLabelCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/DescribeAddressCommand.ts b/clients/client-snowball/commands/DescribeAddressCommand.ts index b151eaa0e48fe..af607ed5d862d 100644 --- a/clients/client-snowball/commands/DescribeAddressCommand.ts +++ b/clients/client-snowball/commands/DescribeAddressCommand.ts @@ -29,6 +29,7 @@ export class DescribeAddressCommand extends $Command< DescribeAddressCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAddressCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/DescribeAddressesCommand.ts b/clients/client-snowball/commands/DescribeAddressesCommand.ts index 72cfd7f28ce28..6c3966820d665 100644 --- a/clients/client-snowball/commands/DescribeAddressesCommand.ts +++ b/clients/client-snowball/commands/DescribeAddressesCommand.ts @@ -30,6 +30,7 @@ export class DescribeAddressesCommand extends $Command< DescribeAddressesCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAddressesCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/DescribeClusterCommand.ts b/clients/client-snowball/commands/DescribeClusterCommand.ts index e83e460fdd644..0d49c273de0f1 100644 --- a/clients/client-snowball/commands/DescribeClusterCommand.ts +++ b/clients/client-snowball/commands/DescribeClusterCommand.ts @@ -29,6 +29,7 @@ export class DescribeClusterCommand extends $Command< DescribeClusterCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeClusterCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/DescribeJobCommand.ts b/clients/client-snowball/commands/DescribeJobCommand.ts index 85be766de58b2..dcc2af9bc89c3 100644 --- a/clients/client-snowball/commands/DescribeJobCommand.ts +++ b/clients/client-snowball/commands/DescribeJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeJobCommand extends $Command< DescribeJobCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeJobCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/DescribeReturnShippingLabelCommand.ts b/clients/client-snowball/commands/DescribeReturnShippingLabelCommand.ts index 887dabf585dd3..7e814ebff68cd 100644 --- a/clients/client-snowball/commands/DescribeReturnShippingLabelCommand.ts +++ b/clients/client-snowball/commands/DescribeReturnShippingLabelCommand.ts @@ -28,6 +28,7 @@ export class DescribeReturnShippingLabelCommand extends $Command< DescribeReturnShippingLabelCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeReturnShippingLabelCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/GetJobManifestCommand.ts b/clients/client-snowball/commands/GetJobManifestCommand.ts index ae6e7ce944928..408a00170dc19 100644 --- a/clients/client-snowball/commands/GetJobManifestCommand.ts +++ b/clients/client-snowball/commands/GetJobManifestCommand.ts @@ -46,6 +46,7 @@ export class GetJobManifestCommand extends $Command< GetJobManifestCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class GetJobManifestCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/GetJobUnlockCodeCommand.ts b/clients/client-snowball/commands/GetJobUnlockCodeCommand.ts index f7a0f3a8a75f1..60a930f73c876 100644 --- a/clients/client-snowball/commands/GetJobUnlockCodeCommand.ts +++ b/clients/client-snowball/commands/GetJobUnlockCodeCommand.ts @@ -40,6 +40,7 @@ export class GetJobUnlockCodeCommand extends $Command< GetJobUnlockCodeCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetJobUnlockCodeCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/GetSnowballUsageCommand.ts b/clients/client-snowball/commands/GetSnowballUsageCommand.ts index 08bf754b4995a..c3e97ee18bb8b 100644 --- a/clients/client-snowball/commands/GetSnowballUsageCommand.ts +++ b/clients/client-snowball/commands/GetSnowballUsageCommand.ts @@ -32,6 +32,7 @@ export class GetSnowballUsageCommand extends $Command< GetSnowballUsageCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetSnowballUsageCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/GetSoftwareUpdatesCommand.ts b/clients/client-snowball/commands/GetSoftwareUpdatesCommand.ts index 2ad0b583d1145..ee8b8e4eefad4 100644 --- a/clients/client-snowball/commands/GetSoftwareUpdatesCommand.ts +++ b/clients/client-snowball/commands/GetSoftwareUpdatesCommand.ts @@ -29,6 +29,7 @@ export class GetSoftwareUpdatesCommand extends $Command< GetSoftwareUpdatesCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSoftwareUpdatesCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/ListClusterJobsCommand.ts b/clients/client-snowball/commands/ListClusterJobsCommand.ts index 13dc278b4682f..fc650827d6eb1 100644 --- a/clients/client-snowball/commands/ListClusterJobsCommand.ts +++ b/clients/client-snowball/commands/ListClusterJobsCommand.ts @@ -30,6 +30,7 @@ export class ListClusterJobsCommand extends $Command< ListClusterJobsCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListClusterJobsCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/ListClustersCommand.ts b/clients/client-snowball/commands/ListClustersCommand.ts index 0afd577e6269f..54bc84544bf42 100644 --- a/clients/client-snowball/commands/ListClustersCommand.ts +++ b/clients/client-snowball/commands/ListClustersCommand.ts @@ -30,6 +30,7 @@ export class ListClustersCommand extends $Command< ListClustersCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListClustersCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/ListCompatibleImagesCommand.ts b/clients/client-snowball/commands/ListCompatibleImagesCommand.ts index 7a647816f03a2..c0bcea5891452 100644 --- a/clients/client-snowball/commands/ListCompatibleImagesCommand.ts +++ b/clients/client-snowball/commands/ListCompatibleImagesCommand.ts @@ -32,6 +32,7 @@ export class ListCompatibleImagesCommand extends $Command< ListCompatibleImagesCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListCompatibleImagesCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/ListJobsCommand.ts b/clients/client-snowball/commands/ListJobsCommand.ts index e1c02ba486453..51dc06ea21b9e 100644 --- a/clients/client-snowball/commands/ListJobsCommand.ts +++ b/clients/client-snowball/commands/ListJobsCommand.ts @@ -29,6 +29,7 @@ export class ListJobsCommand extends $Command< ListJobsCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListJobsCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/UpdateClusterCommand.ts b/clients/client-snowball/commands/UpdateClusterCommand.ts index 01a94ab707447..206544eedd6d0 100644 --- a/clients/client-snowball/commands/UpdateClusterCommand.ts +++ b/clients/client-snowball/commands/UpdateClusterCommand.ts @@ -31,6 +31,7 @@ export class UpdateClusterCommand extends $Command< UpdateClusterCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateClusterCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/UpdateJobCommand.ts b/clients/client-snowball/commands/UpdateJobCommand.ts index 488890227ca21..1ff2f632e8cd1 100644 --- a/clients/client-snowball/commands/UpdateJobCommand.ts +++ b/clients/client-snowball/commands/UpdateJobCommand.ts @@ -27,6 +27,7 @@ export class UpdateJobCommand extends $Command< UpdateJobCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class UpdateJobCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-snowball/commands/UpdateJobShipmentStateCommand.ts b/clients/client-snowball/commands/UpdateJobShipmentStateCommand.ts index aee92ca56995f..8b28594356fc1 100644 --- a/clients/client-snowball/commands/UpdateJobShipmentStateCommand.ts +++ b/clients/client-snowball/commands/UpdateJobShipmentStateCommand.ts @@ -28,6 +28,7 @@ export class UpdateJobShipmentStateCommand extends $Command< UpdateJobShipmentStateCommandOutput, SnowballClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateJobShipmentStateCommand extends $Command< configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/AddPermissionCommand.ts b/clients/client-sns/commands/AddPermissionCommand.ts index ed04ac1cebdb5..cf0f405909beb 100644 --- a/clients/client-sns/commands/AddPermissionCommand.ts +++ b/clients/client-sns/commands/AddPermissionCommand.ts @@ -29,6 +29,7 @@ export class AddPermissionCommand extends $Command< AddPermissionCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AddPermissionCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/CheckIfPhoneNumberIsOptedOutCommand.ts b/clients/client-sns/commands/CheckIfPhoneNumberIsOptedOutCommand.ts index 30c2cd6f79105..e6525ca563cfc 100644 --- a/clients/client-sns/commands/CheckIfPhoneNumberIsOptedOutCommand.ts +++ b/clients/client-sns/commands/CheckIfPhoneNumberIsOptedOutCommand.ts @@ -32,6 +32,7 @@ export class CheckIfPhoneNumberIsOptedOutCommand extends $Command< CheckIfPhoneNumberIsOptedOutCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CheckIfPhoneNumberIsOptedOutCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ConfirmSubscriptionCommand.ts b/clients/client-sns/commands/ConfirmSubscriptionCommand.ts index 4bb98b0f45ea0..f634906b109ed 100644 --- a/clients/client-sns/commands/ConfirmSubscriptionCommand.ts +++ b/clients/client-sns/commands/ConfirmSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class ConfirmSubscriptionCommand extends $Command< ConfirmSubscriptionCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ConfirmSubscriptionCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/CreatePlatformApplicationCommand.ts b/clients/client-sns/commands/CreatePlatformApplicationCommand.ts index e6fdaa6d6e08e..04855748b4997 100644 --- a/clients/client-sns/commands/CreatePlatformApplicationCommand.ts +++ b/clients/client-sns/commands/CreatePlatformApplicationCommand.ts @@ -66,6 +66,7 @@ export class CreatePlatformApplicationCommand extends $Command< CreatePlatformApplicationCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class CreatePlatformApplicationCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/CreatePlatformEndpointCommand.ts b/clients/client-sns/commands/CreatePlatformEndpointCommand.ts index 96e673f082790..56c9b1d93e15f 100644 --- a/clients/client-sns/commands/CreatePlatformEndpointCommand.ts +++ b/clients/client-sns/commands/CreatePlatformEndpointCommand.ts @@ -41,6 +41,7 @@ export class CreatePlatformEndpointCommand extends $Command< CreatePlatformEndpointCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreatePlatformEndpointCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/CreateTopicCommand.ts b/clients/client-sns/commands/CreateTopicCommand.ts index 4fa0ada2e911e..07e3c5c5d8fc7 100644 --- a/clients/client-sns/commands/CreateTopicCommand.ts +++ b/clients/client-sns/commands/CreateTopicCommand.ts @@ -28,6 +28,7 @@ export class CreateTopicCommand extends $Command< CreateTopicCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTopicCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/DeleteEndpointCommand.ts b/clients/client-sns/commands/DeleteEndpointCommand.ts index 45cf331ce67eb..69111fea3bf97 100644 --- a/clients/client-sns/commands/DeleteEndpointCommand.ts +++ b/clients/client-sns/commands/DeleteEndpointCommand.ts @@ -32,6 +32,7 @@ export class DeleteEndpointCommand extends $Command< DeleteEndpointCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteEndpointCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/DeletePlatformApplicationCommand.ts b/clients/client-sns/commands/DeletePlatformApplicationCommand.ts index 1d4eb3227afd5..4021a76bc2c97 100644 --- a/clients/client-sns/commands/DeletePlatformApplicationCommand.ts +++ b/clients/client-sns/commands/DeletePlatformApplicationCommand.ts @@ -31,6 +31,7 @@ export class DeletePlatformApplicationCommand extends $Command< DeletePlatformApplicationCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeletePlatformApplicationCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/DeleteTopicCommand.ts b/clients/client-sns/commands/DeleteTopicCommand.ts index cdbe619abdf65..5d82706b5808a 100644 --- a/clients/client-sns/commands/DeleteTopicCommand.ts +++ b/clients/client-sns/commands/DeleteTopicCommand.ts @@ -28,6 +28,7 @@ export class DeleteTopicCommand extends $Command< DeleteTopicCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTopicCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/GetEndpointAttributesCommand.ts b/clients/client-sns/commands/GetEndpointAttributesCommand.ts index e375b1df80562..cd23e670540e7 100644 --- a/clients/client-sns/commands/GetEndpointAttributesCommand.ts +++ b/clients/client-sns/commands/GetEndpointAttributesCommand.ts @@ -30,6 +30,7 @@ export class GetEndpointAttributesCommand extends $Command< GetEndpointAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetEndpointAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/GetPlatformApplicationAttributesCommand.ts b/clients/client-sns/commands/GetPlatformApplicationAttributesCommand.ts index 38fcd11171bea..e7c67903cc7fb 100644 --- a/clients/client-sns/commands/GetPlatformApplicationAttributesCommand.ts +++ b/clients/client-sns/commands/GetPlatformApplicationAttributesCommand.ts @@ -30,6 +30,7 @@ export class GetPlatformApplicationAttributesCommand extends $Command< GetPlatformApplicationAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetPlatformApplicationAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/GetSMSAttributesCommand.ts b/clients/client-sns/commands/GetSMSAttributesCommand.ts index 08503b627b01c..dbd36a81c2eae 100644 --- a/clients/client-sns/commands/GetSMSAttributesCommand.ts +++ b/clients/client-sns/commands/GetSMSAttributesCommand.ts @@ -29,6 +29,7 @@ export class GetSMSAttributesCommand extends $Command< GetSMSAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSMSAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/GetSubscriptionAttributesCommand.ts b/clients/client-sns/commands/GetSubscriptionAttributesCommand.ts index 2cf538e26858b..85800b53a4f68 100644 --- a/clients/client-sns/commands/GetSubscriptionAttributesCommand.ts +++ b/clients/client-sns/commands/GetSubscriptionAttributesCommand.ts @@ -28,6 +28,7 @@ export class GetSubscriptionAttributesCommand extends $Command< GetSubscriptionAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSubscriptionAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/GetTopicAttributesCommand.ts b/clients/client-sns/commands/GetTopicAttributesCommand.ts index 73ea0213f87ae..39f4cd9ef4ee1 100644 --- a/clients/client-sns/commands/GetTopicAttributesCommand.ts +++ b/clients/client-sns/commands/GetTopicAttributesCommand.ts @@ -29,6 +29,7 @@ export class GetTopicAttributesCommand extends $Command< GetTopicAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTopicAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListEndpointsByPlatformApplicationCommand.ts b/clients/client-sns/commands/ListEndpointsByPlatformApplicationCommand.ts index 74bd889cf47cf..43f6a9bde8811 100644 --- a/clients/client-sns/commands/ListEndpointsByPlatformApplicationCommand.ts +++ b/clients/client-sns/commands/ListEndpointsByPlatformApplicationCommand.ts @@ -41,6 +41,7 @@ export class ListEndpointsByPlatformApplicationCommand extends $Command< ListEndpointsByPlatformApplicationCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class ListEndpointsByPlatformApplicationCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListPhoneNumbersOptedOutCommand.ts b/clients/client-sns/commands/ListPhoneNumbersOptedOutCommand.ts index c68cb0a22ff64..8c550ab4d09a3 100644 --- a/clients/client-sns/commands/ListPhoneNumbersOptedOutCommand.ts +++ b/clients/client-sns/commands/ListPhoneNumbersOptedOutCommand.ts @@ -35,6 +35,7 @@ export class ListPhoneNumbersOptedOutCommand extends $Command< ListPhoneNumbersOptedOutCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListPhoneNumbersOptedOutCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListPlatformApplicationsCommand.ts b/clients/client-sns/commands/ListPlatformApplicationsCommand.ts index 5ba3447867c1c..b80110667a1d2 100644 --- a/clients/client-sns/commands/ListPlatformApplicationsCommand.ts +++ b/clients/client-sns/commands/ListPlatformApplicationsCommand.ts @@ -37,6 +37,7 @@ export class ListPlatformApplicationsCommand extends $Command< ListPlatformApplicationsCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListPlatformApplicationsCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListSubscriptionsByTopicCommand.ts b/clients/client-sns/commands/ListSubscriptionsByTopicCommand.ts index c6720b4ce79da..df47839f542a3 100644 --- a/clients/client-sns/commands/ListSubscriptionsByTopicCommand.ts +++ b/clients/client-sns/commands/ListSubscriptionsByTopicCommand.ts @@ -32,6 +32,7 @@ export class ListSubscriptionsByTopicCommand extends $Command< ListSubscriptionsByTopicCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListSubscriptionsByTopicCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListSubscriptionsCommand.ts b/clients/client-sns/commands/ListSubscriptionsCommand.ts index 6e81c3185073e..2b2766e9b5e0c 100644 --- a/clients/client-sns/commands/ListSubscriptionsCommand.ts +++ b/clients/client-sns/commands/ListSubscriptionsCommand.ts @@ -32,6 +32,7 @@ export class ListSubscriptionsCommand extends $Command< ListSubscriptionsCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListSubscriptionsCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListTagsForResourceCommand.ts b/clients/client-sns/commands/ListTagsForResourceCommand.ts index 8477823739764..1dacbef87531e 100644 --- a/clients/client-sns/commands/ListTagsForResourceCommand.ts +++ b/clients/client-sns/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/ListTopicsCommand.ts b/clients/client-sns/commands/ListTopicsCommand.ts index b54c49ba047ff..cdfae0026281d 100644 --- a/clients/client-sns/commands/ListTopicsCommand.ts +++ b/clients/client-sns/commands/ListTopicsCommand.ts @@ -29,6 +29,7 @@ export class ListTopicsCommand extends $Command< ListTopicsCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTopicsCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/OptInPhoneNumberCommand.ts b/clients/client-sns/commands/OptInPhoneNumberCommand.ts index c6f3424286900..78a8f98c8e927 100644 --- a/clients/client-sns/commands/OptInPhoneNumberCommand.ts +++ b/clients/client-sns/commands/OptInPhoneNumberCommand.ts @@ -30,6 +30,7 @@ export class OptInPhoneNumberCommand extends $Command< OptInPhoneNumberCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class OptInPhoneNumberCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/PublishCommand.ts b/clients/client-sns/commands/PublishCommand.ts index 6446bf739bfa5..8ccf80dd135d7 100644 --- a/clients/client-sns/commands/PublishCommand.ts +++ b/clients/client-sns/commands/PublishCommand.ts @@ -38,6 +38,7 @@ export type PublishCommandOutput = PublishResponse & __MetadataBearer; * */ export class PublishCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PublishCommand 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-sns/commands/RemovePermissionCommand.ts b/clients/client-sns/commands/RemovePermissionCommand.ts index fe2afeba9bc4e..2d699546810b9 100644 --- a/clients/client-sns/commands/RemovePermissionCommand.ts +++ b/clients/client-sns/commands/RemovePermissionCommand.ts @@ -28,6 +28,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemovePermissionCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SetEndpointAttributesCommand.ts b/clients/client-sns/commands/SetEndpointAttributesCommand.ts index d34e36693e3ba..342a6a77ae353 100644 --- a/clients/client-sns/commands/SetEndpointAttributesCommand.ts +++ b/clients/client-sns/commands/SetEndpointAttributesCommand.ts @@ -30,6 +30,7 @@ export class SetEndpointAttributesCommand extends $Command< SetEndpointAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetEndpointAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SetPlatformApplicationAttributesCommand.ts b/clients/client-sns/commands/SetPlatformApplicationAttributesCommand.ts index bcc7daf9a82a4..823040b4ea17f 100644 --- a/clients/client-sns/commands/SetPlatformApplicationAttributesCommand.ts +++ b/clients/client-sns/commands/SetPlatformApplicationAttributesCommand.ts @@ -32,6 +32,7 @@ export class SetPlatformApplicationAttributesCommand extends $Command< SetPlatformApplicationAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class SetPlatformApplicationAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SetSMSAttributesCommand.ts b/clients/client-sns/commands/SetSMSAttributesCommand.ts index 5fb5296c39895..a289049092c1b 100644 --- a/clients/client-sns/commands/SetSMSAttributesCommand.ts +++ b/clients/client-sns/commands/SetSMSAttributesCommand.ts @@ -33,6 +33,7 @@ export class SetSMSAttributesCommand extends $Command< SetSMSAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class SetSMSAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SetSubscriptionAttributesCommand.ts b/clients/client-sns/commands/SetSubscriptionAttributesCommand.ts index 33be890d0479e..8dd17b7778c74 100644 --- a/clients/client-sns/commands/SetSubscriptionAttributesCommand.ts +++ b/clients/client-sns/commands/SetSubscriptionAttributesCommand.ts @@ -29,6 +29,7 @@ export class SetSubscriptionAttributesCommand extends $Command< SetSubscriptionAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SetSubscriptionAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SetTopicAttributesCommand.ts b/clients/client-sns/commands/SetTopicAttributesCommand.ts index 18f4d208385ee..66334b36bfad7 100644 --- a/clients/client-sns/commands/SetTopicAttributesCommand.ts +++ b/clients/client-sns/commands/SetTopicAttributesCommand.ts @@ -28,6 +28,7 @@ export class SetTopicAttributesCommand extends $Command< SetTopicAttributesCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SetTopicAttributesCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/SubscribeCommand.ts b/clients/client-sns/commands/SubscribeCommand.ts index 883a735084110..bb1a89b11726a 100644 --- a/clients/client-sns/commands/SubscribeCommand.ts +++ b/clients/client-sns/commands/SubscribeCommand.ts @@ -26,6 +26,7 @@ export type SubscribeCommandOutput = SubscribeResponse & __MetadataBearer; *

This action is throttled at 100 transactions per second (TPS).

*/ export class SubscribeCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class SubscribeCommand 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-sns/commands/TagResourceCommand.ts b/clients/client-sns/commands/TagResourceCommand.ts index cd12288708e46..96701048b0404 100644 --- a/clients/client-sns/commands/TagResourceCommand.ts +++ b/clients/client-sns/commands/TagResourceCommand.ts @@ -48,6 +48,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -65,7 +66,10 @@ export class TagResourceCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/UnsubscribeCommand.ts b/clients/client-sns/commands/UnsubscribeCommand.ts index c52bf003728e4..cd1084bdcfbf2 100644 --- a/clients/client-sns/commands/UnsubscribeCommand.ts +++ b/clients/client-sns/commands/UnsubscribeCommand.ts @@ -31,6 +31,7 @@ export class UnsubscribeCommand extends $Command< UnsubscribeCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UnsubscribeCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sns/commands/UntagResourceCommand.ts b/clients/client-sns/commands/UntagResourceCommand.ts index 24c7f60242f2a..2a68d21aea62c 100644 --- a/clients/client-sns/commands/UntagResourceCommand.ts +++ b/clients/client-sns/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SNSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/AddPermissionCommand.ts b/clients/client-sqs/commands/AddPermissionCommand.ts index d104e7304c95f..496be8845549b 100644 --- a/clients/client-sqs/commands/AddPermissionCommand.ts +++ b/clients/client-sqs/commands/AddPermissionCommand.ts @@ -65,6 +65,7 @@ export class AddPermissionCommand extends $Command< AddPermissionCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -82,7 +83,10 @@ export class AddPermissionCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ChangeMessageVisibilityBatchCommand.ts b/clients/client-sqs/commands/ChangeMessageVisibilityBatchCommand.ts index bb29db5bc9579..586c5db29acfc 100644 --- a/clients/client-sqs/commands/ChangeMessageVisibilityBatchCommand.ts +++ b/clients/client-sqs/commands/ChangeMessageVisibilityBatchCommand.ts @@ -42,6 +42,7 @@ export class ChangeMessageVisibilityBatchCommand extends $Command< ChangeMessageVisibilityBatchCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ChangeMessageVisibilityBatchCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ChangeMessageVisibilityCommand.ts b/clients/client-sqs/commands/ChangeMessageVisibilityCommand.ts index 5a5f8e15dc58a..4babc85bb2c61 100644 --- a/clients/client-sqs/commands/ChangeMessageVisibilityCommand.ts +++ b/clients/client-sqs/commands/ChangeMessageVisibilityCommand.ts @@ -61,6 +61,7 @@ export class ChangeMessageVisibilityCommand extends $Command< ChangeMessageVisibilityCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class ChangeMessageVisibilityCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/CreateQueueCommand.ts b/clients/client-sqs/commands/CreateQueueCommand.ts index 72e1718bae3be..f77d0b2b561ea 100644 --- a/clients/client-sqs/commands/CreateQueueCommand.ts +++ b/clients/client-sqs/commands/CreateQueueCommand.ts @@ -74,6 +74,7 @@ export class CreateQueueCommand extends $Command< CreateQueueCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class CreateQueueCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/DeleteMessageBatchCommand.ts b/clients/client-sqs/commands/DeleteMessageBatchCommand.ts index 3a62eac572cbc..a09734f34bf5c 100644 --- a/clients/client-sqs/commands/DeleteMessageBatchCommand.ts +++ b/clients/client-sqs/commands/DeleteMessageBatchCommand.ts @@ -39,6 +39,7 @@ export class DeleteMessageBatchCommand extends $Command< DeleteMessageBatchCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class DeleteMessageBatchCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/DeleteMessageCommand.ts b/clients/client-sqs/commands/DeleteMessageCommand.ts index f8cc5809eb997..d57ef33ee4e6f 100644 --- a/clients/client-sqs/commands/DeleteMessageCommand.ts +++ b/clients/client-sqs/commands/DeleteMessageCommand.ts @@ -47,6 +47,7 @@ export class DeleteMessageCommand extends $Command< DeleteMessageCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class DeleteMessageCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/DeleteQueueCommand.ts b/clients/client-sqs/commands/DeleteQueueCommand.ts index fba8adb8167bc..c01b3ac7df29b 100644 --- a/clients/client-sqs/commands/DeleteQueueCommand.ts +++ b/clients/client-sqs/commands/DeleteQueueCommand.ts @@ -37,6 +37,7 @@ export class DeleteQueueCommand extends $Command< DeleteQueueCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteQueueCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/GetQueueAttributesCommand.ts b/clients/client-sqs/commands/GetQueueAttributesCommand.ts index 8f3a87dca7ef8..1fbe5953ac96e 100644 --- a/clients/client-sqs/commands/GetQueueAttributesCommand.ts +++ b/clients/client-sqs/commands/GetQueueAttributesCommand.ts @@ -31,6 +31,7 @@ export class GetQueueAttributesCommand extends $Command< GetQueueAttributesCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetQueueAttributesCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/GetQueueUrlCommand.ts b/clients/client-sqs/commands/GetQueueUrlCommand.ts index 75d5ba7fa0747..1df85a7e6dd39 100644 --- a/clients/client-sqs/commands/GetQueueUrlCommand.ts +++ b/clients/client-sqs/commands/GetQueueUrlCommand.ts @@ -30,6 +30,7 @@ export class GetQueueUrlCommand extends $Command< GetQueueUrlCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetQueueUrlCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ListDeadLetterSourceQueuesCommand.ts b/clients/client-sqs/commands/ListDeadLetterSourceQueuesCommand.ts index 139c933ff426b..c0747548b581c 100644 --- a/clients/client-sqs/commands/ListDeadLetterSourceQueuesCommand.ts +++ b/clients/client-sqs/commands/ListDeadLetterSourceQueuesCommand.ts @@ -38,6 +38,7 @@ export class ListDeadLetterSourceQueuesCommand extends $Command< ListDeadLetterSourceQueuesCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class ListDeadLetterSourceQueuesCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ListQueueTagsCommand.ts b/clients/client-sqs/commands/ListQueueTagsCommand.ts index 842c4bc7c5679..487fc128ef52b 100644 --- a/clients/client-sqs/commands/ListQueueTagsCommand.ts +++ b/clients/client-sqs/commands/ListQueueTagsCommand.ts @@ -31,6 +31,7 @@ export class ListQueueTagsCommand extends $Command< ListQueueTagsCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListQueueTagsCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ListQueuesCommand.ts b/clients/client-sqs/commands/ListQueuesCommand.ts index 9fbb6785c8ba4..bff34956d2f1d 100644 --- a/clients/client-sqs/commands/ListQueuesCommand.ts +++ b/clients/client-sqs/commands/ListQueuesCommand.ts @@ -36,6 +36,7 @@ export class ListQueuesCommand extends $Command< ListQueuesCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListQueuesCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/PurgeQueueCommand.ts b/clients/client-sqs/commands/PurgeQueueCommand.ts index ad626547bad3a..4b44217892aed 100644 --- a/clients/client-sqs/commands/PurgeQueueCommand.ts +++ b/clients/client-sqs/commands/PurgeQueueCommand.ts @@ -38,6 +38,7 @@ export class PurgeQueueCommand extends $Command< PurgeQueueCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class PurgeQueueCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/ReceiveMessageCommand.ts b/clients/client-sqs/commands/ReceiveMessageCommand.ts index f0243e4b8f623..c5143ee12df2b 100644 --- a/clients/client-sqs/commands/ReceiveMessageCommand.ts +++ b/clients/client-sqs/commands/ReceiveMessageCommand.ts @@ -64,6 +64,7 @@ export class ReceiveMessageCommand extends $Command< ReceiveMessageCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,8 +82,11 @@ export class ReceiveMessageCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getReceiveMessagePlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getReceiveMessagePlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/RemovePermissionCommand.ts b/clients/client-sqs/commands/RemovePermissionCommand.ts index e934a50054384..cb4f5bc41c63b 100644 --- a/clients/client-sqs/commands/RemovePermissionCommand.ts +++ b/clients/client-sqs/commands/RemovePermissionCommand.ts @@ -41,6 +41,7 @@ export class RemovePermissionCommand extends $Command< RemovePermissionCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class RemovePermissionCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/SendMessageBatchCommand.ts b/clients/client-sqs/commands/SendMessageBatchCommand.ts index 92164922edffc..aaec0fafbf597 100644 --- a/clients/client-sqs/commands/SendMessageBatchCommand.ts +++ b/clients/client-sqs/commands/SendMessageBatchCommand.ts @@ -47,6 +47,7 @@ export class SendMessageBatchCommand extends $Command< SendMessageBatchCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,8 +65,11 @@ export class SendMessageBatchCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSendMessageBatchPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSendMessageBatchPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/SendMessageCommand.ts b/clients/client-sqs/commands/SendMessageCommand.ts index a00572f05b7d3..8259ae68a5823 100644 --- a/clients/client-sqs/commands/SendMessageCommand.ts +++ b/clients/client-sqs/commands/SendMessageCommand.ts @@ -33,6 +33,7 @@ export class SendMessageCommand extends $Command< SendMessageCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,8 +51,11 @@ export class SendMessageCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getSendMessagePlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getSendMessagePlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/SetQueueAttributesCommand.ts b/clients/client-sqs/commands/SetQueueAttributesCommand.ts index 8df6855934a75..0fade6ba09643 100644 --- a/clients/client-sqs/commands/SetQueueAttributesCommand.ts +++ b/clients/client-sqs/commands/SetQueueAttributesCommand.ts @@ -42,6 +42,7 @@ export class SetQueueAttributesCommand extends $Command< SetQueueAttributesCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class SetQueueAttributesCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sqs/commands/TagQueueCommand.ts b/clients/client-sqs/commands/TagQueueCommand.ts index c0b359eac7683..cd90e3c162ca2 100644 --- a/clients/client-sqs/commands/TagQueueCommand.ts +++ b/clients/client-sqs/commands/TagQueueCommand.ts @@ -41,6 +41,7 @@ export type TagQueueCommandOutput = __MetadataBearer; * */ export class TagQueueCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class TagQueueCommand 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-sqs/commands/UntagQueueCommand.ts b/clients/client-sqs/commands/UntagQueueCommand.ts index fc227c9d2a934..4cb0dce61df5b 100644 --- a/clients/client-sqs/commands/UntagQueueCommand.ts +++ b/clients/client-sqs/commands/UntagQueueCommand.ts @@ -28,6 +28,7 @@ export class UntagQueueCommand extends $Command< UntagQueueCommandOutput, SQSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagQueueCommand extends $Command< configuration: SQSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/AddTagsToResourceCommand.ts b/clients/client-ssm/commands/AddTagsToResourceCommand.ts index fcb7eb40d30ab..60b989e620922 100644 --- a/clients/client-ssm/commands/AddTagsToResourceCommand.ts +++ b/clients/client-ssm/commands/AddTagsToResourceCommand.ts @@ -43,6 +43,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CancelCommandCommand.ts b/clients/client-ssm/commands/CancelCommandCommand.ts index da623f9dad057..80f9079945aa9 100644 --- a/clients/client-ssm/commands/CancelCommandCommand.ts +++ b/clients/client-ssm/commands/CancelCommandCommand.ts @@ -29,6 +29,7 @@ export class CancelCommandCommand extends $Command< CancelCommandCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CancelCommandCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CancelMaintenanceWindowExecutionCommand.ts b/clients/client-ssm/commands/CancelMaintenanceWindowExecutionCommand.ts index d653380a9fa90..f0796d56b37fb 100644 --- a/clients/client-ssm/commands/CancelMaintenanceWindowExecutionCommand.ts +++ b/clients/client-ssm/commands/CancelMaintenanceWindowExecutionCommand.ts @@ -30,6 +30,7 @@ export class CancelMaintenanceWindowExecutionCommand extends $Command< CancelMaintenanceWindowExecutionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CancelMaintenanceWindowExecutionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateActivationCommand.ts b/clients/client-ssm/commands/CreateActivationCommand.ts index 5ed4a92777731..2943074a3ee04 100644 --- a/clients/client-ssm/commands/CreateActivationCommand.ts +++ b/clients/client-ssm/commands/CreateActivationCommand.ts @@ -37,6 +37,7 @@ export class CreateActivationCommand extends $Command< CreateActivationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateActivationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateAssociationBatchCommand.ts b/clients/client-ssm/commands/CreateAssociationBatchCommand.ts index 75629840bf48b..eaf851b25e188 100644 --- a/clients/client-ssm/commands/CreateAssociationBatchCommand.ts +++ b/clients/client-ssm/commands/CreateAssociationBatchCommand.ts @@ -33,6 +33,7 @@ export class CreateAssociationBatchCommand extends $Command< CreateAssociationBatchCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreateAssociationBatchCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateAssociationCommand.ts b/clients/client-ssm/commands/CreateAssociationCommand.ts index 0a930d397ae9b..3ad2cc4cb28a1 100644 --- a/clients/client-ssm/commands/CreateAssociationCommand.ts +++ b/clients/client-ssm/commands/CreateAssociationCommand.ts @@ -37,6 +37,7 @@ export class CreateAssociationCommand extends $Command< CreateAssociationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateAssociationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateDocumentCommand.ts b/clients/client-ssm/commands/CreateDocumentCommand.ts index 0d59cac13a7be..aed2c9a303819 100644 --- a/clients/client-ssm/commands/CreateDocumentCommand.ts +++ b/clients/client-ssm/commands/CreateDocumentCommand.ts @@ -31,6 +31,7 @@ export class CreateDocumentCommand extends $Command< CreateDocumentCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDocumentCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateMaintenanceWindowCommand.ts b/clients/client-ssm/commands/CreateMaintenanceWindowCommand.ts index 4d6bf058ec497..be63efc681629 100644 --- a/clients/client-ssm/commands/CreateMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/CreateMaintenanceWindowCommand.ts @@ -36,6 +36,7 @@ export class CreateMaintenanceWindowCommand extends $Command< CreateMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateOpsItemCommand.ts b/clients/client-ssm/commands/CreateOpsItemCommand.ts index 14ddb1b7ac429..8a6c98d17a08b 100644 --- a/clients/client-ssm/commands/CreateOpsItemCommand.ts +++ b/clients/client-ssm/commands/CreateOpsItemCommand.ts @@ -34,6 +34,7 @@ export class CreateOpsItemCommand extends $Command< CreateOpsItemCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateOpsItemCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateOpsMetadataCommand.ts b/clients/client-ssm/commands/CreateOpsMetadataCommand.ts index bea6c01a00c40..bbe93317d2dc4 100644 --- a/clients/client-ssm/commands/CreateOpsMetadataCommand.ts +++ b/clients/client-ssm/commands/CreateOpsMetadataCommand.ts @@ -29,6 +29,7 @@ export class CreateOpsMetadataCommand extends $Command< CreateOpsMetadataCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateOpsMetadataCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreatePatchBaselineCommand.ts b/clients/client-ssm/commands/CreatePatchBaselineCommand.ts index 942e322adada1..94bb956d9c035 100644 --- a/clients/client-ssm/commands/CreatePatchBaselineCommand.ts +++ b/clients/client-ssm/commands/CreatePatchBaselineCommand.ts @@ -32,6 +32,7 @@ export class CreatePatchBaselineCommand extends $Command< CreatePatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreatePatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/CreateResourceDataSyncCommand.ts b/clients/client-ssm/commands/CreateResourceDataSyncCommand.ts index 354bb04d8c94c..7e0fd4de74c32 100644 --- a/clients/client-ssm/commands/CreateResourceDataSyncCommand.ts +++ b/clients/client-ssm/commands/CreateResourceDataSyncCommand.ts @@ -50,6 +50,7 @@ export class CreateResourceDataSyncCommand extends $Command< CreateResourceDataSyncCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CreateResourceDataSyncCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteActivationCommand.ts b/clients/client-ssm/commands/DeleteActivationCommand.ts index 1be0c676dcea1..e0c0daad04d48 100644 --- a/clients/client-ssm/commands/DeleteActivationCommand.ts +++ b/clients/client-ssm/commands/DeleteActivationCommand.ts @@ -31,6 +31,7 @@ export class DeleteActivationCommand extends $Command< DeleteActivationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteActivationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteAssociationCommand.ts b/clients/client-ssm/commands/DeleteAssociationCommand.ts index 47fdaa707ec52..3a117844ddc43 100644 --- a/clients/client-ssm/commands/DeleteAssociationCommand.ts +++ b/clients/client-ssm/commands/DeleteAssociationCommand.ts @@ -32,6 +32,7 @@ export class DeleteAssociationCommand extends $Command< DeleteAssociationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteAssociationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteDocumentCommand.ts b/clients/client-ssm/commands/DeleteDocumentCommand.ts index e6843dc090105..91d504ae4d2e4 100644 --- a/clients/client-ssm/commands/DeleteDocumentCommand.ts +++ b/clients/client-ssm/commands/DeleteDocumentCommand.ts @@ -29,6 +29,7 @@ export class DeleteDocumentCommand extends $Command< DeleteDocumentCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteDocumentCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteInventoryCommand.ts b/clients/client-ssm/commands/DeleteInventoryCommand.ts index 171fae3294633..729ee4efe79db 100644 --- a/clients/client-ssm/commands/DeleteInventoryCommand.ts +++ b/clients/client-ssm/commands/DeleteInventoryCommand.ts @@ -29,6 +29,7 @@ export class DeleteInventoryCommand extends $Command< DeleteInventoryCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteInventoryCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteMaintenanceWindowCommand.ts b/clients/client-ssm/commands/DeleteMaintenanceWindowCommand.ts index 4885f1da14fb3..8e7a45492eea4 100644 --- a/clients/client-ssm/commands/DeleteMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/DeleteMaintenanceWindowCommand.ts @@ -28,6 +28,7 @@ export class DeleteMaintenanceWindowCommand extends $Command< DeleteMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteOpsMetadataCommand.ts b/clients/client-ssm/commands/DeleteOpsMetadataCommand.ts index 7bd7c164be5d4..ced9e30b296e2 100644 --- a/clients/client-ssm/commands/DeleteOpsMetadataCommand.ts +++ b/clients/client-ssm/commands/DeleteOpsMetadataCommand.ts @@ -28,6 +28,7 @@ export class DeleteOpsMetadataCommand extends $Command< DeleteOpsMetadataCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteOpsMetadataCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteParameterCommand.ts b/clients/client-ssm/commands/DeleteParameterCommand.ts index 62319703c7f3d..17fc7bfd8bfc4 100644 --- a/clients/client-ssm/commands/DeleteParameterCommand.ts +++ b/clients/client-ssm/commands/DeleteParameterCommand.ts @@ -28,6 +28,7 @@ export class DeleteParameterCommand extends $Command< DeleteParameterCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteParameterCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteParametersCommand.ts b/clients/client-ssm/commands/DeleteParametersCommand.ts index fc07b8ed890dd..42240886c5e6a 100644 --- a/clients/client-ssm/commands/DeleteParametersCommand.ts +++ b/clients/client-ssm/commands/DeleteParametersCommand.ts @@ -28,6 +28,7 @@ export class DeleteParametersCommand extends $Command< DeleteParametersCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteParametersCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeletePatchBaselineCommand.ts b/clients/client-ssm/commands/DeletePatchBaselineCommand.ts index 12493073ca030..7fa900e2074b7 100644 --- a/clients/client-ssm/commands/DeletePatchBaselineCommand.ts +++ b/clients/client-ssm/commands/DeletePatchBaselineCommand.ts @@ -28,6 +28,7 @@ export class DeletePatchBaselineCommand extends $Command< DeletePatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeleteResourceDataSyncCommand.ts b/clients/client-ssm/commands/DeleteResourceDataSyncCommand.ts index f05ece30ed456..a3054811feb4c 100644 --- a/clients/client-ssm/commands/DeleteResourceDataSyncCommand.ts +++ b/clients/client-ssm/commands/DeleteResourceDataSyncCommand.ts @@ -30,6 +30,7 @@ export class DeleteResourceDataSyncCommand extends $Command< DeleteResourceDataSyncCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteResourceDataSyncCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeregisterManagedInstanceCommand.ts b/clients/client-ssm/commands/DeregisterManagedInstanceCommand.ts index de803ed8133c3..1d55bce007d48 100644 --- a/clients/client-ssm/commands/DeregisterManagedInstanceCommand.ts +++ b/clients/client-ssm/commands/DeregisterManagedInstanceCommand.ts @@ -30,6 +30,7 @@ export class DeregisterManagedInstanceCommand extends $Command< DeregisterManagedInstanceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeregisterManagedInstanceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeregisterPatchBaselineForPatchGroupCommand.ts b/clients/client-ssm/commands/DeregisterPatchBaselineForPatchGroupCommand.ts index 2c040ea8117a2..8132145f12ba6 100644 --- a/clients/client-ssm/commands/DeregisterPatchBaselineForPatchGroupCommand.ts +++ b/clients/client-ssm/commands/DeregisterPatchBaselineForPatchGroupCommand.ts @@ -32,6 +32,7 @@ export class DeregisterPatchBaselineForPatchGroupCommand extends $Command< DeregisterPatchBaselineForPatchGroupCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeregisterPatchBaselineForPatchGroupCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeregisterTargetFromMaintenanceWindowCommand.ts b/clients/client-ssm/commands/DeregisterTargetFromMaintenanceWindowCommand.ts index b2773f109d7fe..f517ceeddc900 100644 --- a/clients/client-ssm/commands/DeregisterTargetFromMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/DeregisterTargetFromMaintenanceWindowCommand.ts @@ -32,6 +32,7 @@ export class DeregisterTargetFromMaintenanceWindowCommand extends $Command< DeregisterTargetFromMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeregisterTargetFromMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DeregisterTaskFromMaintenanceWindowCommand.ts b/clients/client-ssm/commands/DeregisterTaskFromMaintenanceWindowCommand.ts index 969620cee0608..e98483fc7ab0d 100644 --- a/clients/client-ssm/commands/DeregisterTaskFromMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/DeregisterTaskFromMaintenanceWindowCommand.ts @@ -32,6 +32,7 @@ export class DeregisterTaskFromMaintenanceWindowCommand extends $Command< DeregisterTaskFromMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeregisterTaskFromMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeActivationsCommand.ts b/clients/client-ssm/commands/DescribeActivationsCommand.ts index e6ceba630dfd0..375e355e5ddd8 100644 --- a/clients/client-ssm/commands/DescribeActivationsCommand.ts +++ b/clients/client-ssm/commands/DescribeActivationsCommand.ts @@ -30,6 +30,7 @@ export class DescribeActivationsCommand extends $Command< DescribeActivationsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeActivationsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAssociationCommand.ts b/clients/client-ssm/commands/DescribeAssociationCommand.ts index 7a6245d7f0607..827465859b736 100644 --- a/clients/client-ssm/commands/DescribeAssociationCommand.ts +++ b/clients/client-ssm/commands/DescribeAssociationCommand.ts @@ -32,6 +32,7 @@ export class DescribeAssociationCommand extends $Command< DescribeAssociationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeAssociationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAssociationExecutionTargetsCommand.ts b/clients/client-ssm/commands/DescribeAssociationExecutionTargetsCommand.ts index 29f18b587ea84..2f049c496daaa 100644 --- a/clients/client-ssm/commands/DescribeAssociationExecutionTargetsCommand.ts +++ b/clients/client-ssm/commands/DescribeAssociationExecutionTargetsCommand.ts @@ -33,6 +33,7 @@ export class DescribeAssociationExecutionTargetsCommand extends $Command< DescribeAssociationExecutionTargetsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeAssociationExecutionTargetsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAssociationExecutionsCommand.ts b/clients/client-ssm/commands/DescribeAssociationExecutionsCommand.ts index 8a4f41d171d26..ff26e9a0c2f39 100644 --- a/clients/client-ssm/commands/DescribeAssociationExecutionsCommand.ts +++ b/clients/client-ssm/commands/DescribeAssociationExecutionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAssociationExecutionsCommand extends $Command< DescribeAssociationExecutionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAssociationExecutionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAutomationExecutionsCommand.ts b/clients/client-ssm/commands/DescribeAutomationExecutionsCommand.ts index b245259fa4aec..92cf9828ea06e 100644 --- a/clients/client-ssm/commands/DescribeAutomationExecutionsCommand.ts +++ b/clients/client-ssm/commands/DescribeAutomationExecutionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeAutomationExecutionsCommand extends $Command< DescribeAutomationExecutionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAutomationExecutionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAutomationStepExecutionsCommand.ts b/clients/client-ssm/commands/DescribeAutomationStepExecutionsCommand.ts index 290c68ec1f804..dd4a82bb6a93d 100644 --- a/clients/client-ssm/commands/DescribeAutomationStepExecutionsCommand.ts +++ b/clients/client-ssm/commands/DescribeAutomationStepExecutionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAutomationStepExecutionsCommand extends $Command< DescribeAutomationStepExecutionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAutomationStepExecutionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeAvailablePatchesCommand.ts b/clients/client-ssm/commands/DescribeAvailablePatchesCommand.ts index 0e68c4a26ba2f..415bea507c37d 100644 --- a/clients/client-ssm/commands/DescribeAvailablePatchesCommand.ts +++ b/clients/client-ssm/commands/DescribeAvailablePatchesCommand.ts @@ -28,6 +28,7 @@ export class DescribeAvailablePatchesCommand extends $Command< DescribeAvailablePatchesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAvailablePatchesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeDocumentCommand.ts b/clients/client-ssm/commands/DescribeDocumentCommand.ts index 73ea8aea91910..993edb3e18958 100644 --- a/clients/client-ssm/commands/DescribeDocumentCommand.ts +++ b/clients/client-ssm/commands/DescribeDocumentCommand.ts @@ -28,6 +28,7 @@ export class DescribeDocumentCommand extends $Command< DescribeDocumentCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDocumentCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeDocumentPermissionCommand.ts b/clients/client-ssm/commands/DescribeDocumentPermissionCommand.ts index bae59507ffcd2..70a50d9d08c07 100644 --- a/clients/client-ssm/commands/DescribeDocumentPermissionCommand.ts +++ b/clients/client-ssm/commands/DescribeDocumentPermissionCommand.ts @@ -30,6 +30,7 @@ export class DescribeDocumentPermissionCommand extends $Command< DescribeDocumentPermissionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDocumentPermissionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeEffectiveInstanceAssociationsCommand.ts b/clients/client-ssm/commands/DescribeEffectiveInstanceAssociationsCommand.ts index a31620a8eb8fa..874dcaed24720 100644 --- a/clients/client-ssm/commands/DescribeEffectiveInstanceAssociationsCommand.ts +++ b/clients/client-ssm/commands/DescribeEffectiveInstanceAssociationsCommand.ts @@ -32,6 +32,7 @@ export class DescribeEffectiveInstanceAssociationsCommand extends $Command< DescribeEffectiveInstanceAssociationsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeEffectiveInstanceAssociationsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeEffectivePatchesForPatchBaselineCommand.ts b/clients/client-ssm/commands/DescribeEffectivePatchesForPatchBaselineCommand.ts index 53d4a06103b15..301fbe4314a49 100644 --- a/clients/client-ssm/commands/DescribeEffectivePatchesForPatchBaselineCommand.ts +++ b/clients/client-ssm/commands/DescribeEffectivePatchesForPatchBaselineCommand.ts @@ -33,6 +33,7 @@ export class DescribeEffectivePatchesForPatchBaselineCommand extends $Command< DescribeEffectivePatchesForPatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeEffectivePatchesForPatchBaselineCommand extends $Command< DescribeEffectivePatchesForPatchBaselineCommandInput, DescribeEffectivePatchesForPatchBaselineCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInstanceAssociationsStatusCommand.ts b/clients/client-ssm/commands/DescribeInstanceAssociationsStatusCommand.ts index 9a647ef091a14..65438295ff249 100644 --- a/clients/client-ssm/commands/DescribeInstanceAssociationsStatusCommand.ts +++ b/clients/client-ssm/commands/DescribeInstanceAssociationsStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribeInstanceAssociationsStatusCommand extends $Command< DescribeInstanceAssociationsStatusCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeInstanceAssociationsStatusCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInstanceInformationCommand.ts b/clients/client-ssm/commands/DescribeInstanceInformationCommand.ts index 8d53925b4e4f2..274ada542b251 100644 --- a/clients/client-ssm/commands/DescribeInstanceInformationCommand.ts +++ b/clients/client-ssm/commands/DescribeInstanceInformationCommand.ts @@ -37,6 +37,7 @@ export class DescribeInstanceInformationCommand extends $Command< DescribeInstanceInformationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DescribeInstanceInformationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInstancePatchStatesCommand.ts b/clients/client-ssm/commands/DescribeInstancePatchStatesCommand.ts index cbd8672d1f382..774c5c2e6ef57 100644 --- a/clients/client-ssm/commands/DescribeInstancePatchStatesCommand.ts +++ b/clients/client-ssm/commands/DescribeInstancePatchStatesCommand.ts @@ -28,6 +28,7 @@ export class DescribeInstancePatchStatesCommand extends $Command< DescribeInstancePatchStatesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInstancePatchStatesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInstancePatchStatesForPatchGroupCommand.ts b/clients/client-ssm/commands/DescribeInstancePatchStatesForPatchGroupCommand.ts index 84a01559909d3..f3694faf10913 100644 --- a/clients/client-ssm/commands/DescribeInstancePatchStatesForPatchGroupCommand.ts +++ b/clients/client-ssm/commands/DescribeInstancePatchStatesForPatchGroupCommand.ts @@ -32,6 +32,7 @@ export class DescribeInstancePatchStatesForPatchGroupCommand extends $Command< DescribeInstancePatchStatesForPatchGroupCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeInstancePatchStatesForPatchGroupCommand extends $Command< DescribeInstancePatchStatesForPatchGroupCommandInput, DescribeInstancePatchStatesForPatchGroupCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInstancePatchesCommand.ts b/clients/client-ssm/commands/DescribeInstancePatchesCommand.ts index 36e455c601cbb..f126c198dda76 100644 --- a/clients/client-ssm/commands/DescribeInstancePatchesCommand.ts +++ b/clients/client-ssm/commands/DescribeInstancePatchesCommand.ts @@ -29,6 +29,7 @@ export class DescribeInstancePatchesCommand extends $Command< DescribeInstancePatchesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeInstancePatchesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeInventoryDeletionsCommand.ts b/clients/client-ssm/commands/DescribeInventoryDeletionsCommand.ts index 5d38c9ead8ab5..672a1b04771f5 100644 --- a/clients/client-ssm/commands/DescribeInventoryDeletionsCommand.ts +++ b/clients/client-ssm/commands/DescribeInventoryDeletionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeInventoryDeletionsCommand extends $Command< DescribeInventoryDeletionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeInventoryDeletionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.ts index f0d0c9353b2d3..8240e76615c9a 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.ts @@ -33,6 +33,7 @@ export class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends $C DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends $C DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTasksCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTasksCommand.ts index 28718521dc71c..e89547dd876fc 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTasksCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionTasksCommand.ts @@ -32,6 +32,7 @@ export class DescribeMaintenanceWindowExecutionTasksCommand extends $Command< DescribeMaintenanceWindowExecutionTasksCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeMaintenanceWindowExecutionTasksCommand extends $Command< DescribeMaintenanceWindowExecutionTasksCommandInput, DescribeMaintenanceWindowExecutionTasksCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionsCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionsCommand.ts index 4db85643e45f4..f06bcf1def1d3 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionsCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowExecutionsCommand.ts @@ -34,6 +34,7 @@ export class DescribeMaintenanceWindowExecutionsCommand extends $Command< DescribeMaintenanceWindowExecutionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeMaintenanceWindowExecutionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowScheduleCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowScheduleCommand.ts index 9f8c5c20c1483..385a0827ed0df 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowScheduleCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowScheduleCommand.ts @@ -28,6 +28,7 @@ export class DescribeMaintenanceWindowScheduleCommand extends $Command< DescribeMaintenanceWindowScheduleCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMaintenanceWindowScheduleCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowTargetsCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowTargetsCommand.ts index 064b6445243a3..7ace0c88f599e 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowTargetsCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowTargetsCommand.ts @@ -28,6 +28,7 @@ export class DescribeMaintenanceWindowTargetsCommand extends $Command< DescribeMaintenanceWindowTargetsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMaintenanceWindowTargetsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowTasksCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowTasksCommand.ts index b0ead98c3161d..cc990eb281b7c 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowTasksCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowTasksCommand.ts @@ -28,6 +28,7 @@ export class DescribeMaintenanceWindowTasksCommand extends $Command< DescribeMaintenanceWindowTasksCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMaintenanceWindowTasksCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowsCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowsCommand.ts index dea8e1e1756ad..7860418771b38 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowsCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowsCommand.ts @@ -28,6 +28,7 @@ export class DescribeMaintenanceWindowsCommand extends $Command< DescribeMaintenanceWindowsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeMaintenanceWindowsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeMaintenanceWindowsForTargetCommand.ts b/clients/client-ssm/commands/DescribeMaintenanceWindowsForTargetCommand.ts index 003f9cc53889d..7b163b1a06fa8 100644 --- a/clients/client-ssm/commands/DescribeMaintenanceWindowsForTargetCommand.ts +++ b/clients/client-ssm/commands/DescribeMaintenanceWindowsForTargetCommand.ts @@ -33,6 +33,7 @@ export class DescribeMaintenanceWindowsForTargetCommand extends $Command< DescribeMaintenanceWindowsForTargetCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeMaintenanceWindowsForTargetCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeOpsItemsCommand.ts b/clients/client-ssm/commands/DescribeOpsItemsCommand.ts index 5a0fa256c7200..ceb5f553132d5 100644 --- a/clients/client-ssm/commands/DescribeOpsItemsCommand.ts +++ b/clients/client-ssm/commands/DescribeOpsItemsCommand.ts @@ -34,6 +34,7 @@ export class DescribeOpsItemsCommand extends $Command< DescribeOpsItemsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeOpsItemsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeParametersCommand.ts b/clients/client-ssm/commands/DescribeParametersCommand.ts index f392ce2241df1..050ec3ab9f3ad 100644 --- a/clients/client-ssm/commands/DescribeParametersCommand.ts +++ b/clients/client-ssm/commands/DescribeParametersCommand.ts @@ -36,6 +36,7 @@ export class DescribeParametersCommand extends $Command< DescribeParametersCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeParametersCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribePatchBaselinesCommand.ts b/clients/client-ssm/commands/DescribePatchBaselinesCommand.ts index cbe8760c2eedc..4e65825dc1cf4 100644 --- a/clients/client-ssm/commands/DescribePatchBaselinesCommand.ts +++ b/clients/client-ssm/commands/DescribePatchBaselinesCommand.ts @@ -28,6 +28,7 @@ export class DescribePatchBaselinesCommand extends $Command< DescribePatchBaselinesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePatchBaselinesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribePatchGroupStateCommand.ts b/clients/client-ssm/commands/DescribePatchGroupStateCommand.ts index 968078d4a7405..cc62a3212f8cc 100644 --- a/clients/client-ssm/commands/DescribePatchGroupStateCommand.ts +++ b/clients/client-ssm/commands/DescribePatchGroupStateCommand.ts @@ -29,6 +29,7 @@ export class DescribePatchGroupStateCommand extends $Command< DescribePatchGroupStateCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribePatchGroupStateCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribePatchGroupsCommand.ts b/clients/client-ssm/commands/DescribePatchGroupsCommand.ts index cebc2e8ba8fdb..4cd55e335c109 100644 --- a/clients/client-ssm/commands/DescribePatchGroupsCommand.ts +++ b/clients/client-ssm/commands/DescribePatchGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribePatchGroupsCommand extends $Command< DescribePatchGroupsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePatchGroupsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribePatchPropertiesCommand.ts b/clients/client-ssm/commands/DescribePatchPropertiesCommand.ts index 223ab1ef3e359..92a2c333db304 100644 --- a/clients/client-ssm/commands/DescribePatchPropertiesCommand.ts +++ b/clients/client-ssm/commands/DescribePatchPropertiesCommand.ts @@ -74,6 +74,7 @@ export class DescribePatchPropertiesCommand extends $Command< DescribePatchPropertiesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class DescribePatchPropertiesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/DescribeSessionsCommand.ts b/clients/client-ssm/commands/DescribeSessionsCommand.ts index f9b1fb49ee306..804b04f255059 100644 --- a/clients/client-ssm/commands/DescribeSessionsCommand.ts +++ b/clients/client-ssm/commands/DescribeSessionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeSessionsCommand extends $Command< DescribeSessionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSessionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetAutomationExecutionCommand.ts b/clients/client-ssm/commands/GetAutomationExecutionCommand.ts index 69c79ecbff270..1bfea0ff13dd1 100644 --- a/clients/client-ssm/commands/GetAutomationExecutionCommand.ts +++ b/clients/client-ssm/commands/GetAutomationExecutionCommand.ts @@ -28,6 +28,7 @@ export class GetAutomationExecutionCommand extends $Command< GetAutomationExecutionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetAutomationExecutionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetCalendarStateCommand.ts b/clients/client-ssm/commands/GetCalendarStateCommand.ts index 641e511f618a9..6f1ee7de8f7a0 100644 --- a/clients/client-ssm/commands/GetCalendarStateCommand.ts +++ b/clients/client-ssm/commands/GetCalendarStateCommand.ts @@ -37,6 +37,7 @@ export class GetCalendarStateCommand extends $Command< GetCalendarStateCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetCalendarStateCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetCommandInvocationCommand.ts b/clients/client-ssm/commands/GetCommandInvocationCommand.ts index 0834958379c55..d30056b9cfe95 100644 --- a/clients/client-ssm/commands/GetCommandInvocationCommand.ts +++ b/clients/client-ssm/commands/GetCommandInvocationCommand.ts @@ -28,6 +28,7 @@ export class GetCommandInvocationCommand extends $Command< GetCommandInvocationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCommandInvocationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetConnectionStatusCommand.ts b/clients/client-ssm/commands/GetConnectionStatusCommand.ts index 0eaacd8917bac..c06875263c7b6 100644 --- a/clients/client-ssm/commands/GetConnectionStatusCommand.ts +++ b/clients/client-ssm/commands/GetConnectionStatusCommand.ts @@ -29,6 +29,7 @@ export class GetConnectionStatusCommand extends $Command< GetConnectionStatusCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetConnectionStatusCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetDefaultPatchBaselineCommand.ts b/clients/client-ssm/commands/GetDefaultPatchBaselineCommand.ts index 89b189c20fa5e..2ef3c896222a7 100644 --- a/clients/client-ssm/commands/GetDefaultPatchBaselineCommand.ts +++ b/clients/client-ssm/commands/GetDefaultPatchBaselineCommand.ts @@ -32,6 +32,7 @@ export class GetDefaultPatchBaselineCommand extends $Command< GetDefaultPatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetDefaultPatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetDeployablePatchSnapshotForInstanceCommand.ts b/clients/client-ssm/commands/GetDeployablePatchSnapshotForInstanceCommand.ts index a9950794bbd0a..e084639209642 100644 --- a/clients/client-ssm/commands/GetDeployablePatchSnapshotForInstanceCommand.ts +++ b/clients/client-ssm/commands/GetDeployablePatchSnapshotForInstanceCommand.ts @@ -33,6 +33,7 @@ export class GetDeployablePatchSnapshotForInstanceCommand extends $Command< GetDeployablePatchSnapshotForInstanceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetDeployablePatchSnapshotForInstanceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetDocumentCommand.ts b/clients/client-ssm/commands/GetDocumentCommand.ts index 218f1b5420e2e..151c63f71df1d 100644 --- a/clients/client-ssm/commands/GetDocumentCommand.ts +++ b/clients/client-ssm/commands/GetDocumentCommand.ts @@ -28,6 +28,7 @@ export class GetDocumentCommand extends $Command< GetDocumentCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDocumentCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetInventoryCommand.ts b/clients/client-ssm/commands/GetInventoryCommand.ts index 936f6246c91ea..7d773830330db 100644 --- a/clients/client-ssm/commands/GetInventoryCommand.ts +++ b/clients/client-ssm/commands/GetInventoryCommand.ts @@ -28,6 +28,7 @@ export class GetInventoryCommand extends $Command< GetInventoryCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInventoryCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetInventorySchemaCommand.ts b/clients/client-ssm/commands/GetInventorySchemaCommand.ts index b8959c7104667..54078aff778a9 100644 --- a/clients/client-ssm/commands/GetInventorySchemaCommand.ts +++ b/clients/client-ssm/commands/GetInventorySchemaCommand.ts @@ -29,6 +29,7 @@ export class GetInventorySchemaCommand extends $Command< GetInventorySchemaCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInventorySchemaCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetMaintenanceWindowCommand.ts b/clients/client-ssm/commands/GetMaintenanceWindowCommand.ts index 24eca60a8d1f7..99c76260529d7 100644 --- a/clients/client-ssm/commands/GetMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/GetMaintenanceWindowCommand.ts @@ -28,6 +28,7 @@ export class GetMaintenanceWindowCommand extends $Command< GetMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetMaintenanceWindowExecutionCommand.ts b/clients/client-ssm/commands/GetMaintenanceWindowExecutionCommand.ts index 6ede4c7993c20..e6cdeb9cee8b6 100644 --- a/clients/client-ssm/commands/GetMaintenanceWindowExecutionCommand.ts +++ b/clients/client-ssm/commands/GetMaintenanceWindowExecutionCommand.ts @@ -28,6 +28,7 @@ export class GetMaintenanceWindowExecutionCommand extends $Command< GetMaintenanceWindowExecutionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMaintenanceWindowExecutionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskCommand.ts b/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskCommand.ts index c84fe36a3dd61..0b0bfad9efc31 100644 --- a/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskCommand.ts +++ b/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskCommand.ts @@ -29,6 +29,7 @@ export class GetMaintenanceWindowExecutionTaskCommand extends $Command< GetMaintenanceWindowExecutionTaskCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetMaintenanceWindowExecutionTaskCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.ts b/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.ts index 2f9bf68a39c28..c8499b03ab32d 100644 --- a/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.ts +++ b/clients/client-ssm/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.ts @@ -32,6 +32,7 @@ export class GetMaintenanceWindowExecutionTaskInvocationCommand extends $Command GetMaintenanceWindowExecutionTaskInvocationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetMaintenanceWindowExecutionTaskInvocationCommand extends $Command GetMaintenanceWindowExecutionTaskInvocationCommandInput, GetMaintenanceWindowExecutionTaskInvocationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetMaintenanceWindowTaskCommand.ts b/clients/client-ssm/commands/GetMaintenanceWindowTaskCommand.ts index fb79c31452ab5..065f636751b75 100644 --- a/clients/client-ssm/commands/GetMaintenanceWindowTaskCommand.ts +++ b/clients/client-ssm/commands/GetMaintenanceWindowTaskCommand.ts @@ -28,6 +28,7 @@ export class GetMaintenanceWindowTaskCommand extends $Command< GetMaintenanceWindowTaskCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMaintenanceWindowTaskCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetOpsItemCommand.ts b/clients/client-ssm/commands/GetOpsItemCommand.ts index 89f7c92ba3a3e..9dbec45da1e1f 100644 --- a/clients/client-ssm/commands/GetOpsItemCommand.ts +++ b/clients/client-ssm/commands/GetOpsItemCommand.ts @@ -35,6 +35,7 @@ export class GetOpsItemCommand extends $Command< GetOpsItemCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetOpsItemCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetOpsMetadataCommand.ts b/clients/client-ssm/commands/GetOpsMetadataCommand.ts index 864cef40825d5..5eb524e582dde 100644 --- a/clients/client-ssm/commands/GetOpsMetadataCommand.ts +++ b/clients/client-ssm/commands/GetOpsMetadataCommand.ts @@ -28,6 +28,7 @@ export class GetOpsMetadataCommand extends $Command< GetOpsMetadataCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOpsMetadataCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetOpsSummaryCommand.ts b/clients/client-ssm/commands/GetOpsSummaryCommand.ts index ea8ec54387f4c..72317ed2a913e 100644 --- a/clients/client-ssm/commands/GetOpsSummaryCommand.ts +++ b/clients/client-ssm/commands/GetOpsSummaryCommand.ts @@ -28,6 +28,7 @@ export class GetOpsSummaryCommand extends $Command< GetOpsSummaryCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetOpsSummaryCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetParameterCommand.ts b/clients/client-ssm/commands/GetParameterCommand.ts index ccc36b928ff83..66219fbc69895 100644 --- a/clients/client-ssm/commands/GetParameterCommand.ts +++ b/clients/client-ssm/commands/GetParameterCommand.ts @@ -29,6 +29,7 @@ export class GetParameterCommand extends $Command< GetParameterCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetParameterCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetParameterHistoryCommand.ts b/clients/client-ssm/commands/GetParameterHistoryCommand.ts index 81f2bb39621d6..378d446f255da 100644 --- a/clients/client-ssm/commands/GetParameterHistoryCommand.ts +++ b/clients/client-ssm/commands/GetParameterHistoryCommand.ts @@ -28,6 +28,7 @@ export class GetParameterHistoryCommand extends $Command< GetParameterHistoryCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetParameterHistoryCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetParametersByPathCommand.ts b/clients/client-ssm/commands/GetParametersByPathCommand.ts index 36c8942997912..3bedf164a2fbe 100644 --- a/clients/client-ssm/commands/GetParametersByPathCommand.ts +++ b/clients/client-ssm/commands/GetParametersByPathCommand.ts @@ -36,6 +36,7 @@ export class GetParametersByPathCommand extends $Command< GetParametersByPathCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetParametersByPathCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetParametersCommand.ts b/clients/client-ssm/commands/GetParametersCommand.ts index ddc3d5ef7966b..8466b0067f8c8 100644 --- a/clients/client-ssm/commands/GetParametersCommand.ts +++ b/clients/client-ssm/commands/GetParametersCommand.ts @@ -28,6 +28,7 @@ export class GetParametersCommand extends $Command< GetParametersCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetParametersCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetPatchBaselineCommand.ts b/clients/client-ssm/commands/GetPatchBaselineCommand.ts index 99e649fa9bd61..1d345aa526372 100644 --- a/clients/client-ssm/commands/GetPatchBaselineCommand.ts +++ b/clients/client-ssm/commands/GetPatchBaselineCommand.ts @@ -28,6 +28,7 @@ export class GetPatchBaselineCommand extends $Command< GetPatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetPatchBaselineForPatchGroupCommand.ts b/clients/client-ssm/commands/GetPatchBaselineForPatchGroupCommand.ts index 72c87ea49ad40..c63abb0b3f5de 100644 --- a/clients/client-ssm/commands/GetPatchBaselineForPatchGroupCommand.ts +++ b/clients/client-ssm/commands/GetPatchBaselineForPatchGroupCommand.ts @@ -28,6 +28,7 @@ export class GetPatchBaselineForPatchGroupCommand extends $Command< GetPatchBaselineForPatchGroupCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetPatchBaselineForPatchGroupCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/GetServiceSettingCommand.ts b/clients/client-ssm/commands/GetServiceSettingCommand.ts index aa213a39239af..547b4db554e20 100644 --- a/clients/client-ssm/commands/GetServiceSettingCommand.ts +++ b/clients/client-ssm/commands/GetServiceSettingCommand.ts @@ -41,6 +41,7 @@ export class GetServiceSettingCommand extends $Command< GetServiceSettingCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class GetServiceSettingCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/LabelParameterVersionCommand.ts b/clients/client-ssm/commands/LabelParameterVersionCommand.ts index 214eca3ff792b..f9fb67f610c52 100644 --- a/clients/client-ssm/commands/LabelParameterVersionCommand.ts +++ b/clients/client-ssm/commands/LabelParameterVersionCommand.ts @@ -64,6 +64,7 @@ export class LabelParameterVersionCommand extends $Command< LabelParameterVersionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class LabelParameterVersionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListAssociationVersionsCommand.ts b/clients/client-ssm/commands/ListAssociationVersionsCommand.ts index bbae850236615..d6b63b0bce64d 100644 --- a/clients/client-ssm/commands/ListAssociationVersionsCommand.ts +++ b/clients/client-ssm/commands/ListAssociationVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListAssociationVersionsCommand extends $Command< ListAssociationVersionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAssociationVersionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListAssociationsCommand.ts b/clients/client-ssm/commands/ListAssociationsCommand.ts index 995b24af79992..c83a5a5d09eb6 100644 --- a/clients/client-ssm/commands/ListAssociationsCommand.ts +++ b/clients/client-ssm/commands/ListAssociationsCommand.ts @@ -30,6 +30,7 @@ export class ListAssociationsCommand extends $Command< ListAssociationsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAssociationsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListCommandInvocationsCommand.ts b/clients/client-ssm/commands/ListCommandInvocationsCommand.ts index 3bb065c487e20..8ae6498733a6a 100644 --- a/clients/client-ssm/commands/ListCommandInvocationsCommand.ts +++ b/clients/client-ssm/commands/ListCommandInvocationsCommand.ts @@ -31,6 +31,7 @@ export class ListCommandInvocationsCommand extends $Command< ListCommandInvocationsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListCommandInvocationsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListCommandsCommand.ts b/clients/client-ssm/commands/ListCommandsCommand.ts index 4e9f7d4096b10..2712b64decedb 100644 --- a/clients/client-ssm/commands/ListCommandsCommand.ts +++ b/clients/client-ssm/commands/ListCommandsCommand.ts @@ -28,6 +28,7 @@ export class ListCommandsCommand extends $Command< ListCommandsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListCommandsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListComplianceItemsCommand.ts b/clients/client-ssm/commands/ListComplianceItemsCommand.ts index 2cf8a766328c4..761d52d60f9fe 100644 --- a/clients/client-ssm/commands/ListComplianceItemsCommand.ts +++ b/clients/client-ssm/commands/ListComplianceItemsCommand.ts @@ -30,6 +30,7 @@ export class ListComplianceItemsCommand extends $Command< ListComplianceItemsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListComplianceItemsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListComplianceSummariesCommand.ts b/clients/client-ssm/commands/ListComplianceSummariesCommand.ts index bfcc01675c396..53106f93b0e84 100644 --- a/clients/client-ssm/commands/ListComplianceSummariesCommand.ts +++ b/clients/client-ssm/commands/ListComplianceSummariesCommand.ts @@ -30,6 +30,7 @@ export class ListComplianceSummariesCommand extends $Command< ListComplianceSummariesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListComplianceSummariesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListDocumentVersionsCommand.ts b/clients/client-ssm/commands/ListDocumentVersionsCommand.ts index 88d04c57f40cf..b98a3175d9af0 100644 --- a/clients/client-ssm/commands/ListDocumentVersionsCommand.ts +++ b/clients/client-ssm/commands/ListDocumentVersionsCommand.ts @@ -28,6 +28,7 @@ export class ListDocumentVersionsCommand extends $Command< ListDocumentVersionsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDocumentVersionsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListDocumentsCommand.ts b/clients/client-ssm/commands/ListDocumentsCommand.ts index e316d766ab99d..da3207fc6e002 100644 --- a/clients/client-ssm/commands/ListDocumentsCommand.ts +++ b/clients/client-ssm/commands/ListDocumentsCommand.ts @@ -29,6 +29,7 @@ export class ListDocumentsCommand extends $Command< ListDocumentsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListDocumentsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListInventoryEntriesCommand.ts b/clients/client-ssm/commands/ListInventoryEntriesCommand.ts index bf804a022628b..8762eee13b34c 100644 --- a/clients/client-ssm/commands/ListInventoryEntriesCommand.ts +++ b/clients/client-ssm/commands/ListInventoryEntriesCommand.ts @@ -28,6 +28,7 @@ export class ListInventoryEntriesCommand extends $Command< ListInventoryEntriesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInventoryEntriesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListOpsMetadataCommand.ts b/clients/client-ssm/commands/ListOpsMetadataCommand.ts index 84c4efe721bda..d311003df6864 100644 --- a/clients/client-ssm/commands/ListOpsMetadataCommand.ts +++ b/clients/client-ssm/commands/ListOpsMetadataCommand.ts @@ -29,6 +29,7 @@ export class ListOpsMetadataCommand extends $Command< ListOpsMetadataCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListOpsMetadataCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListResourceComplianceSummariesCommand.ts b/clients/client-ssm/commands/ListResourceComplianceSummariesCommand.ts index 1b2fc26e9a5f0..de907b8bdb626 100644 --- a/clients/client-ssm/commands/ListResourceComplianceSummariesCommand.ts +++ b/clients/client-ssm/commands/ListResourceComplianceSummariesCommand.ts @@ -30,6 +30,7 @@ export class ListResourceComplianceSummariesCommand extends $Command< ListResourceComplianceSummariesCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListResourceComplianceSummariesCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListResourceDataSyncCommand.ts b/clients/client-ssm/commands/ListResourceDataSyncCommand.ts index 36184d323c7b4..3f227c9028d19 100644 --- a/clients/client-ssm/commands/ListResourceDataSyncCommand.ts +++ b/clients/client-ssm/commands/ListResourceDataSyncCommand.ts @@ -36,6 +36,7 @@ export class ListResourceDataSyncCommand extends $Command< ListResourceDataSyncCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListResourceDataSyncCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ListTagsForResourceCommand.ts b/clients/client-ssm/commands/ListTagsForResourceCommand.ts index a31fe528eb2f4..3c267c71f329e 100644 --- a/clients/client-ssm/commands/ListTagsForResourceCommand.ts +++ b/clients/client-ssm/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ModifyDocumentPermissionCommand.ts b/clients/client-ssm/commands/ModifyDocumentPermissionCommand.ts index c77e7c0e383f0..280ff3a26907c 100644 --- a/clients/client-ssm/commands/ModifyDocumentPermissionCommand.ts +++ b/clients/client-ssm/commands/ModifyDocumentPermissionCommand.ts @@ -30,6 +30,7 @@ export class ModifyDocumentPermissionCommand extends $Command< ModifyDocumentPermissionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyDocumentPermissionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/PutComplianceItemsCommand.ts b/clients/client-ssm/commands/PutComplianceItemsCommand.ts index cc24e72aa3884..b3bc3478f17df 100644 --- a/clients/client-ssm/commands/PutComplianceItemsCommand.ts +++ b/clients/client-ssm/commands/PutComplianceItemsCommand.ts @@ -83,6 +83,7 @@ export class PutComplianceItemsCommand extends $Command< PutComplianceItemsCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -100,7 +101,10 @@ export class PutComplianceItemsCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/PutInventoryCommand.ts b/clients/client-ssm/commands/PutInventoryCommand.ts index 13ea9d2cbb380..185c9787ac3f2 100644 --- a/clients/client-ssm/commands/PutInventoryCommand.ts +++ b/clients/client-ssm/commands/PutInventoryCommand.ts @@ -29,6 +29,7 @@ export class PutInventoryCommand extends $Command< PutInventoryCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutInventoryCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/PutParameterCommand.ts b/clients/client-ssm/commands/PutParameterCommand.ts index e93e3d3908115..70794b4ad0d05 100644 --- a/clients/client-ssm/commands/PutParameterCommand.ts +++ b/clients/client-ssm/commands/PutParameterCommand.ts @@ -28,6 +28,7 @@ export class PutParameterCommand extends $Command< PutParameterCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutParameterCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/RegisterDefaultPatchBaselineCommand.ts b/clients/client-ssm/commands/RegisterDefaultPatchBaselineCommand.ts index f250e710056eb..2fe418fe21b6f 100644 --- a/clients/client-ssm/commands/RegisterDefaultPatchBaselineCommand.ts +++ b/clients/client-ssm/commands/RegisterDefaultPatchBaselineCommand.ts @@ -32,6 +32,7 @@ export class RegisterDefaultPatchBaselineCommand extends $Command< RegisterDefaultPatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RegisterDefaultPatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/RegisterPatchBaselineForPatchGroupCommand.ts b/clients/client-ssm/commands/RegisterPatchBaselineForPatchGroupCommand.ts index d9068450af64d..51ffebf13b4c3 100644 --- a/clients/client-ssm/commands/RegisterPatchBaselineForPatchGroupCommand.ts +++ b/clients/client-ssm/commands/RegisterPatchBaselineForPatchGroupCommand.ts @@ -32,6 +32,7 @@ export class RegisterPatchBaselineForPatchGroupCommand extends $Command< RegisterPatchBaselineForPatchGroupCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RegisterPatchBaselineForPatchGroupCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/RegisterTargetWithMaintenanceWindowCommand.ts b/clients/client-ssm/commands/RegisterTargetWithMaintenanceWindowCommand.ts index 1f016098fd591..aa2b60651899a 100644 --- a/clients/client-ssm/commands/RegisterTargetWithMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/RegisterTargetWithMaintenanceWindowCommand.ts @@ -32,6 +32,7 @@ export class RegisterTargetWithMaintenanceWindowCommand extends $Command< RegisterTargetWithMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RegisterTargetWithMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/RegisterTaskWithMaintenanceWindowCommand.ts b/clients/client-ssm/commands/RegisterTaskWithMaintenanceWindowCommand.ts index 8334aaa864bcf..bb766e12f9a7c 100644 --- a/clients/client-ssm/commands/RegisterTaskWithMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/RegisterTaskWithMaintenanceWindowCommand.ts @@ -28,6 +28,7 @@ export class RegisterTaskWithMaintenanceWindowCommand extends $Command< RegisterTaskWithMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RegisterTaskWithMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/RemoveTagsFromResourceCommand.ts b/clients/client-ssm/commands/RemoveTagsFromResourceCommand.ts index 83698224a3122..92acd1d978883 100644 --- a/clients/client-ssm/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-ssm/commands/RemoveTagsFromResourceCommand.ts @@ -28,6 +28,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ResetServiceSettingCommand.ts b/clients/client-ssm/commands/ResetServiceSettingCommand.ts index 12efb6bc770e8..4a55167fd0e19 100644 --- a/clients/client-ssm/commands/ResetServiceSettingCommand.ts +++ b/clients/client-ssm/commands/ResetServiceSettingCommand.ts @@ -42,6 +42,7 @@ export class ResetServiceSettingCommand extends $Command< ResetServiceSettingCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class ResetServiceSettingCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/ResumeSessionCommand.ts b/clients/client-ssm/commands/ResumeSessionCommand.ts index 478b351c37409..2463ea7ce044e 100644 --- a/clients/client-ssm/commands/ResumeSessionCommand.ts +++ b/clients/client-ssm/commands/ResumeSessionCommand.ts @@ -33,6 +33,7 @@ export class ResumeSessionCommand extends $Command< ResumeSessionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ResumeSessionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/SendAutomationSignalCommand.ts b/clients/client-ssm/commands/SendAutomationSignalCommand.ts index 82ece0ecbbfb4..2550b70646208 100644 --- a/clients/client-ssm/commands/SendAutomationSignalCommand.ts +++ b/clients/client-ssm/commands/SendAutomationSignalCommand.ts @@ -29,6 +29,7 @@ export class SendAutomationSignalCommand extends $Command< SendAutomationSignalCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SendAutomationSignalCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/SendCommandCommand.ts b/clients/client-ssm/commands/SendCommandCommand.ts index 6a5f68cb24b27..f0fa9dddad97f 100644 --- a/clients/client-ssm/commands/SendCommandCommand.ts +++ b/clients/client-ssm/commands/SendCommandCommand.ts @@ -28,6 +28,7 @@ export class SendCommandCommand extends $Command< SendCommandCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SendCommandCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/StartAssociationsOnceCommand.ts b/clients/client-ssm/commands/StartAssociationsOnceCommand.ts index 7fc3a95e95843..d23f51da69641 100644 --- a/clients/client-ssm/commands/StartAssociationsOnceCommand.ts +++ b/clients/client-ssm/commands/StartAssociationsOnceCommand.ts @@ -29,6 +29,7 @@ export class StartAssociationsOnceCommand extends $Command< StartAssociationsOnceCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class StartAssociationsOnceCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/StartAutomationExecutionCommand.ts b/clients/client-ssm/commands/StartAutomationExecutionCommand.ts index 1df4291f061df..9408187ea7f75 100644 --- a/clients/client-ssm/commands/StartAutomationExecutionCommand.ts +++ b/clients/client-ssm/commands/StartAutomationExecutionCommand.ts @@ -28,6 +28,7 @@ export class StartAutomationExecutionCommand extends $Command< StartAutomationExecutionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartAutomationExecutionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/StartSessionCommand.ts b/clients/client-ssm/commands/StartSessionCommand.ts index b95e71351cc2a..2f8d0f72944d5 100644 --- a/clients/client-ssm/commands/StartSessionCommand.ts +++ b/clients/client-ssm/commands/StartSessionCommand.ts @@ -37,6 +37,7 @@ export class StartSessionCommand extends $Command< StartSessionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class StartSessionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/StopAutomationExecutionCommand.ts b/clients/client-ssm/commands/StopAutomationExecutionCommand.ts index d65f9e35d7532..04ff1d01e92d7 100644 --- a/clients/client-ssm/commands/StopAutomationExecutionCommand.ts +++ b/clients/client-ssm/commands/StopAutomationExecutionCommand.ts @@ -28,6 +28,7 @@ export class StopAutomationExecutionCommand extends $Command< StopAutomationExecutionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StopAutomationExecutionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/TerminateSessionCommand.ts b/clients/client-ssm/commands/TerminateSessionCommand.ts index 76a69618a3b2c..4d3c710052af2 100644 --- a/clients/client-ssm/commands/TerminateSessionCommand.ts +++ b/clients/client-ssm/commands/TerminateSessionCommand.ts @@ -29,6 +29,7 @@ export class TerminateSessionCommand extends $Command< TerminateSessionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TerminateSessionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateAssociationCommand.ts b/clients/client-ssm/commands/UpdateAssociationCommand.ts index c1823ee6f9ab6..91e7de886bec6 100644 --- a/clients/client-ssm/commands/UpdateAssociationCommand.ts +++ b/clients/client-ssm/commands/UpdateAssociationCommand.ts @@ -40,6 +40,7 @@ export class UpdateAssociationCommand extends $Command< UpdateAssociationCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class UpdateAssociationCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateAssociationStatusCommand.ts b/clients/client-ssm/commands/UpdateAssociationStatusCommand.ts index f8fb67d915c33..2dc2e2c3235e2 100644 --- a/clients/client-ssm/commands/UpdateAssociationStatusCommand.ts +++ b/clients/client-ssm/commands/UpdateAssociationStatusCommand.ts @@ -28,6 +28,7 @@ export class UpdateAssociationStatusCommand extends $Command< UpdateAssociationStatusCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAssociationStatusCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateDocumentCommand.ts b/clients/client-ssm/commands/UpdateDocumentCommand.ts index ba7418f3a1d60..d7231bda9974f 100644 --- a/clients/client-ssm/commands/UpdateDocumentCommand.ts +++ b/clients/client-ssm/commands/UpdateDocumentCommand.ts @@ -28,6 +28,7 @@ export class UpdateDocumentCommand extends $Command< UpdateDocumentCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDocumentCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateDocumentDefaultVersionCommand.ts b/clients/client-ssm/commands/UpdateDocumentDefaultVersionCommand.ts index 5b7fa3c596ff2..66b517af65b14 100644 --- a/clients/client-ssm/commands/UpdateDocumentDefaultVersionCommand.ts +++ b/clients/client-ssm/commands/UpdateDocumentDefaultVersionCommand.ts @@ -28,6 +28,7 @@ export class UpdateDocumentDefaultVersionCommand extends $Command< UpdateDocumentDefaultVersionCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDocumentDefaultVersionCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateMaintenanceWindowCommand.ts b/clients/client-ssm/commands/UpdateMaintenanceWindowCommand.ts index ce74b460d6f16..2f1259317ed79 100644 --- a/clients/client-ssm/commands/UpdateMaintenanceWindowCommand.ts +++ b/clients/client-ssm/commands/UpdateMaintenanceWindowCommand.ts @@ -36,6 +36,7 @@ export class UpdateMaintenanceWindowCommand extends $Command< UpdateMaintenanceWindowCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateMaintenanceWindowCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateMaintenanceWindowTargetCommand.ts b/clients/client-ssm/commands/UpdateMaintenanceWindowTargetCommand.ts index 2c26118671ddc..4eac9f1d1cb18 100644 --- a/clients/client-ssm/commands/UpdateMaintenanceWindowTargetCommand.ts +++ b/clients/client-ssm/commands/UpdateMaintenanceWindowTargetCommand.ts @@ -54,6 +54,7 @@ export class UpdateMaintenanceWindowTargetCommand extends $Command< UpdateMaintenanceWindowTargetCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class UpdateMaintenanceWindowTargetCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateMaintenanceWindowTaskCommand.ts b/clients/client-ssm/commands/UpdateMaintenanceWindowTaskCommand.ts index 18da08063d485..703791be2be06 100644 --- a/clients/client-ssm/commands/UpdateMaintenanceWindowTaskCommand.ts +++ b/clients/client-ssm/commands/UpdateMaintenanceWindowTaskCommand.ts @@ -64,6 +64,7 @@ export class UpdateMaintenanceWindowTaskCommand extends $Command< UpdateMaintenanceWindowTaskCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,7 +82,10 @@ export class UpdateMaintenanceWindowTaskCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateManagedInstanceRoleCommand.ts b/clients/client-ssm/commands/UpdateManagedInstanceRoleCommand.ts index 949ad048d0c17..b14674721fff9 100644 --- a/clients/client-ssm/commands/UpdateManagedInstanceRoleCommand.ts +++ b/clients/client-ssm/commands/UpdateManagedInstanceRoleCommand.ts @@ -30,6 +30,7 @@ export class UpdateManagedInstanceRoleCommand extends $Command< UpdateManagedInstanceRoleCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateManagedInstanceRoleCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateOpsItemCommand.ts b/clients/client-ssm/commands/UpdateOpsItemCommand.ts index c0a060e12a450..093c352a6be4a 100644 --- a/clients/client-ssm/commands/UpdateOpsItemCommand.ts +++ b/clients/client-ssm/commands/UpdateOpsItemCommand.ts @@ -34,6 +34,7 @@ export class UpdateOpsItemCommand extends $Command< UpdateOpsItemCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateOpsItemCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateOpsMetadataCommand.ts b/clients/client-ssm/commands/UpdateOpsMetadataCommand.ts index 02fa14e0c4ae5..b43473823bd18 100644 --- a/clients/client-ssm/commands/UpdateOpsMetadataCommand.ts +++ b/clients/client-ssm/commands/UpdateOpsMetadataCommand.ts @@ -28,6 +28,7 @@ export class UpdateOpsMetadataCommand extends $Command< UpdateOpsMetadataCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateOpsMetadataCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdatePatchBaselineCommand.ts b/clients/client-ssm/commands/UpdatePatchBaselineCommand.ts index 93cc2ea15dfaa..2164b6b7c2e1b 100644 --- a/clients/client-ssm/commands/UpdatePatchBaselineCommand.ts +++ b/clients/client-ssm/commands/UpdatePatchBaselineCommand.ts @@ -33,6 +33,7 @@ export class UpdatePatchBaselineCommand extends $Command< UpdatePatchBaselineCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdatePatchBaselineCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateResourceDataSyncCommand.ts b/clients/client-ssm/commands/UpdateResourceDataSyncCommand.ts index 6a62ece166945..4230713044d50 100644 --- a/clients/client-ssm/commands/UpdateResourceDataSyncCommand.ts +++ b/clients/client-ssm/commands/UpdateResourceDataSyncCommand.ts @@ -36,6 +36,7 @@ export class UpdateResourceDataSyncCommand extends $Command< UpdateResourceDataSyncCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateResourceDataSyncCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-ssm/commands/UpdateServiceSettingCommand.ts b/clients/client-ssm/commands/UpdateServiceSettingCommand.ts index f5b6f95244c59..6a2baad6a0918 100644 --- a/clients/client-ssm/commands/UpdateServiceSettingCommand.ts +++ b/clients/client-ssm/commands/UpdateServiceSettingCommand.ts @@ -41,6 +41,7 @@ export class UpdateServiceSettingCommand extends $Command< UpdateServiceSettingCommandOutput, SSMClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class UpdateServiceSettingCommand extends $Command< configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/AttachManagedPolicyToPermissionSetCommand.ts b/clients/client-sso-admin/commands/AttachManagedPolicyToPermissionSetCommand.ts index 50bc63ca613f6..69a3515cf5683 100644 --- a/clients/client-sso-admin/commands/AttachManagedPolicyToPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/AttachManagedPolicyToPermissionSetCommand.ts @@ -37,6 +37,7 @@ export class AttachManagedPolicyToPermissionSetCommand extends $Command< AttachManagedPolicyToPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class AttachManagedPolicyToPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/CreateAccountAssignmentCommand.ts b/clients/client-sso-admin/commands/CreateAccountAssignmentCommand.ts index 851859549385d..2e06c1bb723f1 100644 --- a/clients/client-sso-admin/commands/CreateAccountAssignmentCommand.ts +++ b/clients/client-sso-admin/commands/CreateAccountAssignmentCommand.ts @@ -37,6 +37,7 @@ export class CreateAccountAssignmentCommand extends $Command< CreateAccountAssignmentCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateAccountAssignmentCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/CreateInstanceAccessControlAttributeConfigurationCommand.ts b/clients/client-sso-admin/commands/CreateInstanceAccessControlAttributeConfigurationCommand.ts index 56d4523ac5a13..2bc0184db1be2 100644 --- a/clients/client-sso-admin/commands/CreateInstanceAccessControlAttributeConfigurationCommand.ts +++ b/clients/client-sso-admin/commands/CreateInstanceAccessControlAttributeConfigurationCommand.ts @@ -32,6 +32,7 @@ export class CreateInstanceAccessControlAttributeConfigurationCommand extends $C CreateInstanceAccessControlAttributeConfigurationCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateInstanceAccessControlAttributeConfigurationCommand extends $C CreateInstanceAccessControlAttributeConfigurationCommandInput, CreateInstanceAccessControlAttributeConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/CreatePermissionSetCommand.ts b/clients/client-sso-admin/commands/CreatePermissionSetCommand.ts index 42e151a25f879..6c91fd0aab94d 100644 --- a/clients/client-sso-admin/commands/CreatePermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/CreatePermissionSetCommand.ts @@ -33,6 +33,7 @@ export class CreatePermissionSetCommand extends $Command< CreatePermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class CreatePermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DeleteAccountAssignmentCommand.ts b/clients/client-sso-admin/commands/DeleteAccountAssignmentCommand.ts index 90407590293da..71635b3a2abbf 100644 --- a/clients/client-sso-admin/commands/DeleteAccountAssignmentCommand.ts +++ b/clients/client-sso-admin/commands/DeleteAccountAssignmentCommand.ts @@ -29,6 +29,7 @@ export class DeleteAccountAssignmentCommand extends $Command< DeleteAccountAssignmentCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAccountAssignmentCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DeleteInlinePolicyFromPermissionSetCommand.ts b/clients/client-sso-admin/commands/DeleteInlinePolicyFromPermissionSetCommand.ts index 4a8b2076c8362..347d2c1c3dfdf 100644 --- a/clients/client-sso-admin/commands/DeleteInlinePolicyFromPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/DeleteInlinePolicyFromPermissionSetCommand.ts @@ -32,6 +32,7 @@ export class DeleteInlinePolicyFromPermissionSetCommand extends $Command< DeleteInlinePolicyFromPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteInlinePolicyFromPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.ts b/clients/client-sso-admin/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.ts index 2dff7785ab109..9cf9b7bbe4114 100644 --- a/clients/client-sso-admin/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.ts +++ b/clients/client-sso-admin/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DeleteInstanceAccessControlAttributeConfigurationCommand extends $C DeleteInstanceAccessControlAttributeConfigurationCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DeleteInstanceAccessControlAttributeConfigurationCommand extends $C DeleteInstanceAccessControlAttributeConfigurationCommandInput, DeleteInstanceAccessControlAttributeConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DeletePermissionSetCommand.ts b/clients/client-sso-admin/commands/DeletePermissionSetCommand.ts index a10663670e5d3..b37dc1b900ebb 100644 --- a/clients/client-sso-admin/commands/DeletePermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/DeletePermissionSetCommand.ts @@ -28,6 +28,7 @@ export class DeletePermissionSetCommand extends $Command< DeletePermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeletePermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DescribeAccountAssignmentCreationStatusCommand.ts b/clients/client-sso-admin/commands/DescribeAccountAssignmentCreationStatusCommand.ts index 8c9deaf50013a..15a9a946639ea 100644 --- a/clients/client-sso-admin/commands/DescribeAccountAssignmentCreationStatusCommand.ts +++ b/clients/client-sso-admin/commands/DescribeAccountAssignmentCreationStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribeAccountAssignmentCreationStatusCommand extends $Command< DescribeAccountAssignmentCreationStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeAccountAssignmentCreationStatusCommand extends $Command< DescribeAccountAssignmentCreationStatusCommandInput, DescribeAccountAssignmentCreationStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DescribeAccountAssignmentDeletionStatusCommand.ts b/clients/client-sso-admin/commands/DescribeAccountAssignmentDeletionStatusCommand.ts index 439d695f87c7d..66da1853abc64 100644 --- a/clients/client-sso-admin/commands/DescribeAccountAssignmentDeletionStatusCommand.ts +++ b/clients/client-sso-admin/commands/DescribeAccountAssignmentDeletionStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribeAccountAssignmentDeletionStatusCommand extends $Command< DescribeAccountAssignmentDeletionStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeAccountAssignmentDeletionStatusCommand extends $Command< DescribeAccountAssignmentDeletionStatusCommandInput, DescribeAccountAssignmentDeletionStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.ts b/clients/client-sso-admin/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.ts index 564f2a96c7a39..18c81874aee33 100644 --- a/clients/client-sso-admin/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.ts +++ b/clients/client-sso-admin/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DescribeInstanceAccessControlAttributeConfigurationCommand extends DescribeInstanceAccessControlAttributeConfigurationCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeInstanceAccessControlAttributeConfigurationCommand extends DescribeInstanceAccessControlAttributeConfigurationCommandInput, DescribeInstanceAccessControlAttributeConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DescribePermissionSetCommand.ts b/clients/client-sso-admin/commands/DescribePermissionSetCommand.ts index b18b913fdcf6e..faa4bafc7755d 100644 --- a/clients/client-sso-admin/commands/DescribePermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/DescribePermissionSetCommand.ts @@ -28,6 +28,7 @@ export class DescribePermissionSetCommand extends $Command< DescribePermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribePermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DescribePermissionSetProvisioningStatusCommand.ts b/clients/client-sso-admin/commands/DescribePermissionSetProvisioningStatusCommand.ts index 906f44dd8df94..3899a28490576 100644 --- a/clients/client-sso-admin/commands/DescribePermissionSetProvisioningStatusCommand.ts +++ b/clients/client-sso-admin/commands/DescribePermissionSetProvisioningStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribePermissionSetProvisioningStatusCommand extends $Command< DescribePermissionSetProvisioningStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribePermissionSetProvisioningStatusCommand extends $Command< DescribePermissionSetProvisioningStatusCommandInput, DescribePermissionSetProvisioningStatusCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/DetachManagedPolicyFromPermissionSetCommand.ts b/clients/client-sso-admin/commands/DetachManagedPolicyFromPermissionSetCommand.ts index 4bcd71c793983..c7ffd41040452 100644 --- a/clients/client-sso-admin/commands/DetachManagedPolicyFromPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/DetachManagedPolicyFromPermissionSetCommand.ts @@ -32,6 +32,7 @@ export class DetachManagedPolicyFromPermissionSetCommand extends $Command< DetachManagedPolicyFromPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DetachManagedPolicyFromPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/GetInlinePolicyForPermissionSetCommand.ts b/clients/client-sso-admin/commands/GetInlinePolicyForPermissionSetCommand.ts index 43932ad3f83d8..9d378ea3bb4de 100644 --- a/clients/client-sso-admin/commands/GetInlinePolicyForPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/GetInlinePolicyForPermissionSetCommand.ts @@ -28,6 +28,7 @@ export class GetInlinePolicyForPermissionSetCommand extends $Command< GetInlinePolicyForPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInlinePolicyForPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListAccountAssignmentCreationStatusCommand.ts b/clients/client-sso-admin/commands/ListAccountAssignmentCreationStatusCommand.ts index 9ba47b7c6d5fe..0ac9b7732c81c 100644 --- a/clients/client-sso-admin/commands/ListAccountAssignmentCreationStatusCommand.ts +++ b/clients/client-sso-admin/commands/ListAccountAssignmentCreationStatusCommand.ts @@ -33,6 +33,7 @@ export class ListAccountAssignmentCreationStatusCommand extends $Command< ListAccountAssignmentCreationStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListAccountAssignmentCreationStatusCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListAccountAssignmentDeletionStatusCommand.ts b/clients/client-sso-admin/commands/ListAccountAssignmentDeletionStatusCommand.ts index 5e71f34a62713..67cd1191a6f53 100644 --- a/clients/client-sso-admin/commands/ListAccountAssignmentDeletionStatusCommand.ts +++ b/clients/client-sso-admin/commands/ListAccountAssignmentDeletionStatusCommand.ts @@ -33,6 +33,7 @@ export class ListAccountAssignmentDeletionStatusCommand extends $Command< ListAccountAssignmentDeletionStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListAccountAssignmentDeletionStatusCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListAccountAssignmentsCommand.ts b/clients/client-sso-admin/commands/ListAccountAssignmentsCommand.ts index 06c837813fc5a..b7bdb75b16bdf 100644 --- a/clients/client-sso-admin/commands/ListAccountAssignmentsCommand.ts +++ b/clients/client-sso-admin/commands/ListAccountAssignmentsCommand.ts @@ -29,6 +29,7 @@ export class ListAccountAssignmentsCommand extends $Command< ListAccountAssignmentsCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListAccountAssignmentsCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListAccountsForProvisionedPermissionSetCommand.ts b/clients/client-sso-admin/commands/ListAccountsForProvisionedPermissionSetCommand.ts index a553e1a0cb2e2..95332269694cb 100644 --- a/clients/client-sso-admin/commands/ListAccountsForProvisionedPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/ListAccountsForProvisionedPermissionSetCommand.ts @@ -32,6 +32,7 @@ export class ListAccountsForProvisionedPermissionSetCommand extends $Command< ListAccountsForProvisionedPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListAccountsForProvisionedPermissionSetCommand extends $Command< ListAccountsForProvisionedPermissionSetCommandInput, ListAccountsForProvisionedPermissionSetCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListInstancesCommand.ts b/clients/client-sso-admin/commands/ListInstancesCommand.ts index b295ef86743f5..6b9251eeec618 100644 --- a/clients/client-sso-admin/commands/ListInstancesCommand.ts +++ b/clients/client-sso-admin/commands/ListInstancesCommand.ts @@ -28,6 +28,7 @@ export class ListInstancesCommand extends $Command< ListInstancesCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListInstancesCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListManagedPoliciesInPermissionSetCommand.ts b/clients/client-sso-admin/commands/ListManagedPoliciesInPermissionSetCommand.ts index 9a048ac7696a8..ba8045094376c 100644 --- a/clients/client-sso-admin/commands/ListManagedPoliciesInPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/ListManagedPoliciesInPermissionSetCommand.ts @@ -32,6 +32,7 @@ export class ListManagedPoliciesInPermissionSetCommand extends $Command< ListManagedPoliciesInPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListManagedPoliciesInPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListPermissionSetProvisioningStatusCommand.ts b/clients/client-sso-admin/commands/ListPermissionSetProvisioningStatusCommand.ts index a232a0e1cd6cb..4482e099c48be 100644 --- a/clients/client-sso-admin/commands/ListPermissionSetProvisioningStatusCommand.ts +++ b/clients/client-sso-admin/commands/ListPermissionSetProvisioningStatusCommand.ts @@ -33,6 +33,7 @@ export class ListPermissionSetProvisioningStatusCommand extends $Command< ListPermissionSetProvisioningStatusCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListPermissionSetProvisioningStatusCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListPermissionSetsCommand.ts b/clients/client-sso-admin/commands/ListPermissionSetsCommand.ts index ed47f6bb44b1b..525408de47764 100644 --- a/clients/client-sso-admin/commands/ListPermissionSetsCommand.ts +++ b/clients/client-sso-admin/commands/ListPermissionSetsCommand.ts @@ -28,6 +28,7 @@ export class ListPermissionSetsCommand extends $Command< ListPermissionSetsCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListPermissionSetsCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListPermissionSetsProvisionedToAccountCommand.ts b/clients/client-sso-admin/commands/ListPermissionSetsProvisionedToAccountCommand.ts index 9a4051a0b0687..2a64f84c3c8bc 100644 --- a/clients/client-sso-admin/commands/ListPermissionSetsProvisionedToAccountCommand.ts +++ b/clients/client-sso-admin/commands/ListPermissionSetsProvisionedToAccountCommand.ts @@ -32,6 +32,7 @@ export class ListPermissionSetsProvisionedToAccountCommand extends $Command< ListPermissionSetsProvisionedToAccountCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListPermissionSetsProvisionedToAccountCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ListTagsForResourceCommand.ts b/clients/client-sso-admin/commands/ListTagsForResourceCommand.ts index 9eea50ff44f6f..a34c531f91389 100644 --- a/clients/client-sso-admin/commands/ListTagsForResourceCommand.ts +++ b/clients/client-sso-admin/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/ProvisionPermissionSetCommand.ts b/clients/client-sso-admin/commands/ProvisionPermissionSetCommand.ts index df36d03061e44..9310270e45d82 100644 --- a/clients/client-sso-admin/commands/ProvisionPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/ProvisionPermissionSetCommand.ts @@ -28,6 +28,7 @@ export class ProvisionPermissionSetCommand extends $Command< ProvisionPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ProvisionPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/PutInlinePolicyToPermissionSetCommand.ts b/clients/client-sso-admin/commands/PutInlinePolicyToPermissionSetCommand.ts index 274923e66b315..ea8d4f4e61058 100644 --- a/clients/client-sso-admin/commands/PutInlinePolicyToPermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/PutInlinePolicyToPermissionSetCommand.ts @@ -33,6 +33,7 @@ export class PutInlinePolicyToPermissionSetCommand extends $Command< PutInlinePolicyToPermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class PutInlinePolicyToPermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/TagResourceCommand.ts b/clients/client-sso-admin/commands/TagResourceCommand.ts index d417419eaf4f0..0e347dd5a34c8 100644 --- a/clients/client-sso-admin/commands/TagResourceCommand.ts +++ b/clients/client-sso-admin/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/UntagResourceCommand.ts b/clients/client-sso-admin/commands/UntagResourceCommand.ts index 1068785d3fc84..299cf5740e9b2 100644 --- a/clients/client-sso-admin/commands/UntagResourceCommand.ts +++ b/clients/client-sso-admin/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.ts b/clients/client-sso-admin/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.ts index c40cc20a90457..1632d46cb59d4 100644 --- a/clients/client-sso-admin/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.ts +++ b/clients/client-sso-admin/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.ts @@ -32,6 +32,7 @@ export class UpdateInstanceAccessControlAttributeConfigurationCommand extends $C UpdateInstanceAccessControlAttributeConfigurationCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateInstanceAccessControlAttributeConfigurationCommand extends $C UpdateInstanceAccessControlAttributeConfigurationCommandInput, UpdateInstanceAccessControlAttributeConfigurationCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-admin/commands/UpdatePermissionSetCommand.ts b/clients/client-sso-admin/commands/UpdatePermissionSetCommand.ts index 0be555b090d80..e29a241b8d39e 100644 --- a/clients/client-sso-admin/commands/UpdatePermissionSetCommand.ts +++ b/clients/client-sso-admin/commands/UpdatePermissionSetCommand.ts @@ -28,6 +28,7 @@ export class UpdatePermissionSetCommand extends $Command< UpdatePermissionSetCommandOutput, SSOAdminClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdatePermissionSetCommand extends $Command< configuration: SSOAdminClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-oidc/commands/CreateTokenCommand.ts b/clients/client-sso-oidc/commands/CreateTokenCommand.ts index f67b296a788a3..7aab1d919b1e8 100644 --- a/clients/client-sso-oidc/commands/CreateTokenCommand.ts +++ b/clients/client-sso-oidc/commands/CreateTokenCommand.ts @@ -30,6 +30,7 @@ export class CreateTokenCommand extends $Command< CreateTokenCommandOutput, SSOOIDCClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateTokenCommand extends $Command< configuration: SSOOIDCClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-oidc/commands/RegisterClientCommand.ts b/clients/client-sso-oidc/commands/RegisterClientCommand.ts index 4e1cb9fe5c7f9..ed85c29a6f9d5 100644 --- a/clients/client-sso-oidc/commands/RegisterClientCommand.ts +++ b/clients/client-sso-oidc/commands/RegisterClientCommand.ts @@ -29,6 +29,7 @@ export class RegisterClientCommand extends $Command< RegisterClientCommandOutput, SSOOIDCClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RegisterClientCommand extends $Command< configuration: SSOOIDCClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso-oidc/commands/StartDeviceAuthorizationCommand.ts b/clients/client-sso-oidc/commands/StartDeviceAuthorizationCommand.ts index 8d6f9e1b7b4e1..edd14457b482d 100644 --- a/clients/client-sso-oidc/commands/StartDeviceAuthorizationCommand.ts +++ b/clients/client-sso-oidc/commands/StartDeviceAuthorizationCommand.ts @@ -28,6 +28,7 @@ export class StartDeviceAuthorizationCommand extends $Command< StartDeviceAuthorizationCommandOutput, SSOOIDCClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartDeviceAuthorizationCommand extends $Command< configuration: SSOOIDCClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso/commands/GetRoleCredentialsCommand.ts b/clients/client-sso/commands/GetRoleCredentialsCommand.ts index 9feac34b3489c..bbea6c074fc0a 100644 --- a/clients/client-sso/commands/GetRoleCredentialsCommand.ts +++ b/clients/client-sso/commands/GetRoleCredentialsCommand.ts @@ -29,6 +29,7 @@ export class GetRoleCredentialsCommand extends $Command< GetRoleCredentialsCommandOutput, SSOClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetRoleCredentialsCommand extends $Command< configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso/commands/ListAccountRolesCommand.ts b/clients/client-sso/commands/ListAccountRolesCommand.ts index 1729397653087..24ae34f11da9d 100644 --- a/clients/client-sso/commands/ListAccountRolesCommand.ts +++ b/clients/client-sso/commands/ListAccountRolesCommand.ts @@ -28,6 +28,7 @@ export class ListAccountRolesCommand extends $Command< ListAccountRolesCommandOutput, SSOClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAccountRolesCommand extends $Command< configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso/commands/ListAccountsCommand.ts b/clients/client-sso/commands/ListAccountsCommand.ts index 6cc3734f229e0..d9604166303dc 100644 --- a/clients/client-sso/commands/ListAccountsCommand.ts +++ b/clients/client-sso/commands/ListAccountsCommand.ts @@ -30,6 +30,7 @@ export class ListAccountsCommand extends $Command< ListAccountsCommandOutput, SSOClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListAccountsCommand extends $Command< configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sso/commands/LogoutCommand.ts b/clients/client-sso/commands/LogoutCommand.ts index 6487afe8179dc..428ac6783afd6 100644 --- a/clients/client-sso/commands/LogoutCommand.ts +++ b/clients/client-sso/commands/LogoutCommand.ts @@ -21,6 +21,7 @@ export type LogoutCommandOutput = __MetadataBearer; *

Removes the client- and server-side session that is associated with the user.

*/ export class LogoutCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -38,7 +39,10 @@ export class LogoutCommand 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-storage-gateway/commands/ActivateGatewayCommand.ts b/clients/client-storage-gateway/commands/ActivateGatewayCommand.ts index 6fedd59b37836..fdcdf41a8984a 100644 --- a/clients/client-storage-gateway/commands/ActivateGatewayCommand.ts +++ b/clients/client-storage-gateway/commands/ActivateGatewayCommand.ts @@ -35,6 +35,7 @@ export class ActivateGatewayCommand extends $Command< ActivateGatewayCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ActivateGatewayCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AddCacheCommand.ts b/clients/client-storage-gateway/commands/AddCacheCommand.ts index 6f5ba80e32209..bb5ebe566bca4 100644 --- a/clients/client-storage-gateway/commands/AddCacheCommand.ts +++ b/clients/client-storage-gateway/commands/AddCacheCommand.ts @@ -29,6 +29,7 @@ export class AddCacheCommand extends $Command< AddCacheCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class AddCacheCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AddTagsToResourceCommand.ts b/clients/client-storage-gateway/commands/AddTagsToResourceCommand.ts index 8c3a49d86ce34..9faba04f316d8 100644 --- a/clients/client-storage-gateway/commands/AddTagsToResourceCommand.ts +++ b/clients/client-storage-gateway/commands/AddTagsToResourceCommand.ts @@ -49,6 +49,7 @@ export class AddTagsToResourceCommand extends $Command< AddTagsToResourceCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class AddTagsToResourceCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AddUploadBufferCommand.ts b/clients/client-storage-gateway/commands/AddUploadBufferCommand.ts index 557a010a230ec..1018545c39dc6 100644 --- a/clients/client-storage-gateway/commands/AddUploadBufferCommand.ts +++ b/clients/client-storage-gateway/commands/AddUploadBufferCommand.ts @@ -34,6 +34,7 @@ export class AddUploadBufferCommand extends $Command< AddUploadBufferCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AddUploadBufferCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AddWorkingStorageCommand.ts b/clients/client-storage-gateway/commands/AddWorkingStorageCommand.ts index 326f9c54f583e..64374b9f889f1 100644 --- a/clients/client-storage-gateway/commands/AddWorkingStorageCommand.ts +++ b/clients/client-storage-gateway/commands/AddWorkingStorageCommand.ts @@ -40,6 +40,7 @@ export class AddWorkingStorageCommand extends $Command< AddWorkingStorageCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class AddWorkingStorageCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AssignTapePoolCommand.ts b/clients/client-storage-gateway/commands/AssignTapePoolCommand.ts index 1841c0245155b..bc595885bd0b1 100644 --- a/clients/client-storage-gateway/commands/AssignTapePoolCommand.ts +++ b/clients/client-storage-gateway/commands/AssignTapePoolCommand.ts @@ -34,6 +34,7 @@ export class AssignTapePoolCommand extends $Command< AssignTapePoolCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class AssignTapePoolCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/AttachVolumeCommand.ts b/clients/client-storage-gateway/commands/AttachVolumeCommand.ts index 92598550aa489..9a862340bc251 100644 --- a/clients/client-storage-gateway/commands/AttachVolumeCommand.ts +++ b/clients/client-storage-gateway/commands/AttachVolumeCommand.ts @@ -31,6 +31,7 @@ export class AttachVolumeCommand extends $Command< AttachVolumeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AttachVolumeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CancelArchivalCommand.ts b/clients/client-storage-gateway/commands/CancelArchivalCommand.ts index 09f418a42ca0a..85acd2cc27eb6 100644 --- a/clients/client-storage-gateway/commands/CancelArchivalCommand.ts +++ b/clients/client-storage-gateway/commands/CancelArchivalCommand.ts @@ -29,6 +29,7 @@ export class CancelArchivalCommand extends $Command< CancelArchivalCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CancelArchivalCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CancelRetrievalCommand.ts b/clients/client-storage-gateway/commands/CancelRetrievalCommand.ts index a9b88c182ac46..ef1a54d88ce8b 100644 --- a/clients/client-storage-gateway/commands/CancelRetrievalCommand.ts +++ b/clients/client-storage-gateway/commands/CancelRetrievalCommand.ts @@ -30,6 +30,7 @@ export class CancelRetrievalCommand extends $Command< CancelRetrievalCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CancelRetrievalCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateCachediSCSIVolumeCommand.ts b/clients/client-storage-gateway/commands/CreateCachediSCSIVolumeCommand.ts index 41bdbcd879a75..57107c499990d 100644 --- a/clients/client-storage-gateway/commands/CreateCachediSCSIVolumeCommand.ts +++ b/clients/client-storage-gateway/commands/CreateCachediSCSIVolumeCommand.ts @@ -45,6 +45,7 @@ export class CreateCachediSCSIVolumeCommand extends $Command< CreateCachediSCSIVolumeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class CreateCachediSCSIVolumeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateNFSFileShareCommand.ts b/clients/client-storage-gateway/commands/CreateNFSFileShareCommand.ts index a58502357e4ad..f4df6efd00ebb 100644 --- a/clients/client-storage-gateway/commands/CreateNFSFileShareCommand.ts +++ b/clients/client-storage-gateway/commands/CreateNFSFileShareCommand.ts @@ -42,6 +42,7 @@ export class CreateNFSFileShareCommand extends $Command< CreateNFSFileShareCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CreateNFSFileShareCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateSMBFileShareCommand.ts b/clients/client-storage-gateway/commands/CreateSMBFileShareCommand.ts index 6a65e5d5208c7..3fe0a42ae4ff2 100644 --- a/clients/client-storage-gateway/commands/CreateSMBFileShareCommand.ts +++ b/clients/client-storage-gateway/commands/CreateSMBFileShareCommand.ts @@ -43,6 +43,7 @@ export class CreateSMBFileShareCommand extends $Command< CreateSMBFileShareCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class CreateSMBFileShareCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateSnapshotCommand.ts b/clients/client-storage-gateway/commands/CreateSnapshotCommand.ts index d85134c209018..6572dc66b3178 100644 --- a/clients/client-storage-gateway/commands/CreateSnapshotCommand.ts +++ b/clients/client-storage-gateway/commands/CreateSnapshotCommand.ts @@ -55,6 +55,7 @@ export class CreateSnapshotCommand extends $Command< CreateSnapshotCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateSnapshotCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateSnapshotFromVolumeRecoveryPointCommand.ts b/clients/client-storage-gateway/commands/CreateSnapshotFromVolumeRecoveryPointCommand.ts index 28937fb4c9977..633bf3a7712ef 100644 --- a/clients/client-storage-gateway/commands/CreateSnapshotFromVolumeRecoveryPointCommand.ts +++ b/clients/client-storage-gateway/commands/CreateSnapshotFromVolumeRecoveryPointCommand.ts @@ -52,6 +52,7 @@ export class CreateSnapshotFromVolumeRecoveryPointCommand extends $Command< CreateSnapshotFromVolumeRecoveryPointCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class CreateSnapshotFromVolumeRecoveryPointCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateStorediSCSIVolumeCommand.ts b/clients/client-storage-gateway/commands/CreateStorediSCSIVolumeCommand.ts index 7b4b1a5c20f69..56b0ab45de7d1 100644 --- a/clients/client-storage-gateway/commands/CreateStorediSCSIVolumeCommand.ts +++ b/clients/client-storage-gateway/commands/CreateStorediSCSIVolumeCommand.ts @@ -39,6 +39,7 @@ export class CreateStorediSCSIVolumeCommand extends $Command< CreateStorediSCSIVolumeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class CreateStorediSCSIVolumeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateTapePoolCommand.ts b/clients/client-storage-gateway/commands/CreateTapePoolCommand.ts index 6904e94c672e8..7bb74b855acc5 100644 --- a/clients/client-storage-gateway/commands/CreateTapePoolCommand.ts +++ b/clients/client-storage-gateway/commands/CreateTapePoolCommand.ts @@ -29,6 +29,7 @@ export class CreateTapePoolCommand extends $Command< CreateTapePoolCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateTapePoolCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateTapeWithBarcodeCommand.ts b/clients/client-storage-gateway/commands/CreateTapeWithBarcodeCommand.ts index 9931368124c31..2dbf9b2584dd1 100644 --- a/clients/client-storage-gateway/commands/CreateTapeWithBarcodeCommand.ts +++ b/clients/client-storage-gateway/commands/CreateTapeWithBarcodeCommand.ts @@ -36,6 +36,7 @@ export class CreateTapeWithBarcodeCommand extends $Command< CreateTapeWithBarcodeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class CreateTapeWithBarcodeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/CreateTapesCommand.ts b/clients/client-storage-gateway/commands/CreateTapesCommand.ts index 13d503d6edcfd..3bb63872dd4d2 100644 --- a/clients/client-storage-gateway/commands/CreateTapesCommand.ts +++ b/clients/client-storage-gateway/commands/CreateTapesCommand.ts @@ -34,6 +34,7 @@ export class CreateTapesCommand extends $Command< CreateTapesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateTapesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteAutomaticTapeCreationPolicyCommand.ts b/clients/client-storage-gateway/commands/DeleteAutomaticTapeCreationPolicyCommand.ts index f5d9cc9b2fb14..0c1c8cc3d1e36 100644 --- a/clients/client-storage-gateway/commands/DeleteAutomaticTapeCreationPolicyCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteAutomaticTapeCreationPolicyCommand.ts @@ -30,6 +30,7 @@ export class DeleteAutomaticTapeCreationPolicyCommand extends $Command< DeleteAutomaticTapeCreationPolicyCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteAutomaticTapeCreationPolicyCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteBandwidthRateLimitCommand.ts b/clients/client-storage-gateway/commands/DeleteBandwidthRateLimitCommand.ts index b0c56131f12bb..6d735e25240b1 100644 --- a/clients/client-storage-gateway/commands/DeleteBandwidthRateLimitCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteBandwidthRateLimitCommand.ts @@ -32,6 +32,7 @@ export class DeleteBandwidthRateLimitCommand extends $Command< DeleteBandwidthRateLimitCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteBandwidthRateLimitCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteChapCredentialsCommand.ts b/clients/client-storage-gateway/commands/DeleteChapCredentialsCommand.ts index 7b4ba37efe904..b45052c487279 100644 --- a/clients/client-storage-gateway/commands/DeleteChapCredentialsCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteChapCredentialsCommand.ts @@ -30,6 +30,7 @@ export class DeleteChapCredentialsCommand extends $Command< DeleteChapCredentialsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteChapCredentialsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteFileShareCommand.ts b/clients/client-storage-gateway/commands/DeleteFileShareCommand.ts index 61811f61e9fff..7a34655c85ae1 100644 --- a/clients/client-storage-gateway/commands/DeleteFileShareCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteFileShareCommand.ts @@ -29,6 +29,7 @@ export class DeleteFileShareCommand extends $Command< DeleteFileShareCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteFileShareCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteGatewayCommand.ts b/clients/client-storage-gateway/commands/DeleteGatewayCommand.ts index a8c898b55c6db..e30409816bc0c 100644 --- a/clients/client-storage-gateway/commands/DeleteGatewayCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteGatewayCommand.ts @@ -45,6 +45,7 @@ export class DeleteGatewayCommand extends $Command< DeleteGatewayCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DeleteGatewayCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteSnapshotScheduleCommand.ts b/clients/client-storage-gateway/commands/DeleteSnapshotScheduleCommand.ts index 6b574dd6df453..136c05da2c611 100644 --- a/clients/client-storage-gateway/commands/DeleteSnapshotScheduleCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteSnapshotScheduleCommand.ts @@ -42,6 +42,7 @@ export class DeleteSnapshotScheduleCommand extends $Command< DeleteSnapshotScheduleCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DeleteSnapshotScheduleCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteTapeArchiveCommand.ts b/clients/client-storage-gateway/commands/DeleteTapeArchiveCommand.ts index 6b36d3d84d338..c99782f530072 100644 --- a/clients/client-storage-gateway/commands/DeleteTapeArchiveCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteTapeArchiveCommand.ts @@ -29,6 +29,7 @@ export class DeleteTapeArchiveCommand extends $Command< DeleteTapeArchiveCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTapeArchiveCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteTapeCommand.ts b/clients/client-storage-gateway/commands/DeleteTapeCommand.ts index 1e78fc80ac1ed..c8f6a11914bfb 100644 --- a/clients/client-storage-gateway/commands/DeleteTapeCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteTapeCommand.ts @@ -29,6 +29,7 @@ export class DeleteTapeCommand extends $Command< DeleteTapeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTapeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteTapePoolCommand.ts b/clients/client-storage-gateway/commands/DeleteTapePoolCommand.ts index 03ed6d740d742..65bf2927ba438 100644 --- a/clients/client-storage-gateway/commands/DeleteTapePoolCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteTapePoolCommand.ts @@ -30,6 +30,7 @@ export class DeleteTapePoolCommand extends $Command< DeleteTapePoolCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteTapePoolCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DeleteVolumeCommand.ts b/clients/client-storage-gateway/commands/DeleteVolumeCommand.ts index b7d7fca5c0bde..a9ccd73e07b07 100644 --- a/clients/client-storage-gateway/commands/DeleteVolumeCommand.ts +++ b/clients/client-storage-gateway/commands/DeleteVolumeCommand.ts @@ -40,6 +40,7 @@ export class DeleteVolumeCommand extends $Command< DeleteVolumeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class DeleteVolumeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeAvailabilityMonitorTestCommand.ts b/clients/client-storage-gateway/commands/DescribeAvailabilityMonitorTestCommand.ts index 3de48a3823f23..ee5a5cf001ed4 100644 --- a/clients/client-storage-gateway/commands/DescribeAvailabilityMonitorTestCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeAvailabilityMonitorTestCommand.ts @@ -30,6 +30,7 @@ export class DescribeAvailabilityMonitorTestCommand extends $Command< DescribeAvailabilityMonitorTestCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeAvailabilityMonitorTestCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitCommand.ts b/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitCommand.ts index 190944bc50ba3..c66effd196e0d 100644 --- a/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitCommand.ts @@ -35,6 +35,7 @@ export class DescribeBandwidthRateLimitCommand extends $Command< DescribeBandwidthRateLimitCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DescribeBandwidthRateLimitCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitScheduleCommand.ts b/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitScheduleCommand.ts index 1a250b4ddd76f..80d9d0a588458 100644 --- a/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitScheduleCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeBandwidthRateLimitScheduleCommand.ts @@ -49,6 +49,7 @@ export class DescribeBandwidthRateLimitScheduleCommand extends $Command< DescribeBandwidthRateLimitScheduleCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DescribeBandwidthRateLimitScheduleCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeCacheCommand.ts b/clients/client-storage-gateway/commands/DescribeCacheCommand.ts index 8a17546053705..1afcf719fbbb9 100644 --- a/clients/client-storage-gateway/commands/DescribeCacheCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeCacheCommand.ts @@ -32,6 +32,7 @@ export class DescribeCacheCommand extends $Command< DescribeCacheCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeCacheCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeCachediSCSIVolumesCommand.ts b/clients/client-storage-gateway/commands/DescribeCachediSCSIVolumesCommand.ts index 31eb483378ccb..9be659892382e 100644 --- a/clients/client-storage-gateway/commands/DescribeCachediSCSIVolumesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeCachediSCSIVolumesCommand.ts @@ -33,6 +33,7 @@ export class DescribeCachediSCSIVolumesCommand extends $Command< DescribeCachediSCSIVolumesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeCachediSCSIVolumesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeChapCredentialsCommand.ts b/clients/client-storage-gateway/commands/DescribeChapCredentialsCommand.ts index 6aaded89aee57..5892fc68518e0 100644 --- a/clients/client-storage-gateway/commands/DescribeChapCredentialsCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeChapCredentialsCommand.ts @@ -30,6 +30,7 @@ export class DescribeChapCredentialsCommand extends $Command< DescribeChapCredentialsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeChapCredentialsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeGatewayInformationCommand.ts b/clients/client-storage-gateway/commands/DescribeGatewayInformationCommand.ts index 97f137e5fc6e9..0efbd8fb9858e 100644 --- a/clients/client-storage-gateway/commands/DescribeGatewayInformationCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeGatewayInformationCommand.ts @@ -30,6 +30,7 @@ export class DescribeGatewayInformationCommand extends $Command< DescribeGatewayInformationCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeGatewayInformationCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeMaintenanceStartTimeCommand.ts b/clients/client-storage-gateway/commands/DescribeMaintenanceStartTimeCommand.ts index 821cec91f9181..b3cf793128f91 100644 --- a/clients/client-storage-gateway/commands/DescribeMaintenanceStartTimeCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeMaintenanceStartTimeCommand.ts @@ -29,6 +29,7 @@ export class DescribeMaintenanceStartTimeCommand extends $Command< DescribeMaintenanceStartTimeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeMaintenanceStartTimeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeNFSFileSharesCommand.ts b/clients/client-storage-gateway/commands/DescribeNFSFileSharesCommand.ts index 72c29d6ed6d8d..0cf8515f1a3d4 100644 --- a/clients/client-storage-gateway/commands/DescribeNFSFileSharesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeNFSFileSharesCommand.ts @@ -29,6 +29,7 @@ export class DescribeNFSFileSharesCommand extends $Command< DescribeNFSFileSharesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeNFSFileSharesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeSMBFileSharesCommand.ts b/clients/client-storage-gateway/commands/DescribeSMBFileSharesCommand.ts index 1ada3937ddbc9..ed38eaccc600c 100644 --- a/clients/client-storage-gateway/commands/DescribeSMBFileSharesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeSMBFileSharesCommand.ts @@ -29,6 +29,7 @@ export class DescribeSMBFileSharesCommand extends $Command< DescribeSMBFileSharesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSMBFileSharesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeSMBSettingsCommand.ts b/clients/client-storage-gateway/commands/DescribeSMBSettingsCommand.ts index beaca3205a767..7e50520a1e731 100644 --- a/clients/client-storage-gateway/commands/DescribeSMBSettingsCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeSMBSettingsCommand.ts @@ -29,6 +29,7 @@ export class DescribeSMBSettingsCommand extends $Command< DescribeSMBSettingsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeSMBSettingsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeSnapshotScheduleCommand.ts b/clients/client-storage-gateway/commands/DescribeSnapshotScheduleCommand.ts index 6641fa68a4a0b..4c5e197d8e333 100644 --- a/clients/client-storage-gateway/commands/DescribeSnapshotScheduleCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeSnapshotScheduleCommand.ts @@ -31,6 +31,7 @@ export class DescribeSnapshotScheduleCommand extends $Command< DescribeSnapshotScheduleCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeSnapshotScheduleCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeStorediSCSIVolumesCommand.ts b/clients/client-storage-gateway/commands/DescribeStorediSCSIVolumesCommand.ts index 0a47462d672e4..f47f49f819638 100644 --- a/clients/client-storage-gateway/commands/DescribeStorediSCSIVolumesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeStorediSCSIVolumesCommand.ts @@ -31,6 +31,7 @@ export class DescribeStorediSCSIVolumesCommand extends $Command< DescribeStorediSCSIVolumesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeStorediSCSIVolumesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeTapeArchivesCommand.ts b/clients/client-storage-gateway/commands/DescribeTapeArchivesCommand.ts index 7c7139b742d04..d39943aa26550 100644 --- a/clients/client-storage-gateway/commands/DescribeTapeArchivesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeTapeArchivesCommand.ts @@ -32,6 +32,7 @@ export class DescribeTapeArchivesCommand extends $Command< DescribeTapeArchivesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeTapeArchivesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeTapeRecoveryPointsCommand.ts b/clients/client-storage-gateway/commands/DescribeTapeRecoveryPointsCommand.ts index 0e7ed8ef416e0..ba6abdcb5151b 100644 --- a/clients/client-storage-gateway/commands/DescribeTapeRecoveryPointsCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeTapeRecoveryPointsCommand.ts @@ -34,6 +34,7 @@ export class DescribeTapeRecoveryPointsCommand extends $Command< DescribeTapeRecoveryPointsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeTapeRecoveryPointsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeTapesCommand.ts b/clients/client-storage-gateway/commands/DescribeTapesCommand.ts index 5d4c238c3ef21..d4f025d3a16db 100644 --- a/clients/client-storage-gateway/commands/DescribeTapesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeTapesCommand.ts @@ -31,6 +31,7 @@ export class DescribeTapesCommand extends $Command< DescribeTapesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTapesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeUploadBufferCommand.ts b/clients/client-storage-gateway/commands/DescribeUploadBufferCommand.ts index 15103ab6ffa44..6e24b767b8e24 100644 --- a/clients/client-storage-gateway/commands/DescribeUploadBufferCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeUploadBufferCommand.ts @@ -32,6 +32,7 @@ export class DescribeUploadBufferCommand extends $Command< DescribeUploadBufferCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeUploadBufferCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeVTLDevicesCommand.ts b/clients/client-storage-gateway/commands/DescribeVTLDevicesCommand.ts index d26deda230712..d98052fcfdf39 100644 --- a/clients/client-storage-gateway/commands/DescribeVTLDevicesCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeVTLDevicesCommand.ts @@ -31,6 +31,7 @@ export class DescribeVTLDevicesCommand extends $Command< DescribeVTLDevicesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeVTLDevicesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DescribeWorkingStorageCommand.ts b/clients/client-storage-gateway/commands/DescribeWorkingStorageCommand.ts index f9dee76073ef1..22c377e7d0fd3 100644 --- a/clients/client-storage-gateway/commands/DescribeWorkingStorageCommand.ts +++ b/clients/client-storage-gateway/commands/DescribeWorkingStorageCommand.ts @@ -38,6 +38,7 @@ export class DescribeWorkingStorageCommand extends $Command< DescribeWorkingStorageCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DescribeWorkingStorageCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DetachVolumeCommand.ts b/clients/client-storage-gateway/commands/DetachVolumeCommand.ts index 719d9892f8778..1c41cc4e8474a 100644 --- a/clients/client-storage-gateway/commands/DetachVolumeCommand.ts +++ b/clients/client-storage-gateway/commands/DetachVolumeCommand.ts @@ -32,6 +32,7 @@ export class DetachVolumeCommand extends $Command< DetachVolumeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DetachVolumeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/DisableGatewayCommand.ts b/clients/client-storage-gateway/commands/DisableGatewayCommand.ts index fda3d51c35960..42d06cd545d49 100644 --- a/clients/client-storage-gateway/commands/DisableGatewayCommand.ts +++ b/clients/client-storage-gateway/commands/DisableGatewayCommand.ts @@ -36,6 +36,7 @@ export class DisableGatewayCommand extends $Command< DisableGatewayCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisableGatewayCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/JoinDomainCommand.ts b/clients/client-storage-gateway/commands/JoinDomainCommand.ts index ad82128163be9..00d91f191654b 100644 --- a/clients/client-storage-gateway/commands/JoinDomainCommand.ts +++ b/clients/client-storage-gateway/commands/JoinDomainCommand.ts @@ -29,6 +29,7 @@ export class JoinDomainCommand extends $Command< JoinDomainCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class JoinDomainCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListAutomaticTapeCreationPoliciesCommand.ts b/clients/client-storage-gateway/commands/ListAutomaticTapeCreationPoliciesCommand.ts index d0d0e91ebf9ea..4c0dc07069d9d 100644 --- a/clients/client-storage-gateway/commands/ListAutomaticTapeCreationPoliciesCommand.ts +++ b/clients/client-storage-gateway/commands/ListAutomaticTapeCreationPoliciesCommand.ts @@ -31,6 +31,7 @@ export class ListAutomaticTapeCreationPoliciesCommand extends $Command< ListAutomaticTapeCreationPoliciesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListAutomaticTapeCreationPoliciesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListFileSharesCommand.ts b/clients/client-storage-gateway/commands/ListFileSharesCommand.ts index adac269fd798c..99b154a91259d 100644 --- a/clients/client-storage-gateway/commands/ListFileSharesCommand.ts +++ b/clients/client-storage-gateway/commands/ListFileSharesCommand.ts @@ -30,6 +30,7 @@ export class ListFileSharesCommand extends $Command< ListFileSharesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListFileSharesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListGatewaysCommand.ts b/clients/client-storage-gateway/commands/ListGatewaysCommand.ts index 2ceaa1daba3e1..102f48104abda 100644 --- a/clients/client-storage-gateway/commands/ListGatewaysCommand.ts +++ b/clients/client-storage-gateway/commands/ListGatewaysCommand.ts @@ -37,6 +37,7 @@ export class ListGatewaysCommand extends $Command< ListGatewaysCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListGatewaysCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListLocalDisksCommand.ts b/clients/client-storage-gateway/commands/ListLocalDisksCommand.ts index 175e27fae7fd7..2f61cf6afcc48 100644 --- a/clients/client-storage-gateway/commands/ListLocalDisksCommand.ts +++ b/clients/client-storage-gateway/commands/ListLocalDisksCommand.ts @@ -36,6 +36,7 @@ export class ListLocalDisksCommand extends $Command< ListLocalDisksCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListLocalDisksCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListTagsForResourceCommand.ts b/clients/client-storage-gateway/commands/ListTagsForResourceCommand.ts index 102422c8c50b7..44eea02e0d8e3 100644 --- a/clients/client-storage-gateway/commands/ListTagsForResourceCommand.ts +++ b/clients/client-storage-gateway/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListTapePoolsCommand.ts b/clients/client-storage-gateway/commands/ListTapePoolsCommand.ts index fe38dccb4bb42..68d21a1372efe 100644 --- a/clients/client-storage-gateway/commands/ListTapePoolsCommand.ts +++ b/clients/client-storage-gateway/commands/ListTapePoolsCommand.ts @@ -36,6 +36,7 @@ export class ListTapePoolsCommand extends $Command< ListTapePoolsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListTapePoolsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListTapesCommand.ts b/clients/client-storage-gateway/commands/ListTapesCommand.ts index c4b00fee944ba..0ebe468abb017 100644 --- a/clients/client-storage-gateway/commands/ListTapesCommand.ts +++ b/clients/client-storage-gateway/commands/ListTapesCommand.ts @@ -35,6 +35,7 @@ export class ListTapesCommand extends $Command< ListTapesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ListTapesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListVolumeInitiatorsCommand.ts b/clients/client-storage-gateway/commands/ListVolumeInitiatorsCommand.ts index 80ed2ac086085..a3a371f1dbaf4 100644 --- a/clients/client-storage-gateway/commands/ListVolumeInitiatorsCommand.ts +++ b/clients/client-storage-gateway/commands/ListVolumeInitiatorsCommand.ts @@ -30,6 +30,7 @@ export class ListVolumeInitiatorsCommand extends $Command< ListVolumeInitiatorsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListVolumeInitiatorsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListVolumeRecoveryPointsCommand.ts b/clients/client-storage-gateway/commands/ListVolumeRecoveryPointsCommand.ts index ff0f1dc273aa9..2941ad88b156f 100644 --- a/clients/client-storage-gateway/commands/ListVolumeRecoveryPointsCommand.ts +++ b/clients/client-storage-gateway/commands/ListVolumeRecoveryPointsCommand.ts @@ -34,6 +34,7 @@ export class ListVolumeRecoveryPointsCommand extends $Command< ListVolumeRecoveryPointsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class ListVolumeRecoveryPointsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ListVolumesCommand.ts b/clients/client-storage-gateway/commands/ListVolumesCommand.ts index c5518d9df63d9..3cfa55b4af425 100644 --- a/clients/client-storage-gateway/commands/ListVolumesCommand.ts +++ b/clients/client-storage-gateway/commands/ListVolumesCommand.ts @@ -37,6 +37,7 @@ export class ListVolumesCommand extends $Command< ListVolumesCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListVolumesCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/NotifyWhenUploadedCommand.ts b/clients/client-storage-gateway/commands/NotifyWhenUploadedCommand.ts index d96c87c95549f..f6b2878cffaaa 100644 --- a/clients/client-storage-gateway/commands/NotifyWhenUploadedCommand.ts +++ b/clients/client-storage-gateway/commands/NotifyWhenUploadedCommand.ts @@ -42,6 +42,7 @@ export class NotifyWhenUploadedCommand extends $Command< NotifyWhenUploadedCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class NotifyWhenUploadedCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/RefreshCacheCommand.ts b/clients/client-storage-gateway/commands/RefreshCacheCommand.ts index 22ab405cdc26c..8fae3c35897ed 100644 --- a/clients/client-storage-gateway/commands/RefreshCacheCommand.ts +++ b/clients/client-storage-gateway/commands/RefreshCacheCommand.ts @@ -54,6 +54,7 @@ export class RefreshCacheCommand extends $Command< RefreshCacheCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class RefreshCacheCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/RemoveTagsFromResourceCommand.ts b/clients/client-storage-gateway/commands/RemoveTagsFromResourceCommand.ts index 923c4a253a8c5..8ec62ed1e48ba 100644 --- a/clients/client-storage-gateway/commands/RemoveTagsFromResourceCommand.ts +++ b/clients/client-storage-gateway/commands/RemoveTagsFromResourceCommand.ts @@ -29,6 +29,7 @@ export class RemoveTagsFromResourceCommand extends $Command< RemoveTagsFromResourceCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveTagsFromResourceCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ResetCacheCommand.ts b/clients/client-storage-gateway/commands/ResetCacheCommand.ts index 9f418a259663a..2c5fe82c0b0a3 100644 --- a/clients/client-storage-gateway/commands/ResetCacheCommand.ts +++ b/clients/client-storage-gateway/commands/ResetCacheCommand.ts @@ -40,6 +40,7 @@ export class ResetCacheCommand extends $Command< ResetCacheCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class ResetCacheCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/RetrieveTapeArchiveCommand.ts b/clients/client-storage-gateway/commands/RetrieveTapeArchiveCommand.ts index 7baf5503fe4ec..fab6fab2d30eb 100644 --- a/clients/client-storage-gateway/commands/RetrieveTapeArchiveCommand.ts +++ b/clients/client-storage-gateway/commands/RetrieveTapeArchiveCommand.ts @@ -35,6 +35,7 @@ export class RetrieveTapeArchiveCommand extends $Command< RetrieveTapeArchiveCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RetrieveTapeArchiveCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/RetrieveTapeRecoveryPointCommand.ts b/clients/client-storage-gateway/commands/RetrieveTapeRecoveryPointCommand.ts index b92f913b1b804..f57db7d8367e0 100644 --- a/clients/client-storage-gateway/commands/RetrieveTapeRecoveryPointCommand.ts +++ b/clients/client-storage-gateway/commands/RetrieveTapeRecoveryPointCommand.ts @@ -39,6 +39,7 @@ export class RetrieveTapeRecoveryPointCommand extends $Command< RetrieveTapeRecoveryPointCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -56,7 +57,10 @@ export class RetrieveTapeRecoveryPointCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/SetLocalConsolePasswordCommand.ts b/clients/client-storage-gateway/commands/SetLocalConsolePasswordCommand.ts index daea46f353081..906b969bf34f3 100644 --- a/clients/client-storage-gateway/commands/SetLocalConsolePasswordCommand.ts +++ b/clients/client-storage-gateway/commands/SetLocalConsolePasswordCommand.ts @@ -31,6 +31,7 @@ export class SetLocalConsolePasswordCommand extends $Command< SetLocalConsolePasswordCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class SetLocalConsolePasswordCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/SetSMBGuestPasswordCommand.ts b/clients/client-storage-gateway/commands/SetSMBGuestPasswordCommand.ts index 9732ae832f1c7..f1fce4df7be5c 100644 --- a/clients/client-storage-gateway/commands/SetSMBGuestPasswordCommand.ts +++ b/clients/client-storage-gateway/commands/SetSMBGuestPasswordCommand.ts @@ -30,6 +30,7 @@ export class SetSMBGuestPasswordCommand extends $Command< SetSMBGuestPasswordCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class SetSMBGuestPasswordCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/ShutdownGatewayCommand.ts b/clients/client-storage-gateway/commands/ShutdownGatewayCommand.ts index 3bdd601faa512..14d4eb51d7dbd 100644 --- a/clients/client-storage-gateway/commands/ShutdownGatewayCommand.ts +++ b/clients/client-storage-gateway/commands/ShutdownGatewayCommand.ts @@ -51,6 +51,7 @@ export class ShutdownGatewayCommand extends $Command< ShutdownGatewayCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class ShutdownGatewayCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/StartAvailabilityMonitorTestCommand.ts b/clients/client-storage-gateway/commands/StartAvailabilityMonitorTestCommand.ts index 17f21f51c8af1..7be3c683ce1f9 100644 --- a/clients/client-storage-gateway/commands/StartAvailabilityMonitorTestCommand.ts +++ b/clients/client-storage-gateway/commands/StartAvailabilityMonitorTestCommand.ts @@ -35,6 +35,7 @@ export class StartAvailabilityMonitorTestCommand extends $Command< StartAvailabilityMonitorTestCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartAvailabilityMonitorTestCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/StartGatewayCommand.ts b/clients/client-storage-gateway/commands/StartGatewayCommand.ts index b252ff4fe1b33..760222129d932 100644 --- a/clients/client-storage-gateway/commands/StartGatewayCommand.ts +++ b/clients/client-storage-gateway/commands/StartGatewayCommand.ts @@ -40,6 +40,7 @@ export class StartGatewayCommand extends $Command< StartGatewayCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class StartGatewayCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateAutomaticTapeCreationPolicyCommand.ts b/clients/client-storage-gateway/commands/UpdateAutomaticTapeCreationPolicyCommand.ts index 255a1cd925b93..ae651b53a719b 100644 --- a/clients/client-storage-gateway/commands/UpdateAutomaticTapeCreationPolicyCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateAutomaticTapeCreationPolicyCommand.ts @@ -36,6 +36,7 @@ export class UpdateAutomaticTapeCreationPolicyCommand extends $Command< UpdateAutomaticTapeCreationPolicyCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateAutomaticTapeCreationPolicyCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitCommand.ts b/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitCommand.ts index f101d0e7cd07b..f9e4fbe35f006 100644 --- a/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitCommand.ts @@ -38,6 +38,7 @@ export class UpdateBandwidthRateLimitCommand extends $Command< UpdateBandwidthRateLimitCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class UpdateBandwidthRateLimitCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitScheduleCommand.ts b/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitScheduleCommand.ts index 164cbd3a11f34..c715b295c61a5 100644 --- a/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitScheduleCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateBandwidthRateLimitScheduleCommand.ts @@ -33,6 +33,7 @@ export class UpdateBandwidthRateLimitScheduleCommand extends $Command< UpdateBandwidthRateLimitScheduleCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateBandwidthRateLimitScheduleCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateChapCredentialsCommand.ts b/clients/client-storage-gateway/commands/UpdateChapCredentialsCommand.ts index 4d34c43420f91..8798460ee5f71 100644 --- a/clients/client-storage-gateway/commands/UpdateChapCredentialsCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateChapCredentialsCommand.ts @@ -36,6 +36,7 @@ export class UpdateChapCredentialsCommand extends $Command< UpdateChapCredentialsCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateChapCredentialsCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateGatewayInformationCommand.ts b/clients/client-storage-gateway/commands/UpdateGatewayInformationCommand.ts index 71c8f2e5afda2..89a92bd7374cf 100644 --- a/clients/client-storage-gateway/commands/UpdateGatewayInformationCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateGatewayInformationCommand.ts @@ -36,6 +36,7 @@ export class UpdateGatewayInformationCommand extends $Command< UpdateGatewayInformationCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UpdateGatewayInformationCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateGatewaySoftwareNowCommand.ts b/clients/client-storage-gateway/commands/UpdateGatewaySoftwareNowCommand.ts index 0c5a755f75793..21e577fa9842c 100644 --- a/clients/client-storage-gateway/commands/UpdateGatewaySoftwareNowCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateGatewaySoftwareNowCommand.ts @@ -43,6 +43,7 @@ export class UpdateGatewaySoftwareNowCommand extends $Command< UpdateGatewaySoftwareNowCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class UpdateGatewaySoftwareNowCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateMaintenanceStartTimeCommand.ts b/clients/client-storage-gateway/commands/UpdateMaintenanceStartTimeCommand.ts index 3329197ff1120..7d5c87175b87b 100644 --- a/clients/client-storage-gateway/commands/UpdateMaintenanceStartTimeCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateMaintenanceStartTimeCommand.ts @@ -29,6 +29,7 @@ export class UpdateMaintenanceStartTimeCommand extends $Command< UpdateMaintenanceStartTimeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateMaintenanceStartTimeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateNFSFileShareCommand.ts b/clients/client-storage-gateway/commands/UpdateNFSFileShareCommand.ts index 99d7db83972a9..6143439eb374c 100644 --- a/clients/client-storage-gateway/commands/UpdateNFSFileShareCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateNFSFileShareCommand.ts @@ -54,6 +54,7 @@ export class UpdateNFSFileShareCommand extends $Command< UpdateNFSFileShareCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class UpdateNFSFileShareCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateSMBFileShareCommand.ts b/clients/client-storage-gateway/commands/UpdateSMBFileShareCommand.ts index 5032dab6d953b..35e019e91a083 100644 --- a/clients/client-storage-gateway/commands/UpdateSMBFileShareCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateSMBFileShareCommand.ts @@ -46,6 +46,7 @@ export class UpdateSMBFileShareCommand extends $Command< UpdateSMBFileShareCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class UpdateSMBFileShareCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateSMBFileShareVisibilityCommand.ts b/clients/client-storage-gateway/commands/UpdateSMBFileShareVisibilityCommand.ts index 889b686bf7597..b16f9d62061e5 100644 --- a/clients/client-storage-gateway/commands/UpdateSMBFileShareVisibilityCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateSMBFileShareVisibilityCommand.ts @@ -29,6 +29,7 @@ export class UpdateSMBFileShareVisibilityCommand extends $Command< UpdateSMBFileShareVisibilityCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateSMBFileShareVisibilityCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateSMBSecurityStrategyCommand.ts b/clients/client-storage-gateway/commands/UpdateSMBSecurityStrategyCommand.ts index fbb2d3bb47c3a..ac44573f0f9fc 100644 --- a/clients/client-storage-gateway/commands/UpdateSMBSecurityStrategyCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateSMBSecurityStrategyCommand.ts @@ -35,6 +35,7 @@ export class UpdateSMBSecurityStrategyCommand extends $Command< UpdateSMBSecurityStrategyCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class UpdateSMBSecurityStrategyCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateSnapshotScheduleCommand.ts b/clients/client-storage-gateway/commands/UpdateSnapshotScheduleCommand.ts index d8597a02a3101..cb53dbcb5f00a 100644 --- a/clients/client-storage-gateway/commands/UpdateSnapshotScheduleCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateSnapshotScheduleCommand.ts @@ -37,6 +37,7 @@ export class UpdateSnapshotScheduleCommand extends $Command< UpdateSnapshotScheduleCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class UpdateSnapshotScheduleCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-storage-gateway/commands/UpdateVTLDeviceTypeCommand.ts b/clients/client-storage-gateway/commands/UpdateVTLDeviceTypeCommand.ts index 0d4b3057dd822..f980de5cf8b30 100644 --- a/clients/client-storage-gateway/commands/UpdateVTLDeviceTypeCommand.ts +++ b/clients/client-storage-gateway/commands/UpdateVTLDeviceTypeCommand.ts @@ -31,6 +31,7 @@ export class UpdateVTLDeviceTypeCommand extends $Command< UpdateVTLDeviceTypeCommandOutput, StorageGatewayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateVTLDeviceTypeCommand extends $Command< configuration: StorageGatewayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/AssumeRoleCommand.ts b/clients/client-sts/commands/AssumeRoleCommand.ts index c8bbb01429129..b58ef504bfc0a 100644 --- a/clients/client-sts/commands/AssumeRoleCommand.ts +++ b/clients/client-sts/commands/AssumeRoleCommand.ts @@ -134,6 +134,7 @@ export class AssumeRoleCommand extends $Command< AssumeRoleCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -151,8 +152,11 @@ export class AssumeRoleCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/AssumeRoleWithSAMLCommand.ts b/clients/client-sts/commands/AssumeRoleWithSAMLCommand.ts index df2d66d6bfaf1..77157362ec2a3 100644 --- a/clients/client-sts/commands/AssumeRoleWithSAMLCommand.ts +++ b/clients/client-sts/commands/AssumeRoleWithSAMLCommand.ts @@ -148,6 +148,7 @@ export class AssumeRoleWithSAMLCommand extends $Command< AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -165,7 +166,10 @@ export class AssumeRoleWithSAMLCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/AssumeRoleWithWebIdentityCommand.ts b/clients/client-sts/commands/AssumeRoleWithWebIdentityCommand.ts index b4350ff785ff0..882eb9823ac52 100644 --- a/clients/client-sts/commands/AssumeRoleWithWebIdentityCommand.ts +++ b/clients/client-sts/commands/AssumeRoleWithWebIdentityCommand.ts @@ -164,6 +164,7 @@ export class AssumeRoleWithWebIdentityCommand extends $Command< AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -181,7 +182,10 @@ export class AssumeRoleWithWebIdentityCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/DecodeAuthorizationMessageCommand.ts b/clients/client-sts/commands/DecodeAuthorizationMessageCommand.ts index b292aac6e6019..4ac3b9177702c 100644 --- a/clients/client-sts/commands/DecodeAuthorizationMessageCommand.ts +++ b/clients/client-sts/commands/DecodeAuthorizationMessageCommand.ts @@ -64,6 +64,7 @@ export class DecodeAuthorizationMessageCommand extends $Command< DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -81,8 +82,11 @@ export class DecodeAuthorizationMessageCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/GetAccessKeyInfoCommand.ts b/clients/client-sts/commands/GetAccessKeyInfoCommand.ts index e7ebb35914fc6..5689b58b5f431 100644 --- a/clients/client-sts/commands/GetAccessKeyInfoCommand.ts +++ b/clients/client-sts/commands/GetAccessKeyInfoCommand.ts @@ -46,6 +46,7 @@ export class GetAccessKeyInfoCommand extends $Command< GetAccessKeyInfoCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,8 +64,11 @@ export class GetAccessKeyInfoCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/GetCallerIdentityCommand.ts b/clients/client-sts/commands/GetCallerIdentityCommand.ts index 37475afd06844..8109574b11306 100644 --- a/clients/client-sts/commands/GetCallerIdentityCommand.ts +++ b/clients/client-sts/commands/GetCallerIdentityCommand.ts @@ -38,6 +38,7 @@ export class GetCallerIdentityCommand extends $Command< GetCallerIdentityCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,8 +56,11 @@ export class GetCallerIdentityCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/GetFederationTokenCommand.ts b/clients/client-sts/commands/GetFederationTokenCommand.ts index 46f9094cf57b0..f8dd832fca12c 100644 --- a/clients/client-sts/commands/GetFederationTokenCommand.ts +++ b/clients/client-sts/commands/GetFederationTokenCommand.ts @@ -107,6 +107,7 @@ export class GetFederationTokenCommand extends $Command< GetFederationTokenCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -124,8 +125,11 @@ export class GetFederationTokenCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-sts/commands/GetSessionTokenCommand.ts b/clients/client-sts/commands/GetSessionTokenCommand.ts index 8787f7f6ac6d9..663279cbef003 100644 --- a/clients/client-sts/commands/GetSessionTokenCommand.ts +++ b/clients/client-sts/commands/GetSessionTokenCommand.ts @@ -80,6 +80,7 @@ export class GetSessionTokenCommand extends $Command< GetSessionTokenCommandOutput, STSClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -97,8 +98,11 @@ export class GetSessionTokenCommand extends $Command< configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getAwsAuthPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/AddAttachmentsToSetCommand.ts b/clients/client-support/commands/AddAttachmentsToSetCommand.ts index 2328d1ea87f28..35b0551dcc253 100644 --- a/clients/client-support/commands/AddAttachmentsToSetCommand.ts +++ b/clients/client-support/commands/AddAttachmentsToSetCommand.ts @@ -45,6 +45,7 @@ export class AddAttachmentsToSetCommand extends $Command< AddAttachmentsToSetCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class AddAttachmentsToSetCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/AddCommunicationToCaseCommand.ts b/clients/client-support/commands/AddCommunicationToCaseCommand.ts index 03654bc904c42..29cbf7ff95ec9 100644 --- a/clients/client-support/commands/AddCommunicationToCaseCommand.ts +++ b/clients/client-support/commands/AddCommunicationToCaseCommand.ts @@ -47,6 +47,7 @@ export class AddCommunicationToCaseCommand extends $Command< AddCommunicationToCaseCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class AddCommunicationToCaseCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/CreateCaseCommand.ts b/clients/client-support/commands/CreateCaseCommand.ts index e5f21f2857721..b759dc257b539 100644 --- a/clients/client-support/commands/CreateCaseCommand.ts +++ b/clients/client-support/commands/CreateCaseCommand.ts @@ -60,6 +60,7 @@ export class CreateCaseCommand extends $Command< CreateCaseCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class CreateCaseCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeAttachmentCommand.ts b/clients/client-support/commands/DescribeAttachmentCommand.ts index 24fb8da495f02..14a78e94ddd86 100644 --- a/clients/client-support/commands/DescribeAttachmentCommand.ts +++ b/clients/client-support/commands/DescribeAttachmentCommand.ts @@ -46,6 +46,7 @@ export class DescribeAttachmentCommand extends $Command< DescribeAttachmentCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -63,7 +64,10 @@ export class DescribeAttachmentCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeCasesCommand.ts b/clients/client-support/commands/DescribeCasesCommand.ts index adce1f9b1e19f..4d36e4c99e79b 100644 --- a/clients/client-support/commands/DescribeCasesCommand.ts +++ b/clients/client-support/commands/DescribeCasesCommand.ts @@ -58,6 +58,7 @@ export class DescribeCasesCommand extends $Command< DescribeCasesCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class DescribeCasesCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeCommunicationsCommand.ts b/clients/client-support/commands/DescribeCommunicationsCommand.ts index 6ee3c91e9e075..2166e5fe78c5b 100644 --- a/clients/client-support/commands/DescribeCommunicationsCommand.ts +++ b/clients/client-support/commands/DescribeCommunicationsCommand.ts @@ -51,6 +51,7 @@ export class DescribeCommunicationsCommand extends $Command< DescribeCommunicationsCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DescribeCommunicationsCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeServicesCommand.ts b/clients/client-support/commands/DescribeServicesCommand.ts index 57dbc2bd01410..7e3bc76055fff 100644 --- a/clients/client-support/commands/DescribeServicesCommand.ts +++ b/clients/client-support/commands/DescribeServicesCommand.ts @@ -50,6 +50,7 @@ export class DescribeServicesCommand extends $Command< DescribeServicesCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class DescribeServicesCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeSeverityLevelsCommand.ts b/clients/client-support/commands/DescribeSeverityLevelsCommand.ts index af85488666c65..a7489337ac1b2 100644 --- a/clients/client-support/commands/DescribeSeverityLevelsCommand.ts +++ b/clients/client-support/commands/DescribeSeverityLevelsCommand.ts @@ -44,6 +44,7 @@ export class DescribeSeverityLevelsCommand extends $Command< DescribeSeverityLevelsCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DescribeSeverityLevelsCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.ts b/clients/client-support/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.ts index c43213d0c2201..16b28a9e1d400 100644 --- a/clients/client-support/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.ts +++ b/clients/client-support/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.ts @@ -51,6 +51,7 @@ export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command< DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -71,7 +72,10 @@ export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command< DescribeTrustedAdvisorCheckRefreshStatusesCommandInput, DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeTrustedAdvisorCheckResultCommand.ts b/clients/client-support/commands/DescribeTrustedAdvisorCheckResultCommand.ts index 361c0993fe483..3174ba7c5d322 100644 --- a/clients/client-support/commands/DescribeTrustedAdvisorCheckResultCommand.ts +++ b/clients/client-support/commands/DescribeTrustedAdvisorCheckResultCommand.ts @@ -86,6 +86,7 @@ export class DescribeTrustedAdvisorCheckResultCommand extends $Command< DescribeTrustedAdvisorCheckResultCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -103,7 +104,10 @@ export class DescribeTrustedAdvisorCheckResultCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeTrustedAdvisorCheckSummariesCommand.ts b/clients/client-support/commands/DescribeTrustedAdvisorCheckSummariesCommand.ts index ab95ff746cc9e..d2d5e9c84c65a 100644 --- a/clients/client-support/commands/DescribeTrustedAdvisorCheckSummariesCommand.ts +++ b/clients/client-support/commands/DescribeTrustedAdvisorCheckSummariesCommand.ts @@ -49,6 +49,7 @@ export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command< DescribeTrustedAdvisorCheckSummariesCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/DescribeTrustedAdvisorChecksCommand.ts b/clients/client-support/commands/DescribeTrustedAdvisorChecksCommand.ts index 45d2274ae05c8..659c7ae495862 100644 --- a/clients/client-support/commands/DescribeTrustedAdvisorChecksCommand.ts +++ b/clients/client-support/commands/DescribeTrustedAdvisorChecksCommand.ts @@ -45,6 +45,7 @@ export class DescribeTrustedAdvisorChecksCommand extends $Command< DescribeTrustedAdvisorChecksCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DescribeTrustedAdvisorChecksCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/RefreshTrustedAdvisorCheckCommand.ts b/clients/client-support/commands/RefreshTrustedAdvisorCheckCommand.ts index 69fa9ac19d564..0630115f27a1c 100644 --- a/clients/client-support/commands/RefreshTrustedAdvisorCheckCommand.ts +++ b/clients/client-support/commands/RefreshTrustedAdvisorCheckCommand.ts @@ -51,6 +51,7 @@ export class RefreshTrustedAdvisorCheckCommand extends $Command< RefreshTrustedAdvisorCheckCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class RefreshTrustedAdvisorCheckCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-support/commands/ResolveCaseCommand.ts b/clients/client-support/commands/ResolveCaseCommand.ts index ae6f21f4076c3..0529133fe3257 100644 --- a/clients/client-support/commands/ResolveCaseCommand.ts +++ b/clients/client-support/commands/ResolveCaseCommand.ts @@ -43,6 +43,7 @@ export class ResolveCaseCommand extends $Command< ResolveCaseCommandOutput, SupportClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -60,7 +61,10 @@ export class ResolveCaseCommand extends $Command< configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/CountClosedWorkflowExecutionsCommand.ts b/clients/client-swf/commands/CountClosedWorkflowExecutionsCommand.ts index 1b07f4d5ba4fa..f8a9dd8a42101 100644 --- a/clients/client-swf/commands/CountClosedWorkflowExecutionsCommand.ts +++ b/clients/client-swf/commands/CountClosedWorkflowExecutionsCommand.ts @@ -74,6 +74,7 @@ export class CountClosedWorkflowExecutionsCommand extends $Command< CountClosedWorkflowExecutionsCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class CountClosedWorkflowExecutionsCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/CountOpenWorkflowExecutionsCommand.ts b/clients/client-swf/commands/CountOpenWorkflowExecutionsCommand.ts index a42d19f772caf..b94f097bd8ad8 100644 --- a/clients/client-swf/commands/CountOpenWorkflowExecutionsCommand.ts +++ b/clients/client-swf/commands/CountOpenWorkflowExecutionsCommand.ts @@ -74,6 +74,7 @@ export class CountOpenWorkflowExecutionsCommand extends $Command< CountOpenWorkflowExecutionsCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class CountOpenWorkflowExecutionsCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/CountPendingActivityTasksCommand.ts b/clients/client-swf/commands/CountPendingActivityTasksCommand.ts index e9a7e653c77f3..2381613fb74fb 100644 --- a/clients/client-swf/commands/CountPendingActivityTasksCommand.ts +++ b/clients/client-swf/commands/CountPendingActivityTasksCommand.ts @@ -55,6 +55,7 @@ export class CountPendingActivityTasksCommand extends $Command< CountPendingActivityTasksCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CountPendingActivityTasksCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/CountPendingDecisionTasksCommand.ts b/clients/client-swf/commands/CountPendingDecisionTasksCommand.ts index bd75434de2386..70ebd2fd1a6f2 100644 --- a/clients/client-swf/commands/CountPendingDecisionTasksCommand.ts +++ b/clients/client-swf/commands/CountPendingDecisionTasksCommand.ts @@ -55,6 +55,7 @@ export class CountPendingDecisionTasksCommand extends $Command< CountPendingDecisionTasksCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CountPendingDecisionTasksCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DeprecateActivityTypeCommand.ts b/clients/client-swf/commands/DeprecateActivityTypeCommand.ts index 4fd21f9380fd2..e83451b3957f9 100644 --- a/clients/client-swf/commands/DeprecateActivityTypeCommand.ts +++ b/clients/client-swf/commands/DeprecateActivityTypeCommand.ts @@ -70,6 +70,7 @@ export class DeprecateActivityTypeCommand extends $Command< DeprecateActivityTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class DeprecateActivityTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DeprecateDomainCommand.ts b/clients/client-swf/commands/DeprecateDomainCommand.ts index a05cca61e8cb6..c40e249d83dc2 100644 --- a/clients/client-swf/commands/DeprecateDomainCommand.ts +++ b/clients/client-swf/commands/DeprecateDomainCommand.ts @@ -59,6 +59,7 @@ export class DeprecateDomainCommand extends $Command< DeprecateDomainCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class DeprecateDomainCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DeprecateWorkflowTypeCommand.ts b/clients/client-swf/commands/DeprecateWorkflowTypeCommand.ts index e06202b273f38..c38da10f1b764 100644 --- a/clients/client-swf/commands/DeprecateWorkflowTypeCommand.ts +++ b/clients/client-swf/commands/DeprecateWorkflowTypeCommand.ts @@ -71,6 +71,7 @@ export class DeprecateWorkflowTypeCommand extends $Command< DeprecateWorkflowTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class DeprecateWorkflowTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DescribeActivityTypeCommand.ts b/clients/client-swf/commands/DescribeActivityTypeCommand.ts index 2d8d045ad4fe8..65f265ad35e88 100644 --- a/clients/client-swf/commands/DescribeActivityTypeCommand.ts +++ b/clients/client-swf/commands/DescribeActivityTypeCommand.ts @@ -66,6 +66,7 @@ export class DescribeActivityTypeCommand extends $Command< DescribeActivityTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DescribeActivityTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DescribeDomainCommand.ts b/clients/client-swf/commands/DescribeDomainCommand.ts index 956464dbb5f45..f70c8f6f76d3d 100644 --- a/clients/client-swf/commands/DescribeDomainCommand.ts +++ b/clients/client-swf/commands/DescribeDomainCommand.ts @@ -52,6 +52,7 @@ export class DescribeDomainCommand extends $Command< DescribeDomainCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DescribeDomainCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DescribeWorkflowExecutionCommand.ts b/clients/client-swf/commands/DescribeWorkflowExecutionCommand.ts index 9e7aac974c624..d497cab4eb8aa 100644 --- a/clients/client-swf/commands/DescribeWorkflowExecutionCommand.ts +++ b/clients/client-swf/commands/DescribeWorkflowExecutionCommand.ts @@ -56,6 +56,7 @@ export class DescribeWorkflowExecutionCommand extends $Command< DescribeWorkflowExecutionCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class DescribeWorkflowExecutionCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/DescribeWorkflowTypeCommand.ts b/clients/client-swf/commands/DescribeWorkflowTypeCommand.ts index 4485ab84602eb..1a5701b83f641 100644 --- a/clients/client-swf/commands/DescribeWorkflowTypeCommand.ts +++ b/clients/client-swf/commands/DescribeWorkflowTypeCommand.ts @@ -66,6 +66,7 @@ export class DescribeWorkflowTypeCommand extends $Command< DescribeWorkflowTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class DescribeWorkflowTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/GetWorkflowExecutionHistoryCommand.ts b/clients/client-swf/commands/GetWorkflowExecutionHistoryCommand.ts index d887ce20ef76f..aca586f9732de 100644 --- a/clients/client-swf/commands/GetWorkflowExecutionHistoryCommand.ts +++ b/clients/client-swf/commands/GetWorkflowExecutionHistoryCommand.ts @@ -57,6 +57,7 @@ export class GetWorkflowExecutionHistoryCommand extends $Command< GetWorkflowExecutionHistoryCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class GetWorkflowExecutionHistoryCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListActivityTypesCommand.ts b/clients/client-swf/commands/ListActivityTypesCommand.ts index 25e4d514073b8..34b12f5c22f31 100644 --- a/clients/client-swf/commands/ListActivityTypesCommand.ts +++ b/clients/client-swf/commands/ListActivityTypesCommand.ts @@ -55,6 +55,7 @@ export class ListActivityTypesCommand extends $Command< ListActivityTypesCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class ListActivityTypesCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListClosedWorkflowExecutionsCommand.ts b/clients/client-swf/commands/ListClosedWorkflowExecutionsCommand.ts index 7ab80b0830054..be10647147349 100644 --- a/clients/client-swf/commands/ListClosedWorkflowExecutionsCommand.ts +++ b/clients/client-swf/commands/ListClosedWorkflowExecutionsCommand.ts @@ -75,6 +75,7 @@ export class ListClosedWorkflowExecutionsCommand extends $Command< ListClosedWorkflowExecutionsCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class ListClosedWorkflowExecutionsCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListDomainsCommand.ts b/clients/client-swf/commands/ListDomainsCommand.ts index ee9f10f255a8e..f6c33fc2a4fae 100644 --- a/clients/client-swf/commands/ListDomainsCommand.ts +++ b/clients/client-swf/commands/ListDomainsCommand.ts @@ -59,6 +59,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class ListDomainsCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListOpenWorkflowExecutionsCommand.ts b/clients/client-swf/commands/ListOpenWorkflowExecutionsCommand.ts index 0da95ebe6e9f3..2bfd7d825a3e5 100644 --- a/clients/client-swf/commands/ListOpenWorkflowExecutionsCommand.ts +++ b/clients/client-swf/commands/ListOpenWorkflowExecutionsCommand.ts @@ -75,6 +75,7 @@ export class ListOpenWorkflowExecutionsCommand extends $Command< ListOpenWorkflowExecutionsCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class ListOpenWorkflowExecutionsCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListTagsForResourceCommand.ts b/clients/client-swf/commands/ListTagsForResourceCommand.ts index 3258fff12db73..0dede451cfcb7 100644 --- a/clients/client-swf/commands/ListTagsForResourceCommand.ts +++ b/clients/client-swf/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/ListWorkflowTypesCommand.ts b/clients/client-swf/commands/ListWorkflowTypesCommand.ts index ccc7194c94180..1b5041a69c55a 100644 --- a/clients/client-swf/commands/ListWorkflowTypesCommand.ts +++ b/clients/client-swf/commands/ListWorkflowTypesCommand.ts @@ -52,6 +52,7 @@ export class ListWorkflowTypesCommand extends $Command< ListWorkflowTypesCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class ListWorkflowTypesCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/PollForActivityTaskCommand.ts b/clients/client-swf/commands/PollForActivityTaskCommand.ts index 5e6a679904536..3c41026f074b5 100644 --- a/clients/client-swf/commands/PollForActivityTaskCommand.ts +++ b/clients/client-swf/commands/PollForActivityTaskCommand.ts @@ -63,6 +63,7 @@ export class PollForActivityTaskCommand extends $Command< PollForActivityTaskCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -80,7 +81,10 @@ export class PollForActivityTaskCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/PollForDecisionTaskCommand.ts b/clients/client-swf/commands/PollForDecisionTaskCommand.ts index b9d13b3263e71..8630ffb427f22 100644 --- a/clients/client-swf/commands/PollForDecisionTaskCommand.ts +++ b/clients/client-swf/commands/PollForDecisionTaskCommand.ts @@ -75,6 +75,7 @@ export class PollForDecisionTaskCommand extends $Command< PollForDecisionTaskCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class PollForDecisionTaskCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RecordActivityTaskHeartbeatCommand.ts b/clients/client-swf/commands/RecordActivityTaskHeartbeatCommand.ts index 0adce7f80c5db..fc847f46319e5 100644 --- a/clients/client-swf/commands/RecordActivityTaskHeartbeatCommand.ts +++ b/clients/client-swf/commands/RecordActivityTaskHeartbeatCommand.ts @@ -75,6 +75,7 @@ export class RecordActivityTaskHeartbeatCommand extends $Command< RecordActivityTaskHeartbeatCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class RecordActivityTaskHeartbeatCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RegisterActivityTypeCommand.ts b/clients/client-swf/commands/RegisterActivityTypeCommand.ts index 25e7181cc5390..81d5666baa71e 100644 --- a/clients/client-swf/commands/RegisterActivityTypeCommand.ts +++ b/clients/client-swf/commands/RegisterActivityTypeCommand.ts @@ -74,6 +74,7 @@ export class RegisterActivityTypeCommand extends $Command< RegisterActivityTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class RegisterActivityTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RegisterDomainCommand.ts b/clients/client-swf/commands/RegisterDomainCommand.ts index cce881a22cd88..619060323cf6e 100644 --- a/clients/client-swf/commands/RegisterDomainCommand.ts +++ b/clients/client-swf/commands/RegisterDomainCommand.ts @@ -51,6 +51,7 @@ export class RegisterDomainCommand extends $Command< RegisterDomainCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class RegisterDomainCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RegisterWorkflowTypeCommand.ts b/clients/client-swf/commands/RegisterWorkflowTypeCommand.ts index 2207e0b1e7fe0..fc304e343fba8 100644 --- a/clients/client-swf/commands/RegisterWorkflowTypeCommand.ts +++ b/clients/client-swf/commands/RegisterWorkflowTypeCommand.ts @@ -75,6 +75,7 @@ export class RegisterWorkflowTypeCommand extends $Command< RegisterWorkflowTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class RegisterWorkflowTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RequestCancelWorkflowExecutionCommand.ts b/clients/client-swf/commands/RequestCancelWorkflowExecutionCommand.ts index 2e14c3c7f6da4..b7b979d6e7ce9 100644 --- a/clients/client-swf/commands/RequestCancelWorkflowExecutionCommand.ts +++ b/clients/client-swf/commands/RequestCancelWorkflowExecutionCommand.ts @@ -66,6 +66,7 @@ export class RequestCancelWorkflowExecutionCommand extends $Command< RequestCancelWorkflowExecutionCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class RequestCancelWorkflowExecutionCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RespondActivityTaskCanceledCommand.ts b/clients/client-swf/commands/RespondActivityTaskCanceledCommand.ts index 9d949026964b3..46fb825052751 100644 --- a/clients/client-swf/commands/RespondActivityTaskCanceledCommand.ts +++ b/clients/client-swf/commands/RespondActivityTaskCanceledCommand.ts @@ -69,6 +69,7 @@ export class RespondActivityTaskCanceledCommand extends $Command< RespondActivityTaskCanceledCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class RespondActivityTaskCanceledCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RespondActivityTaskCompletedCommand.ts b/clients/client-swf/commands/RespondActivityTaskCompletedCommand.ts index c9dce0b9ddfa4..c3bec62d94f4b 100644 --- a/clients/client-swf/commands/RespondActivityTaskCompletedCommand.ts +++ b/clients/client-swf/commands/RespondActivityTaskCompletedCommand.ts @@ -67,6 +67,7 @@ export class RespondActivityTaskCompletedCommand extends $Command< RespondActivityTaskCompletedCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class RespondActivityTaskCompletedCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RespondActivityTaskFailedCommand.ts b/clients/client-swf/commands/RespondActivityTaskFailedCommand.ts index 738d866137d18..ed1c6365fd838 100644 --- a/clients/client-swf/commands/RespondActivityTaskFailedCommand.ts +++ b/clients/client-swf/commands/RespondActivityTaskFailedCommand.ts @@ -60,6 +60,7 @@ export class RespondActivityTaskFailedCommand extends $Command< RespondActivityTaskFailedCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class RespondActivityTaskFailedCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/RespondDecisionTaskCompletedCommand.ts b/clients/client-swf/commands/RespondDecisionTaskCompletedCommand.ts index 5bcf1f2f5eb49..a7af2741bd122 100644 --- a/clients/client-swf/commands/RespondDecisionTaskCompletedCommand.ts +++ b/clients/client-swf/commands/RespondDecisionTaskCompletedCommand.ts @@ -47,6 +47,7 @@ export class RespondDecisionTaskCompletedCommand extends $Command< RespondDecisionTaskCompletedCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class RespondDecisionTaskCompletedCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/SignalWorkflowExecutionCommand.ts b/clients/client-swf/commands/SignalWorkflowExecutionCommand.ts index b86d354883916..45432b1fb34bc 100644 --- a/clients/client-swf/commands/SignalWorkflowExecutionCommand.ts +++ b/clients/client-swf/commands/SignalWorkflowExecutionCommand.ts @@ -66,6 +66,7 @@ export class SignalWorkflowExecutionCommand extends $Command< SignalWorkflowExecutionCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class SignalWorkflowExecutionCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/StartWorkflowExecutionCommand.ts b/clients/client-swf/commands/StartWorkflowExecutionCommand.ts index 403df1078fe0f..7b0cdcda04f32 100644 --- a/clients/client-swf/commands/StartWorkflowExecutionCommand.ts +++ b/clients/client-swf/commands/StartWorkflowExecutionCommand.ts @@ -93,6 +93,7 @@ export class StartWorkflowExecutionCommand extends $Command< StartWorkflowExecutionCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -110,7 +111,10 @@ export class StartWorkflowExecutionCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/TagResourceCommand.ts b/clients/client-swf/commands/TagResourceCommand.ts index bd55aea73c5dc..215c88410ea4e 100644 --- a/clients/client-swf/commands/TagResourceCommand.ts +++ b/clients/client-swf/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/TerminateWorkflowExecutionCommand.ts b/clients/client-swf/commands/TerminateWorkflowExecutionCommand.ts index 9f3d428f8cc99..2bbe094a14e98 100644 --- a/clients/client-swf/commands/TerminateWorkflowExecutionCommand.ts +++ b/clients/client-swf/commands/TerminateWorkflowExecutionCommand.ts @@ -71,6 +71,7 @@ export class TerminateWorkflowExecutionCommand extends $Command< TerminateWorkflowExecutionCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -88,7 +89,10 @@ export class TerminateWorkflowExecutionCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/UndeprecateActivityTypeCommand.ts b/clients/client-swf/commands/UndeprecateActivityTypeCommand.ts index a9608086c18c7..7b8cdc7ffe812 100644 --- a/clients/client-swf/commands/UndeprecateActivityTypeCommand.ts +++ b/clients/client-swf/commands/UndeprecateActivityTypeCommand.ts @@ -69,6 +69,7 @@ export class UndeprecateActivityTypeCommand extends $Command< UndeprecateActivityTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class UndeprecateActivityTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/UndeprecateDomainCommand.ts b/clients/client-swf/commands/UndeprecateDomainCommand.ts index 82570100d8a2c..3fef83978365b 100644 --- a/clients/client-swf/commands/UndeprecateDomainCommand.ts +++ b/clients/client-swf/commands/UndeprecateDomainCommand.ts @@ -56,6 +56,7 @@ export class UndeprecateDomainCommand extends $Command< UndeprecateDomainCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class UndeprecateDomainCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/UndeprecateWorkflowTypeCommand.ts b/clients/client-swf/commands/UndeprecateWorkflowTypeCommand.ts index 614f1ef0c3c4d..bbb5d3b104944 100644 --- a/clients/client-swf/commands/UndeprecateWorkflowTypeCommand.ts +++ b/clients/client-swf/commands/UndeprecateWorkflowTypeCommand.ts @@ -69,6 +69,7 @@ export class UndeprecateWorkflowTypeCommand extends $Command< UndeprecateWorkflowTypeCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -86,7 +87,10 @@ export class UndeprecateWorkflowTypeCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-swf/commands/UntagResourceCommand.ts b/clients/client-swf/commands/UntagResourceCommand.ts index 1bfad45ea45f5..813f179fb73f4 100644 --- a/clients/client-swf/commands/UntagResourceCommand.ts +++ b/clients/client-swf/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SWFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SWFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/CreateCanaryCommand.ts b/clients/client-synthetics/commands/CreateCanaryCommand.ts index 904731699b829..255281aed0996 100644 --- a/clients/client-synthetics/commands/CreateCanaryCommand.ts +++ b/clients/client-synthetics/commands/CreateCanaryCommand.ts @@ -41,6 +41,7 @@ export class CreateCanaryCommand extends $Command< CreateCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class CreateCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/DeleteCanaryCommand.ts b/clients/client-synthetics/commands/DeleteCanaryCommand.ts index 50fc65143155a..d3466b47b8047 100644 --- a/clients/client-synthetics/commands/DeleteCanaryCommand.ts +++ b/clients/client-synthetics/commands/DeleteCanaryCommand.ts @@ -62,6 +62,7 @@ export class DeleteCanaryCommand extends $Command< DeleteCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -79,7 +80,10 @@ export class DeleteCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/DescribeCanariesCommand.ts b/clients/client-synthetics/commands/DescribeCanariesCommand.ts index eebcbe8ba0bdd..2f3c1c73676f3 100644 --- a/clients/client-synthetics/commands/DescribeCanariesCommand.ts +++ b/clients/client-synthetics/commands/DescribeCanariesCommand.ts @@ -33,6 +33,7 @@ export class DescribeCanariesCommand extends $Command< DescribeCanariesCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeCanariesCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/DescribeCanariesLastRunCommand.ts b/clients/client-synthetics/commands/DescribeCanariesLastRunCommand.ts index bc48204c427ce..0aca83d869503 100644 --- a/clients/client-synthetics/commands/DescribeCanariesLastRunCommand.ts +++ b/clients/client-synthetics/commands/DescribeCanariesLastRunCommand.ts @@ -28,6 +28,7 @@ export class DescribeCanariesLastRunCommand extends $Command< DescribeCanariesLastRunCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCanariesLastRunCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/DescribeRuntimeVersionsCommand.ts b/clients/client-synthetics/commands/DescribeRuntimeVersionsCommand.ts index 4b56ecb8e4384..9115343fb8e22 100644 --- a/clients/client-synthetics/commands/DescribeRuntimeVersionsCommand.ts +++ b/clients/client-synthetics/commands/DescribeRuntimeVersionsCommand.ts @@ -30,6 +30,7 @@ export class DescribeRuntimeVersionsCommand extends $Command< DescribeRuntimeVersionsCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeRuntimeVersionsCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/GetCanaryCommand.ts b/clients/client-synthetics/commands/GetCanaryCommand.ts index 1b69fde2cb97d..506a68c621ee2 100644 --- a/clients/client-synthetics/commands/GetCanaryCommand.ts +++ b/clients/client-synthetics/commands/GetCanaryCommand.ts @@ -30,6 +30,7 @@ export class GetCanaryCommand extends $Command< GetCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/GetCanaryRunsCommand.ts b/clients/client-synthetics/commands/GetCanaryRunsCommand.ts index ce60d402ac849..98531a185b452 100644 --- a/clients/client-synthetics/commands/GetCanaryRunsCommand.ts +++ b/clients/client-synthetics/commands/GetCanaryRunsCommand.ts @@ -28,6 +28,7 @@ export class GetCanaryRunsCommand extends $Command< GetCanaryRunsCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetCanaryRunsCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/ListTagsForResourceCommand.ts b/clients/client-synthetics/commands/ListTagsForResourceCommand.ts index 2b2416eb6789b..fe47e6c92d8a6 100644 --- a/clients/client-synthetics/commands/ListTagsForResourceCommand.ts +++ b/clients/client-synthetics/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/StartCanaryCommand.ts b/clients/client-synthetics/commands/StartCanaryCommand.ts index d9cf455a63ae0..83e130fc3594f 100644 --- a/clients/client-synthetics/commands/StartCanaryCommand.ts +++ b/clients/client-synthetics/commands/StartCanaryCommand.ts @@ -30,6 +30,7 @@ export class StartCanaryCommand extends $Command< StartCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/StopCanaryCommand.ts b/clients/client-synthetics/commands/StopCanaryCommand.ts index 9bd76bca08c3a..ab1ec6cf4e0fb 100644 --- a/clients/client-synthetics/commands/StopCanaryCommand.ts +++ b/clients/client-synthetics/commands/StopCanaryCommand.ts @@ -33,6 +33,7 @@ export class StopCanaryCommand extends $Command< StopCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StopCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/TagResourceCommand.ts b/clients/client-synthetics/commands/TagResourceCommand.ts index 9aa20b6ef7a77..c5ed23dd1fa04 100644 --- a/clients/client-synthetics/commands/TagResourceCommand.ts +++ b/clients/client-synthetics/commands/TagResourceCommand.ts @@ -37,6 +37,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagResourceCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/UntagResourceCommand.ts b/clients/client-synthetics/commands/UntagResourceCommand.ts index aa731cac83068..d8485aef6e9e7 100644 --- a/clients/client-synthetics/commands/UntagResourceCommand.ts +++ b/clients/client-synthetics/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-synthetics/commands/UpdateCanaryCommand.ts b/clients/client-synthetics/commands/UpdateCanaryCommand.ts index f32196b90cc30..a02827f599a91 100644 --- a/clients/client-synthetics/commands/UpdateCanaryCommand.ts +++ b/clients/client-synthetics/commands/UpdateCanaryCommand.ts @@ -32,6 +32,7 @@ export class UpdateCanaryCommand extends $Command< UpdateCanaryCommandOutput, SyntheticsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateCanaryCommand extends $Command< configuration: SyntheticsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/AnalyzeDocumentCommand.ts b/clients/client-textract/commands/AnalyzeDocumentCommand.ts index ff43509cf5004..3d3971f995a46 100644 --- a/clients/client-textract/commands/AnalyzeDocumentCommand.ts +++ b/clients/client-textract/commands/AnalyzeDocumentCommand.ts @@ -58,6 +58,7 @@ export class AnalyzeDocumentCommand extends $Command< AnalyzeDocumentCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -75,7 +76,10 @@ export class AnalyzeDocumentCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/DetectDocumentTextCommand.ts b/clients/client-textract/commands/DetectDocumentTextCommand.ts index ff805d73848c2..93e71d0523d19 100644 --- a/clients/client-textract/commands/DetectDocumentTextCommand.ts +++ b/clients/client-textract/commands/DetectDocumentTextCommand.ts @@ -38,6 +38,7 @@ export class DetectDocumentTextCommand extends $Command< DetectDocumentTextCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class DetectDocumentTextCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/GetDocumentAnalysisCommand.ts b/clients/client-textract/commands/GetDocumentAnalysisCommand.ts index 4295b3ae8f132..e0018e481f5dc 100644 --- a/clients/client-textract/commands/GetDocumentAnalysisCommand.ts +++ b/clients/client-textract/commands/GetDocumentAnalysisCommand.ts @@ -72,6 +72,7 @@ export class GetDocumentAnalysisCommand extends $Command< GetDocumentAnalysisCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -89,7 +90,10 @@ export class GetDocumentAnalysisCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/GetDocumentTextDetectionCommand.ts b/clients/client-textract/commands/GetDocumentTextDetectionCommand.ts index 83662da96eb67..f0aad10f065ab 100644 --- a/clients/client-textract/commands/GetDocumentTextDetectionCommand.ts +++ b/clients/client-textract/commands/GetDocumentTextDetectionCommand.ts @@ -52,6 +52,7 @@ export class GetDocumentTextDetectionCommand extends $Command< GetDocumentTextDetectionCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class GetDocumentTextDetectionCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/StartDocumentAnalysisCommand.ts b/clients/client-textract/commands/StartDocumentAnalysisCommand.ts index 40e1074ce56b1..a19bb025975c9 100644 --- a/clients/client-textract/commands/StartDocumentAnalysisCommand.ts +++ b/clients/client-textract/commands/StartDocumentAnalysisCommand.ts @@ -45,6 +45,7 @@ export class StartDocumentAnalysisCommand extends $Command< StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class StartDocumentAnalysisCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-textract/commands/StartDocumentTextDetectionCommand.ts b/clients/client-textract/commands/StartDocumentTextDetectionCommand.ts index 9b983536bb266..5d381b4303c7a 100644 --- a/clients/client-textract/commands/StartDocumentTextDetectionCommand.ts +++ b/clients/client-textract/commands/StartDocumentTextDetectionCommand.ts @@ -44,6 +44,7 @@ export class StartDocumentTextDetectionCommand extends $Command< StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class StartDocumentTextDetectionCommand extends $Command< configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-query/commands/CancelQueryCommand.ts b/clients/client-timestream-query/commands/CancelQueryCommand.ts index ff56fce987518..42267e3d0e703 100644 --- a/clients/client-timestream-query/commands/CancelQueryCommand.ts +++ b/clients/client-timestream-query/commands/CancelQueryCommand.ts @@ -32,6 +32,7 @@ export class CancelQueryCommand extends $Command< CancelQueryCommandOutput, TimestreamQueryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CancelQueryCommand extends $Command< configuration: TimestreamQueryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-query/commands/DescribeEndpointsCommand.ts b/clients/client-timestream-query/commands/DescribeEndpointsCommand.ts index 7ec8e8919f38b..c39f780c1a02c 100644 --- a/clients/client-timestream-query/commands/DescribeEndpointsCommand.ts +++ b/clients/client-timestream-query/commands/DescribeEndpointsCommand.ts @@ -42,6 +42,7 @@ export class DescribeEndpointsCommand extends $Command< DescribeEndpointsCommandOutput, TimestreamQueryClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class DescribeEndpointsCommand extends $Command< configuration: TimestreamQueryClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-query/commands/QueryCommand.ts b/clients/client-timestream-query/commands/QueryCommand.ts index 397818dfee8b1..e231118fa6f1a 100644 --- a/clients/client-timestream-query/commands/QueryCommand.ts +++ b/clients/client-timestream-query/commands/QueryCommand.ts @@ -23,6 +23,7 @@ export type QueryCommandOutput = QueryResponse & __MetadataBearer; *

*/ export class QueryCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -40,7 +41,10 @@ export class QueryCommand 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-timestream-write/commands/CreateDatabaseCommand.ts b/clients/client-timestream-write/commands/CreateDatabaseCommand.ts index 11e5eb7e8f971..9492ab24b998a 100644 --- a/clients/client-timestream-write/commands/CreateDatabaseCommand.ts +++ b/clients/client-timestream-write/commands/CreateDatabaseCommand.ts @@ -31,6 +31,7 @@ export class CreateDatabaseCommand extends $Command< CreateDatabaseCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateDatabaseCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/CreateTableCommand.ts b/clients/client-timestream-write/commands/CreateTableCommand.ts index 7654284a5f903..150a4870983e6 100644 --- a/clients/client-timestream-write/commands/CreateTableCommand.ts +++ b/clients/client-timestream-write/commands/CreateTableCommand.ts @@ -35,6 +35,7 @@ export class CreateTableCommand extends $Command< CreateTableCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateTableCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/DeleteDatabaseCommand.ts b/clients/client-timestream-write/commands/DeleteDatabaseCommand.ts index cbe825b9465e8..948984eed8813 100644 --- a/clients/client-timestream-write/commands/DeleteDatabaseCommand.ts +++ b/clients/client-timestream-write/commands/DeleteDatabaseCommand.ts @@ -36,6 +36,7 @@ export class DeleteDatabaseCommand extends $Command< DeleteDatabaseCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DeleteDatabaseCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/DeleteTableCommand.ts b/clients/client-timestream-write/commands/DeleteTableCommand.ts index 5b8da25f275f2..7023558bcbd54 100644 --- a/clients/client-timestream-write/commands/DeleteTableCommand.ts +++ b/clients/client-timestream-write/commands/DeleteTableCommand.ts @@ -33,6 +33,7 @@ export class DeleteTableCommand extends $Command< DeleteTableCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DeleteTableCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/DescribeDatabaseCommand.ts b/clients/client-timestream-write/commands/DescribeDatabaseCommand.ts index 735b00787d7a5..d1d82696aa41d 100644 --- a/clients/client-timestream-write/commands/DescribeDatabaseCommand.ts +++ b/clients/client-timestream-write/commands/DescribeDatabaseCommand.ts @@ -30,6 +30,7 @@ export class DescribeDatabaseCommand extends $Command< DescribeDatabaseCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeDatabaseCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/DescribeEndpointsCommand.ts b/clients/client-timestream-write/commands/DescribeEndpointsCommand.ts index c9ceb4ff31ffe..cff3f8c6f13fc 100644 --- a/clients/client-timestream-write/commands/DescribeEndpointsCommand.ts +++ b/clients/client-timestream-write/commands/DescribeEndpointsCommand.ts @@ -41,6 +41,7 @@ export class DescribeEndpointsCommand extends $Command< DescribeEndpointsCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class DescribeEndpointsCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/DescribeTableCommand.ts b/clients/client-timestream-write/commands/DescribeTableCommand.ts index 973d971bf74db..0eae9c3cd5007 100644 --- a/clients/client-timestream-write/commands/DescribeTableCommand.ts +++ b/clients/client-timestream-write/commands/DescribeTableCommand.ts @@ -31,6 +31,7 @@ export class DescribeTableCommand extends $Command< DescribeTableCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeTableCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/ListDatabasesCommand.ts b/clients/client-timestream-write/commands/ListDatabasesCommand.ts index a638c49922dc3..4422570c75946 100644 --- a/clients/client-timestream-write/commands/ListDatabasesCommand.ts +++ b/clients/client-timestream-write/commands/ListDatabasesCommand.ts @@ -30,6 +30,7 @@ export class ListDatabasesCommand extends $Command< ListDatabasesCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListDatabasesCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/ListTablesCommand.ts b/clients/client-timestream-write/commands/ListTablesCommand.ts index 7990d3bb1c1c6..7ab4d6cdd3f02 100644 --- a/clients/client-timestream-write/commands/ListTablesCommand.ts +++ b/clients/client-timestream-write/commands/ListTablesCommand.ts @@ -29,6 +29,7 @@ export class ListTablesCommand extends $Command< ListTablesCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTablesCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/ListTagsForResourceCommand.ts b/clients/client-timestream-write/commands/ListTagsForResourceCommand.ts index 0cb896a2a99e9..60eed49740d82 100644 --- a/clients/client-timestream-write/commands/ListTagsForResourceCommand.ts +++ b/clients/client-timestream-write/commands/ListTagsForResourceCommand.ts @@ -30,6 +30,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/TagResourceCommand.ts b/clients/client-timestream-write/commands/TagResourceCommand.ts index 1685aba2179ee..c5fa23ad11541 100644 --- a/clients/client-timestream-write/commands/TagResourceCommand.ts +++ b/clients/client-timestream-write/commands/TagResourceCommand.ts @@ -32,6 +32,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TagResourceCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/UntagResourceCommand.ts b/clients/client-timestream-write/commands/UntagResourceCommand.ts index 00f77621eadfb..5b44f5fd8c608 100644 --- a/clients/client-timestream-write/commands/UntagResourceCommand.ts +++ b/clients/client-timestream-write/commands/UntagResourceCommand.ts @@ -30,6 +30,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UntagResourceCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/UpdateDatabaseCommand.ts b/clients/client-timestream-write/commands/UpdateDatabaseCommand.ts index 175084237988a..5895cbd4740c6 100644 --- a/clients/client-timestream-write/commands/UpdateDatabaseCommand.ts +++ b/clients/client-timestream-write/commands/UpdateDatabaseCommand.ts @@ -32,6 +32,7 @@ export class UpdateDatabaseCommand extends $Command< UpdateDatabaseCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateDatabaseCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/UpdateTableCommand.ts b/clients/client-timestream-write/commands/UpdateTableCommand.ts index 72746872b1a01..a9adb4f531d2c 100644 --- a/clients/client-timestream-write/commands/UpdateTableCommand.ts +++ b/clients/client-timestream-write/commands/UpdateTableCommand.ts @@ -34,6 +34,7 @@ export class UpdateTableCommand extends $Command< UpdateTableCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class UpdateTableCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-timestream-write/commands/WriteRecordsCommand.ts b/clients/client-timestream-write/commands/WriteRecordsCommand.ts index e4b05258e967d..0750a6186ca26 100644 --- a/clients/client-timestream-write/commands/WriteRecordsCommand.ts +++ b/clients/client-timestream-write/commands/WriteRecordsCommand.ts @@ -41,6 +41,7 @@ export class WriteRecordsCommand extends $Command< WriteRecordsCommandOutput, TimestreamWriteClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class WriteRecordsCommand extends $Command< configuration: TimestreamWriteClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe-streaming/commands/StartMedicalStreamTranscriptionCommand.ts b/clients/client-transcribe-streaming/commands/StartMedicalStreamTranscriptionCommand.ts index 0255743e98148..1f20c6a4fbca3 100644 --- a/clients/client-transcribe-streaming/commands/StartMedicalStreamTranscriptionCommand.ts +++ b/clients/client-transcribe-streaming/commands/StartMedicalStreamTranscriptionCommand.ts @@ -35,6 +35,7 @@ export class StartMedicalStreamTranscriptionCommand extends $Command< StartMedicalStreamTranscriptionCommandOutput, TranscribeStreamingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,8 +53,11 @@ export class StartMedicalStreamTranscriptionCommand extends $Command< configuration: TranscribeStreamingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEventStreamPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEventStreamPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe-streaming/commands/StartStreamTranscriptionCommand.ts b/clients/client-transcribe-streaming/commands/StartStreamTranscriptionCommand.ts index 16d4c750641ed..bf911d93f648a 100644 --- a/clients/client-transcribe-streaming/commands/StartStreamTranscriptionCommand.ts +++ b/clients/client-transcribe-streaming/commands/StartStreamTranscriptionCommand.ts @@ -50,6 +50,7 @@ export class StartStreamTranscriptionCommand extends $Command< StartStreamTranscriptionCommandOutput, TranscribeStreamingClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,8 +68,11 @@ export class StartStreamTranscriptionCommand extends $Command< configuration: TranscribeStreamingClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEventStreamPlugin(configuration)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEventStreamPlugin(configuration)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/CreateLanguageModelCommand.ts b/clients/client-transcribe/commands/CreateLanguageModelCommand.ts index 0da4c07b5b609..35593b83206da 100644 --- a/clients/client-transcribe/commands/CreateLanguageModelCommand.ts +++ b/clients/client-transcribe/commands/CreateLanguageModelCommand.ts @@ -30,6 +30,7 @@ export class CreateLanguageModelCommand extends $Command< CreateLanguageModelCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateLanguageModelCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/CreateMedicalVocabularyCommand.ts b/clients/client-transcribe/commands/CreateMedicalVocabularyCommand.ts index 6b482380c73b7..aab0a09c069df 100644 --- a/clients/client-transcribe/commands/CreateMedicalVocabularyCommand.ts +++ b/clients/client-transcribe/commands/CreateMedicalVocabularyCommand.ts @@ -30,6 +30,7 @@ export class CreateMedicalVocabularyCommand extends $Command< CreateMedicalVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateMedicalVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/CreateVocabularyCommand.ts b/clients/client-transcribe/commands/CreateVocabularyCommand.ts index d36c0754f3924..925aedcf9ec26 100644 --- a/clients/client-transcribe/commands/CreateVocabularyCommand.ts +++ b/clients/client-transcribe/commands/CreateVocabularyCommand.ts @@ -29,6 +29,7 @@ export class CreateVocabularyCommand extends $Command< CreateVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/CreateVocabularyFilterCommand.ts b/clients/client-transcribe/commands/CreateVocabularyFilterCommand.ts index 087381bdf1268..68f07324018d1 100644 --- a/clients/client-transcribe/commands/CreateVocabularyFilterCommand.ts +++ b/clients/client-transcribe/commands/CreateVocabularyFilterCommand.ts @@ -29,6 +29,7 @@ export class CreateVocabularyFilterCommand extends $Command< CreateVocabularyFilterCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateVocabularyFilterCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteLanguageModelCommand.ts b/clients/client-transcribe/commands/DeleteLanguageModelCommand.ts index b961e6ed80bb6..80a4de4ce8123 100644 --- a/clients/client-transcribe/commands/DeleteLanguageModelCommand.ts +++ b/clients/client-transcribe/commands/DeleteLanguageModelCommand.ts @@ -28,6 +28,7 @@ export class DeleteLanguageModelCommand extends $Command< DeleteLanguageModelCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLanguageModelCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteMedicalTranscriptionJobCommand.ts b/clients/client-transcribe/commands/DeleteMedicalTranscriptionJobCommand.ts index baf793ae1d99f..4ccf52fd5d1e1 100644 --- a/clients/client-transcribe/commands/DeleteMedicalTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/DeleteMedicalTranscriptionJobCommand.ts @@ -28,6 +28,7 @@ export class DeleteMedicalTranscriptionJobCommand extends $Command< DeleteMedicalTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMedicalTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteMedicalVocabularyCommand.ts b/clients/client-transcribe/commands/DeleteMedicalVocabularyCommand.ts index 6c02f13497386..f20f79d3c9ac4 100644 --- a/clients/client-transcribe/commands/DeleteMedicalVocabularyCommand.ts +++ b/clients/client-transcribe/commands/DeleteMedicalVocabularyCommand.ts @@ -28,6 +28,7 @@ export class DeleteMedicalVocabularyCommand extends $Command< DeleteMedicalVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMedicalVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteTranscriptionJobCommand.ts b/clients/client-transcribe/commands/DeleteTranscriptionJobCommand.ts index bcad5897265cd..fb03b7bb04b4d 100644 --- a/clients/client-transcribe/commands/DeleteTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/DeleteTranscriptionJobCommand.ts @@ -29,6 +29,7 @@ export class DeleteTranscriptionJobCommand extends $Command< DeleteTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteVocabularyCommand.ts b/clients/client-transcribe/commands/DeleteVocabularyCommand.ts index b2186ba7f9696..e77ff22f0f227 100644 --- a/clients/client-transcribe/commands/DeleteVocabularyCommand.ts +++ b/clients/client-transcribe/commands/DeleteVocabularyCommand.ts @@ -28,6 +28,7 @@ export class DeleteVocabularyCommand extends $Command< DeleteVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DeleteVocabularyFilterCommand.ts b/clients/client-transcribe/commands/DeleteVocabularyFilterCommand.ts index 8ceebd34e6fa1..9f9c330c74e55 100644 --- a/clients/client-transcribe/commands/DeleteVocabularyFilterCommand.ts +++ b/clients/client-transcribe/commands/DeleteVocabularyFilterCommand.ts @@ -28,6 +28,7 @@ export class DeleteVocabularyFilterCommand extends $Command< DeleteVocabularyFilterCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteVocabularyFilterCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/DescribeLanguageModelCommand.ts b/clients/client-transcribe/commands/DescribeLanguageModelCommand.ts index ffa5f5639ef0d..52a2634415a28 100644 --- a/clients/client-transcribe/commands/DescribeLanguageModelCommand.ts +++ b/clients/client-transcribe/commands/DescribeLanguageModelCommand.ts @@ -33,6 +33,7 @@ export class DescribeLanguageModelCommand extends $Command< DescribeLanguageModelCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeLanguageModelCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/GetMedicalTranscriptionJobCommand.ts b/clients/client-transcribe/commands/GetMedicalTranscriptionJobCommand.ts index 81ea6567e2ea4..4a6ce2e483709 100644 --- a/clients/client-transcribe/commands/GetMedicalTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/GetMedicalTranscriptionJobCommand.ts @@ -31,6 +31,7 @@ export class GetMedicalTranscriptionJobCommand extends $Command< GetMedicalTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetMedicalTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/GetMedicalVocabularyCommand.ts b/clients/client-transcribe/commands/GetMedicalVocabularyCommand.ts index 40b294d5c1d6f..82f8e49282f77 100644 --- a/clients/client-transcribe/commands/GetMedicalVocabularyCommand.ts +++ b/clients/client-transcribe/commands/GetMedicalVocabularyCommand.ts @@ -28,6 +28,7 @@ export class GetMedicalVocabularyCommand extends $Command< GetMedicalVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMedicalVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/GetTranscriptionJobCommand.ts b/clients/client-transcribe/commands/GetTranscriptionJobCommand.ts index ff17891e79df0..f78ae8c109e9b 100644 --- a/clients/client-transcribe/commands/GetTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/GetTranscriptionJobCommand.ts @@ -32,6 +32,7 @@ export class GetTranscriptionJobCommand extends $Command< GetTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/GetVocabularyCommand.ts b/clients/client-transcribe/commands/GetVocabularyCommand.ts index 66e6fc0503522..69ad72b144a59 100644 --- a/clients/client-transcribe/commands/GetVocabularyCommand.ts +++ b/clients/client-transcribe/commands/GetVocabularyCommand.ts @@ -28,6 +28,7 @@ export class GetVocabularyCommand extends $Command< GetVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/GetVocabularyFilterCommand.ts b/clients/client-transcribe/commands/GetVocabularyFilterCommand.ts index ed31944f22d0f..5d11e33b6b5aa 100644 --- a/clients/client-transcribe/commands/GetVocabularyFilterCommand.ts +++ b/clients/client-transcribe/commands/GetVocabularyFilterCommand.ts @@ -28,6 +28,7 @@ export class GetVocabularyFilterCommand extends $Command< GetVocabularyFilterCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetVocabularyFilterCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListLanguageModelsCommand.ts b/clients/client-transcribe/commands/ListLanguageModelsCommand.ts index 46cd04bdf248d..bfc9fe9603436 100644 --- a/clients/client-transcribe/commands/ListLanguageModelsCommand.ts +++ b/clients/client-transcribe/commands/ListLanguageModelsCommand.ts @@ -31,6 +31,7 @@ export class ListLanguageModelsCommand extends $Command< ListLanguageModelsCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListLanguageModelsCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListMedicalTranscriptionJobsCommand.ts b/clients/client-transcribe/commands/ListMedicalTranscriptionJobsCommand.ts index 83a2a95aa80a1..efd10c594384a 100644 --- a/clients/client-transcribe/commands/ListMedicalTranscriptionJobsCommand.ts +++ b/clients/client-transcribe/commands/ListMedicalTranscriptionJobsCommand.ts @@ -29,6 +29,7 @@ export class ListMedicalTranscriptionJobsCommand extends $Command< ListMedicalTranscriptionJobsCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListMedicalTranscriptionJobsCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListMedicalVocabulariesCommand.ts b/clients/client-transcribe/commands/ListMedicalVocabulariesCommand.ts index 544699d02fc56..eeef2ddf55f85 100644 --- a/clients/client-transcribe/commands/ListMedicalVocabulariesCommand.ts +++ b/clients/client-transcribe/commands/ListMedicalVocabulariesCommand.ts @@ -29,6 +29,7 @@ export class ListMedicalVocabulariesCommand extends $Command< ListMedicalVocabulariesCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListMedicalVocabulariesCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListTranscriptionJobsCommand.ts b/clients/client-transcribe/commands/ListTranscriptionJobsCommand.ts index dffffd48d4dfa..b93eb3de90c68 100644 --- a/clients/client-transcribe/commands/ListTranscriptionJobsCommand.ts +++ b/clients/client-transcribe/commands/ListTranscriptionJobsCommand.ts @@ -28,6 +28,7 @@ export class ListTranscriptionJobsCommand extends $Command< ListTranscriptionJobsCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTranscriptionJobsCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListVocabulariesCommand.ts b/clients/client-transcribe/commands/ListVocabulariesCommand.ts index e3fc6eb788441..27f66b037f662 100644 --- a/clients/client-transcribe/commands/ListVocabulariesCommand.ts +++ b/clients/client-transcribe/commands/ListVocabulariesCommand.ts @@ -29,6 +29,7 @@ export class ListVocabulariesCommand extends $Command< ListVocabulariesCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListVocabulariesCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/ListVocabularyFiltersCommand.ts b/clients/client-transcribe/commands/ListVocabularyFiltersCommand.ts index 8e2f53a9ea138..be77fac58a584 100644 --- a/clients/client-transcribe/commands/ListVocabularyFiltersCommand.ts +++ b/clients/client-transcribe/commands/ListVocabularyFiltersCommand.ts @@ -28,6 +28,7 @@ export class ListVocabularyFiltersCommand extends $Command< ListVocabularyFiltersCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListVocabularyFiltersCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/StartMedicalTranscriptionJobCommand.ts b/clients/client-transcribe/commands/StartMedicalTranscriptionJobCommand.ts index 9e5a6bd94c065..71cc3ed880f8b 100644 --- a/clients/client-transcribe/commands/StartMedicalTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/StartMedicalTranscriptionJobCommand.ts @@ -28,6 +28,7 @@ export class StartMedicalTranscriptionJobCommand extends $Command< StartMedicalTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartMedicalTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/StartTranscriptionJobCommand.ts b/clients/client-transcribe/commands/StartTranscriptionJobCommand.ts index 3454efbe4c482..5392a1d468d89 100644 --- a/clients/client-transcribe/commands/StartTranscriptionJobCommand.ts +++ b/clients/client-transcribe/commands/StartTranscriptionJobCommand.ts @@ -28,6 +28,7 @@ export class StartTranscriptionJobCommand extends $Command< StartTranscriptionJobCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class StartTranscriptionJobCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/UpdateMedicalVocabularyCommand.ts b/clients/client-transcribe/commands/UpdateMedicalVocabularyCommand.ts index b351c0a0b5cad..b4a0e25a31a02 100644 --- a/clients/client-transcribe/commands/UpdateMedicalVocabularyCommand.ts +++ b/clients/client-transcribe/commands/UpdateMedicalVocabularyCommand.ts @@ -31,6 +31,7 @@ export class UpdateMedicalVocabularyCommand extends $Command< UpdateMedicalVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateMedicalVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/UpdateVocabularyCommand.ts b/clients/client-transcribe/commands/UpdateVocabularyCommand.ts index 392192a0f6903..1c7fdc968e938 100644 --- a/clients/client-transcribe/commands/UpdateVocabularyCommand.ts +++ b/clients/client-transcribe/commands/UpdateVocabularyCommand.ts @@ -30,6 +30,7 @@ export class UpdateVocabularyCommand extends $Command< UpdateVocabularyCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateVocabularyCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transcribe/commands/UpdateVocabularyFilterCommand.ts b/clients/client-transcribe/commands/UpdateVocabularyFilterCommand.ts index 7d42175a9252d..a74f96af1e211 100644 --- a/clients/client-transcribe/commands/UpdateVocabularyFilterCommand.ts +++ b/clients/client-transcribe/commands/UpdateVocabularyFilterCommand.ts @@ -28,6 +28,7 @@ export class UpdateVocabularyFilterCommand extends $Command< UpdateVocabularyFilterCommandOutput, TranscribeClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateVocabularyFilterCommand extends $Command< configuration: TranscribeClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/CreateServerCommand.ts b/clients/client-transfer/commands/CreateServerCommand.ts index ac6ceada00f3c..7e5718c7bf91b 100644 --- a/clients/client-transfer/commands/CreateServerCommand.ts +++ b/clients/client-transfer/commands/CreateServerCommand.ts @@ -31,6 +31,7 @@ export class CreateServerCommand extends $Command< CreateServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/CreateUserCommand.ts b/clients/client-transfer/commands/CreateUserCommand.ts index 659804a7eb76a..5faeda95962df 100644 --- a/clients/client-transfer/commands/CreateUserCommand.ts +++ b/clients/client-transfer/commands/CreateUserCommand.ts @@ -34,6 +34,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateUserCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DeleteServerCommand.ts b/clients/client-transfer/commands/DeleteServerCommand.ts index 41c6b7f9ef671..bbd8a08319338 100644 --- a/clients/client-transfer/commands/DeleteServerCommand.ts +++ b/clients/client-transfer/commands/DeleteServerCommand.ts @@ -30,6 +30,7 @@ export class DeleteServerCommand extends $Command< DeleteServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DeleteSshPublicKeyCommand.ts b/clients/client-transfer/commands/DeleteSshPublicKeyCommand.ts index 79fa9e4b15bb3..6184a84445c82 100644 --- a/clients/client-transfer/commands/DeleteSshPublicKeyCommand.ts +++ b/clients/client-transfer/commands/DeleteSshPublicKeyCommand.ts @@ -30,6 +30,7 @@ export class DeleteSshPublicKeyCommand extends $Command< DeleteSshPublicKeyCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteSshPublicKeyCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DeleteUserCommand.ts b/clients/client-transfer/commands/DeleteUserCommand.ts index 89e8d54710d76..0cd4d05d5f843 100644 --- a/clients/client-transfer/commands/DeleteUserCommand.ts +++ b/clients/client-transfer/commands/DeleteUserCommand.ts @@ -34,6 +34,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DeleteUserCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DescribeSecurityPolicyCommand.ts b/clients/client-transfer/commands/DescribeSecurityPolicyCommand.ts index 4d31b5a2d792f..97908bfd64b91 100644 --- a/clients/client-transfer/commands/DescribeSecurityPolicyCommand.ts +++ b/clients/client-transfer/commands/DescribeSecurityPolicyCommand.ts @@ -31,6 +31,7 @@ export class DescribeSecurityPolicyCommand extends $Command< DescribeSecurityPolicyCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeSecurityPolicyCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DescribeServerCommand.ts b/clients/client-transfer/commands/DescribeServerCommand.ts index 94b696e77286a..1d93eebb7ca6c 100644 --- a/clients/client-transfer/commands/DescribeServerCommand.ts +++ b/clients/client-transfer/commands/DescribeServerCommand.ts @@ -33,6 +33,7 @@ export class DescribeServerCommand extends $Command< DescribeServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/DescribeUserCommand.ts b/clients/client-transfer/commands/DescribeUserCommand.ts index f982e213545bf..b4f77cbf20be7 100644 --- a/clients/client-transfer/commands/DescribeUserCommand.ts +++ b/clients/client-transfer/commands/DescribeUserCommand.ts @@ -32,6 +32,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeUserCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/ImportSshPublicKeyCommand.ts b/clients/client-transfer/commands/ImportSshPublicKeyCommand.ts index f663cf67b42b9..8d93fbed1f15c 100644 --- a/clients/client-transfer/commands/ImportSshPublicKeyCommand.ts +++ b/clients/client-transfer/commands/ImportSshPublicKeyCommand.ts @@ -33,6 +33,7 @@ export class ImportSshPublicKeyCommand extends $Command< ImportSshPublicKeyCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ImportSshPublicKeyCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/ListSecurityPoliciesCommand.ts b/clients/client-transfer/commands/ListSecurityPoliciesCommand.ts index 0b9e8548a31fe..37ba919c6b735 100644 --- a/clients/client-transfer/commands/ListSecurityPoliciesCommand.ts +++ b/clients/client-transfer/commands/ListSecurityPoliciesCommand.ts @@ -29,6 +29,7 @@ export class ListSecurityPoliciesCommand extends $Command< ListSecurityPoliciesCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListSecurityPoliciesCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/ListServersCommand.ts b/clients/client-transfer/commands/ListServersCommand.ts index 7da4fafc960df..85323904995cc 100644 --- a/clients/client-transfer/commands/ListServersCommand.ts +++ b/clients/client-transfer/commands/ListServersCommand.ts @@ -29,6 +29,7 @@ export class ListServersCommand extends $Command< ListServersCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListServersCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/ListTagsForResourceCommand.ts b/clients/client-transfer/commands/ListTagsForResourceCommand.ts index f418ec023fde3..f9d6538419d85 100644 --- a/clients/client-transfer/commands/ListTagsForResourceCommand.ts +++ b/clients/client-transfer/commands/ListTagsForResourceCommand.ts @@ -29,6 +29,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/ListUsersCommand.ts b/clients/client-transfer/commands/ListUsersCommand.ts index cafb2d6c70dee..1f2e8e53cde47 100644 --- a/clients/client-transfer/commands/ListUsersCommand.ts +++ b/clients/client-transfer/commands/ListUsersCommand.ts @@ -26,6 +26,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -43,7 +44,10 @@ export class ListUsersCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/StartServerCommand.ts b/clients/client-transfer/commands/StartServerCommand.ts index dd2317c608927..b011d2045b957 100644 --- a/clients/client-transfer/commands/StartServerCommand.ts +++ b/clients/client-transfer/commands/StartServerCommand.ts @@ -36,6 +36,7 @@ export class StartServerCommand extends $Command< StartServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class StartServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/StopServerCommand.ts b/clients/client-transfer/commands/StopServerCommand.ts index 4abd6889fbe98..c7b0420374f17 100644 --- a/clients/client-transfer/commands/StopServerCommand.ts +++ b/clients/client-transfer/commands/StopServerCommand.ts @@ -42,6 +42,7 @@ export class StopServerCommand extends $Command< StopServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class StopServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/TagResourceCommand.ts b/clients/client-transfer/commands/TagResourceCommand.ts index e7156fdb39a53..978ae6d2fb117 100644 --- a/clients/client-transfer/commands/TagResourceCommand.ts +++ b/clients/client-transfer/commands/TagResourceCommand.ts @@ -31,6 +31,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class TagResourceCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/TestIdentityProviderCommand.ts b/clients/client-transfer/commands/TestIdentityProviderCommand.ts index 5bb7668405957..44440b0655c99 100644 --- a/clients/client-transfer/commands/TestIdentityProviderCommand.ts +++ b/clients/client-transfer/commands/TestIdentityProviderCommand.ts @@ -32,6 +32,7 @@ export class TestIdentityProviderCommand extends $Command< TestIdentityProviderCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class TestIdentityProviderCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/UntagResourceCommand.ts b/clients/client-transfer/commands/UntagResourceCommand.ts index b5d0b06d406f2..1d78de7461bb0 100644 --- a/clients/client-transfer/commands/UntagResourceCommand.ts +++ b/clients/client-transfer/commands/UntagResourceCommand.ts @@ -31,6 +31,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UntagResourceCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/UpdateServerCommand.ts b/clients/client-transfer/commands/UpdateServerCommand.ts index 82664f317da40..8a671f4db9753 100644 --- a/clients/client-transfer/commands/UpdateServerCommand.ts +++ b/clients/client-transfer/commands/UpdateServerCommand.ts @@ -32,6 +32,7 @@ export class UpdateServerCommand extends $Command< UpdateServerCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateServerCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-transfer/commands/UpdateUserCommand.ts b/clients/client-transfer/commands/UpdateUserCommand.ts index f54956feec65f..bfab5e8bd5693 100644 --- a/clients/client-transfer/commands/UpdateUserCommand.ts +++ b/clients/client-transfer/commands/UpdateUserCommand.ts @@ -33,6 +33,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, TransferClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class UpdateUserCommand extends $Command< configuration: TransferClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/CreateParallelDataCommand.ts b/clients/client-translate/commands/CreateParallelDataCommand.ts index 7ade1cdeb9f87..5f5c4b738e92f 100644 --- a/clients/client-translate/commands/CreateParallelDataCommand.ts +++ b/clients/client-translate/commands/CreateParallelDataCommand.ts @@ -31,6 +31,7 @@ export class CreateParallelDataCommand extends $Command< CreateParallelDataCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateParallelDataCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/DeleteParallelDataCommand.ts b/clients/client-translate/commands/DeleteParallelDataCommand.ts index bc31eba097dca..37601260805fa 100644 --- a/clients/client-translate/commands/DeleteParallelDataCommand.ts +++ b/clients/client-translate/commands/DeleteParallelDataCommand.ts @@ -28,6 +28,7 @@ export class DeleteParallelDataCommand extends $Command< DeleteParallelDataCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteParallelDataCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/DeleteTerminologyCommand.ts b/clients/client-translate/commands/DeleteTerminologyCommand.ts index 95ae9d1b8661a..7396a8c555250 100644 --- a/clients/client-translate/commands/DeleteTerminologyCommand.ts +++ b/clients/client-translate/commands/DeleteTerminologyCommand.ts @@ -28,6 +28,7 @@ export class DeleteTerminologyCommand extends $Command< DeleteTerminologyCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTerminologyCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/DescribeTextTranslationJobCommand.ts b/clients/client-translate/commands/DescribeTextTranslationJobCommand.ts index 59ad0c93b4997..34ad2ea65de18 100644 --- a/clients/client-translate/commands/DescribeTextTranslationJobCommand.ts +++ b/clients/client-translate/commands/DescribeTextTranslationJobCommand.ts @@ -29,6 +29,7 @@ export class DescribeTextTranslationJobCommand extends $Command< DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeTextTranslationJobCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/GetParallelDataCommand.ts b/clients/client-translate/commands/GetParallelDataCommand.ts index ff4dd998ae470..c15cf7669dec5 100644 --- a/clients/client-translate/commands/GetParallelDataCommand.ts +++ b/clients/client-translate/commands/GetParallelDataCommand.ts @@ -28,6 +28,7 @@ export class GetParallelDataCommand extends $Command< GetParallelDataCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetParallelDataCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/GetTerminologyCommand.ts b/clients/client-translate/commands/GetTerminologyCommand.ts index 9b1e6701b8de8..b099fa57e4c46 100644 --- a/clients/client-translate/commands/GetTerminologyCommand.ts +++ b/clients/client-translate/commands/GetTerminologyCommand.ts @@ -28,6 +28,7 @@ export class GetTerminologyCommand extends $Command< GetTerminologyCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTerminologyCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/ImportTerminologyCommand.ts b/clients/client-translate/commands/ImportTerminologyCommand.ts index a8ac553070ded..9a85117ee9ffe 100644 --- a/clients/client-translate/commands/ImportTerminologyCommand.ts +++ b/clients/client-translate/commands/ImportTerminologyCommand.ts @@ -35,6 +35,7 @@ export class ImportTerminologyCommand extends $Command< ImportTerminologyCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class ImportTerminologyCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/ListParallelDataCommand.ts b/clients/client-translate/commands/ListParallelDataCommand.ts index 3acbc86df3b22..0a96d8129fd24 100644 --- a/clients/client-translate/commands/ListParallelDataCommand.ts +++ b/clients/client-translate/commands/ListParallelDataCommand.ts @@ -28,6 +28,7 @@ export class ListParallelDataCommand extends $Command< ListParallelDataCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListParallelDataCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/ListTerminologiesCommand.ts b/clients/client-translate/commands/ListTerminologiesCommand.ts index edf380f6d87cf..16ade4a129801 100644 --- a/clients/client-translate/commands/ListTerminologiesCommand.ts +++ b/clients/client-translate/commands/ListTerminologiesCommand.ts @@ -28,6 +28,7 @@ export class ListTerminologiesCommand extends $Command< ListTerminologiesCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTerminologiesCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/ListTextTranslationJobsCommand.ts b/clients/client-translate/commands/ListTextTranslationJobsCommand.ts index 22ce52527689b..b9d75e411304c 100644 --- a/clients/client-translate/commands/ListTextTranslationJobsCommand.ts +++ b/clients/client-translate/commands/ListTextTranslationJobsCommand.ts @@ -28,6 +28,7 @@ export class ListTextTranslationJobsCommand extends $Command< ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTextTranslationJobsCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/StartTextTranslationJobCommand.ts b/clients/client-translate/commands/StartTextTranslationJobCommand.ts index 76a4beb6354fc..5b7ddd3e41ebf 100644 --- a/clients/client-translate/commands/StartTextTranslationJobCommand.ts +++ b/clients/client-translate/commands/StartTextTranslationJobCommand.ts @@ -35,6 +35,7 @@ export class StartTextTranslationJobCommand extends $Command< StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class StartTextTranslationJobCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/StopTextTranslationJobCommand.ts b/clients/client-translate/commands/StopTextTranslationJobCommand.ts index 4a5c711ad4ba1..ec500b16fa005 100644 --- a/clients/client-translate/commands/StopTextTranslationJobCommand.ts +++ b/clients/client-translate/commands/StopTextTranslationJobCommand.ts @@ -34,6 +34,7 @@ export class StopTextTranslationJobCommand extends $Command< StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StopTextTranslationJobCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/TranslateTextCommand.ts b/clients/client-translate/commands/TranslateTextCommand.ts index bc3f00903f86c..26c1463c8e142 100644 --- a/clients/client-translate/commands/TranslateTextCommand.ts +++ b/clients/client-translate/commands/TranslateTextCommand.ts @@ -29,6 +29,7 @@ export class TranslateTextCommand extends $Command< TranslateTextCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class TranslateTextCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-translate/commands/UpdateParallelDataCommand.ts b/clients/client-translate/commands/UpdateParallelDataCommand.ts index 6c9c5959f4c31..c1626d98f965c 100644 --- a/clients/client-translate/commands/UpdateParallelDataCommand.ts +++ b/clients/client-translate/commands/UpdateParallelDataCommand.ts @@ -29,6 +29,7 @@ export class UpdateParallelDataCommand extends $Command< UpdateParallelDataCommandOutput, TranslateClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateParallelDataCommand extends $Command< configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/AssociateWebACLCommand.ts b/clients/client-waf-regional/commands/AssociateWebACLCommand.ts index 4f7dfe254e5ed..14e3a19547ebe 100644 --- a/clients/client-waf-regional/commands/AssociateWebACLCommand.ts +++ b/clients/client-waf-regional/commands/AssociateWebACLCommand.ts @@ -36,6 +36,7 @@ export class AssociateWebACLCommand extends $Command< AssociateWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class AssociateWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateByteMatchSetCommand.ts b/clients/client-waf-regional/commands/CreateByteMatchSetCommand.ts index 7c3f86e167b76..22d629e8f8425 100644 --- a/clients/client-waf-regional/commands/CreateByteMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateByteMatchSetCommand.ts @@ -59,6 +59,7 @@ export class CreateByteMatchSetCommand extends $Command< CreateByteMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateByteMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateGeoMatchSetCommand.ts b/clients/client-waf-regional/commands/CreateGeoMatchSetCommand.ts index e37854f110f2a..7b438840153e1 100644 --- a/clients/client-waf-regional/commands/CreateGeoMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateGeoMatchSetCommand.ts @@ -56,6 +56,7 @@ export class CreateGeoMatchSetCommand extends $Command< CreateGeoMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class CreateGeoMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateIPSetCommand.ts b/clients/client-waf-regional/commands/CreateIPSetCommand.ts index 2fc8c707945aa..f6086d56300c4 100644 --- a/clients/client-waf-regional/commands/CreateIPSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateIPSetCommand.ts @@ -61,6 +61,7 @@ export class CreateIPSetCommand extends $Command< CreateIPSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class CreateIPSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateRateBasedRuleCommand.ts b/clients/client-waf-regional/commands/CreateRateBasedRuleCommand.ts index 36ae50616a347..44e5a940a1811 100644 --- a/clients/client-waf-regional/commands/CreateRateBasedRuleCommand.ts +++ b/clients/client-waf-regional/commands/CreateRateBasedRuleCommand.ts @@ -121,6 +121,7 @@ export class CreateRateBasedRuleCommand extends $Command< CreateRateBasedRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -138,7 +139,10 @@ export class CreateRateBasedRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateRegexMatchSetCommand.ts b/clients/client-waf-regional/commands/CreateRegexMatchSetCommand.ts index 7958d29567d02..dc86e1c4827cd 100644 --- a/clients/client-waf-regional/commands/CreateRegexMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateRegexMatchSetCommand.ts @@ -59,6 +59,7 @@ export class CreateRegexMatchSetCommand extends $Command< CreateRegexMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateRegexMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateRegexPatternSetCommand.ts b/clients/client-waf-regional/commands/CreateRegexPatternSetCommand.ts index c19e80dc4d2df..b8b166c925515 100644 --- a/clients/client-waf-regional/commands/CreateRegexPatternSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateRegexPatternSetCommand.ts @@ -55,6 +55,7 @@ export class CreateRegexPatternSetCommand extends $Command< CreateRegexPatternSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateRegexPatternSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateRuleCommand.ts b/clients/client-waf-regional/commands/CreateRuleCommand.ts index a6804f743c29f..7d88a546762c2 100644 --- a/clients/client-waf-regional/commands/CreateRuleCommand.ts +++ b/clients/client-waf-regional/commands/CreateRuleCommand.ts @@ -79,6 +79,7 @@ export class CreateRuleCommand extends $Command< CreateRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class CreateRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateRuleGroupCommand.ts b/clients/client-waf-regional/commands/CreateRuleGroupCommand.ts index 2eb7565e42a2b..3822eb37b8625 100644 --- a/clients/client-waf-regional/commands/CreateRuleGroupCommand.ts +++ b/clients/client-waf-regional/commands/CreateRuleGroupCommand.ts @@ -50,6 +50,7 @@ export class CreateRuleGroupCommand extends $Command< CreateRuleGroupCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CreateRuleGroupCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateSizeConstraintSetCommand.ts b/clients/client-waf-regional/commands/CreateSizeConstraintSetCommand.ts index bc7bdb1516f55..178a796fbbf83 100644 --- a/clients/client-waf-regional/commands/CreateSizeConstraintSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateSizeConstraintSetCommand.ts @@ -59,6 +59,7 @@ export class CreateSizeConstraintSetCommand extends $Command< CreateSizeConstraintSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateSizeConstraintSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateSqlInjectionMatchSetCommand.ts b/clients/client-waf-regional/commands/CreateSqlInjectionMatchSetCommand.ts index ff879994fccda..899c54c6e5a2d 100644 --- a/clients/client-waf-regional/commands/CreateSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateSqlInjectionMatchSetCommand.ts @@ -57,6 +57,7 @@ export class CreateSqlInjectionMatchSetCommand extends $Command< CreateSqlInjectionMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateSqlInjectionMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateWebACLCommand.ts b/clients/client-waf-regional/commands/CreateWebACLCommand.ts index 23d4b4372ee26..14d57f2dd95cf 100644 --- a/clients/client-waf-regional/commands/CreateWebACLCommand.ts +++ b/clients/client-waf-regional/commands/CreateWebACLCommand.ts @@ -67,6 +67,7 @@ export class CreateWebACLCommand extends $Command< CreateWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class CreateWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateWebACLMigrationStackCommand.ts b/clients/client-waf-regional/commands/CreateWebACLMigrationStackCommand.ts index 442a5514008d4..90be4bc0a7f2c 100644 --- a/clients/client-waf-regional/commands/CreateWebACLMigrationStackCommand.ts +++ b/clients/client-waf-regional/commands/CreateWebACLMigrationStackCommand.ts @@ -35,6 +35,7 @@ export class CreateWebACLMigrationStackCommand extends $Command< CreateWebACLMigrationStackCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateWebACLMigrationStackCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/CreateXssMatchSetCommand.ts b/clients/client-waf-regional/commands/CreateXssMatchSetCommand.ts index 55812b1d01141..34b4d2d80ae38 100644 --- a/clients/client-waf-regional/commands/CreateXssMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/CreateXssMatchSetCommand.ts @@ -57,6 +57,7 @@ export class CreateXssMatchSetCommand extends $Command< CreateXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateXssMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteByteMatchSetCommand.ts b/clients/client-waf-regional/commands/DeleteByteMatchSetCommand.ts index 0cf4a3b66bb85..080cdc220518a 100644 --- a/clients/client-waf-regional/commands/DeleteByteMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteByteMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteByteMatchSetCommand extends $Command< DeleteByteMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteByteMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteGeoMatchSetCommand.ts b/clients/client-waf-regional/commands/DeleteGeoMatchSetCommand.ts index 08770d7ff17dd..d40471d01bfae 100644 --- a/clients/client-waf-regional/commands/DeleteGeoMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteGeoMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteGeoMatchSetCommand extends $Command< DeleteGeoMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteGeoMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteIPSetCommand.ts b/clients/client-waf-regional/commands/DeleteIPSetCommand.ts index 0a236b0923b04..e2138d6a1ca74 100644 --- a/clients/client-waf-regional/commands/DeleteIPSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteIPSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteIPSetCommand extends $Command< DeleteIPSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteIPSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteLoggingConfigurationCommand.ts b/clients/client-waf-regional/commands/DeleteLoggingConfigurationCommand.ts index 32434e805a4ca..8002f15d22da7 100644 --- a/clients/client-waf-regional/commands/DeleteLoggingConfigurationCommand.ts +++ b/clients/client-waf-regional/commands/DeleteLoggingConfigurationCommand.ts @@ -37,6 +37,7 @@ export class DeleteLoggingConfigurationCommand extends $Command< DeleteLoggingConfigurationCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteLoggingConfigurationCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeletePermissionPolicyCommand.ts b/clients/client-waf-regional/commands/DeletePermissionPolicyCommand.ts index 690e7d45989bc..369083fa9a05c 100644 --- a/clients/client-waf-regional/commands/DeletePermissionPolicyCommand.ts +++ b/clients/client-waf-regional/commands/DeletePermissionPolicyCommand.ts @@ -37,6 +37,7 @@ export class DeletePermissionPolicyCommand extends $Command< DeletePermissionPolicyCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeletePermissionPolicyCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteRateBasedRuleCommand.ts b/clients/client-waf-regional/commands/DeleteRateBasedRuleCommand.ts index 3239ef3aaf057..81d5e699e85c2 100644 --- a/clients/client-waf-regional/commands/DeleteRateBasedRuleCommand.ts +++ b/clients/client-waf-regional/commands/DeleteRateBasedRuleCommand.ts @@ -55,6 +55,7 @@ export class DeleteRateBasedRuleCommand extends $Command< DeleteRateBasedRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class DeleteRateBasedRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteRegexMatchSetCommand.ts b/clients/client-waf-regional/commands/DeleteRegexMatchSetCommand.ts index cf56a7ea2f532..d7c4dddac4396 100644 --- a/clients/client-waf-regional/commands/DeleteRegexMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteRegexMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteRegexMatchSetCommand extends $Command< DeleteRegexMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRegexMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteRegexPatternSetCommand.ts b/clients/client-waf-regional/commands/DeleteRegexPatternSetCommand.ts index d07403356ffa6..35e252f565d41 100644 --- a/clients/client-waf-regional/commands/DeleteRegexPatternSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteRegexPatternSetCommand.ts @@ -37,6 +37,7 @@ export class DeleteRegexPatternSetCommand extends $Command< DeleteRegexPatternSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteRegexPatternSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteRuleCommand.ts b/clients/client-waf-regional/commands/DeleteRuleCommand.ts index a5086b040c781..0a66812bed9ea 100644 --- a/clients/client-waf-regional/commands/DeleteRuleCommand.ts +++ b/clients/client-waf-regional/commands/DeleteRuleCommand.ts @@ -51,6 +51,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteRuleGroupCommand.ts b/clients/client-waf-regional/commands/DeleteRuleGroupCommand.ts index be6eff15b7819..4bb640c870ff0 100644 --- a/clients/client-waf-regional/commands/DeleteRuleGroupCommand.ts +++ b/clients/client-waf-regional/commands/DeleteRuleGroupCommand.ts @@ -51,6 +51,7 @@ export class DeleteRuleGroupCommand extends $Command< DeleteRuleGroupCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRuleGroupCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteSizeConstraintSetCommand.ts b/clients/client-waf-regional/commands/DeleteSizeConstraintSetCommand.ts index f415d85fc62d1..8d59272cb7eda 100644 --- a/clients/client-waf-regional/commands/DeleteSizeConstraintSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteSizeConstraintSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteSizeConstraintSetCommand extends $Command< DeleteSizeConstraintSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteSizeConstraintSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteSqlInjectionMatchSetCommand.ts b/clients/client-waf-regional/commands/DeleteSqlInjectionMatchSetCommand.ts index 8fe0c470a3c29..2f387c7209d97 100644 --- a/clients/client-waf-regional/commands/DeleteSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteSqlInjectionMatchSetCommand.ts @@ -52,6 +52,7 @@ export class DeleteSqlInjectionMatchSetCommand extends $Command< DeleteSqlInjectionMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DeleteSqlInjectionMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteWebACLCommand.ts b/clients/client-waf-regional/commands/DeleteWebACLCommand.ts index f9f52da49f86d..9e9e7988ba4b9 100644 --- a/clients/client-waf-regional/commands/DeleteWebACLCommand.ts +++ b/clients/client-waf-regional/commands/DeleteWebACLCommand.ts @@ -49,6 +49,7 @@ export class DeleteWebACLCommand extends $Command< DeleteWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DeleteWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DeleteXssMatchSetCommand.ts b/clients/client-waf-regional/commands/DeleteXssMatchSetCommand.ts index aad888ae4a5d5..8b6c77c20bb35 100644 --- a/clients/client-waf-regional/commands/DeleteXssMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/DeleteXssMatchSetCommand.ts @@ -52,6 +52,7 @@ export class DeleteXssMatchSetCommand extends $Command< DeleteXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DeleteXssMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/DisassociateWebACLCommand.ts b/clients/client-waf-regional/commands/DisassociateWebACLCommand.ts index 54803e43195ae..b3fb4eee98ad1 100644 --- a/clients/client-waf-regional/commands/DisassociateWebACLCommand.ts +++ b/clients/client-waf-regional/commands/DisassociateWebACLCommand.ts @@ -36,6 +36,7 @@ export class DisassociateWebACLCommand extends $Command< DisassociateWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisassociateWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetByteMatchSetCommand.ts b/clients/client-waf-regional/commands/GetByteMatchSetCommand.ts index 66d2fe85484dc..4bb9a9d9c6767 100644 --- a/clients/client-waf-regional/commands/GetByteMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/GetByteMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetByteMatchSetCommand extends $Command< GetByteMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetByteMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetChangeTokenCommand.ts b/clients/client-waf-regional/commands/GetChangeTokenCommand.ts index 01e5f3ff4470e..4a5eec83d6d05 100644 --- a/clients/client-waf-regional/commands/GetChangeTokenCommand.ts +++ b/clients/client-waf-regional/commands/GetChangeTokenCommand.ts @@ -42,6 +42,7 @@ export class GetChangeTokenCommand extends $Command< GetChangeTokenCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetChangeTokenCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetChangeTokenStatusCommand.ts b/clients/client-waf-regional/commands/GetChangeTokenStatusCommand.ts index 608eb29637703..1e291bd2bd749 100644 --- a/clients/client-waf-regional/commands/GetChangeTokenStatusCommand.ts +++ b/clients/client-waf-regional/commands/GetChangeTokenStatusCommand.ts @@ -52,6 +52,7 @@ export class GetChangeTokenStatusCommand extends $Command< GetChangeTokenStatusCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class GetChangeTokenStatusCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetGeoMatchSetCommand.ts b/clients/client-waf-regional/commands/GetGeoMatchSetCommand.ts index edf99be3a566d..d30f25cb71057 100644 --- a/clients/client-waf-regional/commands/GetGeoMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/GetGeoMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetGeoMatchSetCommand extends $Command< GetGeoMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetGeoMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetIPSetCommand.ts b/clients/client-waf-regional/commands/GetIPSetCommand.ts index 85542765472f5..14202d146f21d 100644 --- a/clients/client-waf-regional/commands/GetIPSetCommand.ts +++ b/clients/client-waf-regional/commands/GetIPSetCommand.ts @@ -33,6 +33,7 @@ export class GetIPSetCommand extends $Command< GetIPSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetIPSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetLoggingConfigurationCommand.ts b/clients/client-waf-regional/commands/GetLoggingConfigurationCommand.ts index da746e8161e69..39bb03a9a7161 100644 --- a/clients/client-waf-regional/commands/GetLoggingConfigurationCommand.ts +++ b/clients/client-waf-regional/commands/GetLoggingConfigurationCommand.ts @@ -36,6 +36,7 @@ export class GetLoggingConfigurationCommand extends $Command< GetLoggingConfigurationCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetLoggingConfigurationCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetPermissionPolicyCommand.ts b/clients/client-waf-regional/commands/GetPermissionPolicyCommand.ts index 09d4cfed7a30f..e7014d6498020 100644 --- a/clients/client-waf-regional/commands/GetPermissionPolicyCommand.ts +++ b/clients/client-waf-regional/commands/GetPermissionPolicyCommand.ts @@ -36,6 +36,7 @@ export class GetPermissionPolicyCommand extends $Command< GetPermissionPolicyCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetPermissionPolicyCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRateBasedRuleCommand.ts b/clients/client-waf-regional/commands/GetRateBasedRuleCommand.ts index ebdc18a64adc9..c9a008689953d 100644 --- a/clients/client-waf-regional/commands/GetRateBasedRuleCommand.ts +++ b/clients/client-waf-regional/commands/GetRateBasedRuleCommand.ts @@ -38,6 +38,7 @@ export class GetRateBasedRuleCommand extends $Command< GetRateBasedRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetRateBasedRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRateBasedRuleManagedKeysCommand.ts b/clients/client-waf-regional/commands/GetRateBasedRuleManagedKeysCommand.ts index abe62adaf4805..01707c01a626b 100644 --- a/clients/client-waf-regional/commands/GetRateBasedRuleManagedKeysCommand.ts +++ b/clients/client-waf-regional/commands/GetRateBasedRuleManagedKeysCommand.ts @@ -38,6 +38,7 @@ export class GetRateBasedRuleManagedKeysCommand extends $Command< GetRateBasedRuleManagedKeysCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetRateBasedRuleManagedKeysCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRegexMatchSetCommand.ts b/clients/client-waf-regional/commands/GetRegexMatchSetCommand.ts index 60e6c6110102b..9ddf1f9d51bbd 100644 --- a/clients/client-waf-regional/commands/GetRegexMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/GetRegexMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetRegexMatchSetCommand extends $Command< GetRegexMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetRegexMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRegexPatternSetCommand.ts b/clients/client-waf-regional/commands/GetRegexPatternSetCommand.ts index a87073d7384f8..1da3a5cf117e5 100644 --- a/clients/client-waf-regional/commands/GetRegexPatternSetCommand.ts +++ b/clients/client-waf-regional/commands/GetRegexPatternSetCommand.ts @@ -36,6 +36,7 @@ export class GetRegexPatternSetCommand extends $Command< GetRegexPatternSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetRegexPatternSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRuleCommand.ts b/clients/client-waf-regional/commands/GetRuleCommand.ts index c6be92433553a..0be40e5d7358d 100644 --- a/clients/client-waf-regional/commands/GetRuleCommand.ts +++ b/clients/client-waf-regional/commands/GetRuleCommand.ts @@ -33,6 +33,7 @@ export class GetRuleCommand extends $Command< GetRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetRuleGroupCommand.ts b/clients/client-waf-regional/commands/GetRuleGroupCommand.ts index 3d29a18b1a52b..2d4cecd33bd07 100644 --- a/clients/client-waf-regional/commands/GetRuleGroupCommand.ts +++ b/clients/client-waf-regional/commands/GetRuleGroupCommand.ts @@ -37,6 +37,7 @@ export class GetRuleGroupCommand extends $Command< GetRuleGroupCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetRuleGroupCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetSampledRequestsCommand.ts b/clients/client-waf-regional/commands/GetSampledRequestsCommand.ts index 1c67e4a081dab..18a880d2f1b7e 100644 --- a/clients/client-waf-regional/commands/GetSampledRequestsCommand.ts +++ b/clients/client-waf-regional/commands/GetSampledRequestsCommand.ts @@ -40,6 +40,7 @@ export class GetSampledRequestsCommand extends $Command< GetSampledRequestsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetSampledRequestsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetSizeConstraintSetCommand.ts b/clients/client-waf-regional/commands/GetSizeConstraintSetCommand.ts index 99df6ddfdf852..4f1910ba8d4d6 100644 --- a/clients/client-waf-regional/commands/GetSizeConstraintSetCommand.ts +++ b/clients/client-waf-regional/commands/GetSizeConstraintSetCommand.ts @@ -36,6 +36,7 @@ export class GetSizeConstraintSetCommand extends $Command< GetSizeConstraintSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSizeConstraintSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetSqlInjectionMatchSetCommand.ts b/clients/client-waf-regional/commands/GetSqlInjectionMatchSetCommand.ts index 142d272ba509d..b0fddf7533312 100644 --- a/clients/client-waf-regional/commands/GetSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/GetSqlInjectionMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetSqlInjectionMatchSetCommand extends $Command< GetSqlInjectionMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSqlInjectionMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetWebACLCommand.ts b/clients/client-waf-regional/commands/GetWebACLCommand.ts index e547597ba2772..6bdf497e31c65 100644 --- a/clients/client-waf-regional/commands/GetWebACLCommand.ts +++ b/clients/client-waf-regional/commands/GetWebACLCommand.ts @@ -33,6 +33,7 @@ export class GetWebACLCommand extends $Command< GetWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetWebACLForResourceCommand.ts b/clients/client-waf-regional/commands/GetWebACLForResourceCommand.ts index 26db761c0f890..c5cf7c60f7e9b 100644 --- a/clients/client-waf-regional/commands/GetWebACLForResourceCommand.ts +++ b/clients/client-waf-regional/commands/GetWebACLForResourceCommand.ts @@ -36,6 +36,7 @@ export class GetWebACLForResourceCommand extends $Command< GetWebACLForResourceCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetWebACLForResourceCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/GetXssMatchSetCommand.ts b/clients/client-waf-regional/commands/GetXssMatchSetCommand.ts index 7ff2904128ae7..a8f3aae3b0296 100644 --- a/clients/client-waf-regional/commands/GetXssMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/GetXssMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetXssMatchSetCommand extends $Command< GetXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetXssMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListActivatedRulesInRuleGroupCommand.ts b/clients/client-waf-regional/commands/ListActivatedRulesInRuleGroupCommand.ts index f1a151c087e02..50e1752c6d11b 100644 --- a/clients/client-waf-regional/commands/ListActivatedRulesInRuleGroupCommand.ts +++ b/clients/client-waf-regional/commands/ListActivatedRulesInRuleGroupCommand.ts @@ -36,6 +36,7 @@ export class ListActivatedRulesInRuleGroupCommand extends $Command< ListActivatedRulesInRuleGroupCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListActivatedRulesInRuleGroupCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListByteMatchSetsCommand.ts b/clients/client-waf-regional/commands/ListByteMatchSetsCommand.ts index c15248460f684..954d11bd05ac7 100644 --- a/clients/client-waf-regional/commands/ListByteMatchSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListByteMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListByteMatchSetsCommand extends $Command< ListByteMatchSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListByteMatchSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListGeoMatchSetsCommand.ts b/clients/client-waf-regional/commands/ListGeoMatchSetsCommand.ts index f216c9e0a5c1f..d0999ab8903de 100644 --- a/clients/client-waf-regional/commands/ListGeoMatchSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListGeoMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListGeoMatchSetsCommand extends $Command< ListGeoMatchSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListGeoMatchSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListIPSetsCommand.ts b/clients/client-waf-regional/commands/ListIPSetsCommand.ts index 11fc5ec90d4c4..9570d57042a92 100644 --- a/clients/client-waf-regional/commands/ListIPSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListIPSetsCommand.ts @@ -36,6 +36,7 @@ export class ListIPSetsCommand extends $Command< ListIPSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListIPSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListLoggingConfigurationsCommand.ts b/clients/client-waf-regional/commands/ListLoggingConfigurationsCommand.ts index effffb7c77240..fb7c32122f4f9 100644 --- a/clients/client-waf-regional/commands/ListLoggingConfigurationsCommand.ts +++ b/clients/client-waf-regional/commands/ListLoggingConfigurationsCommand.ts @@ -36,6 +36,7 @@ export class ListLoggingConfigurationsCommand extends $Command< ListLoggingConfigurationsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListLoggingConfigurationsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListRateBasedRulesCommand.ts b/clients/client-waf-regional/commands/ListRateBasedRulesCommand.ts index 8c7eef6ab6e74..eeedfef64cf57 100644 --- a/clients/client-waf-regional/commands/ListRateBasedRulesCommand.ts +++ b/clients/client-waf-regional/commands/ListRateBasedRulesCommand.ts @@ -36,6 +36,7 @@ export class ListRateBasedRulesCommand extends $Command< ListRateBasedRulesCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRateBasedRulesCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListRegexMatchSetsCommand.ts b/clients/client-waf-regional/commands/ListRegexMatchSetsCommand.ts index 28c9bd54902fe..809d0d343e2fa 100644 --- a/clients/client-waf-regional/commands/ListRegexMatchSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListRegexMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListRegexMatchSetsCommand extends $Command< ListRegexMatchSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRegexMatchSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListRegexPatternSetsCommand.ts b/clients/client-waf-regional/commands/ListRegexPatternSetsCommand.ts index 8edad2958c413..81cac9cc8c92c 100644 --- a/clients/client-waf-regional/commands/ListRegexPatternSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListRegexPatternSetsCommand.ts @@ -36,6 +36,7 @@ export class ListRegexPatternSetsCommand extends $Command< ListRegexPatternSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRegexPatternSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListResourcesForWebACLCommand.ts b/clients/client-waf-regional/commands/ListResourcesForWebACLCommand.ts index 2381b307d891b..864a262e206d3 100644 --- a/clients/client-waf-regional/commands/ListResourcesForWebACLCommand.ts +++ b/clients/client-waf-regional/commands/ListResourcesForWebACLCommand.ts @@ -36,6 +36,7 @@ export class ListResourcesForWebACLCommand extends $Command< ListResourcesForWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListResourcesForWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListRuleGroupsCommand.ts b/clients/client-waf-regional/commands/ListRuleGroupsCommand.ts index e809b3b685d2e..dbaf3f223af97 100644 --- a/clients/client-waf-regional/commands/ListRuleGroupsCommand.ts +++ b/clients/client-waf-regional/commands/ListRuleGroupsCommand.ts @@ -36,6 +36,7 @@ export class ListRuleGroupsCommand extends $Command< ListRuleGroupsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRuleGroupsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListRulesCommand.ts b/clients/client-waf-regional/commands/ListRulesCommand.ts index 3f8c74972c97d..719dea2420fad 100644 --- a/clients/client-waf-regional/commands/ListRulesCommand.ts +++ b/clients/client-waf-regional/commands/ListRulesCommand.ts @@ -33,6 +33,7 @@ export class ListRulesCommand extends $Command< ListRulesCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListRulesCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListSizeConstraintSetsCommand.ts b/clients/client-waf-regional/commands/ListSizeConstraintSetsCommand.ts index 65912bee339dd..a4760ea9f0144 100644 --- a/clients/client-waf-regional/commands/ListSizeConstraintSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListSizeConstraintSetsCommand.ts @@ -36,6 +36,7 @@ export class ListSizeConstraintSetsCommand extends $Command< ListSizeConstraintSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSizeConstraintSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListSqlInjectionMatchSetsCommand.ts b/clients/client-waf-regional/commands/ListSqlInjectionMatchSetsCommand.ts index d34691cef8c33..7bab5c687bff8 100644 --- a/clients/client-waf-regional/commands/ListSqlInjectionMatchSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListSqlInjectionMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListSqlInjectionMatchSetsCommand extends $Command< ListSqlInjectionMatchSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSqlInjectionMatchSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListSubscribedRuleGroupsCommand.ts b/clients/client-waf-regional/commands/ListSubscribedRuleGroupsCommand.ts index 4b6deb0b85bc5..32bc6a065929d 100644 --- a/clients/client-waf-regional/commands/ListSubscribedRuleGroupsCommand.ts +++ b/clients/client-waf-regional/commands/ListSubscribedRuleGroupsCommand.ts @@ -36,6 +36,7 @@ export class ListSubscribedRuleGroupsCommand extends $Command< ListSubscribedRuleGroupsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSubscribedRuleGroupsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListTagsForResourceCommand.ts b/clients/client-waf-regional/commands/ListTagsForResourceCommand.ts index f62ba64a7f421..d7dc7759e97b0 100644 --- a/clients/client-waf-regional/commands/ListTagsForResourceCommand.ts +++ b/clients/client-waf-regional/commands/ListTagsForResourceCommand.ts @@ -37,6 +37,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListWebACLsCommand.ts b/clients/client-waf-regional/commands/ListWebACLsCommand.ts index 91487b98046bc..974c4aa2ffb84 100644 --- a/clients/client-waf-regional/commands/ListWebACLsCommand.ts +++ b/clients/client-waf-regional/commands/ListWebACLsCommand.ts @@ -36,6 +36,7 @@ export class ListWebACLsCommand extends $Command< ListWebACLsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListWebACLsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/ListXssMatchSetsCommand.ts b/clients/client-waf-regional/commands/ListXssMatchSetsCommand.ts index afaa5c607ffdb..145b2a993ef4a 100644 --- a/clients/client-waf-regional/commands/ListXssMatchSetsCommand.ts +++ b/clients/client-waf-regional/commands/ListXssMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListXssMatchSetsCommand extends $Command< ListXssMatchSetsCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListXssMatchSetsCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/PutLoggingConfigurationCommand.ts b/clients/client-waf-regional/commands/PutLoggingConfigurationCommand.ts index 7e49a9d22da4a..c9612ae9e84a4 100644 --- a/clients/client-waf-regional/commands/PutLoggingConfigurationCommand.ts +++ b/clients/client-waf-regional/commands/PutLoggingConfigurationCommand.ts @@ -53,6 +53,7 @@ export class PutLoggingConfigurationCommand extends $Command< PutLoggingConfigurationCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class PutLoggingConfigurationCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/PutPermissionPolicyCommand.ts b/clients/client-waf-regional/commands/PutPermissionPolicyCommand.ts index 89dd0371dd8f1..33404f4424a4a 100644 --- a/clients/client-waf-regional/commands/PutPermissionPolicyCommand.ts +++ b/clients/client-waf-regional/commands/PutPermissionPolicyCommand.ts @@ -68,6 +68,7 @@ export class PutPermissionPolicyCommand extends $Command< PutPermissionPolicyCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class PutPermissionPolicyCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/TagResourceCommand.ts b/clients/client-waf-regional/commands/TagResourceCommand.ts index d59e9c1de3976..e93bacc774d2e 100644 --- a/clients/client-waf-regional/commands/TagResourceCommand.ts +++ b/clients/client-waf-regional/commands/TagResourceCommand.ts @@ -37,6 +37,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagResourceCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UntagResourceCommand.ts b/clients/client-waf-regional/commands/UntagResourceCommand.ts index bf5d8c9ceed0e..9a379ce21e8a7 100644 --- a/clients/client-waf-regional/commands/UntagResourceCommand.ts +++ b/clients/client-waf-regional/commands/UntagResourceCommand.ts @@ -36,6 +36,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UntagResourceCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateByteMatchSetCommand.ts b/clients/client-waf-regional/commands/UpdateByteMatchSetCommand.ts index ac60693ac7319..e5262ca54edb1 100644 --- a/clients/client-waf-regional/commands/UpdateByteMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateByteMatchSetCommand.ts @@ -74,6 +74,7 @@ export class UpdateByteMatchSetCommand extends $Command< UpdateByteMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class UpdateByteMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateGeoMatchSetCommand.ts b/clients/client-waf-regional/commands/UpdateGeoMatchSetCommand.ts index 881e06f56e6ff..ee01867fb4b84 100644 --- a/clients/client-waf-regional/commands/UpdateGeoMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateGeoMatchSetCommand.ts @@ -66,6 +66,7 @@ export class UpdateGeoMatchSetCommand extends $Command< UpdateGeoMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class UpdateGeoMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateIPSetCommand.ts b/clients/client-waf-regional/commands/UpdateIPSetCommand.ts index bc9d8e44fec2f..710b19bb73065 100644 --- a/clients/client-waf-regional/commands/UpdateIPSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateIPSetCommand.ts @@ -101,6 +101,7 @@ export class UpdateIPSetCommand extends $Command< UpdateIPSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -118,7 +119,10 @@ export class UpdateIPSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateRateBasedRuleCommand.ts b/clients/client-waf-regional/commands/UpdateRateBasedRuleCommand.ts index 7b776ae5b0fc8..777f976b1fc76 100644 --- a/clients/client-waf-regional/commands/UpdateRateBasedRuleCommand.ts +++ b/clients/client-waf-regional/commands/UpdateRateBasedRuleCommand.ts @@ -82,6 +82,7 @@ export class UpdateRateBasedRuleCommand extends $Command< UpdateRateBasedRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class UpdateRateBasedRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateRegexMatchSetCommand.ts b/clients/client-waf-regional/commands/UpdateRegexMatchSetCommand.ts index 18388b06b0893..5dea5905ff5e5 100644 --- a/clients/client-waf-regional/commands/UpdateRegexMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateRegexMatchSetCommand.ts @@ -70,6 +70,7 @@ export class UpdateRegexMatchSetCommand extends $Command< UpdateRegexMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class UpdateRegexMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateRegexPatternSetCommand.ts b/clients/client-waf-regional/commands/UpdateRegexPatternSetCommand.ts index ffef4c091be14..b724607d4fc9f 100644 --- a/clients/client-waf-regional/commands/UpdateRegexPatternSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateRegexPatternSetCommand.ts @@ -75,6 +75,7 @@ export class UpdateRegexPatternSetCommand extends $Command< UpdateRegexPatternSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class UpdateRegexPatternSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateRuleCommand.ts b/clients/client-waf-regional/commands/UpdateRuleCommand.ts index 5aeb35d228fa4..ab269b85b082a 100644 --- a/clients/client-waf-regional/commands/UpdateRuleCommand.ts +++ b/clients/client-waf-regional/commands/UpdateRuleCommand.ts @@ -77,6 +77,7 @@ export class UpdateRuleCommand extends $Command< UpdateRuleCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class UpdateRuleCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateRuleGroupCommand.ts b/clients/client-waf-regional/commands/UpdateRuleGroupCommand.ts index f9bd7718c9476..e4d10e41d2aab 100644 --- a/clients/client-waf-regional/commands/UpdateRuleGroupCommand.ts +++ b/clients/client-waf-regional/commands/UpdateRuleGroupCommand.ts @@ -60,6 +60,7 @@ export class UpdateRuleGroupCommand extends $Command< UpdateRuleGroupCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class UpdateRuleGroupCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateSizeConstraintSetCommand.ts b/clients/client-waf-regional/commands/UpdateSizeConstraintSetCommand.ts index edcd79f46b802..b3c25aa119664 100644 --- a/clients/client-waf-regional/commands/UpdateSizeConstraintSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateSizeConstraintSetCommand.ts @@ -78,6 +78,7 @@ export class UpdateSizeConstraintSetCommand extends $Command< UpdateSizeConstraintSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class UpdateSizeConstraintSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateSqlInjectionMatchSetCommand.ts b/clients/client-waf-regional/commands/UpdateSqlInjectionMatchSetCommand.ts index 3c73580884086..0acfcfe2570d2 100644 --- a/clients/client-waf-regional/commands/UpdateSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateSqlInjectionMatchSetCommand.ts @@ -77,6 +77,7 @@ export class UpdateSqlInjectionMatchSetCommand extends $Command< UpdateSqlInjectionMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class UpdateSqlInjectionMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateWebACLCommand.ts b/clients/client-waf-regional/commands/UpdateWebACLCommand.ts index 31f3865c373a1..557565f9f5dd5 100644 --- a/clients/client-waf-regional/commands/UpdateWebACLCommand.ts +++ b/clients/client-waf-regional/commands/UpdateWebACLCommand.ts @@ -107,6 +107,7 @@ export class UpdateWebACLCommand extends $Command< UpdateWebACLCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -124,7 +125,10 @@ export class UpdateWebACLCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf-regional/commands/UpdateXssMatchSetCommand.ts b/clients/client-waf-regional/commands/UpdateXssMatchSetCommand.ts index 64c1e887524c6..d0bbe65165ab2 100644 --- a/clients/client-waf-regional/commands/UpdateXssMatchSetCommand.ts +++ b/clients/client-waf-regional/commands/UpdateXssMatchSetCommand.ts @@ -79,6 +79,7 @@ export class UpdateXssMatchSetCommand extends $Command< UpdateXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class UpdateXssMatchSetCommand extends $Command< configuration: WAFRegionalClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateByteMatchSetCommand.ts b/clients/client-waf/commands/CreateByteMatchSetCommand.ts index 6a3d4c3dfe993..549f3d50dc07c 100644 --- a/clients/client-waf/commands/CreateByteMatchSetCommand.ts +++ b/clients/client-waf/commands/CreateByteMatchSetCommand.ts @@ -59,6 +59,7 @@ export class CreateByteMatchSetCommand extends $Command< CreateByteMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateByteMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateGeoMatchSetCommand.ts b/clients/client-waf/commands/CreateGeoMatchSetCommand.ts index 797d9b6edf521..dcb8c87773ed3 100644 --- a/clients/client-waf/commands/CreateGeoMatchSetCommand.ts +++ b/clients/client-waf/commands/CreateGeoMatchSetCommand.ts @@ -56,6 +56,7 @@ export class CreateGeoMatchSetCommand extends $Command< CreateGeoMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class CreateGeoMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateIPSetCommand.ts b/clients/client-waf/commands/CreateIPSetCommand.ts index 2dbdce1a1c04d..739ff08d99ee9 100644 --- a/clients/client-waf/commands/CreateIPSetCommand.ts +++ b/clients/client-waf/commands/CreateIPSetCommand.ts @@ -61,6 +61,7 @@ export class CreateIPSetCommand extends $Command< CreateIPSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -78,7 +79,10 @@ export class CreateIPSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateRateBasedRuleCommand.ts b/clients/client-waf/commands/CreateRateBasedRuleCommand.ts index e2f84af34ebe9..c54830d5bb869 100644 --- a/clients/client-waf/commands/CreateRateBasedRuleCommand.ts +++ b/clients/client-waf/commands/CreateRateBasedRuleCommand.ts @@ -121,6 +121,7 @@ export class CreateRateBasedRuleCommand extends $Command< CreateRateBasedRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -138,7 +139,10 @@ export class CreateRateBasedRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateRegexMatchSetCommand.ts b/clients/client-waf/commands/CreateRegexMatchSetCommand.ts index cccb54c360354..16d1034cfdb93 100644 --- a/clients/client-waf/commands/CreateRegexMatchSetCommand.ts +++ b/clients/client-waf/commands/CreateRegexMatchSetCommand.ts @@ -59,6 +59,7 @@ export class CreateRegexMatchSetCommand extends $Command< CreateRegexMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateRegexMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateRegexPatternSetCommand.ts b/clients/client-waf/commands/CreateRegexPatternSetCommand.ts index d8ec53e96b4dc..c5b0a5b7716b9 100644 --- a/clients/client-waf/commands/CreateRegexPatternSetCommand.ts +++ b/clients/client-waf/commands/CreateRegexPatternSetCommand.ts @@ -55,6 +55,7 @@ export class CreateRegexPatternSetCommand extends $Command< CreateRegexPatternSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class CreateRegexPatternSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateRuleCommand.ts b/clients/client-waf/commands/CreateRuleCommand.ts index 93568ff0d07b1..15244cb2099ec 100644 --- a/clients/client-waf/commands/CreateRuleCommand.ts +++ b/clients/client-waf/commands/CreateRuleCommand.ts @@ -79,6 +79,7 @@ export class CreateRuleCommand extends $Command< CreateRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class CreateRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateRuleGroupCommand.ts b/clients/client-waf/commands/CreateRuleGroupCommand.ts index 05cbeef4a9e0b..8ddada139b11e 100644 --- a/clients/client-waf/commands/CreateRuleGroupCommand.ts +++ b/clients/client-waf/commands/CreateRuleGroupCommand.ts @@ -50,6 +50,7 @@ export class CreateRuleGroupCommand extends $Command< CreateRuleGroupCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -67,7 +68,10 @@ export class CreateRuleGroupCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateSizeConstraintSetCommand.ts b/clients/client-waf/commands/CreateSizeConstraintSetCommand.ts index f3f7065036b94..777e74bbb4f2f 100644 --- a/clients/client-waf/commands/CreateSizeConstraintSetCommand.ts +++ b/clients/client-waf/commands/CreateSizeConstraintSetCommand.ts @@ -59,6 +59,7 @@ export class CreateSizeConstraintSetCommand extends $Command< CreateSizeConstraintSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -76,7 +77,10 @@ export class CreateSizeConstraintSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateSqlInjectionMatchSetCommand.ts b/clients/client-waf/commands/CreateSqlInjectionMatchSetCommand.ts index 8e244675217fc..865ee77d36882 100644 --- a/clients/client-waf/commands/CreateSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf/commands/CreateSqlInjectionMatchSetCommand.ts @@ -57,6 +57,7 @@ export class CreateSqlInjectionMatchSetCommand extends $Command< CreateSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateSqlInjectionMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateWebACLCommand.ts b/clients/client-waf/commands/CreateWebACLCommand.ts index 4679289948459..8b331fc343ea5 100644 --- a/clients/client-waf/commands/CreateWebACLCommand.ts +++ b/clients/client-waf/commands/CreateWebACLCommand.ts @@ -67,6 +67,7 @@ export class CreateWebACLCommand extends $Command< CreateWebACLCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -84,7 +85,10 @@ export class CreateWebACLCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateWebACLMigrationStackCommand.ts b/clients/client-waf/commands/CreateWebACLMigrationStackCommand.ts index c363b5c83fb3f..06d1130a07c2b 100644 --- a/clients/client-waf/commands/CreateWebACLMigrationStackCommand.ts +++ b/clients/client-waf/commands/CreateWebACLMigrationStackCommand.ts @@ -35,6 +35,7 @@ export class CreateWebACLMigrationStackCommand extends $Command< CreateWebACLMigrationStackCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class CreateWebACLMigrationStackCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/CreateXssMatchSetCommand.ts b/clients/client-waf/commands/CreateXssMatchSetCommand.ts index 1bb9c45682fd9..bbfde32823d1b 100644 --- a/clients/client-waf/commands/CreateXssMatchSetCommand.ts +++ b/clients/client-waf/commands/CreateXssMatchSetCommand.ts @@ -57,6 +57,7 @@ export class CreateXssMatchSetCommand extends $Command< CreateXssMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class CreateXssMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteByteMatchSetCommand.ts b/clients/client-waf/commands/DeleteByteMatchSetCommand.ts index f9aa40af029b5..e75f7e57bc6d7 100644 --- a/clients/client-waf/commands/DeleteByteMatchSetCommand.ts +++ b/clients/client-waf/commands/DeleteByteMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteByteMatchSetCommand extends $Command< DeleteByteMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteByteMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteGeoMatchSetCommand.ts b/clients/client-waf/commands/DeleteGeoMatchSetCommand.ts index 3e5a818606164..2f1654572aeb0 100644 --- a/clients/client-waf/commands/DeleteGeoMatchSetCommand.ts +++ b/clients/client-waf/commands/DeleteGeoMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteGeoMatchSetCommand extends $Command< DeleteGeoMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteGeoMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteIPSetCommand.ts b/clients/client-waf/commands/DeleteIPSetCommand.ts index ebbab60988313..55860a95618a3 100644 --- a/clients/client-waf/commands/DeleteIPSetCommand.ts +++ b/clients/client-waf/commands/DeleteIPSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteIPSetCommand extends $Command< DeleteIPSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteIPSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteLoggingConfigurationCommand.ts b/clients/client-waf/commands/DeleteLoggingConfigurationCommand.ts index 90efa77b79729..f3e69db5b9cdf 100644 --- a/clients/client-waf/commands/DeleteLoggingConfigurationCommand.ts +++ b/clients/client-waf/commands/DeleteLoggingConfigurationCommand.ts @@ -37,6 +37,7 @@ export class DeleteLoggingConfigurationCommand extends $Command< DeleteLoggingConfigurationCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteLoggingConfigurationCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeletePermissionPolicyCommand.ts b/clients/client-waf/commands/DeletePermissionPolicyCommand.ts index 7c5429a389d23..002244cdcd5f6 100644 --- a/clients/client-waf/commands/DeletePermissionPolicyCommand.ts +++ b/clients/client-waf/commands/DeletePermissionPolicyCommand.ts @@ -37,6 +37,7 @@ export class DeletePermissionPolicyCommand extends $Command< DeletePermissionPolicyCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeletePermissionPolicyCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteRateBasedRuleCommand.ts b/clients/client-waf/commands/DeleteRateBasedRuleCommand.ts index 9e611edf8f393..03ae79febe8a7 100644 --- a/clients/client-waf/commands/DeleteRateBasedRuleCommand.ts +++ b/clients/client-waf/commands/DeleteRateBasedRuleCommand.ts @@ -55,6 +55,7 @@ export class DeleteRateBasedRuleCommand extends $Command< DeleteRateBasedRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -72,7 +73,10 @@ export class DeleteRateBasedRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteRegexMatchSetCommand.ts b/clients/client-waf/commands/DeleteRegexMatchSetCommand.ts index 710cbdad446dd..0b3fd064994c5 100644 --- a/clients/client-waf/commands/DeleteRegexMatchSetCommand.ts +++ b/clients/client-waf/commands/DeleteRegexMatchSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteRegexMatchSetCommand extends $Command< DeleteRegexMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRegexMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteRegexPatternSetCommand.ts b/clients/client-waf/commands/DeleteRegexPatternSetCommand.ts index db398f3072fb5..c2301ab451c03 100644 --- a/clients/client-waf/commands/DeleteRegexPatternSetCommand.ts +++ b/clients/client-waf/commands/DeleteRegexPatternSetCommand.ts @@ -37,6 +37,7 @@ export class DeleteRegexPatternSetCommand extends $Command< DeleteRegexPatternSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DeleteRegexPatternSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteRuleCommand.ts b/clients/client-waf/commands/DeleteRuleCommand.ts index 9dad54aef41c1..ec382ea20a3fb 100644 --- a/clients/client-waf/commands/DeleteRuleCommand.ts +++ b/clients/client-waf/commands/DeleteRuleCommand.ts @@ -51,6 +51,7 @@ export class DeleteRuleCommand extends $Command< DeleteRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteRuleGroupCommand.ts b/clients/client-waf/commands/DeleteRuleGroupCommand.ts index 52a6f92897424..ee714d8c60648 100644 --- a/clients/client-waf/commands/DeleteRuleGroupCommand.ts +++ b/clients/client-waf/commands/DeleteRuleGroupCommand.ts @@ -51,6 +51,7 @@ export class DeleteRuleGroupCommand extends $Command< DeleteRuleGroupCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteRuleGroupCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteSizeConstraintSetCommand.ts b/clients/client-waf/commands/DeleteSizeConstraintSetCommand.ts index e2d87d1c71a17..6a74c127fafae 100644 --- a/clients/client-waf/commands/DeleteSizeConstraintSetCommand.ts +++ b/clients/client-waf/commands/DeleteSizeConstraintSetCommand.ts @@ -51,6 +51,7 @@ export class DeleteSizeConstraintSetCommand extends $Command< DeleteSizeConstraintSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -68,7 +69,10 @@ export class DeleteSizeConstraintSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteSqlInjectionMatchSetCommand.ts b/clients/client-waf/commands/DeleteSqlInjectionMatchSetCommand.ts index 3ea651595853c..caa6124feff1e 100644 --- a/clients/client-waf/commands/DeleteSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf/commands/DeleteSqlInjectionMatchSetCommand.ts @@ -52,6 +52,7 @@ export class DeleteSqlInjectionMatchSetCommand extends $Command< DeleteSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DeleteSqlInjectionMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteWebACLCommand.ts b/clients/client-waf/commands/DeleteWebACLCommand.ts index 90e7099f7f66a..4835e99210a92 100644 --- a/clients/client-waf/commands/DeleteWebACLCommand.ts +++ b/clients/client-waf/commands/DeleteWebACLCommand.ts @@ -49,6 +49,7 @@ export class DeleteWebACLCommand extends $Command< DeleteWebACLCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class DeleteWebACLCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/DeleteXssMatchSetCommand.ts b/clients/client-waf/commands/DeleteXssMatchSetCommand.ts index dee5ff1c86a04..4f36bca72c7cd 100644 --- a/clients/client-waf/commands/DeleteXssMatchSetCommand.ts +++ b/clients/client-waf/commands/DeleteXssMatchSetCommand.ts @@ -52,6 +52,7 @@ export class DeleteXssMatchSetCommand extends $Command< DeleteXssMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class DeleteXssMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetByteMatchSetCommand.ts b/clients/client-waf/commands/GetByteMatchSetCommand.ts index 7762a2fb69071..4af1945437029 100644 --- a/clients/client-waf/commands/GetByteMatchSetCommand.ts +++ b/clients/client-waf/commands/GetByteMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetByteMatchSetCommand extends $Command< GetByteMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetByteMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetChangeTokenCommand.ts b/clients/client-waf/commands/GetChangeTokenCommand.ts index 7782ee7e98454..d084dae9209a1 100644 --- a/clients/client-waf/commands/GetChangeTokenCommand.ts +++ b/clients/client-waf/commands/GetChangeTokenCommand.ts @@ -42,6 +42,7 @@ export class GetChangeTokenCommand extends $Command< GetChangeTokenCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class GetChangeTokenCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetChangeTokenStatusCommand.ts b/clients/client-waf/commands/GetChangeTokenStatusCommand.ts index d491da94e39cb..b0b63d621fdd7 100644 --- a/clients/client-waf/commands/GetChangeTokenStatusCommand.ts +++ b/clients/client-waf/commands/GetChangeTokenStatusCommand.ts @@ -52,6 +52,7 @@ export class GetChangeTokenStatusCommand extends $Command< GetChangeTokenStatusCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -69,7 +70,10 @@ export class GetChangeTokenStatusCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetGeoMatchSetCommand.ts b/clients/client-waf/commands/GetGeoMatchSetCommand.ts index 001f8458db68c..7eb4b7f5d230b 100644 --- a/clients/client-waf/commands/GetGeoMatchSetCommand.ts +++ b/clients/client-waf/commands/GetGeoMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetGeoMatchSetCommand extends $Command< GetGeoMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetGeoMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetIPSetCommand.ts b/clients/client-waf/commands/GetIPSetCommand.ts index 1191c04b414f1..313161fc8a60b 100644 --- a/clients/client-waf/commands/GetIPSetCommand.ts +++ b/clients/client-waf/commands/GetIPSetCommand.ts @@ -29,6 +29,7 @@ export type GetIPSetCommandOutput = GetIPSetResponse & __MetadataBearer; *

Returns the IPSet that is specified by IPSetId.

*/ export class GetIPSetCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetIPSetCommand 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-waf/commands/GetLoggingConfigurationCommand.ts b/clients/client-waf/commands/GetLoggingConfigurationCommand.ts index a32bbc66acfa8..7e60f98014938 100644 --- a/clients/client-waf/commands/GetLoggingConfigurationCommand.ts +++ b/clients/client-waf/commands/GetLoggingConfigurationCommand.ts @@ -36,6 +36,7 @@ export class GetLoggingConfigurationCommand extends $Command< GetLoggingConfigurationCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetLoggingConfigurationCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetPermissionPolicyCommand.ts b/clients/client-waf/commands/GetPermissionPolicyCommand.ts index a55243722f146..3220e730dc1e1 100644 --- a/clients/client-waf/commands/GetPermissionPolicyCommand.ts +++ b/clients/client-waf/commands/GetPermissionPolicyCommand.ts @@ -36,6 +36,7 @@ export class GetPermissionPolicyCommand extends $Command< GetPermissionPolicyCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetPermissionPolicyCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetRateBasedRuleCommand.ts b/clients/client-waf/commands/GetRateBasedRuleCommand.ts index edd2ca04e3443..01acd1ba1440a 100644 --- a/clients/client-waf/commands/GetRateBasedRuleCommand.ts +++ b/clients/client-waf/commands/GetRateBasedRuleCommand.ts @@ -38,6 +38,7 @@ export class GetRateBasedRuleCommand extends $Command< GetRateBasedRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetRateBasedRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetRateBasedRuleManagedKeysCommand.ts b/clients/client-waf/commands/GetRateBasedRuleManagedKeysCommand.ts index a8246ed727733..2b63c1ba08cb0 100644 --- a/clients/client-waf/commands/GetRateBasedRuleManagedKeysCommand.ts +++ b/clients/client-waf/commands/GetRateBasedRuleManagedKeysCommand.ts @@ -38,6 +38,7 @@ export class GetRateBasedRuleManagedKeysCommand extends $Command< GetRateBasedRuleManagedKeysCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -55,7 +56,10 @@ export class GetRateBasedRuleManagedKeysCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetRegexMatchSetCommand.ts b/clients/client-waf/commands/GetRegexMatchSetCommand.ts index 21f62c3259dd9..856122c776ff1 100644 --- a/clients/client-waf/commands/GetRegexMatchSetCommand.ts +++ b/clients/client-waf/commands/GetRegexMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetRegexMatchSetCommand extends $Command< GetRegexMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetRegexMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetRegexPatternSetCommand.ts b/clients/client-waf/commands/GetRegexPatternSetCommand.ts index b3ace5cf71647..b289cce58dded 100644 --- a/clients/client-waf/commands/GetRegexPatternSetCommand.ts +++ b/clients/client-waf/commands/GetRegexPatternSetCommand.ts @@ -36,6 +36,7 @@ export class GetRegexPatternSetCommand extends $Command< GetRegexPatternSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetRegexPatternSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetRuleCommand.ts b/clients/client-waf/commands/GetRuleCommand.ts index e1e0854361fc3..c1555c0b2991a 100644 --- a/clients/client-waf/commands/GetRuleCommand.ts +++ b/clients/client-waf/commands/GetRuleCommand.ts @@ -29,6 +29,7 @@ export type GetRuleCommandOutput = GetRuleResponse & __MetadataBearer; *

Returns the Rule that is specified by the RuleId that you included in the GetRule request.

*/ export class GetRuleCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetRuleCommand 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-waf/commands/GetRuleGroupCommand.ts b/clients/client-waf/commands/GetRuleGroupCommand.ts index 94e7c609ed482..176e007266228 100644 --- a/clients/client-waf/commands/GetRuleGroupCommand.ts +++ b/clients/client-waf/commands/GetRuleGroupCommand.ts @@ -37,6 +37,7 @@ export class GetRuleGroupCommand extends $Command< GetRuleGroupCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GetRuleGroupCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetSampledRequestsCommand.ts b/clients/client-waf/commands/GetSampledRequestsCommand.ts index b0bad66f2fb83..4976e8c27af09 100644 --- a/clients/client-waf/commands/GetSampledRequestsCommand.ts +++ b/clients/client-waf/commands/GetSampledRequestsCommand.ts @@ -40,6 +40,7 @@ export class GetSampledRequestsCommand extends $Command< GetSampledRequestsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -57,7 +58,10 @@ export class GetSampledRequestsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetSizeConstraintSetCommand.ts b/clients/client-waf/commands/GetSizeConstraintSetCommand.ts index 0d8826c3e233a..1763ba5bfae3d 100644 --- a/clients/client-waf/commands/GetSizeConstraintSetCommand.ts +++ b/clients/client-waf/commands/GetSizeConstraintSetCommand.ts @@ -36,6 +36,7 @@ export class GetSizeConstraintSetCommand extends $Command< GetSizeConstraintSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSizeConstraintSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetSqlInjectionMatchSetCommand.ts b/clients/client-waf/commands/GetSqlInjectionMatchSetCommand.ts index adede17e2c682..c356f492caa90 100644 --- a/clients/client-waf/commands/GetSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf/commands/GetSqlInjectionMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetSqlInjectionMatchSetCommand extends $Command< GetSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetSqlInjectionMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/GetWebACLCommand.ts b/clients/client-waf/commands/GetWebACLCommand.ts index 37288d32923be..1d8687d66319c 100644 --- a/clients/client-waf/commands/GetWebACLCommand.ts +++ b/clients/client-waf/commands/GetWebACLCommand.ts @@ -29,6 +29,7 @@ export type GetWebACLCommandOutput = GetWebACLResponse & __MetadataBearer; *

Returns the WebACL that is specified by WebACLId.

*/ export class GetWebACLCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetWebACLCommand 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-waf/commands/GetXssMatchSetCommand.ts b/clients/client-waf/commands/GetXssMatchSetCommand.ts index ded1baa53da54..7d3820756db83 100644 --- a/clients/client-waf/commands/GetXssMatchSetCommand.ts +++ b/clients/client-waf/commands/GetXssMatchSetCommand.ts @@ -36,6 +36,7 @@ export class GetXssMatchSetCommand extends $Command< GetXssMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GetXssMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListActivatedRulesInRuleGroupCommand.ts b/clients/client-waf/commands/ListActivatedRulesInRuleGroupCommand.ts index 39af8e68a59da..570bafa088ef7 100644 --- a/clients/client-waf/commands/ListActivatedRulesInRuleGroupCommand.ts +++ b/clients/client-waf/commands/ListActivatedRulesInRuleGroupCommand.ts @@ -36,6 +36,7 @@ export class ListActivatedRulesInRuleGroupCommand extends $Command< ListActivatedRulesInRuleGroupCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListActivatedRulesInRuleGroupCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListByteMatchSetsCommand.ts b/clients/client-waf/commands/ListByteMatchSetsCommand.ts index 27ea439714615..9031cc973c423 100644 --- a/clients/client-waf/commands/ListByteMatchSetsCommand.ts +++ b/clients/client-waf/commands/ListByteMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListByteMatchSetsCommand extends $Command< ListByteMatchSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListByteMatchSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListGeoMatchSetsCommand.ts b/clients/client-waf/commands/ListGeoMatchSetsCommand.ts index 804d75b1a107e..d238bb8488622 100644 --- a/clients/client-waf/commands/ListGeoMatchSetsCommand.ts +++ b/clients/client-waf/commands/ListGeoMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListGeoMatchSetsCommand extends $Command< ListGeoMatchSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListGeoMatchSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListIPSetsCommand.ts b/clients/client-waf/commands/ListIPSetsCommand.ts index 43a044d622ad8..39131e39d8182 100644 --- a/clients/client-waf/commands/ListIPSetsCommand.ts +++ b/clients/client-waf/commands/ListIPSetsCommand.ts @@ -36,6 +36,7 @@ export class ListIPSetsCommand extends $Command< ListIPSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListIPSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListLoggingConfigurationsCommand.ts b/clients/client-waf/commands/ListLoggingConfigurationsCommand.ts index 188d7a2ebec36..0004fb387d386 100644 --- a/clients/client-waf/commands/ListLoggingConfigurationsCommand.ts +++ b/clients/client-waf/commands/ListLoggingConfigurationsCommand.ts @@ -36,6 +36,7 @@ export class ListLoggingConfigurationsCommand extends $Command< ListLoggingConfigurationsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListLoggingConfigurationsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListRateBasedRulesCommand.ts b/clients/client-waf/commands/ListRateBasedRulesCommand.ts index 2079a0fbc4d6f..9ee7bc62e9b1c 100644 --- a/clients/client-waf/commands/ListRateBasedRulesCommand.ts +++ b/clients/client-waf/commands/ListRateBasedRulesCommand.ts @@ -36,6 +36,7 @@ export class ListRateBasedRulesCommand extends $Command< ListRateBasedRulesCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRateBasedRulesCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListRegexMatchSetsCommand.ts b/clients/client-waf/commands/ListRegexMatchSetsCommand.ts index 04b83efe9179c..ee4073f31eb6f 100644 --- a/clients/client-waf/commands/ListRegexMatchSetsCommand.ts +++ b/clients/client-waf/commands/ListRegexMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListRegexMatchSetsCommand extends $Command< ListRegexMatchSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRegexMatchSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListRegexPatternSetsCommand.ts b/clients/client-waf/commands/ListRegexPatternSetsCommand.ts index 8fab3338998c3..f259d426f7ffc 100644 --- a/clients/client-waf/commands/ListRegexPatternSetsCommand.ts +++ b/clients/client-waf/commands/ListRegexPatternSetsCommand.ts @@ -36,6 +36,7 @@ export class ListRegexPatternSetsCommand extends $Command< ListRegexPatternSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRegexPatternSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListRuleGroupsCommand.ts b/clients/client-waf/commands/ListRuleGroupsCommand.ts index d2d146df8f2b9..72db251584442 100644 --- a/clients/client-waf/commands/ListRuleGroupsCommand.ts +++ b/clients/client-waf/commands/ListRuleGroupsCommand.ts @@ -36,6 +36,7 @@ export class ListRuleGroupsCommand extends $Command< ListRuleGroupsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListRuleGroupsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListRulesCommand.ts b/clients/client-waf/commands/ListRulesCommand.ts index 61d51d614e7d3..595fc831f7a08 100644 --- a/clients/client-waf/commands/ListRulesCommand.ts +++ b/clients/client-waf/commands/ListRulesCommand.ts @@ -29,6 +29,7 @@ export type ListRulesCommandOutput = ListRulesResponse & __MetadataBearer; *

Returns an array of RuleSummary objects.

*/ export class ListRulesCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListRulesCommand 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-waf/commands/ListSizeConstraintSetsCommand.ts b/clients/client-waf/commands/ListSizeConstraintSetsCommand.ts index e0a89c328360b..455cc4cfefb8c 100644 --- a/clients/client-waf/commands/ListSizeConstraintSetsCommand.ts +++ b/clients/client-waf/commands/ListSizeConstraintSetsCommand.ts @@ -36,6 +36,7 @@ export class ListSizeConstraintSetsCommand extends $Command< ListSizeConstraintSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSizeConstraintSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListSqlInjectionMatchSetsCommand.ts b/clients/client-waf/commands/ListSqlInjectionMatchSetsCommand.ts index d2f5b2904dd35..b1e3de7183ae1 100644 --- a/clients/client-waf/commands/ListSqlInjectionMatchSetsCommand.ts +++ b/clients/client-waf/commands/ListSqlInjectionMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListSqlInjectionMatchSetsCommand extends $Command< ListSqlInjectionMatchSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSqlInjectionMatchSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListSubscribedRuleGroupsCommand.ts b/clients/client-waf/commands/ListSubscribedRuleGroupsCommand.ts index db18faf598838..e57662e71635f 100644 --- a/clients/client-waf/commands/ListSubscribedRuleGroupsCommand.ts +++ b/clients/client-waf/commands/ListSubscribedRuleGroupsCommand.ts @@ -36,6 +36,7 @@ export class ListSubscribedRuleGroupsCommand extends $Command< ListSubscribedRuleGroupsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListSubscribedRuleGroupsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListTagsForResourceCommand.ts b/clients/client-waf/commands/ListTagsForResourceCommand.ts index 9da5b9a95df5b..f27d51e333d49 100644 --- a/clients/client-waf/commands/ListTagsForResourceCommand.ts +++ b/clients/client-waf/commands/ListTagsForResourceCommand.ts @@ -37,6 +37,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListWebACLsCommand.ts b/clients/client-waf/commands/ListWebACLsCommand.ts index 0d7c636447a81..3fe5b4ad70eea 100644 --- a/clients/client-waf/commands/ListWebACLsCommand.ts +++ b/clients/client-waf/commands/ListWebACLsCommand.ts @@ -36,6 +36,7 @@ export class ListWebACLsCommand extends $Command< ListWebACLsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListWebACLsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/ListXssMatchSetsCommand.ts b/clients/client-waf/commands/ListXssMatchSetsCommand.ts index ca4b3f9376c0c..b83c464cab31e 100644 --- a/clients/client-waf/commands/ListXssMatchSetsCommand.ts +++ b/clients/client-waf/commands/ListXssMatchSetsCommand.ts @@ -36,6 +36,7 @@ export class ListXssMatchSetsCommand extends $Command< ListXssMatchSetsCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListXssMatchSetsCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/PutLoggingConfigurationCommand.ts b/clients/client-waf/commands/PutLoggingConfigurationCommand.ts index 681cf9b5c5379..d5b529ac63623 100644 --- a/clients/client-waf/commands/PutLoggingConfigurationCommand.ts +++ b/clients/client-waf/commands/PutLoggingConfigurationCommand.ts @@ -53,6 +53,7 @@ export class PutLoggingConfigurationCommand extends $Command< PutLoggingConfigurationCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -70,7 +71,10 @@ export class PutLoggingConfigurationCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/PutPermissionPolicyCommand.ts b/clients/client-waf/commands/PutPermissionPolicyCommand.ts index 72f25ad3da173..ea7bde2a0f6c8 100644 --- a/clients/client-waf/commands/PutPermissionPolicyCommand.ts +++ b/clients/client-waf/commands/PutPermissionPolicyCommand.ts @@ -68,6 +68,7 @@ export class PutPermissionPolicyCommand extends $Command< PutPermissionPolicyCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -85,7 +86,10 @@ export class PutPermissionPolicyCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/TagResourceCommand.ts b/clients/client-waf/commands/TagResourceCommand.ts index 9941f5c225982..dde47ec9a18f0 100644 --- a/clients/client-waf/commands/TagResourceCommand.ts +++ b/clients/client-waf/commands/TagResourceCommand.ts @@ -37,6 +37,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class TagResourceCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UntagResourceCommand.ts b/clients/client-waf/commands/UntagResourceCommand.ts index 2c8a49922407c..bece35ee972fd 100644 --- a/clients/client-waf/commands/UntagResourceCommand.ts +++ b/clients/client-waf/commands/UntagResourceCommand.ts @@ -36,6 +36,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class UntagResourceCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateByteMatchSetCommand.ts b/clients/client-waf/commands/UpdateByteMatchSetCommand.ts index ef388e04dd356..2fa3b35e435bd 100644 --- a/clients/client-waf/commands/UpdateByteMatchSetCommand.ts +++ b/clients/client-waf/commands/UpdateByteMatchSetCommand.ts @@ -74,6 +74,7 @@ export class UpdateByteMatchSetCommand extends $Command< UpdateByteMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -91,7 +92,10 @@ export class UpdateByteMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateGeoMatchSetCommand.ts b/clients/client-waf/commands/UpdateGeoMatchSetCommand.ts index d5aec2f840294..b2b170d739ba4 100644 --- a/clients/client-waf/commands/UpdateGeoMatchSetCommand.ts +++ b/clients/client-waf/commands/UpdateGeoMatchSetCommand.ts @@ -66,6 +66,7 @@ export class UpdateGeoMatchSetCommand extends $Command< UpdateGeoMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -83,7 +84,10 @@ export class UpdateGeoMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateIPSetCommand.ts b/clients/client-waf/commands/UpdateIPSetCommand.ts index caa11ea21d935..609d68a01fb32 100644 --- a/clients/client-waf/commands/UpdateIPSetCommand.ts +++ b/clients/client-waf/commands/UpdateIPSetCommand.ts @@ -101,6 +101,7 @@ export class UpdateIPSetCommand extends $Command< UpdateIPSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -118,7 +119,10 @@ export class UpdateIPSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateRateBasedRuleCommand.ts b/clients/client-waf/commands/UpdateRateBasedRuleCommand.ts index 91259eaac7716..e7668a4479143 100644 --- a/clients/client-waf/commands/UpdateRateBasedRuleCommand.ts +++ b/clients/client-waf/commands/UpdateRateBasedRuleCommand.ts @@ -82,6 +82,7 @@ export class UpdateRateBasedRuleCommand extends $Command< UpdateRateBasedRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -99,7 +100,10 @@ export class UpdateRateBasedRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateRegexMatchSetCommand.ts b/clients/client-waf/commands/UpdateRegexMatchSetCommand.ts index 852caedba78b1..c221b8c84e01f 100644 --- a/clients/client-waf/commands/UpdateRegexMatchSetCommand.ts +++ b/clients/client-waf/commands/UpdateRegexMatchSetCommand.ts @@ -70,6 +70,7 @@ export class UpdateRegexMatchSetCommand extends $Command< UpdateRegexMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -87,7 +88,10 @@ export class UpdateRegexMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateRegexPatternSetCommand.ts b/clients/client-waf/commands/UpdateRegexPatternSetCommand.ts index c38a15b99e6e3..c00970ad81607 100644 --- a/clients/client-waf/commands/UpdateRegexPatternSetCommand.ts +++ b/clients/client-waf/commands/UpdateRegexPatternSetCommand.ts @@ -75,6 +75,7 @@ export class UpdateRegexPatternSetCommand extends $Command< UpdateRegexPatternSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -92,7 +93,10 @@ export class UpdateRegexPatternSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateRuleCommand.ts b/clients/client-waf/commands/UpdateRuleCommand.ts index 2b6559b82555f..57b3e0d1b45e8 100644 --- a/clients/client-waf/commands/UpdateRuleCommand.ts +++ b/clients/client-waf/commands/UpdateRuleCommand.ts @@ -77,6 +77,7 @@ export class UpdateRuleCommand extends $Command< UpdateRuleCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class UpdateRuleCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateRuleGroupCommand.ts b/clients/client-waf/commands/UpdateRuleGroupCommand.ts index 1c8fd53d257c4..8d4009867b4c3 100644 --- a/clients/client-waf/commands/UpdateRuleGroupCommand.ts +++ b/clients/client-waf/commands/UpdateRuleGroupCommand.ts @@ -60,6 +60,7 @@ export class UpdateRuleGroupCommand extends $Command< UpdateRuleGroupCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -77,7 +78,10 @@ export class UpdateRuleGroupCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateSizeConstraintSetCommand.ts b/clients/client-waf/commands/UpdateSizeConstraintSetCommand.ts index 7277ab833358d..29d6421af8f29 100644 --- a/clients/client-waf/commands/UpdateSizeConstraintSetCommand.ts +++ b/clients/client-waf/commands/UpdateSizeConstraintSetCommand.ts @@ -78,6 +78,7 @@ export class UpdateSizeConstraintSetCommand extends $Command< UpdateSizeConstraintSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -95,7 +96,10 @@ export class UpdateSizeConstraintSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateSqlInjectionMatchSetCommand.ts b/clients/client-waf/commands/UpdateSqlInjectionMatchSetCommand.ts index cd74fc2f26fac..936d341512dd5 100644 --- a/clients/client-waf/commands/UpdateSqlInjectionMatchSetCommand.ts +++ b/clients/client-waf/commands/UpdateSqlInjectionMatchSetCommand.ts @@ -77,6 +77,7 @@ export class UpdateSqlInjectionMatchSetCommand extends $Command< UpdateSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -94,7 +95,10 @@ export class UpdateSqlInjectionMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateWebACLCommand.ts b/clients/client-waf/commands/UpdateWebACLCommand.ts index 76d5a9f5f037a..a9aee62c3e745 100644 --- a/clients/client-waf/commands/UpdateWebACLCommand.ts +++ b/clients/client-waf/commands/UpdateWebACLCommand.ts @@ -107,6 +107,7 @@ export class UpdateWebACLCommand extends $Command< UpdateWebACLCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -124,7 +125,10 @@ export class UpdateWebACLCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-waf/commands/UpdateXssMatchSetCommand.ts b/clients/client-waf/commands/UpdateXssMatchSetCommand.ts index c682157ec00d0..b2d9882ac34de 100644 --- a/clients/client-waf/commands/UpdateXssMatchSetCommand.ts +++ b/clients/client-waf/commands/UpdateXssMatchSetCommand.ts @@ -79,6 +79,7 @@ export class UpdateXssMatchSetCommand extends $Command< UpdateXssMatchSetCommandOutput, WAFClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -96,7 +97,10 @@ export class UpdateXssMatchSetCommand extends $Command< configuration: WAFClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/AssociateWebACLCommand.ts b/clients/client-wafv2/commands/AssociateWebACLCommand.ts index 0e06a3b4d49c6..aaa88a3c09d7a 100644 --- a/clients/client-wafv2/commands/AssociateWebACLCommand.ts +++ b/clients/client-wafv2/commands/AssociateWebACLCommand.ts @@ -32,6 +32,7 @@ export class AssociateWebACLCommand extends $Command< AssociateWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/CheckCapacityCommand.ts b/clients/client-wafv2/commands/CheckCapacityCommand.ts index 1833501f3520a..011ce8c0d6791 100644 --- a/clients/client-wafv2/commands/CheckCapacityCommand.ts +++ b/clients/client-wafv2/commands/CheckCapacityCommand.ts @@ -42,6 +42,7 @@ export class CheckCapacityCommand extends $Command< CheckCapacityCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -59,7 +60,10 @@ export class CheckCapacityCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/CreateIPSetCommand.ts b/clients/client-wafv2/commands/CreateIPSetCommand.ts index 50f4f5ad43f03..51a0fc3386e5b 100644 --- a/clients/client-wafv2/commands/CreateIPSetCommand.ts +++ b/clients/client-wafv2/commands/CreateIPSetCommand.ts @@ -31,6 +31,7 @@ export class CreateIPSetCommand extends $Command< CreateIPSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateIPSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/CreateRegexPatternSetCommand.ts b/clients/client-wafv2/commands/CreateRegexPatternSetCommand.ts index 23d374bb6e416..1eed28bc19378 100644 --- a/clients/client-wafv2/commands/CreateRegexPatternSetCommand.ts +++ b/clients/client-wafv2/commands/CreateRegexPatternSetCommand.ts @@ -31,6 +31,7 @@ export class CreateRegexPatternSetCommand extends $Command< CreateRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class CreateRegexPatternSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/CreateRuleGroupCommand.ts b/clients/client-wafv2/commands/CreateRuleGroupCommand.ts index eb9bf0c708767..ea3489b7a90ed 100644 --- a/clients/client-wafv2/commands/CreateRuleGroupCommand.ts +++ b/clients/client-wafv2/commands/CreateRuleGroupCommand.ts @@ -32,6 +32,7 @@ export class CreateRuleGroupCommand extends $Command< CreateRuleGroupCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateRuleGroupCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/CreateWebACLCommand.ts b/clients/client-wafv2/commands/CreateWebACLCommand.ts index fd385910fc7ab..9b14f6272c468 100644 --- a/clients/client-wafv2/commands/CreateWebACLCommand.ts +++ b/clients/client-wafv2/commands/CreateWebACLCommand.ts @@ -32,6 +32,7 @@ export class CreateWebACLCommand extends $Command< CreateWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteFirewallManagerRuleGroupsCommand.ts b/clients/client-wafv2/commands/DeleteFirewallManagerRuleGroupsCommand.ts index 47637d40148c3..8ff18a0171329 100644 --- a/clients/client-wafv2/commands/DeleteFirewallManagerRuleGroupsCommand.ts +++ b/clients/client-wafv2/commands/DeleteFirewallManagerRuleGroupsCommand.ts @@ -29,6 +29,7 @@ export class DeleteFirewallManagerRuleGroupsCommand extends $Command< DeleteFirewallManagerRuleGroupsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteFirewallManagerRuleGroupsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteIPSetCommand.ts b/clients/client-wafv2/commands/DeleteIPSetCommand.ts index 9214485c03178..6584d078ebe1c 100644 --- a/clients/client-wafv2/commands/DeleteIPSetCommand.ts +++ b/clients/client-wafv2/commands/DeleteIPSetCommand.ts @@ -31,6 +31,7 @@ export class DeleteIPSetCommand extends $Command< DeleteIPSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteIPSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteLoggingConfigurationCommand.ts b/clients/client-wafv2/commands/DeleteLoggingConfigurationCommand.ts index 27e92dfd099d9..705ef4ce78f8c 100644 --- a/clients/client-wafv2/commands/DeleteLoggingConfigurationCommand.ts +++ b/clients/client-wafv2/commands/DeleteLoggingConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DeleteLoggingConfigurationCommand extends $Command< DeleteLoggingConfigurationCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteLoggingConfigurationCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeletePermissionPolicyCommand.ts b/clients/client-wafv2/commands/DeletePermissionPolicyCommand.ts index 0528f197b4ae0..63770ca1906a6 100644 --- a/clients/client-wafv2/commands/DeletePermissionPolicyCommand.ts +++ b/clients/client-wafv2/commands/DeletePermissionPolicyCommand.ts @@ -29,6 +29,7 @@ export class DeletePermissionPolicyCommand extends $Command< DeletePermissionPolicyCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeletePermissionPolicyCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteRegexPatternSetCommand.ts b/clients/client-wafv2/commands/DeleteRegexPatternSetCommand.ts index 73e9737d0caac..0912e1a4b07db 100644 --- a/clients/client-wafv2/commands/DeleteRegexPatternSetCommand.ts +++ b/clients/client-wafv2/commands/DeleteRegexPatternSetCommand.ts @@ -31,6 +31,7 @@ export class DeleteRegexPatternSetCommand extends $Command< DeleteRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteRegexPatternSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteRuleGroupCommand.ts b/clients/client-wafv2/commands/DeleteRuleGroupCommand.ts index 03e11e5deaac6..41336502ef0ba 100644 --- a/clients/client-wafv2/commands/DeleteRuleGroupCommand.ts +++ b/clients/client-wafv2/commands/DeleteRuleGroupCommand.ts @@ -31,6 +31,7 @@ export class DeleteRuleGroupCommand extends $Command< DeleteRuleGroupCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeleteRuleGroupCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DeleteWebACLCommand.ts b/clients/client-wafv2/commands/DeleteWebACLCommand.ts index eab489bc2900c..0d4ffde9eaa19 100644 --- a/clients/client-wafv2/commands/DeleteWebACLCommand.ts +++ b/clients/client-wafv2/commands/DeleteWebACLCommand.ts @@ -32,6 +32,7 @@ export class DeleteWebACLCommand extends $Command< DeleteWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DescribeManagedRuleGroupCommand.ts b/clients/client-wafv2/commands/DescribeManagedRuleGroupCommand.ts index a7ac3deb38561..d34067283963f 100644 --- a/clients/client-wafv2/commands/DescribeManagedRuleGroupCommand.ts +++ b/clients/client-wafv2/commands/DescribeManagedRuleGroupCommand.ts @@ -31,6 +31,7 @@ export class DescribeManagedRuleGroupCommand extends $Command< DescribeManagedRuleGroupCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DescribeManagedRuleGroupCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/DisassociateWebACLCommand.ts b/clients/client-wafv2/commands/DisassociateWebACLCommand.ts index e71882f9b4771..7241ed9258d19 100644 --- a/clients/client-wafv2/commands/DisassociateWebACLCommand.ts +++ b/clients/client-wafv2/commands/DisassociateWebACLCommand.ts @@ -32,6 +32,7 @@ export class DisassociateWebACLCommand extends $Command< DisassociateWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DisassociateWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetIPSetCommand.ts b/clients/client-wafv2/commands/GetIPSetCommand.ts index fc6d998071641..2f7023afa4093 100644 --- a/clients/client-wafv2/commands/GetIPSetCommand.ts +++ b/clients/client-wafv2/commands/GetIPSetCommand.ts @@ -24,6 +24,7 @@ export type GetIPSetCommandOutput = GetIPSetResponse & __MetadataBearer; *

Retrieves the specified IPSet.

*/ export class GetIPSetCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetIPSetCommand 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-wafv2/commands/GetLoggingConfigurationCommand.ts b/clients/client-wafv2/commands/GetLoggingConfigurationCommand.ts index d0f24f18e488e..0b5e9ca0131d4 100644 --- a/clients/client-wafv2/commands/GetLoggingConfigurationCommand.ts +++ b/clients/client-wafv2/commands/GetLoggingConfigurationCommand.ts @@ -31,6 +31,7 @@ export class GetLoggingConfigurationCommand extends $Command< GetLoggingConfigurationCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetLoggingConfigurationCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetPermissionPolicyCommand.ts b/clients/client-wafv2/commands/GetPermissionPolicyCommand.ts index b716bea9f5931..6cf13ad084293 100644 --- a/clients/client-wafv2/commands/GetPermissionPolicyCommand.ts +++ b/clients/client-wafv2/commands/GetPermissionPolicyCommand.ts @@ -29,6 +29,7 @@ export class GetPermissionPolicyCommand extends $Command< GetPermissionPolicyCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetPermissionPolicyCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetRateBasedStatementManagedKeysCommand.ts b/clients/client-wafv2/commands/GetRateBasedStatementManagedKeysCommand.ts index 6a89f19917fb8..b1f32cb3df01b 100644 --- a/clients/client-wafv2/commands/GetRateBasedStatementManagedKeysCommand.ts +++ b/clients/client-wafv2/commands/GetRateBasedStatementManagedKeysCommand.ts @@ -31,6 +31,7 @@ export class GetRateBasedStatementManagedKeysCommand extends $Command< GetRateBasedStatementManagedKeysCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRateBasedStatementManagedKeysCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetRegexPatternSetCommand.ts b/clients/client-wafv2/commands/GetRegexPatternSetCommand.ts index 64c4351720159..f672d5c0ec112 100644 --- a/clients/client-wafv2/commands/GetRegexPatternSetCommand.ts +++ b/clients/client-wafv2/commands/GetRegexPatternSetCommand.ts @@ -31,6 +31,7 @@ export class GetRegexPatternSetCommand extends $Command< GetRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRegexPatternSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetRuleGroupCommand.ts b/clients/client-wafv2/commands/GetRuleGroupCommand.ts index b3a48373d66c0..91697927b3bf1 100644 --- a/clients/client-wafv2/commands/GetRuleGroupCommand.ts +++ b/clients/client-wafv2/commands/GetRuleGroupCommand.ts @@ -31,6 +31,7 @@ export class GetRuleGroupCommand extends $Command< GetRuleGroupCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetRuleGroupCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetSampledRequestsCommand.ts b/clients/client-wafv2/commands/GetSampledRequestsCommand.ts index 1ea4c513f3e25..1044abbc76afa 100644 --- a/clients/client-wafv2/commands/GetSampledRequestsCommand.ts +++ b/clients/client-wafv2/commands/GetSampledRequestsCommand.ts @@ -35,6 +35,7 @@ export class GetSampledRequestsCommand extends $Command< GetSampledRequestsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GetSampledRequestsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetWebACLCommand.ts b/clients/client-wafv2/commands/GetWebACLCommand.ts index 4bc4e51a9c903..eb25eae44efce 100644 --- a/clients/client-wafv2/commands/GetWebACLCommand.ts +++ b/clients/client-wafv2/commands/GetWebACLCommand.ts @@ -28,6 +28,7 @@ export class GetWebACLCommand extends $Command< GetWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/GetWebACLForResourceCommand.ts b/clients/client-wafv2/commands/GetWebACLForResourceCommand.ts index e939e7c259ea9..6d8d820911323 100644 --- a/clients/client-wafv2/commands/GetWebACLForResourceCommand.ts +++ b/clients/client-wafv2/commands/GetWebACLForResourceCommand.ts @@ -31,6 +31,7 @@ export class GetWebACLForResourceCommand extends $Command< GetWebACLForResourceCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class GetWebACLForResourceCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListAvailableManagedRuleGroupsCommand.ts b/clients/client-wafv2/commands/ListAvailableManagedRuleGroupsCommand.ts index df1c87959c67a..9a11a171f1bed 100644 --- a/clients/client-wafv2/commands/ListAvailableManagedRuleGroupsCommand.ts +++ b/clients/client-wafv2/commands/ListAvailableManagedRuleGroupsCommand.ts @@ -31,6 +31,7 @@ export class ListAvailableManagedRuleGroupsCommand extends $Command< ListAvailableManagedRuleGroupsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListAvailableManagedRuleGroupsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListIPSetsCommand.ts b/clients/client-wafv2/commands/ListIPSetsCommand.ts index bb0d722a15ba8..6f8c4f594ec55 100644 --- a/clients/client-wafv2/commands/ListIPSetsCommand.ts +++ b/clients/client-wafv2/commands/ListIPSetsCommand.ts @@ -31,6 +31,7 @@ export class ListIPSetsCommand extends $Command< ListIPSetsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListIPSetsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListLoggingConfigurationsCommand.ts b/clients/client-wafv2/commands/ListLoggingConfigurationsCommand.ts index 5e44674d38c33..4fdb7426a7b00 100644 --- a/clients/client-wafv2/commands/ListLoggingConfigurationsCommand.ts +++ b/clients/client-wafv2/commands/ListLoggingConfigurationsCommand.ts @@ -31,6 +31,7 @@ export class ListLoggingConfigurationsCommand extends $Command< ListLoggingConfigurationsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListLoggingConfigurationsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListRegexPatternSetsCommand.ts b/clients/client-wafv2/commands/ListRegexPatternSetsCommand.ts index dd7abe510c3a8..361fd0123eac4 100644 --- a/clients/client-wafv2/commands/ListRegexPatternSetsCommand.ts +++ b/clients/client-wafv2/commands/ListRegexPatternSetsCommand.ts @@ -31,6 +31,7 @@ export class ListRegexPatternSetsCommand extends $Command< ListRegexPatternSetsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListRegexPatternSetsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListResourcesForWebACLCommand.ts b/clients/client-wafv2/commands/ListResourcesForWebACLCommand.ts index f17b551789fdf..3b3e566d20d3d 100644 --- a/clients/client-wafv2/commands/ListResourcesForWebACLCommand.ts +++ b/clients/client-wafv2/commands/ListResourcesForWebACLCommand.ts @@ -31,6 +31,7 @@ export class ListResourcesForWebACLCommand extends $Command< ListResourcesForWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListResourcesForWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListRuleGroupsCommand.ts b/clients/client-wafv2/commands/ListRuleGroupsCommand.ts index 12c4335e7054d..0d15b6f1ac5f4 100644 --- a/clients/client-wafv2/commands/ListRuleGroupsCommand.ts +++ b/clients/client-wafv2/commands/ListRuleGroupsCommand.ts @@ -31,6 +31,7 @@ export class ListRuleGroupsCommand extends $Command< ListRuleGroupsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListRuleGroupsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListTagsForResourceCommand.ts b/clients/client-wafv2/commands/ListTagsForResourceCommand.ts index 7eb9f498d62e6..dd028b5d33c90 100644 --- a/clients/client-wafv2/commands/ListTagsForResourceCommand.ts +++ b/clients/client-wafv2/commands/ListTagsForResourceCommand.ts @@ -33,6 +33,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/ListWebACLsCommand.ts b/clients/client-wafv2/commands/ListWebACLsCommand.ts index 4a6f9de7a729c..b8a9d633942ee 100644 --- a/clients/client-wafv2/commands/ListWebACLsCommand.ts +++ b/clients/client-wafv2/commands/ListWebACLsCommand.ts @@ -31,6 +31,7 @@ export class ListWebACLsCommand extends $Command< ListWebACLsCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ListWebACLsCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/PutLoggingConfigurationCommand.ts b/clients/client-wafv2/commands/PutLoggingConfigurationCommand.ts index 42b41e04bcea8..ba551fd72903f 100644 --- a/clients/client-wafv2/commands/PutLoggingConfigurationCommand.ts +++ b/clients/client-wafv2/commands/PutLoggingConfigurationCommand.ts @@ -49,6 +49,7 @@ export class PutLoggingConfigurationCommand extends $Command< PutLoggingConfigurationCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -66,7 +67,10 @@ export class PutLoggingConfigurationCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/PutPermissionPolicyCommand.ts b/clients/client-wafv2/commands/PutPermissionPolicyCommand.ts index 9eb25d17b7ce2..fb1a064ce6189 100644 --- a/clients/client-wafv2/commands/PutPermissionPolicyCommand.ts +++ b/clients/client-wafv2/commands/PutPermissionPolicyCommand.ts @@ -41,6 +41,7 @@ export class PutPermissionPolicyCommand extends $Command< PutPermissionPolicyCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -58,7 +59,10 @@ export class PutPermissionPolicyCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/TagResourceCommand.ts b/clients/client-wafv2/commands/TagResourceCommand.ts index a0ed047d72679..a818e5bf099a5 100644 --- a/clients/client-wafv2/commands/TagResourceCommand.ts +++ b/clients/client-wafv2/commands/TagResourceCommand.ts @@ -33,6 +33,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class TagResourceCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/UntagResourceCommand.ts b/clients/client-wafv2/commands/UntagResourceCommand.ts index 5ebe6548d82ec..e23316bcb9fb9 100644 --- a/clients/client-wafv2/commands/UntagResourceCommand.ts +++ b/clients/client-wafv2/commands/UntagResourceCommand.ts @@ -31,6 +31,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UntagResourceCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/UpdateIPSetCommand.ts b/clients/client-wafv2/commands/UpdateIPSetCommand.ts index 4a0da16954d97..003038633cc5e 100644 --- a/clients/client-wafv2/commands/UpdateIPSetCommand.ts +++ b/clients/client-wafv2/commands/UpdateIPSetCommand.ts @@ -31,6 +31,7 @@ export class UpdateIPSetCommand extends $Command< UpdateIPSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateIPSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/UpdateRegexPatternSetCommand.ts b/clients/client-wafv2/commands/UpdateRegexPatternSetCommand.ts index cc897601537d1..1c2148a0cd509 100644 --- a/clients/client-wafv2/commands/UpdateRegexPatternSetCommand.ts +++ b/clients/client-wafv2/commands/UpdateRegexPatternSetCommand.ts @@ -31,6 +31,7 @@ export class UpdateRegexPatternSetCommand extends $Command< UpdateRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateRegexPatternSetCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/UpdateRuleGroupCommand.ts b/clients/client-wafv2/commands/UpdateRuleGroupCommand.ts index 2b7c289b36487..64bd0d8301e31 100644 --- a/clients/client-wafv2/commands/UpdateRuleGroupCommand.ts +++ b/clients/client-wafv2/commands/UpdateRuleGroupCommand.ts @@ -32,6 +32,7 @@ export class UpdateRuleGroupCommand extends $Command< UpdateRuleGroupCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateRuleGroupCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-wafv2/commands/UpdateWebACLCommand.ts b/clients/client-wafv2/commands/UpdateWebACLCommand.ts index eba3332a8b6c4..31db1125af3d4 100644 --- a/clients/client-wafv2/commands/UpdateWebACLCommand.ts +++ b/clients/client-wafv2/commands/UpdateWebACLCommand.ts @@ -32,6 +32,7 @@ export class UpdateWebACLCommand extends $Command< UpdateWebACLCommandOutput, WAFV2ClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateWebACLCommand extends $Command< configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/AbortDocumentVersionUploadCommand.ts b/clients/client-workdocs/commands/AbortDocumentVersionUploadCommand.ts index 11f4ba713d4e9..10a3fa2c54138 100644 --- a/clients/client-workdocs/commands/AbortDocumentVersionUploadCommand.ts +++ b/clients/client-workdocs/commands/AbortDocumentVersionUploadCommand.ts @@ -31,6 +31,7 @@ export class AbortDocumentVersionUploadCommand extends $Command< AbortDocumentVersionUploadCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class AbortDocumentVersionUploadCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/ActivateUserCommand.ts b/clients/client-workdocs/commands/ActivateUserCommand.ts index 10e92a4c03be2..1b7085dafb263 100644 --- a/clients/client-workdocs/commands/ActivateUserCommand.ts +++ b/clients/client-workdocs/commands/ActivateUserCommand.ts @@ -29,6 +29,7 @@ export class ActivateUserCommand extends $Command< ActivateUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ActivateUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/AddResourcePermissionsCommand.ts b/clients/client-workdocs/commands/AddResourcePermissionsCommand.ts index c0faf3b3e3978..eea33df7c3fb1 100644 --- a/clients/client-workdocs/commands/AddResourcePermissionsCommand.ts +++ b/clients/client-workdocs/commands/AddResourcePermissionsCommand.ts @@ -30,6 +30,7 @@ export class AddResourcePermissionsCommand extends $Command< AddResourcePermissionsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AddResourcePermissionsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateCommentCommand.ts b/clients/client-workdocs/commands/CreateCommentCommand.ts index 1c21a85d14b60..1dcaccb70fc53 100644 --- a/clients/client-workdocs/commands/CreateCommentCommand.ts +++ b/clients/client-workdocs/commands/CreateCommentCommand.ts @@ -28,6 +28,7 @@ export class CreateCommentCommand extends $Command< CreateCommentCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateCommentCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateCustomMetadataCommand.ts b/clients/client-workdocs/commands/CreateCustomMetadataCommand.ts index a959ab0ce52b3..c49f05788a13a 100644 --- a/clients/client-workdocs/commands/CreateCustomMetadataCommand.ts +++ b/clients/client-workdocs/commands/CreateCustomMetadataCommand.ts @@ -29,6 +29,7 @@ export class CreateCustomMetadataCommand extends $Command< CreateCustomMetadataCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateCustomMetadataCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateFolderCommand.ts b/clients/client-workdocs/commands/CreateFolderCommand.ts index a111485b74f41..8900eda3489d3 100644 --- a/clients/client-workdocs/commands/CreateFolderCommand.ts +++ b/clients/client-workdocs/commands/CreateFolderCommand.ts @@ -28,6 +28,7 @@ export class CreateFolderCommand extends $Command< CreateFolderCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateFolderCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateLabelsCommand.ts b/clients/client-workdocs/commands/CreateLabelsCommand.ts index e6dabb3457a86..e939686cf0109 100644 --- a/clients/client-workdocs/commands/CreateLabelsCommand.ts +++ b/clients/client-workdocs/commands/CreateLabelsCommand.ts @@ -29,6 +29,7 @@ export class CreateLabelsCommand extends $Command< CreateLabelsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateLabelsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateNotificationSubscriptionCommand.ts b/clients/client-workdocs/commands/CreateNotificationSubscriptionCommand.ts index c5f92dc79c72a..4525b26ec5691 100644 --- a/clients/client-workdocs/commands/CreateNotificationSubscriptionCommand.ts +++ b/clients/client-workdocs/commands/CreateNotificationSubscriptionCommand.ts @@ -32,6 +32,7 @@ export class CreateNotificationSubscriptionCommand extends $Command< CreateNotificationSubscriptionCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class CreateNotificationSubscriptionCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/CreateUserCommand.ts b/clients/client-workdocs/commands/CreateUserCommand.ts index b6546b690e9ee..4beefaed7b265 100644 --- a/clients/client-workdocs/commands/CreateUserCommand.ts +++ b/clients/client-workdocs/commands/CreateUserCommand.ts @@ -29,6 +29,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeactivateUserCommand.ts b/clients/client-workdocs/commands/DeactivateUserCommand.ts index ec1591e293caf..cc9eed1539a14 100644 --- a/clients/client-workdocs/commands/DeactivateUserCommand.ts +++ b/clients/client-workdocs/commands/DeactivateUserCommand.ts @@ -29,6 +29,7 @@ export class DeactivateUserCommand extends $Command< DeactivateUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeactivateUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteCommentCommand.ts b/clients/client-workdocs/commands/DeleteCommentCommand.ts index 04d16144cfff4..f18401a2458bd 100644 --- a/clients/client-workdocs/commands/DeleteCommentCommand.ts +++ b/clients/client-workdocs/commands/DeleteCommentCommand.ts @@ -28,6 +28,7 @@ export class DeleteCommentCommand extends $Command< DeleteCommentCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCommentCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteCustomMetadataCommand.ts b/clients/client-workdocs/commands/DeleteCustomMetadataCommand.ts index 3612a05035f3f..a77ec0b7a126f 100644 --- a/clients/client-workdocs/commands/DeleteCustomMetadataCommand.ts +++ b/clients/client-workdocs/commands/DeleteCustomMetadataCommand.ts @@ -28,6 +28,7 @@ export class DeleteCustomMetadataCommand extends $Command< DeleteCustomMetadataCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteCustomMetadataCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteDocumentCommand.ts b/clients/client-workdocs/commands/DeleteDocumentCommand.ts index 26e70871c3607..7d9b09b52930f 100644 --- a/clients/client-workdocs/commands/DeleteDocumentCommand.ts +++ b/clients/client-workdocs/commands/DeleteDocumentCommand.ts @@ -28,6 +28,7 @@ export class DeleteDocumentCommand extends $Command< DeleteDocumentCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteDocumentCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteFolderCommand.ts b/clients/client-workdocs/commands/DeleteFolderCommand.ts index 2c74801b53cc5..4dbd7b6164202 100644 --- a/clients/client-workdocs/commands/DeleteFolderCommand.ts +++ b/clients/client-workdocs/commands/DeleteFolderCommand.ts @@ -28,6 +28,7 @@ export class DeleteFolderCommand extends $Command< DeleteFolderCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFolderCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteFolderContentsCommand.ts b/clients/client-workdocs/commands/DeleteFolderContentsCommand.ts index 86941f76ce826..6bf2ca6c41081 100644 --- a/clients/client-workdocs/commands/DeleteFolderContentsCommand.ts +++ b/clients/client-workdocs/commands/DeleteFolderContentsCommand.ts @@ -28,6 +28,7 @@ export class DeleteFolderContentsCommand extends $Command< DeleteFolderContentsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFolderContentsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteLabelsCommand.ts b/clients/client-workdocs/commands/DeleteLabelsCommand.ts index 3b980577b041f..21de7f57c2d58 100644 --- a/clients/client-workdocs/commands/DeleteLabelsCommand.ts +++ b/clients/client-workdocs/commands/DeleteLabelsCommand.ts @@ -28,6 +28,7 @@ export class DeleteLabelsCommand extends $Command< DeleteLabelsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteLabelsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteNotificationSubscriptionCommand.ts b/clients/client-workdocs/commands/DeleteNotificationSubscriptionCommand.ts index 83f383a451315..08caeae4a0ac4 100644 --- a/clients/client-workdocs/commands/DeleteNotificationSubscriptionCommand.ts +++ b/clients/client-workdocs/commands/DeleteNotificationSubscriptionCommand.ts @@ -28,6 +28,7 @@ export class DeleteNotificationSubscriptionCommand extends $Command< DeleteNotificationSubscriptionCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteNotificationSubscriptionCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DeleteUserCommand.ts b/clients/client-workdocs/commands/DeleteUserCommand.ts index 2c5c75c379427..f1d0a9a4a2424 100644 --- a/clients/client-workdocs/commands/DeleteUserCommand.ts +++ b/clients/client-workdocs/commands/DeleteUserCommand.ts @@ -28,6 +28,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeActivitiesCommand.ts b/clients/client-workdocs/commands/DescribeActivitiesCommand.ts index c68de3a612fc4..2a88a065003f7 100644 --- a/clients/client-workdocs/commands/DescribeActivitiesCommand.ts +++ b/clients/client-workdocs/commands/DescribeActivitiesCommand.ts @@ -28,6 +28,7 @@ export class DescribeActivitiesCommand extends $Command< DescribeActivitiesCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeActivitiesCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeCommentsCommand.ts b/clients/client-workdocs/commands/DescribeCommentsCommand.ts index f04b87a8421ba..ea596b10b05dd 100644 --- a/clients/client-workdocs/commands/DescribeCommentsCommand.ts +++ b/clients/client-workdocs/commands/DescribeCommentsCommand.ts @@ -28,6 +28,7 @@ export class DescribeCommentsCommand extends $Command< DescribeCommentsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeCommentsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeDocumentVersionsCommand.ts b/clients/client-workdocs/commands/DescribeDocumentVersionsCommand.ts index 3e1b89fba671c..3cb31c2df3c90 100644 --- a/clients/client-workdocs/commands/DescribeDocumentVersionsCommand.ts +++ b/clients/client-workdocs/commands/DescribeDocumentVersionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeDocumentVersionsCommand extends $Command< DescribeDocumentVersionsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeDocumentVersionsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeFolderContentsCommand.ts b/clients/client-workdocs/commands/DescribeFolderContentsCommand.ts index 84af8460447f4..c071d1f441ed2 100644 --- a/clients/client-workdocs/commands/DescribeFolderContentsCommand.ts +++ b/clients/client-workdocs/commands/DescribeFolderContentsCommand.ts @@ -33,6 +33,7 @@ export class DescribeFolderContentsCommand extends $Command< DescribeFolderContentsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeFolderContentsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeGroupsCommand.ts b/clients/client-workdocs/commands/DescribeGroupsCommand.ts index e3736d2345cfb..b48a596192b40 100644 --- a/clients/client-workdocs/commands/DescribeGroupsCommand.ts +++ b/clients/client-workdocs/commands/DescribeGroupsCommand.ts @@ -29,6 +29,7 @@ export class DescribeGroupsCommand extends $Command< DescribeGroupsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeGroupsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeNotificationSubscriptionsCommand.ts b/clients/client-workdocs/commands/DescribeNotificationSubscriptionsCommand.ts index c885366fd4bea..3f7924aef2131 100644 --- a/clients/client-workdocs/commands/DescribeNotificationSubscriptionsCommand.ts +++ b/clients/client-workdocs/commands/DescribeNotificationSubscriptionsCommand.ts @@ -32,6 +32,7 @@ export class DescribeNotificationSubscriptionsCommand extends $Command< DescribeNotificationSubscriptionsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeNotificationSubscriptionsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeResourcePermissionsCommand.ts b/clients/client-workdocs/commands/DescribeResourcePermissionsCommand.ts index 0db1c9c2f78b5..8bba316c853ad 100644 --- a/clients/client-workdocs/commands/DescribeResourcePermissionsCommand.ts +++ b/clients/client-workdocs/commands/DescribeResourcePermissionsCommand.ts @@ -28,6 +28,7 @@ export class DescribeResourcePermissionsCommand extends $Command< DescribeResourcePermissionsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeResourcePermissionsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeRootFoldersCommand.ts b/clients/client-workdocs/commands/DescribeRootFoldersCommand.ts index e4de767e8837e..ffe0481c36e32 100644 --- a/clients/client-workdocs/commands/DescribeRootFoldersCommand.ts +++ b/clients/client-workdocs/commands/DescribeRootFoldersCommand.ts @@ -36,6 +36,7 @@ export class DescribeRootFoldersCommand extends $Command< DescribeRootFoldersCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DescribeRootFoldersCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/DescribeUsersCommand.ts b/clients/client-workdocs/commands/DescribeUsersCommand.ts index 69c5568f7fe43..1ff0ef3cd2487 100644 --- a/clients/client-workdocs/commands/DescribeUsersCommand.ts +++ b/clients/client-workdocs/commands/DescribeUsersCommand.ts @@ -32,6 +32,7 @@ export class DescribeUsersCommand extends $Command< DescribeUsersCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeUsersCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetCurrentUserCommand.ts b/clients/client-workdocs/commands/GetCurrentUserCommand.ts index 41773ce838e33..32944745166ec 100644 --- a/clients/client-workdocs/commands/GetCurrentUserCommand.ts +++ b/clients/client-workdocs/commands/GetCurrentUserCommand.ts @@ -34,6 +34,7 @@ export class GetCurrentUserCommand extends $Command< GetCurrentUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class GetCurrentUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetDocumentCommand.ts b/clients/client-workdocs/commands/GetDocumentCommand.ts index 3ce68f0e41b11..b16e866e583be 100644 --- a/clients/client-workdocs/commands/GetDocumentCommand.ts +++ b/clients/client-workdocs/commands/GetDocumentCommand.ts @@ -28,6 +28,7 @@ export class GetDocumentCommand extends $Command< GetDocumentCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDocumentCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetDocumentPathCommand.ts b/clients/client-workdocs/commands/GetDocumentPathCommand.ts index e63b5d4e2e070..140c13060813a 100644 --- a/clients/client-workdocs/commands/GetDocumentPathCommand.ts +++ b/clients/client-workdocs/commands/GetDocumentPathCommand.ts @@ -33,6 +33,7 @@ export class GetDocumentPathCommand extends $Command< GetDocumentPathCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetDocumentPathCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetDocumentVersionCommand.ts b/clients/client-workdocs/commands/GetDocumentVersionCommand.ts index 7c32d6800871a..7d68e1984cccf 100644 --- a/clients/client-workdocs/commands/GetDocumentVersionCommand.ts +++ b/clients/client-workdocs/commands/GetDocumentVersionCommand.ts @@ -28,6 +28,7 @@ export class GetDocumentVersionCommand extends $Command< GetDocumentVersionCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetDocumentVersionCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetFolderCommand.ts b/clients/client-workdocs/commands/GetFolderCommand.ts index 180c29231edf3..87a266ae49f80 100644 --- a/clients/client-workdocs/commands/GetFolderCommand.ts +++ b/clients/client-workdocs/commands/GetFolderCommand.ts @@ -28,6 +28,7 @@ export class GetFolderCommand extends $Command< GetFolderCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetFolderCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetFolderPathCommand.ts b/clients/client-workdocs/commands/GetFolderPathCommand.ts index ce28d4e96d2f4..88a9ef6422d40 100644 --- a/clients/client-workdocs/commands/GetFolderPathCommand.ts +++ b/clients/client-workdocs/commands/GetFolderPathCommand.ts @@ -33,6 +33,7 @@ export class GetFolderPathCommand extends $Command< GetFolderPathCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class GetFolderPathCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/GetResourcesCommand.ts b/clients/client-workdocs/commands/GetResourcesCommand.ts index 36e3c1ee39a14..b62348bfc6940 100644 --- a/clients/client-workdocs/commands/GetResourcesCommand.ts +++ b/clients/client-workdocs/commands/GetResourcesCommand.ts @@ -29,6 +29,7 @@ export class GetResourcesCommand extends $Command< GetResourcesCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetResourcesCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/InitiateDocumentVersionUploadCommand.ts b/clients/client-workdocs/commands/InitiateDocumentVersionUploadCommand.ts index 932b7601b5132..462971cc557b9 100644 --- a/clients/client-workdocs/commands/InitiateDocumentVersionUploadCommand.ts +++ b/clients/client-workdocs/commands/InitiateDocumentVersionUploadCommand.ts @@ -33,6 +33,7 @@ export class InitiateDocumentVersionUploadCommand extends $Command< InitiateDocumentVersionUploadCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class InitiateDocumentVersionUploadCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/RemoveAllResourcePermissionsCommand.ts b/clients/client-workdocs/commands/RemoveAllResourcePermissionsCommand.ts index 0a0434df1a96f..2de29869126bd 100644 --- a/clients/client-workdocs/commands/RemoveAllResourcePermissionsCommand.ts +++ b/clients/client-workdocs/commands/RemoveAllResourcePermissionsCommand.ts @@ -28,6 +28,7 @@ export class RemoveAllResourcePermissionsCommand extends $Command< RemoveAllResourcePermissionsCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RemoveAllResourcePermissionsCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/RemoveResourcePermissionCommand.ts b/clients/client-workdocs/commands/RemoveResourcePermissionCommand.ts index 033378047a483..c0b70a63cf30c 100644 --- a/clients/client-workdocs/commands/RemoveResourcePermissionCommand.ts +++ b/clients/client-workdocs/commands/RemoveResourcePermissionCommand.ts @@ -29,6 +29,7 @@ export class RemoveResourcePermissionCommand extends $Command< RemoveResourcePermissionCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class RemoveResourcePermissionCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/UpdateDocumentCommand.ts b/clients/client-workdocs/commands/UpdateDocumentCommand.ts index c49132edd3097..18dae36cdc89c 100644 --- a/clients/client-workdocs/commands/UpdateDocumentCommand.ts +++ b/clients/client-workdocs/commands/UpdateDocumentCommand.ts @@ -29,6 +29,7 @@ export class UpdateDocumentCommand extends $Command< UpdateDocumentCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateDocumentCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/UpdateDocumentVersionCommand.ts b/clients/client-workdocs/commands/UpdateDocumentVersionCommand.ts index e3acbff72610a..f42a802f21d92 100644 --- a/clients/client-workdocs/commands/UpdateDocumentVersionCommand.ts +++ b/clients/client-workdocs/commands/UpdateDocumentVersionCommand.ts @@ -31,6 +31,7 @@ export class UpdateDocumentVersionCommand extends $Command< UpdateDocumentVersionCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class UpdateDocumentVersionCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/UpdateFolderCommand.ts b/clients/client-workdocs/commands/UpdateFolderCommand.ts index 0162e29c956a0..035aabd6f80ca 100644 --- a/clients/client-workdocs/commands/UpdateFolderCommand.ts +++ b/clients/client-workdocs/commands/UpdateFolderCommand.ts @@ -29,6 +29,7 @@ export class UpdateFolderCommand extends $Command< UpdateFolderCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateFolderCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workdocs/commands/UpdateUserCommand.ts b/clients/client-workdocs/commands/UpdateUserCommand.ts index 02e72ca5d9cc4..addc451a6f956 100644 --- a/clients/client-workdocs/commands/UpdateUserCommand.ts +++ b/clients/client-workdocs/commands/UpdateUserCommand.ts @@ -29,6 +29,7 @@ export class UpdateUserCommand extends $Command< UpdateUserCommandOutput, WorkDocsClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateUserCommand extends $Command< configuration: WorkDocsClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/AssociateDomainCommand.ts b/clients/client-worklink/commands/AssociateDomainCommand.ts index d46f7fa29f7f0..ede570556f9c0 100644 --- a/clients/client-worklink/commands/AssociateDomainCommand.ts +++ b/clients/client-worklink/commands/AssociateDomainCommand.ts @@ -28,6 +28,7 @@ export class AssociateDomainCommand extends $Command< AssociateDomainCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateDomainCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/AssociateWebsiteAuthorizationProviderCommand.ts b/clients/client-worklink/commands/AssociateWebsiteAuthorizationProviderCommand.ts index 96e2cb753e625..313074690560a 100644 --- a/clients/client-worklink/commands/AssociateWebsiteAuthorizationProviderCommand.ts +++ b/clients/client-worklink/commands/AssociateWebsiteAuthorizationProviderCommand.ts @@ -32,6 +32,7 @@ export class AssociateWebsiteAuthorizationProviderCommand extends $Command< AssociateWebsiteAuthorizationProviderCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class AssociateWebsiteAuthorizationProviderCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/AssociateWebsiteCertificateAuthorityCommand.ts b/clients/client-worklink/commands/AssociateWebsiteCertificateAuthorityCommand.ts index d0bcbf0a80bd7..399aff34ce521 100644 --- a/clients/client-worklink/commands/AssociateWebsiteCertificateAuthorityCommand.ts +++ b/clients/client-worklink/commands/AssociateWebsiteCertificateAuthorityCommand.ts @@ -33,6 +33,7 @@ export class AssociateWebsiteCertificateAuthorityCommand extends $Command< AssociateWebsiteCertificateAuthorityCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class AssociateWebsiteCertificateAuthorityCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/CreateFleetCommand.ts b/clients/client-worklink/commands/CreateFleetCommand.ts index 85b57c7cd7718..c577b49cc9fd1 100644 --- a/clients/client-worklink/commands/CreateFleetCommand.ts +++ b/clients/client-worklink/commands/CreateFleetCommand.ts @@ -29,6 +29,7 @@ export class CreateFleetCommand extends $Command< CreateFleetCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateFleetCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DeleteFleetCommand.ts b/clients/client-worklink/commands/DeleteFleetCommand.ts index 238d263332464..61f8d377c958d 100644 --- a/clients/client-worklink/commands/DeleteFleetCommand.ts +++ b/clients/client-worklink/commands/DeleteFleetCommand.ts @@ -28,6 +28,7 @@ export class DeleteFleetCommand extends $Command< DeleteFleetCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteFleetCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeAuditStreamConfigurationCommand.ts b/clients/client-worklink/commands/DescribeAuditStreamConfigurationCommand.ts index 9605fd8787283..ee172885d0076 100644 --- a/clients/client-worklink/commands/DescribeAuditStreamConfigurationCommand.ts +++ b/clients/client-worklink/commands/DescribeAuditStreamConfigurationCommand.ts @@ -28,6 +28,7 @@ export class DescribeAuditStreamConfigurationCommand extends $Command< DescribeAuditStreamConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeAuditStreamConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeCompanyNetworkConfigurationCommand.ts b/clients/client-worklink/commands/DescribeCompanyNetworkConfigurationCommand.ts index 5ac9b38e0011d..f31eb8788e5eb 100644 --- a/clients/client-worklink/commands/DescribeCompanyNetworkConfigurationCommand.ts +++ b/clients/client-worklink/commands/DescribeCompanyNetworkConfigurationCommand.ts @@ -33,6 +33,7 @@ export class DescribeCompanyNetworkConfigurationCommand extends $Command< DescribeCompanyNetworkConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class DescribeCompanyNetworkConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeDeviceCommand.ts b/clients/client-worklink/commands/DescribeDeviceCommand.ts index acb1ad792b0c3..d92abdac5169f 100644 --- a/clients/client-worklink/commands/DescribeDeviceCommand.ts +++ b/clients/client-worklink/commands/DescribeDeviceCommand.ts @@ -28,6 +28,7 @@ export class DescribeDeviceCommand extends $Command< DescribeDeviceCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDeviceCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeDevicePolicyConfigurationCommand.ts b/clients/client-worklink/commands/DescribeDevicePolicyConfigurationCommand.ts index 42ab44930dad7..ae3a31ec671e5 100644 --- a/clients/client-worklink/commands/DescribeDevicePolicyConfigurationCommand.ts +++ b/clients/client-worklink/commands/DescribeDevicePolicyConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DescribeDevicePolicyConfigurationCommand extends $Command< DescribeDevicePolicyConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeDevicePolicyConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeDomainCommand.ts b/clients/client-worklink/commands/DescribeDomainCommand.ts index cdfd721eab30a..e59f7a0aad6e2 100644 --- a/clients/client-worklink/commands/DescribeDomainCommand.ts +++ b/clients/client-worklink/commands/DescribeDomainCommand.ts @@ -28,6 +28,7 @@ export class DescribeDomainCommand extends $Command< DescribeDomainCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeDomainCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeFleetMetadataCommand.ts b/clients/client-worklink/commands/DescribeFleetMetadataCommand.ts index aaf8f4943e960..23f36a8445ddb 100644 --- a/clients/client-worklink/commands/DescribeFleetMetadataCommand.ts +++ b/clients/client-worklink/commands/DescribeFleetMetadataCommand.ts @@ -29,6 +29,7 @@ export class DescribeFleetMetadataCommand extends $Command< DescribeFleetMetadataCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeFleetMetadataCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeIdentityProviderConfigurationCommand.ts b/clients/client-worklink/commands/DescribeIdentityProviderConfigurationCommand.ts index e7170dbe1e20c..c14c3c92d1a99 100644 --- a/clients/client-worklink/commands/DescribeIdentityProviderConfigurationCommand.ts +++ b/clients/client-worklink/commands/DescribeIdentityProviderConfigurationCommand.ts @@ -32,6 +32,7 @@ export class DescribeIdentityProviderConfigurationCommand extends $Command< DescribeIdentityProviderConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeIdentityProviderConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DescribeWebsiteCertificateAuthorityCommand.ts b/clients/client-worklink/commands/DescribeWebsiteCertificateAuthorityCommand.ts index 4e49ae99a0667..5a187117019a1 100644 --- a/clients/client-worklink/commands/DescribeWebsiteCertificateAuthorityCommand.ts +++ b/clients/client-worklink/commands/DescribeWebsiteCertificateAuthorityCommand.ts @@ -32,6 +32,7 @@ export class DescribeWebsiteCertificateAuthorityCommand extends $Command< DescribeWebsiteCertificateAuthorityCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeWebsiteCertificateAuthorityCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DisassociateDomainCommand.ts b/clients/client-worklink/commands/DisassociateDomainCommand.ts index c915b0da64f11..fb62c4b25d777 100644 --- a/clients/client-worklink/commands/DisassociateDomainCommand.ts +++ b/clients/client-worklink/commands/DisassociateDomainCommand.ts @@ -28,6 +28,7 @@ export class DisassociateDomainCommand extends $Command< DisassociateDomainCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateDomainCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DisassociateWebsiteAuthorizationProviderCommand.ts b/clients/client-worklink/commands/DisassociateWebsiteAuthorizationProviderCommand.ts index 5e43e98148b20..f05c436b7c85c 100644 --- a/clients/client-worklink/commands/DisassociateWebsiteAuthorizationProviderCommand.ts +++ b/clients/client-worklink/commands/DisassociateWebsiteAuthorizationProviderCommand.ts @@ -34,6 +34,7 @@ export class DisassociateWebsiteAuthorizationProviderCommand extends $Command< DisassociateWebsiteAuthorizationProviderCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class DisassociateWebsiteAuthorizationProviderCommand extends $Command< DisassociateWebsiteAuthorizationProviderCommandInput, DisassociateWebsiteAuthorizationProviderCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/DisassociateWebsiteCertificateAuthorityCommand.ts b/clients/client-worklink/commands/DisassociateWebsiteCertificateAuthorityCommand.ts index e85325f37cfea..ec12f93e0fdf0 100644 --- a/clients/client-worklink/commands/DisassociateWebsiteCertificateAuthorityCommand.ts +++ b/clients/client-worklink/commands/DisassociateWebsiteCertificateAuthorityCommand.ts @@ -32,6 +32,7 @@ export class DisassociateWebsiteCertificateAuthorityCommand extends $Command< DisassociateWebsiteCertificateAuthorityCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class DisassociateWebsiteCertificateAuthorityCommand extends $Command< DisassociateWebsiteCertificateAuthorityCommandInput, DisassociateWebsiteCertificateAuthorityCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListDevicesCommand.ts b/clients/client-worklink/commands/ListDevicesCommand.ts index 9f336c7d18200..be45d8f6f9643 100644 --- a/clients/client-worklink/commands/ListDevicesCommand.ts +++ b/clients/client-worklink/commands/ListDevicesCommand.ts @@ -28,6 +28,7 @@ export class ListDevicesCommand extends $Command< ListDevicesCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDevicesCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListDomainsCommand.ts b/clients/client-worklink/commands/ListDomainsCommand.ts index ab5cede7babe2..a24ff81ce2707 100644 --- a/clients/client-worklink/commands/ListDomainsCommand.ts +++ b/clients/client-worklink/commands/ListDomainsCommand.ts @@ -28,6 +28,7 @@ export class ListDomainsCommand extends $Command< ListDomainsCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListDomainsCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListFleetsCommand.ts b/clients/client-worklink/commands/ListFleetsCommand.ts index bcdeb71ca7bc3..443b31a48c03c 100644 --- a/clients/client-worklink/commands/ListFleetsCommand.ts +++ b/clients/client-worklink/commands/ListFleetsCommand.ts @@ -28,6 +28,7 @@ export class ListFleetsCommand extends $Command< ListFleetsCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListFleetsCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListTagsForResourceCommand.ts b/clients/client-worklink/commands/ListTagsForResourceCommand.ts index e8b5abe194374..0c9ee60e7faf0 100644 --- a/clients/client-worklink/commands/ListTagsForResourceCommand.ts +++ b/clients/client-worklink/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListWebsiteAuthorizationProvidersCommand.ts b/clients/client-worklink/commands/ListWebsiteAuthorizationProvidersCommand.ts index 0231ac0d71913..b3ca6b76f3917 100644 --- a/clients/client-worklink/commands/ListWebsiteAuthorizationProvidersCommand.ts +++ b/clients/client-worklink/commands/ListWebsiteAuthorizationProvidersCommand.ts @@ -32,6 +32,7 @@ export class ListWebsiteAuthorizationProvidersCommand extends $Command< ListWebsiteAuthorizationProvidersCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ListWebsiteAuthorizationProvidersCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/ListWebsiteCertificateAuthoritiesCommand.ts b/clients/client-worklink/commands/ListWebsiteCertificateAuthoritiesCommand.ts index e7878ea4a521e..1ccaf5f4a0415 100644 --- a/clients/client-worklink/commands/ListWebsiteCertificateAuthoritiesCommand.ts +++ b/clients/client-worklink/commands/ListWebsiteCertificateAuthoritiesCommand.ts @@ -33,6 +33,7 @@ export class ListWebsiteCertificateAuthoritiesCommand extends $Command< ListWebsiteCertificateAuthoritiesCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ListWebsiteCertificateAuthoritiesCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/RestoreDomainAccessCommand.ts b/clients/client-worklink/commands/RestoreDomainAccessCommand.ts index a0db3a6e40721..9dad8ae18f2d6 100644 --- a/clients/client-worklink/commands/RestoreDomainAccessCommand.ts +++ b/clients/client-worklink/commands/RestoreDomainAccessCommand.ts @@ -28,6 +28,7 @@ export class RestoreDomainAccessCommand extends $Command< RestoreDomainAccessCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RestoreDomainAccessCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/RevokeDomainAccessCommand.ts b/clients/client-worklink/commands/RevokeDomainAccessCommand.ts index cede38a2d5f62..4b366c61aaf9a 100644 --- a/clients/client-worklink/commands/RevokeDomainAccessCommand.ts +++ b/clients/client-worklink/commands/RevokeDomainAccessCommand.ts @@ -28,6 +28,7 @@ export class RevokeDomainAccessCommand extends $Command< RevokeDomainAccessCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokeDomainAccessCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/SignOutUserCommand.ts b/clients/client-worklink/commands/SignOutUserCommand.ts index dc4e5a2fe05d1..2f68c77f0170f 100644 --- a/clients/client-worklink/commands/SignOutUserCommand.ts +++ b/clients/client-worklink/commands/SignOutUserCommand.ts @@ -29,6 +29,7 @@ export class SignOutUserCommand extends $Command< SignOutUserCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class SignOutUserCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/TagResourceCommand.ts b/clients/client-worklink/commands/TagResourceCommand.ts index 18b10258c8be0..3f76a71801128 100644 --- a/clients/client-worklink/commands/TagResourceCommand.ts +++ b/clients/client-worklink/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UntagResourceCommand.ts b/clients/client-worklink/commands/UntagResourceCommand.ts index 33e7c3d830c48..264db521b4800 100644 --- a/clients/client-worklink/commands/UntagResourceCommand.ts +++ b/clients/client-worklink/commands/UntagResourceCommand.ts @@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateAuditStreamConfigurationCommand.ts b/clients/client-worklink/commands/UpdateAuditStreamConfigurationCommand.ts index 54d901e6a37a7..fca373584b50c 100644 --- a/clients/client-worklink/commands/UpdateAuditStreamConfigurationCommand.ts +++ b/clients/client-worklink/commands/UpdateAuditStreamConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateAuditStreamConfigurationCommand extends $Command< UpdateAuditStreamConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateAuditStreamConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateCompanyNetworkConfigurationCommand.ts b/clients/client-worklink/commands/UpdateCompanyNetworkConfigurationCommand.ts index d7adc01bb2936..aa797375c995f 100644 --- a/clients/client-worklink/commands/UpdateCompanyNetworkConfigurationCommand.ts +++ b/clients/client-worklink/commands/UpdateCompanyNetworkConfigurationCommand.ts @@ -32,6 +32,7 @@ export class UpdateCompanyNetworkConfigurationCommand extends $Command< UpdateCompanyNetworkConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateCompanyNetworkConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateDevicePolicyConfigurationCommand.ts b/clients/client-worklink/commands/UpdateDevicePolicyConfigurationCommand.ts index 3fb39e81fe5b2..da2f4240cfe45 100644 --- a/clients/client-worklink/commands/UpdateDevicePolicyConfigurationCommand.ts +++ b/clients/client-worklink/commands/UpdateDevicePolicyConfigurationCommand.ts @@ -28,6 +28,7 @@ export class UpdateDevicePolicyConfigurationCommand extends $Command< UpdateDevicePolicyConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDevicePolicyConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateDomainMetadataCommand.ts b/clients/client-worklink/commands/UpdateDomainMetadataCommand.ts index f0127cbbac51a..075afc0143fba 100644 --- a/clients/client-worklink/commands/UpdateDomainMetadataCommand.ts +++ b/clients/client-worklink/commands/UpdateDomainMetadataCommand.ts @@ -28,6 +28,7 @@ export class UpdateDomainMetadataCommand extends $Command< UpdateDomainMetadataCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateDomainMetadataCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateFleetMetadataCommand.ts b/clients/client-worklink/commands/UpdateFleetMetadataCommand.ts index ef6d9ad9b3c9b..a751abfaefffd 100644 --- a/clients/client-worklink/commands/UpdateFleetMetadataCommand.ts +++ b/clients/client-worklink/commands/UpdateFleetMetadataCommand.ts @@ -28,6 +28,7 @@ export class UpdateFleetMetadataCommand extends $Command< UpdateFleetMetadataCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateFleetMetadataCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-worklink/commands/UpdateIdentityProviderConfigurationCommand.ts b/clients/client-worklink/commands/UpdateIdentityProviderConfigurationCommand.ts index 6955403858de3..b6e732d6d834e 100644 --- a/clients/client-worklink/commands/UpdateIdentityProviderConfigurationCommand.ts +++ b/clients/client-worklink/commands/UpdateIdentityProviderConfigurationCommand.ts @@ -32,6 +32,7 @@ export class UpdateIdentityProviderConfigurationCommand extends $Command< UpdateIdentityProviderConfigurationCommandOutput, WorkLinkClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class UpdateIdentityProviderConfigurationCommand extends $Command< configuration: WorkLinkClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/AssociateDelegateToResourceCommand.ts b/clients/client-workmail/commands/AssociateDelegateToResourceCommand.ts index af58984998495..a7f642be0a54a 100644 --- a/clients/client-workmail/commands/AssociateDelegateToResourceCommand.ts +++ b/clients/client-workmail/commands/AssociateDelegateToResourceCommand.ts @@ -28,6 +28,7 @@ export class AssociateDelegateToResourceCommand extends $Command< AssociateDelegateToResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateDelegateToResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/AssociateMemberToGroupCommand.ts b/clients/client-workmail/commands/AssociateMemberToGroupCommand.ts index 35be07168b154..b6b1031d52515 100644 --- a/clients/client-workmail/commands/AssociateMemberToGroupCommand.ts +++ b/clients/client-workmail/commands/AssociateMemberToGroupCommand.ts @@ -28,6 +28,7 @@ export class AssociateMemberToGroupCommand extends $Command< AssociateMemberToGroupCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateMemberToGroupCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/CreateAliasCommand.ts b/clients/client-workmail/commands/CreateAliasCommand.ts index 22cf136af2568..13c9124947565 100644 --- a/clients/client-workmail/commands/CreateAliasCommand.ts +++ b/clients/client-workmail/commands/CreateAliasCommand.ts @@ -28,6 +28,7 @@ export class CreateAliasCommand extends $Command< CreateAliasCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateAliasCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/CreateGroupCommand.ts b/clients/client-workmail/commands/CreateGroupCommand.ts index bbc277f4923cc..d81e38fa7ede7 100644 --- a/clients/client-workmail/commands/CreateGroupCommand.ts +++ b/clients/client-workmail/commands/CreateGroupCommand.ts @@ -29,6 +29,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateGroupCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/CreateResourceCommand.ts b/clients/client-workmail/commands/CreateResourceCommand.ts index 751163cc36dfa..b82c7d4fd797d 100644 --- a/clients/client-workmail/commands/CreateResourceCommand.ts +++ b/clients/client-workmail/commands/CreateResourceCommand.ts @@ -28,6 +28,7 @@ export class CreateResourceCommand extends $Command< CreateResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/CreateUserCommand.ts b/clients/client-workmail/commands/CreateUserCommand.ts index af2cf889a020a..e63497c9bd10c 100644 --- a/clients/client-workmail/commands/CreateUserCommand.ts +++ b/clients/client-workmail/commands/CreateUserCommand.ts @@ -29,6 +29,7 @@ export class CreateUserCommand extends $Command< CreateUserCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateUserCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeleteAliasCommand.ts b/clients/client-workmail/commands/DeleteAliasCommand.ts index 7dc1a06d01386..417f27a65f9df 100644 --- a/clients/client-workmail/commands/DeleteAliasCommand.ts +++ b/clients/client-workmail/commands/DeleteAliasCommand.ts @@ -29,6 +29,7 @@ export class DeleteAliasCommand extends $Command< DeleteAliasCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteAliasCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeleteGroupCommand.ts b/clients/client-workmail/commands/DeleteGroupCommand.ts index ced80f7145573..bd0950c73f211 100644 --- a/clients/client-workmail/commands/DeleteGroupCommand.ts +++ b/clients/client-workmail/commands/DeleteGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGroupCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeleteMailboxPermissionsCommand.ts b/clients/client-workmail/commands/DeleteMailboxPermissionsCommand.ts index e2cdfe54cbbf0..2df0b2f44d54d 100644 --- a/clients/client-workmail/commands/DeleteMailboxPermissionsCommand.ts +++ b/clients/client-workmail/commands/DeleteMailboxPermissionsCommand.ts @@ -28,6 +28,7 @@ export class DeleteMailboxPermissionsCommand extends $Command< DeleteMailboxPermissionsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteMailboxPermissionsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeleteResourceCommand.ts b/clients/client-workmail/commands/DeleteResourceCommand.ts index c5afa74034cfc..560ba505f5b2e 100644 --- a/clients/client-workmail/commands/DeleteResourceCommand.ts +++ b/clients/client-workmail/commands/DeleteResourceCommand.ts @@ -28,6 +28,7 @@ export class DeleteResourceCommand extends $Command< DeleteResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeleteUserCommand.ts b/clients/client-workmail/commands/DeleteUserCommand.ts index c882a142223ac..3c6ef3dd28bac 100644 --- a/clients/client-workmail/commands/DeleteUserCommand.ts +++ b/clients/client-workmail/commands/DeleteUserCommand.ts @@ -32,6 +32,7 @@ export class DeleteUserCommand extends $Command< DeleteUserCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DeleteUserCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DeregisterFromWorkMailCommand.ts b/clients/client-workmail/commands/DeregisterFromWorkMailCommand.ts index d9131d39db39a..5dd606afbe516 100644 --- a/clients/client-workmail/commands/DeregisterFromWorkMailCommand.ts +++ b/clients/client-workmail/commands/DeregisterFromWorkMailCommand.ts @@ -31,6 +31,7 @@ export class DeregisterFromWorkMailCommand extends $Command< DeregisterFromWorkMailCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class DeregisterFromWorkMailCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DescribeGroupCommand.ts b/clients/client-workmail/commands/DescribeGroupCommand.ts index 2423cdbaf8efe..444faca9d333c 100644 --- a/clients/client-workmail/commands/DescribeGroupCommand.ts +++ b/clients/client-workmail/commands/DescribeGroupCommand.ts @@ -28,6 +28,7 @@ export class DescribeGroupCommand extends $Command< DescribeGroupCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeGroupCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DescribeOrganizationCommand.ts b/clients/client-workmail/commands/DescribeOrganizationCommand.ts index d0b9781d31b19..2d3538dce4354 100644 --- a/clients/client-workmail/commands/DescribeOrganizationCommand.ts +++ b/clients/client-workmail/commands/DescribeOrganizationCommand.ts @@ -28,6 +28,7 @@ export class DescribeOrganizationCommand extends $Command< DescribeOrganizationCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeOrganizationCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DescribeResourceCommand.ts b/clients/client-workmail/commands/DescribeResourceCommand.ts index 44001633f5e82..6890b9c59b50a 100644 --- a/clients/client-workmail/commands/DescribeResourceCommand.ts +++ b/clients/client-workmail/commands/DescribeResourceCommand.ts @@ -28,6 +28,7 @@ export class DescribeResourceCommand extends $Command< DescribeResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DescribeUserCommand.ts b/clients/client-workmail/commands/DescribeUserCommand.ts index af3e31c5d3626..e2fe5460266ef 100644 --- a/clients/client-workmail/commands/DescribeUserCommand.ts +++ b/clients/client-workmail/commands/DescribeUserCommand.ts @@ -28,6 +28,7 @@ export class DescribeUserCommand extends $Command< DescribeUserCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeUserCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DisassociateDelegateFromResourceCommand.ts b/clients/client-workmail/commands/DisassociateDelegateFromResourceCommand.ts index a527ff41e087d..445278325d282 100644 --- a/clients/client-workmail/commands/DisassociateDelegateFromResourceCommand.ts +++ b/clients/client-workmail/commands/DisassociateDelegateFromResourceCommand.ts @@ -28,6 +28,7 @@ export class DisassociateDelegateFromResourceCommand extends $Command< DisassociateDelegateFromResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateDelegateFromResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/DisassociateMemberFromGroupCommand.ts b/clients/client-workmail/commands/DisassociateMemberFromGroupCommand.ts index 1acb819ca37be..57f0c96a463f3 100644 --- a/clients/client-workmail/commands/DisassociateMemberFromGroupCommand.ts +++ b/clients/client-workmail/commands/DisassociateMemberFromGroupCommand.ts @@ -28,6 +28,7 @@ export class DisassociateMemberFromGroupCommand extends $Command< DisassociateMemberFromGroupCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateMemberFromGroupCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/GetMailboxDetailsCommand.ts b/clients/client-workmail/commands/GetMailboxDetailsCommand.ts index 69c4a885f7239..826ad0d941c53 100644 --- a/clients/client-workmail/commands/GetMailboxDetailsCommand.ts +++ b/clients/client-workmail/commands/GetMailboxDetailsCommand.ts @@ -28,6 +28,7 @@ export class GetMailboxDetailsCommand extends $Command< GetMailboxDetailsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetMailboxDetailsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListAliasesCommand.ts b/clients/client-workmail/commands/ListAliasesCommand.ts index 9738ef31eafec..fdfe428f88c15 100644 --- a/clients/client-workmail/commands/ListAliasesCommand.ts +++ b/clients/client-workmail/commands/ListAliasesCommand.ts @@ -28,6 +28,7 @@ export class ListAliasesCommand extends $Command< ListAliasesCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListAliasesCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListGroupMembersCommand.ts b/clients/client-workmail/commands/ListGroupMembersCommand.ts index e24ef6dbd564c..a8bd08be00e03 100644 --- a/clients/client-workmail/commands/ListGroupMembersCommand.ts +++ b/clients/client-workmail/commands/ListGroupMembersCommand.ts @@ -29,6 +29,7 @@ export class ListGroupMembersCommand extends $Command< ListGroupMembersCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListGroupMembersCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListGroupsCommand.ts b/clients/client-workmail/commands/ListGroupsCommand.ts index 863d924aa16eb..3bcada2c3445c 100644 --- a/clients/client-workmail/commands/ListGroupsCommand.ts +++ b/clients/client-workmail/commands/ListGroupsCommand.ts @@ -28,6 +28,7 @@ export class ListGroupsCommand extends $Command< ListGroupsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListGroupsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListMailboxPermissionsCommand.ts b/clients/client-workmail/commands/ListMailboxPermissionsCommand.ts index 49d2e98539a98..466f2b8c156d8 100644 --- a/clients/client-workmail/commands/ListMailboxPermissionsCommand.ts +++ b/clients/client-workmail/commands/ListMailboxPermissionsCommand.ts @@ -29,6 +29,7 @@ export class ListMailboxPermissionsCommand extends $Command< ListMailboxPermissionsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListMailboxPermissionsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListOrganizationsCommand.ts b/clients/client-workmail/commands/ListOrganizationsCommand.ts index ad6c1fbb00ef9..4ea9c5616b414 100644 --- a/clients/client-workmail/commands/ListOrganizationsCommand.ts +++ b/clients/client-workmail/commands/ListOrganizationsCommand.ts @@ -28,6 +28,7 @@ export class ListOrganizationsCommand extends $Command< ListOrganizationsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListOrganizationsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListResourceDelegatesCommand.ts b/clients/client-workmail/commands/ListResourceDelegatesCommand.ts index 3990663351331..abf8bb01d8534 100644 --- a/clients/client-workmail/commands/ListResourceDelegatesCommand.ts +++ b/clients/client-workmail/commands/ListResourceDelegatesCommand.ts @@ -29,6 +29,7 @@ export class ListResourceDelegatesCommand extends $Command< ListResourceDelegatesCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ListResourceDelegatesCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListResourcesCommand.ts b/clients/client-workmail/commands/ListResourcesCommand.ts index 78c391ccda9ee..1b3193b45ff2a 100644 --- a/clients/client-workmail/commands/ListResourcesCommand.ts +++ b/clients/client-workmail/commands/ListResourcesCommand.ts @@ -28,6 +28,7 @@ export class ListResourcesCommand extends $Command< ListResourcesCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListResourcesCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ListUsersCommand.ts b/clients/client-workmail/commands/ListUsersCommand.ts index 7862984168851..c09856dbaeca3 100644 --- a/clients/client-workmail/commands/ListUsersCommand.ts +++ b/clients/client-workmail/commands/ListUsersCommand.ts @@ -25,6 +25,7 @@ export class ListUsersCommand extends $Command< ListUsersCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class ListUsersCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/PutMailboxPermissionsCommand.ts b/clients/client-workmail/commands/PutMailboxPermissionsCommand.ts index 33745559b1b75..6186e5b61c3c5 100644 --- a/clients/client-workmail/commands/PutMailboxPermissionsCommand.ts +++ b/clients/client-workmail/commands/PutMailboxPermissionsCommand.ts @@ -29,6 +29,7 @@ export class PutMailboxPermissionsCommand extends $Command< PutMailboxPermissionsCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class PutMailboxPermissionsCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/RegisterToWorkMailCommand.ts b/clients/client-workmail/commands/RegisterToWorkMailCommand.ts index 52d92dea7446b..a0e81ed5b5ba9 100644 --- a/clients/client-workmail/commands/RegisterToWorkMailCommand.ts +++ b/clients/client-workmail/commands/RegisterToWorkMailCommand.ts @@ -34,6 +34,7 @@ export class RegisterToWorkMailCommand extends $Command< RegisterToWorkMailCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class RegisterToWorkMailCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/ResetPasswordCommand.ts b/clients/client-workmail/commands/ResetPasswordCommand.ts index bae65972fd1c0..fe5c8610db4cf 100644 --- a/clients/client-workmail/commands/ResetPasswordCommand.ts +++ b/clients/client-workmail/commands/ResetPasswordCommand.ts @@ -28,6 +28,7 @@ export class ResetPasswordCommand extends $Command< ResetPasswordCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ResetPasswordCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/UpdateMailboxQuotaCommand.ts b/clients/client-workmail/commands/UpdateMailboxQuotaCommand.ts index 5c634201c6889..03d67056bc1d6 100644 --- a/clients/client-workmail/commands/UpdateMailboxQuotaCommand.ts +++ b/clients/client-workmail/commands/UpdateMailboxQuotaCommand.ts @@ -28,6 +28,7 @@ export class UpdateMailboxQuotaCommand extends $Command< UpdateMailboxQuotaCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateMailboxQuotaCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/UpdatePrimaryEmailAddressCommand.ts b/clients/client-workmail/commands/UpdatePrimaryEmailAddressCommand.ts index 61f5631066ca2..3007ddac0e158 100644 --- a/clients/client-workmail/commands/UpdatePrimaryEmailAddressCommand.ts +++ b/clients/client-workmail/commands/UpdatePrimaryEmailAddressCommand.ts @@ -30,6 +30,7 @@ export class UpdatePrimaryEmailAddressCommand extends $Command< UpdatePrimaryEmailAddressCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdatePrimaryEmailAddressCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmail/commands/UpdateResourceCommand.ts b/clients/client-workmail/commands/UpdateResourceCommand.ts index 687fff1993b2d..efc3111619582 100644 --- a/clients/client-workmail/commands/UpdateResourceCommand.ts +++ b/clients/client-workmail/commands/UpdateResourceCommand.ts @@ -30,6 +30,7 @@ export class UpdateResourceCommand extends $Command< UpdateResourceCommandOutput, WorkMailClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class UpdateResourceCommand extends $Command< configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workmailmessageflow/commands/GetRawMessageContentCommand.ts b/clients/client-workmailmessageflow/commands/GetRawMessageContentCommand.ts index 2c78d81b9bab6..dc0ab7005b927 100644 --- a/clients/client-workmailmessageflow/commands/GetRawMessageContentCommand.ts +++ b/clients/client-workmailmessageflow/commands/GetRawMessageContentCommand.ts @@ -32,6 +32,7 @@ export class GetRawMessageContentCommand extends $Command< GetRawMessageContentCommandOutput, WorkMailMessageFlowClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetRawMessageContentCommand extends $Command< configuration: WorkMailMessageFlowClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/AssociateConnectionAliasCommand.ts b/clients/client-workspaces/commands/AssociateConnectionAliasCommand.ts index 1ced913480ae0..56d0eb942ced3 100644 --- a/clients/client-workspaces/commands/AssociateConnectionAliasCommand.ts +++ b/clients/client-workspaces/commands/AssociateConnectionAliasCommand.ts @@ -35,6 +35,7 @@ export class AssociateConnectionAliasCommand extends $Command< AssociateConnectionAliasCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class AssociateConnectionAliasCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/AssociateIpGroupsCommand.ts b/clients/client-workspaces/commands/AssociateIpGroupsCommand.ts index b0071d67d4073..7097f15f0b2d6 100644 --- a/clients/client-workspaces/commands/AssociateIpGroupsCommand.ts +++ b/clients/client-workspaces/commands/AssociateIpGroupsCommand.ts @@ -28,6 +28,7 @@ export class AssociateIpGroupsCommand extends $Command< AssociateIpGroupsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AssociateIpGroupsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/AuthorizeIpRulesCommand.ts b/clients/client-workspaces/commands/AuthorizeIpRulesCommand.ts index 7331dcfa13c00..71849525117ca 100644 --- a/clients/client-workspaces/commands/AuthorizeIpRulesCommand.ts +++ b/clients/client-workspaces/commands/AuthorizeIpRulesCommand.ts @@ -30,6 +30,7 @@ export class AuthorizeIpRulesCommand extends $Command< AuthorizeIpRulesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class AuthorizeIpRulesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/CopyWorkspaceImageCommand.ts b/clients/client-workspaces/commands/CopyWorkspaceImageCommand.ts index 389cb2c516949..38afd9a96efca 100644 --- a/clients/client-workspaces/commands/CopyWorkspaceImageCommand.ts +++ b/clients/client-workspaces/commands/CopyWorkspaceImageCommand.ts @@ -44,6 +44,7 @@ export class CopyWorkspaceImageCommand extends $Command< CopyWorkspaceImageCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class CopyWorkspaceImageCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/CreateConnectionAliasCommand.ts b/clients/client-workspaces/commands/CreateConnectionAliasCommand.ts index 6391d2747e506..69e99e38bdfcd 100644 --- a/clients/client-workspaces/commands/CreateConnectionAliasCommand.ts +++ b/clients/client-workspaces/commands/CreateConnectionAliasCommand.ts @@ -30,6 +30,7 @@ export class CreateConnectionAliasCommand extends $Command< CreateConnectionAliasCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class CreateConnectionAliasCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/CreateIpGroupCommand.ts b/clients/client-workspaces/commands/CreateIpGroupCommand.ts index be4b324e9280c..d1eb766321323 100644 --- a/clients/client-workspaces/commands/CreateIpGroupCommand.ts +++ b/clients/client-workspaces/commands/CreateIpGroupCommand.ts @@ -37,6 +37,7 @@ export class CreateIpGroupCommand extends $Command< CreateIpGroupCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class CreateIpGroupCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/CreateTagsCommand.ts b/clients/client-workspaces/commands/CreateTagsCommand.ts index 342b23113de4e..034517a9e0d71 100644 --- a/clients/client-workspaces/commands/CreateTagsCommand.ts +++ b/clients/client-workspaces/commands/CreateTagsCommand.ts @@ -28,6 +28,7 @@ export class CreateTagsCommand extends $Command< CreateTagsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateTagsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/CreateWorkspacesCommand.ts b/clients/client-workspaces/commands/CreateWorkspacesCommand.ts index 90a5957f1cc03..1a871f8e6f222 100644 --- a/clients/client-workspaces/commands/CreateWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/CreateWorkspacesCommand.ts @@ -29,6 +29,7 @@ export class CreateWorkspacesCommand extends $Command< CreateWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class CreateWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DeleteConnectionAliasCommand.ts b/clients/client-workspaces/commands/DeleteConnectionAliasCommand.ts index 97635de2873d9..cc840de8f25b7 100644 --- a/clients/client-workspaces/commands/DeleteConnectionAliasCommand.ts +++ b/clients/client-workspaces/commands/DeleteConnectionAliasCommand.ts @@ -45,6 +45,7 @@ export class DeleteConnectionAliasCommand extends $Command< DeleteConnectionAliasCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -62,7 +63,10 @@ export class DeleteConnectionAliasCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DeleteIpGroupCommand.ts b/clients/client-workspaces/commands/DeleteIpGroupCommand.ts index 8ca81838bf5f8..5794899751c15 100644 --- a/clients/client-workspaces/commands/DeleteIpGroupCommand.ts +++ b/clients/client-workspaces/commands/DeleteIpGroupCommand.ts @@ -29,6 +29,7 @@ export class DeleteIpGroupCommand extends $Command< DeleteIpGroupCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DeleteIpGroupCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DeleteTagsCommand.ts b/clients/client-workspaces/commands/DeleteTagsCommand.ts index 3ec9a79a5742e..bd5e4a1dca2fa 100644 --- a/clients/client-workspaces/commands/DeleteTagsCommand.ts +++ b/clients/client-workspaces/commands/DeleteTagsCommand.ts @@ -28,6 +28,7 @@ export class DeleteTagsCommand extends $Command< DeleteTagsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteTagsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DeleteWorkspaceImageCommand.ts b/clients/client-workspaces/commands/DeleteWorkspaceImageCommand.ts index 09f50490f0d75..a003a5a92c9e0 100644 --- a/clients/client-workspaces/commands/DeleteWorkspaceImageCommand.ts +++ b/clients/client-workspaces/commands/DeleteWorkspaceImageCommand.ts @@ -30,6 +30,7 @@ export class DeleteWorkspaceImageCommand extends $Command< DeleteWorkspaceImageCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DeleteWorkspaceImageCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DeregisterWorkspaceDirectoryCommand.ts b/clients/client-workspaces/commands/DeregisterWorkspaceDirectoryCommand.ts index 3c22f24830dcb..4d2b359d58924 100644 --- a/clients/client-workspaces/commands/DeregisterWorkspaceDirectoryCommand.ts +++ b/clients/client-workspaces/commands/DeregisterWorkspaceDirectoryCommand.ts @@ -44,6 +44,7 @@ export class DeregisterWorkspaceDirectoryCommand extends $Command< DeregisterWorkspaceDirectoryCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class DeregisterWorkspaceDirectoryCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeAccountCommand.ts b/clients/client-workspaces/commands/DescribeAccountCommand.ts index 114b6c73a6b6a..7df9a662d3f8e 100644 --- a/clients/client-workspaces/commands/DescribeAccountCommand.ts +++ b/clients/client-workspaces/commands/DescribeAccountCommand.ts @@ -29,6 +29,7 @@ export class DescribeAccountCommand extends $Command< DescribeAccountCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAccountCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeAccountModificationsCommand.ts b/clients/client-workspaces/commands/DescribeAccountModificationsCommand.ts index 08a89191c8654..ec9ba66b26c78 100644 --- a/clients/client-workspaces/commands/DescribeAccountModificationsCommand.ts +++ b/clients/client-workspaces/commands/DescribeAccountModificationsCommand.ts @@ -29,6 +29,7 @@ export class DescribeAccountModificationsCommand extends $Command< DescribeAccountModificationsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeAccountModificationsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeClientPropertiesCommand.ts b/clients/client-workspaces/commands/DescribeClientPropertiesCommand.ts index a9fc6b4023dcd..bb4d2dde60a2c 100644 --- a/clients/client-workspaces/commands/DescribeClientPropertiesCommand.ts +++ b/clients/client-workspaces/commands/DescribeClientPropertiesCommand.ts @@ -28,6 +28,7 @@ export class DescribeClientPropertiesCommand extends $Command< DescribeClientPropertiesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeClientPropertiesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeConnectionAliasPermissionsCommand.ts b/clients/client-workspaces/commands/DescribeConnectionAliasPermissionsCommand.ts index 1bc191dbe75d3..06327b8363c67 100644 --- a/clients/client-workspaces/commands/DescribeConnectionAliasPermissionsCommand.ts +++ b/clients/client-workspaces/commands/DescribeConnectionAliasPermissionsCommand.ts @@ -34,6 +34,7 @@ export class DescribeConnectionAliasPermissionsCommand extends $Command< DescribeConnectionAliasPermissionsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class DescribeConnectionAliasPermissionsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeConnectionAliasesCommand.ts b/clients/client-workspaces/commands/DescribeConnectionAliasesCommand.ts index e46b1c97398ec..2314e13776dc1 100644 --- a/clients/client-workspaces/commands/DescribeConnectionAliasesCommand.ts +++ b/clients/client-workspaces/commands/DescribeConnectionAliasesCommand.ts @@ -30,6 +30,7 @@ export class DescribeConnectionAliasesCommand extends $Command< DescribeConnectionAliasesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeConnectionAliasesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeIpGroupsCommand.ts b/clients/client-workspaces/commands/DescribeIpGroupsCommand.ts index 217b2d15c98db..772277515a6fe 100644 --- a/clients/client-workspaces/commands/DescribeIpGroupsCommand.ts +++ b/clients/client-workspaces/commands/DescribeIpGroupsCommand.ts @@ -28,6 +28,7 @@ export class DescribeIpGroupsCommand extends $Command< DescribeIpGroupsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeIpGroupsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeTagsCommand.ts b/clients/client-workspaces/commands/DescribeTagsCommand.ts index b47caf37d4fd7..e330d57005442 100644 --- a/clients/client-workspaces/commands/DescribeTagsCommand.ts +++ b/clients/client-workspaces/commands/DescribeTagsCommand.ts @@ -28,6 +28,7 @@ export class DescribeTagsCommand extends $Command< DescribeTagsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeTagsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspaceBundlesCommand.ts b/clients/client-workspaces/commands/DescribeWorkspaceBundlesCommand.ts index b36e05fcfb75f..3969717268da8 100644 --- a/clients/client-workspaces/commands/DescribeWorkspaceBundlesCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspaceBundlesCommand.ts @@ -29,6 +29,7 @@ export class DescribeWorkspaceBundlesCommand extends $Command< DescribeWorkspaceBundlesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeWorkspaceBundlesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspaceDirectoriesCommand.ts b/clients/client-workspaces/commands/DescribeWorkspaceDirectoriesCommand.ts index 1179e1fb8081f..5abdcd1dc804c 100644 --- a/clients/client-workspaces/commands/DescribeWorkspaceDirectoriesCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspaceDirectoriesCommand.ts @@ -29,6 +29,7 @@ export class DescribeWorkspaceDirectoriesCommand extends $Command< DescribeWorkspaceDirectoriesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeWorkspaceDirectoriesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspaceImagePermissionsCommand.ts b/clients/client-workspaces/commands/DescribeWorkspaceImagePermissionsCommand.ts index 8163bb368d776..87398fe42a0c8 100644 --- a/clients/client-workspaces/commands/DescribeWorkspaceImagePermissionsCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspaceImagePermissionsCommand.ts @@ -29,6 +29,7 @@ export class DescribeWorkspaceImagePermissionsCommand extends $Command< DescribeWorkspaceImagePermissionsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeWorkspaceImagePermissionsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspaceImagesCommand.ts b/clients/client-workspaces/commands/DescribeWorkspaceImagesCommand.ts index 7a065480647f2..641878ad9b74c 100644 --- a/clients/client-workspaces/commands/DescribeWorkspaceImagesCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspaceImagesCommand.ts @@ -29,6 +29,7 @@ export class DescribeWorkspaceImagesCommand extends $Command< DescribeWorkspaceImagesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class DescribeWorkspaceImagesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspaceSnapshotsCommand.ts b/clients/client-workspaces/commands/DescribeWorkspaceSnapshotsCommand.ts index b92a6b5031299..e7eaab17ad87c 100644 --- a/clients/client-workspaces/commands/DescribeWorkspaceSnapshotsCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspaceSnapshotsCommand.ts @@ -28,6 +28,7 @@ export class DescribeWorkspaceSnapshotsCommand extends $Command< DescribeWorkspaceSnapshotsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DescribeWorkspaceSnapshotsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspacesCommand.ts b/clients/client-workspaces/commands/DescribeWorkspacesCommand.ts index f5225c77978a7..76b14af07b0a9 100644 --- a/clients/client-workspaces/commands/DescribeWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspacesCommand.ts @@ -30,6 +30,7 @@ export class DescribeWorkspacesCommand extends $Command< DescribeWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class DescribeWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DescribeWorkspacesConnectionStatusCommand.ts b/clients/client-workspaces/commands/DescribeWorkspacesConnectionStatusCommand.ts index 61cd4772fbe65..368c4a6f3f6c0 100644 --- a/clients/client-workspaces/commands/DescribeWorkspacesConnectionStatusCommand.ts +++ b/clients/client-workspaces/commands/DescribeWorkspacesConnectionStatusCommand.ts @@ -32,6 +32,7 @@ export class DescribeWorkspacesConnectionStatusCommand extends $Command< DescribeWorkspacesConnectionStatusCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class DescribeWorkspacesConnectionStatusCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DisassociateConnectionAliasCommand.ts b/clients/client-workspaces/commands/DisassociateConnectionAliasCommand.ts index 714134b495b9e..ab5ccf9d58fdb 100644 --- a/clients/client-workspaces/commands/DisassociateConnectionAliasCommand.ts +++ b/clients/client-workspaces/commands/DisassociateConnectionAliasCommand.ts @@ -36,6 +36,7 @@ export class DisassociateConnectionAliasCommand extends $Command< DisassociateConnectionAliasCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class DisassociateConnectionAliasCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/DisassociateIpGroupsCommand.ts b/clients/client-workspaces/commands/DisassociateIpGroupsCommand.ts index 82fe5b38ae3f9..c0745a0bcc947 100644 --- a/clients/client-workspaces/commands/DisassociateIpGroupsCommand.ts +++ b/clients/client-workspaces/commands/DisassociateIpGroupsCommand.ts @@ -28,6 +28,7 @@ export class DisassociateIpGroupsCommand extends $Command< DisassociateIpGroupsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DisassociateIpGroupsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ImportWorkspaceImageCommand.ts b/clients/client-workspaces/commands/ImportWorkspaceImageCommand.ts index 3787dadc3f8f3..8de57e842c4fc 100644 --- a/clients/client-workspaces/commands/ImportWorkspaceImageCommand.ts +++ b/clients/client-workspaces/commands/ImportWorkspaceImageCommand.ts @@ -32,6 +32,7 @@ export class ImportWorkspaceImageCommand extends $Command< ImportWorkspaceImageCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ImportWorkspaceImageCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ListAvailableManagementCidrRangesCommand.ts b/clients/client-workspaces/commands/ListAvailableManagementCidrRangesCommand.ts index 8f9992d0e2981..74d915e1e3d73 100644 --- a/clients/client-workspaces/commands/ListAvailableManagementCidrRangesCommand.ts +++ b/clients/client-workspaces/commands/ListAvailableManagementCidrRangesCommand.ts @@ -36,6 +36,7 @@ export class ListAvailableManagementCidrRangesCommand extends $Command< ListAvailableManagementCidrRangesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class ListAvailableManagementCidrRangesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/MigrateWorkspaceCommand.ts b/clients/client-workspaces/commands/MigrateWorkspaceCommand.ts index dd1b134fc1feb..4fc1a8f57c9ff 100644 --- a/clients/client-workspaces/commands/MigrateWorkspaceCommand.ts +++ b/clients/client-workspaces/commands/MigrateWorkspaceCommand.ts @@ -36,6 +36,7 @@ export class MigrateWorkspaceCommand extends $Command< MigrateWorkspaceCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class MigrateWorkspaceCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyAccountCommand.ts b/clients/client-workspaces/commands/ModifyAccountCommand.ts index 1a9ac4b241ba0..5f7d32683fda9 100644 --- a/clients/client-workspaces/commands/ModifyAccountCommand.ts +++ b/clients/client-workspaces/commands/ModifyAccountCommand.ts @@ -29,6 +29,7 @@ export class ModifyAccountCommand extends $Command< ModifyAccountCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifyAccountCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyClientPropertiesCommand.ts b/clients/client-workspaces/commands/ModifyClientPropertiesCommand.ts index 8158d2f44ae1b..d6c5328a92a68 100644 --- a/clients/client-workspaces/commands/ModifyClientPropertiesCommand.ts +++ b/clients/client-workspaces/commands/ModifyClientPropertiesCommand.ts @@ -28,6 +28,7 @@ export class ModifyClientPropertiesCommand extends $Command< ModifyClientPropertiesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyClientPropertiesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifySelfservicePermissionsCommand.ts b/clients/client-workspaces/commands/ModifySelfservicePermissionsCommand.ts index 21146c3e40a59..2162cda7c9bbe 100644 --- a/clients/client-workspaces/commands/ModifySelfservicePermissionsCommand.ts +++ b/clients/client-workspaces/commands/ModifySelfservicePermissionsCommand.ts @@ -29,6 +29,7 @@ export class ModifySelfservicePermissionsCommand extends $Command< ModifySelfservicePermissionsCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class ModifySelfservicePermissionsCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyWorkspaceAccessPropertiesCommand.ts b/clients/client-workspaces/commands/ModifyWorkspaceAccessPropertiesCommand.ts index 3d40bede0848a..9fced971bc771 100644 --- a/clients/client-workspaces/commands/ModifyWorkspaceAccessPropertiesCommand.ts +++ b/clients/client-workspaces/commands/ModifyWorkspaceAccessPropertiesCommand.ts @@ -30,6 +30,7 @@ export class ModifyWorkspaceAccessPropertiesCommand extends $Command< ModifyWorkspaceAccessPropertiesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ModifyWorkspaceAccessPropertiesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyWorkspaceCreationPropertiesCommand.ts b/clients/client-workspaces/commands/ModifyWorkspaceCreationPropertiesCommand.ts index 40dd3670ede67..2f11c9649e611 100644 --- a/clients/client-workspaces/commands/ModifyWorkspaceCreationPropertiesCommand.ts +++ b/clients/client-workspaces/commands/ModifyWorkspaceCreationPropertiesCommand.ts @@ -28,6 +28,7 @@ export class ModifyWorkspaceCreationPropertiesCommand extends $Command< ModifyWorkspaceCreationPropertiesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ModifyWorkspaceCreationPropertiesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyWorkspacePropertiesCommand.ts b/clients/client-workspaces/commands/ModifyWorkspacePropertiesCommand.ts index 43b3d511504fc..8764ccbfeb9ad 100644 --- a/clients/client-workspaces/commands/ModifyWorkspacePropertiesCommand.ts +++ b/clients/client-workspaces/commands/ModifyWorkspacePropertiesCommand.ts @@ -32,6 +32,7 @@ export class ModifyWorkspacePropertiesCommand extends $Command< ModifyWorkspacePropertiesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class ModifyWorkspacePropertiesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/ModifyWorkspaceStateCommand.ts b/clients/client-workspaces/commands/ModifyWorkspaceStateCommand.ts index b8800a416130c..e9929a26cb5d5 100644 --- a/clients/client-workspaces/commands/ModifyWorkspaceStateCommand.ts +++ b/clients/client-workspaces/commands/ModifyWorkspaceStateCommand.ts @@ -33,6 +33,7 @@ export class ModifyWorkspaceStateCommand extends $Command< ModifyWorkspaceStateCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class ModifyWorkspaceStateCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/RebootWorkspacesCommand.ts b/clients/client-workspaces/commands/RebootWorkspacesCommand.ts index 59a98c8a26e5c..de9c0dc310b2c 100644 --- a/clients/client-workspaces/commands/RebootWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/RebootWorkspacesCommand.ts @@ -31,6 +31,7 @@ export class RebootWorkspacesCommand extends $Command< RebootWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class RebootWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/RebuildWorkspacesCommand.ts b/clients/client-workspaces/commands/RebuildWorkspacesCommand.ts index 29d7ae23cefd3..dd2badddb8f19 100644 --- a/clients/client-workspaces/commands/RebuildWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/RebuildWorkspacesCommand.ts @@ -35,6 +35,7 @@ export class RebuildWorkspacesCommand extends $Command< RebuildWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RebuildWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/RegisterWorkspaceDirectoryCommand.ts b/clients/client-workspaces/commands/RegisterWorkspaceDirectoryCommand.ts index 5899c381180e0..879b2e4d10e32 100644 --- a/clients/client-workspaces/commands/RegisterWorkspaceDirectoryCommand.ts +++ b/clients/client-workspaces/commands/RegisterWorkspaceDirectoryCommand.ts @@ -32,6 +32,7 @@ export class RegisterWorkspaceDirectoryCommand extends $Command< RegisterWorkspaceDirectoryCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class RegisterWorkspaceDirectoryCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/RestoreWorkspaceCommand.ts b/clients/client-workspaces/commands/RestoreWorkspaceCommand.ts index 41479bcde1d04..e0d5cdf494221 100644 --- a/clients/client-workspaces/commands/RestoreWorkspaceCommand.ts +++ b/clients/client-workspaces/commands/RestoreWorkspaceCommand.ts @@ -35,6 +35,7 @@ export class RestoreWorkspaceCommand extends $Command< RestoreWorkspaceCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class RestoreWorkspaceCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/RevokeIpRulesCommand.ts b/clients/client-workspaces/commands/RevokeIpRulesCommand.ts index 23ef31e086769..4201a8411140a 100644 --- a/clients/client-workspaces/commands/RevokeIpRulesCommand.ts +++ b/clients/client-workspaces/commands/RevokeIpRulesCommand.ts @@ -28,6 +28,7 @@ export class RevokeIpRulesCommand extends $Command< RevokeIpRulesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RevokeIpRulesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/StartWorkspacesCommand.ts b/clients/client-workspaces/commands/StartWorkspacesCommand.ts index aee972a145808..5fb3e61d9803a 100644 --- a/clients/client-workspaces/commands/StartWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/StartWorkspacesCommand.ts @@ -30,6 +30,7 @@ export class StartWorkspacesCommand extends $Command< StartWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class StartWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/StopWorkspacesCommand.ts b/clients/client-workspaces/commands/StopWorkspacesCommand.ts index 271ade6deeabe..7aeddfbc65324 100644 --- a/clients/client-workspaces/commands/StopWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/StopWorkspacesCommand.ts @@ -31,6 +31,7 @@ export class StopWorkspacesCommand extends $Command< StopWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class StopWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/TerminateWorkspacesCommand.ts b/clients/client-workspaces/commands/TerminateWorkspacesCommand.ts index d0f22eb00feb0..40de0369f6fe7 100644 --- a/clients/client-workspaces/commands/TerminateWorkspacesCommand.ts +++ b/clients/client-workspaces/commands/TerminateWorkspacesCommand.ts @@ -57,6 +57,7 @@ export class TerminateWorkspacesCommand extends $Command< TerminateWorkspacesCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -74,7 +75,10 @@ export class TerminateWorkspacesCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/UpdateConnectionAliasPermissionCommand.ts b/clients/client-workspaces/commands/UpdateConnectionAliasPermissionCommand.ts index 6620cbfb55603..a8bf760d65004 100644 --- a/clients/client-workspaces/commands/UpdateConnectionAliasPermissionCommand.ts +++ b/clients/client-workspaces/commands/UpdateConnectionAliasPermissionCommand.ts @@ -47,6 +47,7 @@ export class UpdateConnectionAliasPermissionCommand extends $Command< UpdateConnectionAliasPermissionCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -64,7 +65,10 @@ export class UpdateConnectionAliasPermissionCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/UpdateRulesOfIpGroupCommand.ts b/clients/client-workspaces/commands/UpdateRulesOfIpGroupCommand.ts index 7874766751731..fa38091545667 100644 --- a/clients/client-workspaces/commands/UpdateRulesOfIpGroupCommand.ts +++ b/clients/client-workspaces/commands/UpdateRulesOfIpGroupCommand.ts @@ -29,6 +29,7 @@ export class UpdateRulesOfIpGroupCommand extends $Command< UpdateRulesOfIpGroupCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UpdateRulesOfIpGroupCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-workspaces/commands/UpdateWorkspaceImagePermissionCommand.ts b/clients/client-workspaces/commands/UpdateWorkspaceImagePermissionCommand.ts index 76733c3261092..069851a1d67e8 100644 --- a/clients/client-workspaces/commands/UpdateWorkspaceImagePermissionCommand.ts +++ b/clients/client-workspaces/commands/UpdateWorkspaceImagePermissionCommand.ts @@ -56,6 +56,7 @@ export class UpdateWorkspaceImagePermissionCommand extends $Command< UpdateWorkspaceImagePermissionCommandOutput, WorkSpacesClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -73,7 +74,10 @@ export class UpdateWorkspaceImagePermissionCommand extends $Command< configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/BatchGetTracesCommand.ts b/clients/client-xray/commands/BatchGetTracesCommand.ts index 1bd9ce534061a..ff992b8b5eeaa 100644 --- a/clients/client-xray/commands/BatchGetTracesCommand.ts +++ b/clients/client-xray/commands/BatchGetTracesCommand.ts @@ -30,6 +30,7 @@ export class BatchGetTracesCommand extends $Command< BatchGetTracesCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class BatchGetTracesCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/CreateGroupCommand.ts b/clients/client-xray/commands/CreateGroupCommand.ts index a5b8e0867a877..5cfebf61dd3f2 100644 --- a/clients/client-xray/commands/CreateGroupCommand.ts +++ b/clients/client-xray/commands/CreateGroupCommand.ts @@ -28,6 +28,7 @@ export class CreateGroupCommand extends $Command< CreateGroupCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class CreateGroupCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/CreateSamplingRuleCommand.ts b/clients/client-xray/commands/CreateSamplingRuleCommand.ts index e57cb365d3ac8..ecf0abaed9ebb 100644 --- a/clients/client-xray/commands/CreateSamplingRuleCommand.ts +++ b/clients/client-xray/commands/CreateSamplingRuleCommand.ts @@ -34,6 +34,7 @@ export class CreateSamplingRuleCommand extends $Command< CreateSamplingRuleCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class CreateSamplingRuleCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/DeleteGroupCommand.ts b/clients/client-xray/commands/DeleteGroupCommand.ts index 33e89beb09c31..7809907d12adf 100644 --- a/clients/client-xray/commands/DeleteGroupCommand.ts +++ b/clients/client-xray/commands/DeleteGroupCommand.ts @@ -28,6 +28,7 @@ export class DeleteGroupCommand extends $Command< DeleteGroupCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteGroupCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/DeleteSamplingRuleCommand.ts b/clients/client-xray/commands/DeleteSamplingRuleCommand.ts index 2d5cb4ca6f656..7ba37da9260d6 100644 --- a/clients/client-xray/commands/DeleteSamplingRuleCommand.ts +++ b/clients/client-xray/commands/DeleteSamplingRuleCommand.ts @@ -28,6 +28,7 @@ export class DeleteSamplingRuleCommand extends $Command< DeleteSamplingRuleCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class DeleteSamplingRuleCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetEncryptionConfigCommand.ts b/clients/client-xray/commands/GetEncryptionConfigCommand.ts index 57b9f941c80eb..041154b6dd350 100644 --- a/clients/client-xray/commands/GetEncryptionConfigCommand.ts +++ b/clients/client-xray/commands/GetEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class GetEncryptionConfigCommand extends $Command< GetEncryptionConfigCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetEncryptionConfigCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetGroupCommand.ts b/clients/client-xray/commands/GetGroupCommand.ts index ec7901db35531..037a31f936494 100644 --- a/clients/client-xray/commands/GetGroupCommand.ts +++ b/clients/client-xray/commands/GetGroupCommand.ts @@ -24,6 +24,7 @@ export type GetGroupCommandOutput = GetGroupResult & __MetadataBearer; *

Retrieves group resource details.

*/ export class GetGroupCommand extends $Command { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class GetGroupCommand 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-xray/commands/GetGroupsCommand.ts b/clients/client-xray/commands/GetGroupsCommand.ts index 38c249bc36987..5c07da12c5026 100644 --- a/clients/client-xray/commands/GetGroupsCommand.ts +++ b/clients/client-xray/commands/GetGroupsCommand.ts @@ -28,6 +28,7 @@ export class GetGroupsCommand extends $Command< GetGroupsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetGroupsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetInsightCommand.ts b/clients/client-xray/commands/GetInsightCommand.ts index fc09d14874777..46abd6638a78b 100644 --- a/clients/client-xray/commands/GetInsightCommand.ts +++ b/clients/client-xray/commands/GetInsightCommand.ts @@ -30,6 +30,7 @@ export class GetInsightCommand extends $Command< GetInsightCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetInsightCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetInsightEventsCommand.ts b/clients/client-xray/commands/GetInsightEventsCommand.ts index a45f2e7222ece..f61121d07c2bc 100644 --- a/clients/client-xray/commands/GetInsightEventsCommand.ts +++ b/clients/client-xray/commands/GetInsightEventsCommand.ts @@ -30,6 +30,7 @@ export class GetInsightEventsCommand extends $Command< GetInsightEventsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class GetInsightEventsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetInsightImpactGraphCommand.ts b/clients/client-xray/commands/GetInsightImpactGraphCommand.ts index 2b9bdc3c4fe2d..dc37fc579e6ea 100644 --- a/clients/client-xray/commands/GetInsightImpactGraphCommand.ts +++ b/clients/client-xray/commands/GetInsightImpactGraphCommand.ts @@ -29,6 +29,7 @@ export class GetInsightImpactGraphCommand extends $Command< GetInsightImpactGraphCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetInsightImpactGraphCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetInsightSummariesCommand.ts b/clients/client-xray/commands/GetInsightSummariesCommand.ts index 3373fa078dc61..3cca20a7c0a00 100644 --- a/clients/client-xray/commands/GetInsightSummariesCommand.ts +++ b/clients/client-xray/commands/GetInsightSummariesCommand.ts @@ -28,6 +28,7 @@ export class GetInsightSummariesCommand extends $Command< GetInsightSummariesCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetInsightSummariesCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetSamplingRulesCommand.ts b/clients/client-xray/commands/GetSamplingRulesCommand.ts index 422455fc21884..98b377c93459e 100644 --- a/clients/client-xray/commands/GetSamplingRulesCommand.ts +++ b/clients/client-xray/commands/GetSamplingRulesCommand.ts @@ -28,6 +28,7 @@ export class GetSamplingRulesCommand extends $Command< GetSamplingRulesCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSamplingRulesCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetSamplingStatisticSummariesCommand.ts b/clients/client-xray/commands/GetSamplingStatisticSummariesCommand.ts index 1154c64eb935b..ddd35344fe18f 100644 --- a/clients/client-xray/commands/GetSamplingStatisticSummariesCommand.ts +++ b/clients/client-xray/commands/GetSamplingStatisticSummariesCommand.ts @@ -28,6 +28,7 @@ export class GetSamplingStatisticSummariesCommand extends $Command< GetSamplingStatisticSummariesCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetSamplingStatisticSummariesCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetSamplingTargetsCommand.ts b/clients/client-xray/commands/GetSamplingTargetsCommand.ts index 99923227af6dd..3f0240a41eff9 100644 --- a/clients/client-xray/commands/GetSamplingTargetsCommand.ts +++ b/clients/client-xray/commands/GetSamplingTargetsCommand.ts @@ -29,6 +29,7 @@ export class GetSamplingTargetsCommand extends $Command< GetSamplingTargetsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetSamplingTargetsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetServiceGraphCommand.ts b/clients/client-xray/commands/GetServiceGraphCommand.ts index d79912a207cca..28e81a7046417 100644 --- a/clients/client-xray/commands/GetServiceGraphCommand.ts +++ b/clients/client-xray/commands/GetServiceGraphCommand.ts @@ -32,6 +32,7 @@ export class GetServiceGraphCommand extends $Command< GetServiceGraphCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GetServiceGraphCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetTimeSeriesServiceStatisticsCommand.ts b/clients/client-xray/commands/GetTimeSeriesServiceStatisticsCommand.ts index d77fab2755ae9..71794aef99670 100644 --- a/clients/client-xray/commands/GetTimeSeriesServiceStatisticsCommand.ts +++ b/clients/client-xray/commands/GetTimeSeriesServiceStatisticsCommand.ts @@ -29,6 +29,7 @@ export class GetTimeSeriesServiceStatisticsCommand extends $Command< GetTimeSeriesServiceStatisticsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class GetTimeSeriesServiceStatisticsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetTraceGraphCommand.ts b/clients/client-xray/commands/GetTraceGraphCommand.ts index 43f29d2689812..eb367b1cd9df0 100644 --- a/clients/client-xray/commands/GetTraceGraphCommand.ts +++ b/clients/client-xray/commands/GetTraceGraphCommand.ts @@ -28,6 +28,7 @@ export class GetTraceGraphCommand extends $Command< GetTraceGraphCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class GetTraceGraphCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/GetTraceSummariesCommand.ts b/clients/client-xray/commands/GetTraceSummariesCommand.ts index 9990279789a93..35498ac85a2c6 100644 --- a/clients/client-xray/commands/GetTraceSummariesCommand.ts +++ b/clients/client-xray/commands/GetTraceSummariesCommand.ts @@ -44,6 +44,7 @@ export class GetTraceSummariesCommand extends $Command< GetTraceSummariesCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -61,7 +62,10 @@ export class GetTraceSummariesCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/ListTagsForResourceCommand.ts b/clients/client-xray/commands/ListTagsForResourceCommand.ts index c3c5b47004eb9..bf24ccb5fd475 100644 --- a/clients/client-xray/commands/ListTagsForResourceCommand.ts +++ b/clients/client-xray/commands/ListTagsForResourceCommand.ts @@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/PutEncryptionConfigCommand.ts b/clients/client-xray/commands/PutEncryptionConfigCommand.ts index 8ce004de048ab..4f2b5f2ac1de1 100644 --- a/clients/client-xray/commands/PutEncryptionConfigCommand.ts +++ b/clients/client-xray/commands/PutEncryptionConfigCommand.ts @@ -28,6 +28,7 @@ export class PutEncryptionConfigCommand extends $Command< PutEncryptionConfigCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutEncryptionConfigCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/PutTelemetryRecordsCommand.ts b/clients/client-xray/commands/PutTelemetryRecordsCommand.ts index d2d034a991af8..be6d996ba6d83 100644 --- a/clients/client-xray/commands/PutTelemetryRecordsCommand.ts +++ b/clients/client-xray/commands/PutTelemetryRecordsCommand.ts @@ -28,6 +28,7 @@ export class PutTelemetryRecordsCommand extends $Command< PutTelemetryRecordsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutTelemetryRecordsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/PutTraceSegmentsCommand.ts b/clients/client-xray/commands/PutTraceSegmentsCommand.ts index 5e3ab2a8ffa84..2b6028ba7d60f 100644 --- a/clients/client-xray/commands/PutTraceSegmentsCommand.ts +++ b/clients/client-xray/commands/PutTraceSegmentsCommand.ts @@ -90,6 +90,7 @@ export class PutTraceSegmentsCommand extends $Command< PutTraceSegmentsCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -107,7 +108,10 @@ export class PutTraceSegmentsCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/TagResourceCommand.ts b/clients/client-xray/commands/TagResourceCommand.ts index af7f72724b039..9c03a911cfa43 100644 --- a/clients/client-xray/commands/TagResourceCommand.ts +++ b/clients/client-xray/commands/TagResourceCommand.ts @@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command< TagResourceCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/UntagResourceCommand.ts b/clients/client-xray/commands/UntagResourceCommand.ts index 28840f31a29c3..e1d3a529f0131 100644 --- a/clients/client-xray/commands/UntagResourceCommand.ts +++ b/clients/client-xray/commands/UntagResourceCommand.ts @@ -29,6 +29,7 @@ export class UntagResourceCommand extends $Command< UntagResourceCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class UntagResourceCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/UpdateGroupCommand.ts b/clients/client-xray/commands/UpdateGroupCommand.ts index 9ded99d3ea7d4..804b530cc046b 100644 --- a/clients/client-xray/commands/UpdateGroupCommand.ts +++ b/clients/client-xray/commands/UpdateGroupCommand.ts @@ -28,6 +28,7 @@ export class UpdateGroupCommand extends $Command< UpdateGroupCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateGroupCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-xray/commands/UpdateSamplingRuleCommand.ts b/clients/client-xray/commands/UpdateSamplingRuleCommand.ts index ac13138e90d2b..0cbd47ce2493e 100644 --- a/clients/client-xray/commands/UpdateSamplingRuleCommand.ts +++ b/clients/client-xray/commands/UpdateSamplingRuleCommand.ts @@ -28,6 +28,7 @@ export class UpdateSamplingRuleCommand extends $Command< UpdateSamplingRuleCommandOutput, XRayClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class UpdateSamplingRuleCommand extends $Command< configuration: XRayClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/EmptyInputAndEmptyOutputCommand.ts b/protocol_tests/aws-ec2/commands/EmptyInputAndEmptyOutputCommand.ts index 6906fafc23597..04186c982c081 100644 --- a/protocol_tests/aws-ec2/commands/EmptyInputAndEmptyOutputCommand.ts +++ b/protocol_tests/aws-ec2/commands/EmptyInputAndEmptyOutputCommand.ts @@ -31,6 +31,7 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< EmptyInputAndEmptyOutputCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/GreetingWithErrorsCommand.ts b/protocol_tests/aws-ec2/commands/GreetingWithErrorsCommand.ts index 3af7582f57499..385489a5b1948 100644 --- a/protocol_tests/aws-ec2/commands/GreetingWithErrorsCommand.ts +++ b/protocol_tests/aws-ec2/commands/GreetingWithErrorsCommand.ts @@ -32,6 +32,7 @@ export class GreetingWithErrorsCommand extends $Command< GreetingWithErrorsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GreetingWithErrorsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/IgnoresWrappingXmlNameCommand.ts b/protocol_tests/aws-ec2/commands/IgnoresWrappingXmlNameCommand.ts index ceeca936c33b2..2034127d377af 100644 --- a/protocol_tests/aws-ec2/commands/IgnoresWrappingXmlNameCommand.ts +++ b/protocol_tests/aws-ec2/commands/IgnoresWrappingXmlNameCommand.ts @@ -30,6 +30,7 @@ export class IgnoresWrappingXmlNameCommand extends $Command< IgnoresWrappingXmlNameCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class IgnoresWrappingXmlNameCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/NestedStructuresCommand.ts b/protocol_tests/aws-ec2/commands/NestedStructuresCommand.ts index ef03687b6f52e..63267fffa39c3 100644 --- a/protocol_tests/aws-ec2/commands/NestedStructuresCommand.ts +++ b/protocol_tests/aws-ec2/commands/NestedStructuresCommand.ts @@ -28,6 +28,7 @@ export class NestedStructuresCommand extends $Command< NestedStructuresCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NestedStructuresCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/NoInputAndOutputCommand.ts b/protocol_tests/aws-ec2/commands/NoInputAndOutputCommand.ts index 0941194464b2a..bab30577aeae4 100644 --- a/protocol_tests/aws-ec2/commands/NoInputAndOutputCommand.ts +++ b/protocol_tests/aws-ec2/commands/NoInputAndOutputCommand.ts @@ -31,6 +31,7 @@ export class NoInputAndOutputCommand extends $Command< NoInputAndOutputCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class NoInputAndOutputCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/QueryIdempotencyTokenAutoFillCommand.ts b/protocol_tests/aws-ec2/commands/QueryIdempotencyTokenAutoFillCommand.ts index c238749b91b32..afbb801f17ba3 100644 --- a/protocol_tests/aws-ec2/commands/QueryIdempotencyTokenAutoFillCommand.ts +++ b/protocol_tests/aws-ec2/commands/QueryIdempotencyTokenAutoFillCommand.ts @@ -28,6 +28,7 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< QueryIdempotencyTokenAutoFillCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/QueryListsCommand.ts b/protocol_tests/aws-ec2/commands/QueryListsCommand.ts index 024004e0b9bf4..a462420830e7c 100644 --- a/protocol_tests/aws-ec2/commands/QueryListsCommand.ts +++ b/protocol_tests/aws-ec2/commands/QueryListsCommand.ts @@ -25,6 +25,7 @@ export class QueryListsCommand extends $Command< QueryListsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class QueryListsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/QueryTimestampsCommand.ts b/protocol_tests/aws-ec2/commands/QueryTimestampsCommand.ts index 86d254e0f8748..ef75eafd93880 100644 --- a/protocol_tests/aws-ec2/commands/QueryTimestampsCommand.ts +++ b/protocol_tests/aws-ec2/commands/QueryTimestampsCommand.ts @@ -29,6 +29,7 @@ export class QueryTimestampsCommand extends $Command< QueryTimestampsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class QueryTimestampsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/RecursiveXmlShapesCommand.ts b/protocol_tests/aws-ec2/commands/RecursiveXmlShapesCommand.ts index 58a5600432d45..8546548fef5c4 100644 --- a/protocol_tests/aws-ec2/commands/RecursiveXmlShapesCommand.ts +++ b/protocol_tests/aws-ec2/commands/RecursiveXmlShapesCommand.ts @@ -28,6 +28,7 @@ export class RecursiveXmlShapesCommand extends $Command< RecursiveXmlShapesCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RecursiveXmlShapesCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/SimpleInputParamsCommand.ts b/protocol_tests/aws-ec2/commands/SimpleInputParamsCommand.ts index de5d295575b1d..6b6adee08a288 100644 --- a/protocol_tests/aws-ec2/commands/SimpleInputParamsCommand.ts +++ b/protocol_tests/aws-ec2/commands/SimpleInputParamsCommand.ts @@ -28,6 +28,7 @@ export class SimpleInputParamsCommand extends $Command< SimpleInputParamsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SimpleInputParamsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/SimpleScalarXmlPropertiesCommand.ts b/protocol_tests/aws-ec2/commands/SimpleScalarXmlPropertiesCommand.ts index 206ce102aa860..b0b9aa3299bf1 100644 --- a/protocol_tests/aws-ec2/commands/SimpleScalarXmlPropertiesCommand.ts +++ b/protocol_tests/aws-ec2/commands/SimpleScalarXmlPropertiesCommand.ts @@ -25,6 +25,7 @@ export class SimpleScalarXmlPropertiesCommand extends $Command< SimpleScalarXmlPropertiesCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class SimpleScalarXmlPropertiesCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlBlobsCommand.ts b/protocol_tests/aws-ec2/commands/XmlBlobsCommand.ts index e17d5899b2441..f379cbcede46e 100644 --- a/protocol_tests/aws-ec2/commands/XmlBlobsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlBlobsCommand.ts @@ -25,6 +25,7 @@ export class XmlBlobsCommand extends $Command< XmlBlobsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlBlobsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlEmptyBlobsCommand.ts b/protocol_tests/aws-ec2/commands/XmlEmptyBlobsCommand.ts index 5a84d216587ca..7a549d47352a8 100644 --- a/protocol_tests/aws-ec2/commands/XmlEmptyBlobsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlEmptyBlobsCommand.ts @@ -22,6 +22,7 @@ export class XmlEmptyBlobsCommand extends $Command< XmlEmptyBlobsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class XmlEmptyBlobsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlEmptyListsCommand.ts b/protocol_tests/aws-ec2/commands/XmlEmptyListsCommand.ts index a0011a53db226..0fd6d20da4bc5 100644 --- a/protocol_tests/aws-ec2/commands/XmlEmptyListsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlEmptyListsCommand.ts @@ -22,6 +22,7 @@ export class XmlEmptyListsCommand extends $Command< XmlEmptyListsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class XmlEmptyListsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlEnumsCommand.ts b/protocol_tests/aws-ec2/commands/XmlEnumsCommand.ts index 0cf6075884ab1..1439111741fa5 100644 --- a/protocol_tests/aws-ec2/commands/XmlEnumsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlEnumsCommand.ts @@ -25,6 +25,7 @@ export class XmlEnumsCommand extends $Command< XmlEnumsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEnumsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlListsCommand.ts b/protocol_tests/aws-ec2/commands/XmlListsCommand.ts index dce594c4fa96d..9faa526193c79 100644 --- a/protocol_tests/aws-ec2/commands/XmlListsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlListsCommand.ts @@ -35,6 +35,7 @@ export class XmlListsCommand extends $Command< XmlListsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class XmlListsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlNamespacesCommand.ts b/protocol_tests/aws-ec2/commands/XmlNamespacesCommand.ts index 1790f70125939..a28066819091b 100644 --- a/protocol_tests/aws-ec2/commands/XmlNamespacesCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlNamespacesCommand.ts @@ -22,6 +22,7 @@ export class XmlNamespacesCommand extends $Command< XmlNamespacesCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class XmlNamespacesCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-ec2/commands/XmlTimestampsCommand.ts b/protocol_tests/aws-ec2/commands/XmlTimestampsCommand.ts index a21b706065ae7..e16f22f377937 100644 --- a/protocol_tests/aws-ec2/commands/XmlTimestampsCommand.ts +++ b/protocol_tests/aws-ec2/commands/XmlTimestampsCommand.ts @@ -27,6 +27,7 @@ export class XmlTimestampsCommand extends $Command< XmlTimestampsCommandOutput, EC2ProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -44,7 +45,10 @@ export class XmlTimestampsCommand extends $Command< configuration: EC2ProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/EmptyOperationCommand.ts b/protocol_tests/aws-json/commands/EmptyOperationCommand.ts index dfef7cc1f0f4f..4cd06cf3a09ff 100644 --- a/protocol_tests/aws-json/commands/EmptyOperationCommand.ts +++ b/protocol_tests/aws-json/commands/EmptyOperationCommand.ts @@ -24,6 +24,7 @@ export class EmptyOperationCommand extends $Command< EmptyOperationCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -41,7 +42,10 @@ export class EmptyOperationCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/GreetingWithErrorsCommand.ts b/protocol_tests/aws-json/commands/GreetingWithErrorsCommand.ts index 05b7833b06ccb..999858386c3b1 100644 --- a/protocol_tests/aws-json/commands/GreetingWithErrorsCommand.ts +++ b/protocol_tests/aws-json/commands/GreetingWithErrorsCommand.ts @@ -35,6 +35,7 @@ export class GreetingWithErrorsCommand extends $Command< GreetingWithErrorsCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class GreetingWithErrorsCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/JsonEnumsCommand.ts b/protocol_tests/aws-json/commands/JsonEnumsCommand.ts index 9c22295f5600c..cf1924dbe6cbe 100644 --- a/protocol_tests/aws-json/commands/JsonEnumsCommand.ts +++ b/protocol_tests/aws-json/commands/JsonEnumsCommand.ts @@ -25,6 +25,7 @@ export class JsonEnumsCommand extends $Command< JsonEnumsCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class JsonEnumsCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/JsonUnionsCommand.ts b/protocol_tests/aws-json/commands/JsonUnionsCommand.ts index 2acf1559b4fc9..169d30f6a9b3d 100644 --- a/protocol_tests/aws-json/commands/JsonUnionsCommand.ts +++ b/protocol_tests/aws-json/commands/JsonUnionsCommand.ts @@ -28,6 +28,7 @@ export class JsonUnionsCommand extends $Command< JsonUnionsCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class JsonUnionsCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/KitchenSinkOperationCommand.ts b/protocol_tests/aws-json/commands/KitchenSinkOperationCommand.ts index ceda47d5e70ad..0c4375e8a2ac6 100644 --- a/protocol_tests/aws-json/commands/KitchenSinkOperationCommand.ts +++ b/protocol_tests/aws-json/commands/KitchenSinkOperationCommand.ts @@ -25,6 +25,7 @@ export class KitchenSinkOperationCommand extends $Command< KitchenSinkOperationCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class KitchenSinkOperationCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/NullOperationCommand.ts b/protocol_tests/aws-json/commands/NullOperationCommand.ts index 98e5421ed2739..e1f10e237cbcd 100644 --- a/protocol_tests/aws-json/commands/NullOperationCommand.ts +++ b/protocol_tests/aws-json/commands/NullOperationCommand.ts @@ -25,6 +25,7 @@ export class NullOperationCommand extends $Command< NullOperationCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class NullOperationCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/OperationWithOptionalInputOutputCommand.ts b/protocol_tests/aws-json/commands/OperationWithOptionalInputOutputCommand.ts index 2c3f5b4ba5f3e..0b4fe04c8c162 100644 --- a/protocol_tests/aws-json/commands/OperationWithOptionalInputOutputCommand.ts +++ b/protocol_tests/aws-json/commands/OperationWithOptionalInputOutputCommand.ts @@ -25,6 +25,7 @@ export class OperationWithOptionalInputOutputCommand extends $Command< OperationWithOptionalInputOutputCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class OperationWithOptionalInputOutputCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-json/commands/PutAndGetInlineDocumentsCommand.ts b/protocol_tests/aws-json/commands/PutAndGetInlineDocumentsCommand.ts index 3a3e1cd1e41ff..8c8d2cdd59d37 100644 --- a/protocol_tests/aws-json/commands/PutAndGetInlineDocumentsCommand.ts +++ b/protocol_tests/aws-json/commands/PutAndGetInlineDocumentsCommand.ts @@ -28,6 +28,7 @@ export class PutAndGetInlineDocumentsCommand extends $Command< PutAndGetInlineDocumentsCommandOutput, JsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class PutAndGetInlineDocumentsCommand extends $Command< configuration: JsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/EmptyInputAndEmptyOutputCommand.ts b/protocol_tests/aws-query/commands/EmptyInputAndEmptyOutputCommand.ts index 4bd276401bf19..adec4f3630bfa 100644 --- a/protocol_tests/aws-query/commands/EmptyInputAndEmptyOutputCommand.ts +++ b/protocol_tests/aws-query/commands/EmptyInputAndEmptyOutputCommand.ts @@ -31,6 +31,7 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< EmptyInputAndEmptyOutputCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/FlattenedXmlMapCommand.ts b/protocol_tests/aws-query/commands/FlattenedXmlMapCommand.ts index d0f99318f5027..0c065a75c18fb 100644 --- a/protocol_tests/aws-query/commands/FlattenedXmlMapCommand.ts +++ b/protocol_tests/aws-query/commands/FlattenedXmlMapCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapCommand extends $Command< FlattenedXmlMapCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNameCommand.ts b/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNameCommand.ts index 125862fc7cdb3..e937ca428b082 100644 --- a/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNameCommand.ts +++ b/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNameCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapWithXmlNameCommand extends $Command< FlattenedXmlMapWithXmlNameCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapWithXmlNameCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts b/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts index b2e323a11be2d..61bb5a3907ea5 100644 --- a/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts +++ b/protocol_tests/aws-query/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapWithXmlNamespaceCommand extends $Command< FlattenedXmlMapWithXmlNamespaceCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapWithXmlNamespaceCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/GreetingWithErrorsCommand.ts b/protocol_tests/aws-query/commands/GreetingWithErrorsCommand.ts index d17b62e50f4f2..166810b3198fe 100644 --- a/protocol_tests/aws-query/commands/GreetingWithErrorsCommand.ts +++ b/protocol_tests/aws-query/commands/GreetingWithErrorsCommand.ts @@ -32,6 +32,7 @@ export class GreetingWithErrorsCommand extends $Command< GreetingWithErrorsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class GreetingWithErrorsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/IgnoresWrappingXmlNameCommand.ts b/protocol_tests/aws-query/commands/IgnoresWrappingXmlNameCommand.ts index 45a8ac8b44c18..979c848f7c3a9 100644 --- a/protocol_tests/aws-query/commands/IgnoresWrappingXmlNameCommand.ts +++ b/protocol_tests/aws-query/commands/IgnoresWrappingXmlNameCommand.ts @@ -31,6 +31,7 @@ export class IgnoresWrappingXmlNameCommand extends $Command< IgnoresWrappingXmlNameCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class IgnoresWrappingXmlNameCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/NestedStructuresCommand.ts b/protocol_tests/aws-query/commands/NestedStructuresCommand.ts index 5a312c11b77b1..8ae2106cd48d7 100644 --- a/protocol_tests/aws-query/commands/NestedStructuresCommand.ts +++ b/protocol_tests/aws-query/commands/NestedStructuresCommand.ts @@ -28,6 +28,7 @@ export class NestedStructuresCommand extends $Command< NestedStructuresCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NestedStructuresCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/NoInputAndNoOutputCommand.ts b/protocol_tests/aws-query/commands/NoInputAndNoOutputCommand.ts index 9a4de5d082907..13fb7ddecc814 100644 --- a/protocol_tests/aws-query/commands/NoInputAndNoOutputCommand.ts +++ b/protocol_tests/aws-query/commands/NoInputAndNoOutputCommand.ts @@ -30,6 +30,7 @@ export class NoInputAndNoOutputCommand extends $Command< NoInputAndNoOutputCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class NoInputAndNoOutputCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/NoInputAndOutputCommand.ts b/protocol_tests/aws-query/commands/NoInputAndOutputCommand.ts index 713a3255162af..f0f88ce473446 100644 --- a/protocol_tests/aws-query/commands/NoInputAndOutputCommand.ts +++ b/protocol_tests/aws-query/commands/NoInputAndOutputCommand.ts @@ -31,6 +31,7 @@ export class NoInputAndOutputCommand extends $Command< NoInputAndOutputCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class NoInputAndOutputCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/QueryIdempotencyTokenAutoFillCommand.ts b/protocol_tests/aws-query/commands/QueryIdempotencyTokenAutoFillCommand.ts index 07626023074b0..4498a3562ad08 100644 --- a/protocol_tests/aws-query/commands/QueryIdempotencyTokenAutoFillCommand.ts +++ b/protocol_tests/aws-query/commands/QueryIdempotencyTokenAutoFillCommand.ts @@ -28,6 +28,7 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< QueryIdempotencyTokenAutoFillCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/QueryListsCommand.ts b/protocol_tests/aws-query/commands/QueryListsCommand.ts index 812e5f8c70e95..bbb57376e0790 100644 --- a/protocol_tests/aws-query/commands/QueryListsCommand.ts +++ b/protocol_tests/aws-query/commands/QueryListsCommand.ts @@ -25,6 +25,7 @@ export class QueryListsCommand extends $Command< QueryListsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class QueryListsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/QueryMapsCommand.ts b/protocol_tests/aws-query/commands/QueryMapsCommand.ts index 2b256be0c7129..a0a517c1c92c3 100644 --- a/protocol_tests/aws-query/commands/QueryMapsCommand.ts +++ b/protocol_tests/aws-query/commands/QueryMapsCommand.ts @@ -25,6 +25,7 @@ export class QueryMapsCommand extends $Command< QueryMapsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class QueryMapsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/QueryTimestampsCommand.ts b/protocol_tests/aws-query/commands/QueryTimestampsCommand.ts index 415b6cb6924fd..80315467f066d 100644 --- a/protocol_tests/aws-query/commands/QueryTimestampsCommand.ts +++ b/protocol_tests/aws-query/commands/QueryTimestampsCommand.ts @@ -32,6 +32,7 @@ export class QueryTimestampsCommand extends $Command< QueryTimestampsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class QueryTimestampsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/RecursiveXmlShapesCommand.ts b/protocol_tests/aws-query/commands/RecursiveXmlShapesCommand.ts index c37f043c31e7f..07ec52568dd22 100644 --- a/protocol_tests/aws-query/commands/RecursiveXmlShapesCommand.ts +++ b/protocol_tests/aws-query/commands/RecursiveXmlShapesCommand.ts @@ -28,6 +28,7 @@ export class RecursiveXmlShapesCommand extends $Command< RecursiveXmlShapesCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RecursiveXmlShapesCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/SimpleInputParamsCommand.ts b/protocol_tests/aws-query/commands/SimpleInputParamsCommand.ts index 3ae6cd8569e83..c63ab798f7fa3 100644 --- a/protocol_tests/aws-query/commands/SimpleInputParamsCommand.ts +++ b/protocol_tests/aws-query/commands/SimpleInputParamsCommand.ts @@ -28,6 +28,7 @@ export class SimpleInputParamsCommand extends $Command< SimpleInputParamsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class SimpleInputParamsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/SimpleScalarXmlPropertiesCommand.ts b/protocol_tests/aws-query/commands/SimpleScalarXmlPropertiesCommand.ts index 7247aa7f0a73a..30baffd73d39d 100644 --- a/protocol_tests/aws-query/commands/SimpleScalarXmlPropertiesCommand.ts +++ b/protocol_tests/aws-query/commands/SimpleScalarXmlPropertiesCommand.ts @@ -25,6 +25,7 @@ export class SimpleScalarXmlPropertiesCommand extends $Command< SimpleScalarXmlPropertiesCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class SimpleScalarXmlPropertiesCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlBlobsCommand.ts b/protocol_tests/aws-query/commands/XmlBlobsCommand.ts index 1ab93f68b4372..4a9b412d24017 100644 --- a/protocol_tests/aws-query/commands/XmlBlobsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlBlobsCommand.ts @@ -25,6 +25,7 @@ export class XmlBlobsCommand extends $Command< XmlBlobsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlBlobsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlEmptyBlobsCommand.ts b/protocol_tests/aws-query/commands/XmlEmptyBlobsCommand.ts index 4997674963095..663e68617d227 100644 --- a/protocol_tests/aws-query/commands/XmlEmptyBlobsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlEmptyBlobsCommand.ts @@ -25,6 +25,7 @@ export class XmlEmptyBlobsCommand extends $Command< XmlEmptyBlobsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEmptyBlobsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlEmptyListsCommand.ts b/protocol_tests/aws-query/commands/XmlEmptyListsCommand.ts index 71ed62f43e514..d364beff1dfbc 100644 --- a/protocol_tests/aws-query/commands/XmlEmptyListsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlEmptyListsCommand.ts @@ -25,6 +25,7 @@ export class XmlEmptyListsCommand extends $Command< XmlEmptyListsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEmptyListsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlEmptyMapsCommand.ts b/protocol_tests/aws-query/commands/XmlEmptyMapsCommand.ts index 35a9f842e765d..0b8f88f50b4ee 100644 --- a/protocol_tests/aws-query/commands/XmlEmptyMapsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlEmptyMapsCommand.ts @@ -22,6 +22,7 @@ export class XmlEmptyMapsCommand extends $Command< XmlEmptyMapsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -39,7 +40,10 @@ export class XmlEmptyMapsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlEnumsCommand.ts b/protocol_tests/aws-query/commands/XmlEnumsCommand.ts index ee53c8487408a..fea537e507818 100644 --- a/protocol_tests/aws-query/commands/XmlEnumsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlEnumsCommand.ts @@ -25,6 +25,7 @@ export class XmlEnumsCommand extends $Command< XmlEnumsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEnumsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlListsCommand.ts b/protocol_tests/aws-query/commands/XmlListsCommand.ts index 2916ad6e2ceb5..ad46cc7eb7549 100644 --- a/protocol_tests/aws-query/commands/XmlListsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlListsCommand.ts @@ -34,6 +34,7 @@ export class XmlListsCommand extends $Command< XmlListsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class XmlListsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlMapsCommand.ts b/protocol_tests/aws-query/commands/XmlMapsCommand.ts index 1f3b1d7f8322c..90ec82d745c63 100644 --- a/protocol_tests/aws-query/commands/XmlMapsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlMapsCommand.ts @@ -25,6 +25,7 @@ export class XmlMapsCommand extends $Command< XmlMapsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlMapsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlMapsXmlNameCommand.ts b/protocol_tests/aws-query/commands/XmlMapsXmlNameCommand.ts index 00921a2907b39..398b4d210e6c7 100644 --- a/protocol_tests/aws-query/commands/XmlMapsXmlNameCommand.ts +++ b/protocol_tests/aws-query/commands/XmlMapsXmlNameCommand.ts @@ -25,6 +25,7 @@ export class XmlMapsXmlNameCommand extends $Command< XmlMapsXmlNameCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlMapsXmlNameCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlNamespacesCommand.ts b/protocol_tests/aws-query/commands/XmlNamespacesCommand.ts index 668b778d02b64..281d5ee6b732e 100644 --- a/protocol_tests/aws-query/commands/XmlNamespacesCommand.ts +++ b/protocol_tests/aws-query/commands/XmlNamespacesCommand.ts @@ -25,6 +25,7 @@ export class XmlNamespacesCommand extends $Command< XmlNamespacesCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlNamespacesCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-query/commands/XmlTimestampsCommand.ts b/protocol_tests/aws-query/commands/XmlTimestampsCommand.ts index d9d86b6194a5f..fd3d0904d46cd 100644 --- a/protocol_tests/aws-query/commands/XmlTimestampsCommand.ts +++ b/protocol_tests/aws-query/commands/XmlTimestampsCommand.ts @@ -30,6 +30,7 @@ export class XmlTimestampsCommand extends $Command< XmlTimestampsCommandOutput, QueryProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class XmlTimestampsCommand extends $Command< configuration: QueryProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/AllQueryStringTypesCommand.ts b/protocol_tests/aws-restjson/commands/AllQueryStringTypesCommand.ts index 7fb98a30b8e9c..5b44386aabcbd 100644 --- a/protocol_tests/aws-restjson/commands/AllQueryStringTypesCommand.ts +++ b/protocol_tests/aws-restjson/commands/AllQueryStringTypesCommand.ts @@ -28,6 +28,7 @@ export class AllQueryStringTypesCommand extends $Command< AllQueryStringTypesCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AllQueryStringTypesCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/ConstantAndVariableQueryStringCommand.ts b/protocol_tests/aws-restjson/commands/ConstantAndVariableQueryStringCommand.ts index b2dc086dfaef2..801caeed3ba02 100644 --- a/protocol_tests/aws-restjson/commands/ConstantAndVariableQueryStringCommand.ts +++ b/protocol_tests/aws-restjson/commands/ConstantAndVariableQueryStringCommand.ts @@ -30,6 +30,7 @@ export class ConstantAndVariableQueryStringCommand extends $Command< ConstantAndVariableQueryStringCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConstantAndVariableQueryStringCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/ConstantQueryStringCommand.ts b/protocol_tests/aws-restjson/commands/ConstantQueryStringCommand.ts index 3fa141d9db1ad..be34cad8e5817 100644 --- a/protocol_tests/aws-restjson/commands/ConstantQueryStringCommand.ts +++ b/protocol_tests/aws-restjson/commands/ConstantQueryStringCommand.ts @@ -31,6 +31,7 @@ export class ConstantQueryStringCommand extends $Command< ConstantQueryStringCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ConstantQueryStringCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/EmptyInputAndEmptyOutputCommand.ts b/protocol_tests/aws-restjson/commands/EmptyInputAndEmptyOutputCommand.ts index aa418e5b17c71..c60898004eeb7 100644 --- a/protocol_tests/aws-restjson/commands/EmptyInputAndEmptyOutputCommand.ts +++ b/protocol_tests/aws-restjson/commands/EmptyInputAndEmptyOutputCommand.ts @@ -31,6 +31,7 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< EmptyInputAndEmptyOutputCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/GreetingWithErrorsCommand.ts b/protocol_tests/aws-restjson/commands/GreetingWithErrorsCommand.ts index d258c9676a10c..b7b64c6f70ed3 100644 --- a/protocol_tests/aws-restjson/commands/GreetingWithErrorsCommand.ts +++ b/protocol_tests/aws-restjson/commands/GreetingWithErrorsCommand.ts @@ -37,6 +37,7 @@ export class GreetingWithErrorsCommand extends $Command< GreetingWithErrorsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -54,7 +55,10 @@ export class GreetingWithErrorsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpPayloadTraitsCommand.ts b/protocol_tests/aws-restjson/commands/HttpPayloadTraitsCommand.ts index 67ab1ed0b78e4..92adfe68fd4fa 100644 --- a/protocol_tests/aws-restjson/commands/HttpPayloadTraitsCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpPayloadTraitsCommand.ts @@ -31,6 +31,7 @@ export class HttpPayloadTraitsCommand extends $Command< HttpPayloadTraitsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class HttpPayloadTraitsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpPayloadTraitsWithMediaTypeCommand.ts b/protocol_tests/aws-restjson/commands/HttpPayloadTraitsWithMediaTypeCommand.ts index 3767be82e11e6..1bb3e6c2b0094 100644 --- a/protocol_tests/aws-restjson/commands/HttpPayloadTraitsWithMediaTypeCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpPayloadTraitsWithMediaTypeCommand.ts @@ -29,6 +29,7 @@ export class HttpPayloadTraitsWithMediaTypeCommand extends $Command< HttpPayloadTraitsWithMediaTypeCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpPayloadTraitsWithMediaTypeCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpPayloadWithStructureCommand.ts b/protocol_tests/aws-restjson/commands/HttpPayloadWithStructureCommand.ts index 415e9bd853571..651878d1849af 100644 --- a/protocol_tests/aws-restjson/commands/HttpPayloadWithStructureCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpPayloadWithStructureCommand.ts @@ -31,6 +31,7 @@ export class HttpPayloadWithStructureCommand extends $Command< HttpPayloadWithStructureCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class HttpPayloadWithStructureCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpPrefixHeadersCommand.ts b/protocol_tests/aws-restjson/commands/HttpPrefixHeadersCommand.ts index 18beeab44e126..2bf3eac3f2f3a 100644 --- a/protocol_tests/aws-restjson/commands/HttpPrefixHeadersCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpPrefixHeadersCommand.ts @@ -28,6 +28,7 @@ export class HttpPrefixHeadersCommand extends $Command< HttpPrefixHeadersCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class HttpPrefixHeadersCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpPrefixHeadersResponseCommand.ts b/protocol_tests/aws-restjson/commands/HttpPrefixHeadersResponseCommand.ts index 6c47fa3c5e557..d2f4849302b1b 100644 --- a/protocol_tests/aws-restjson/commands/HttpPrefixHeadersResponseCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpPrefixHeadersResponseCommand.ts @@ -28,6 +28,7 @@ export class HttpPrefixHeadersResponseCommand extends $Command< HttpPrefixHeadersResponseCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class HttpPrefixHeadersResponseCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpRequestWithGreedyLabelInPathCommand.ts b/protocol_tests/aws-restjson/commands/HttpRequestWithGreedyLabelInPathCommand.ts index 72943f06ce67f..49a191e3d0bfc 100644 --- a/protocol_tests/aws-restjson/commands/HttpRequestWithGreedyLabelInPathCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpRequestWithGreedyLabelInPathCommand.ts @@ -25,6 +25,7 @@ export class HttpRequestWithGreedyLabelInPathCommand extends $Command< HttpRequestWithGreedyLabelInPathCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class HttpRequestWithGreedyLabelInPathCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts b/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts index 1307ac6e9570e..183e1ee9b12a6 100644 --- a/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts @@ -29,6 +29,7 @@ export class HttpRequestWithLabelsAndTimestampFormatCommand extends $Command< HttpRequestWithLabelsAndTimestampFormatCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class HttpRequestWithLabelsAndTimestampFormatCommand extends $Command< HttpRequestWithLabelsAndTimestampFormatCommandInput, HttpRequestWithLabelsAndTimestampFormatCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsCommand.ts b/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsCommand.ts index 90f7c8a3aedca..a6a3ef171faff 100644 --- a/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpRequestWithLabelsCommand.ts @@ -29,6 +29,7 @@ export class HttpRequestWithLabelsCommand extends $Command< HttpRequestWithLabelsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpRequestWithLabelsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/HttpResponseCodeCommand.ts b/protocol_tests/aws-restjson/commands/HttpResponseCodeCommand.ts index d00d4a2698974..87a030cf1d492 100644 --- a/protocol_tests/aws-restjson/commands/HttpResponseCodeCommand.ts +++ b/protocol_tests/aws-restjson/commands/HttpResponseCodeCommand.ts @@ -25,6 +25,7 @@ export class HttpResponseCodeCommand extends $Command< HttpResponseCodeCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class HttpResponseCodeCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/IgnoreQueryParamsInResponseCommand.ts b/protocol_tests/aws-restjson/commands/IgnoreQueryParamsInResponseCommand.ts index 48f5d8c0988bc..fdffc051ee13c 100644 --- a/protocol_tests/aws-restjson/commands/IgnoreQueryParamsInResponseCommand.ts +++ b/protocol_tests/aws-restjson/commands/IgnoreQueryParamsInResponseCommand.ts @@ -30,6 +30,7 @@ export class IgnoreQueryParamsInResponseCommand extends $Command< IgnoreQueryParamsInResponseCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class IgnoreQueryParamsInResponseCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/InlineDocumentAsPayloadCommand.ts b/protocol_tests/aws-restjson/commands/InlineDocumentAsPayloadCommand.ts index 941e56e54d536..c6101571dad35 100644 --- a/protocol_tests/aws-restjson/commands/InlineDocumentAsPayloadCommand.ts +++ b/protocol_tests/aws-restjson/commands/InlineDocumentAsPayloadCommand.ts @@ -28,6 +28,7 @@ export class InlineDocumentAsPayloadCommand extends $Command< InlineDocumentAsPayloadCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class InlineDocumentAsPayloadCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/InlineDocumentCommand.ts b/protocol_tests/aws-restjson/commands/InlineDocumentCommand.ts index 686b04bc27645..2d32b1edbd421 100644 --- a/protocol_tests/aws-restjson/commands/InlineDocumentCommand.ts +++ b/protocol_tests/aws-restjson/commands/InlineDocumentCommand.ts @@ -28,6 +28,7 @@ export class InlineDocumentCommand extends $Command< InlineDocumentCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class InlineDocumentCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/InputAndOutputWithHeadersCommand.ts b/protocol_tests/aws-restjson/commands/InputAndOutputWithHeadersCommand.ts index 5eb87a65d6bc3..930918a9201a4 100644 --- a/protocol_tests/aws-restjson/commands/InputAndOutputWithHeadersCommand.ts +++ b/protocol_tests/aws-restjson/commands/InputAndOutputWithHeadersCommand.ts @@ -29,6 +29,7 @@ export class InputAndOutputWithHeadersCommand extends $Command< InputAndOutputWithHeadersCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class InputAndOutputWithHeadersCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonBlobsCommand.ts b/protocol_tests/aws-restjson/commands/JsonBlobsCommand.ts index d1e9c6cb4e4de..fe5e48d37f169 100644 --- a/protocol_tests/aws-restjson/commands/JsonBlobsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonBlobsCommand.ts @@ -28,6 +28,7 @@ export class JsonBlobsCommand extends $Command< JsonBlobsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class JsonBlobsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonEnumsCommand.ts b/protocol_tests/aws-restjson/commands/JsonEnumsCommand.ts index 194845b9ab459..a275648f9219d 100644 --- a/protocol_tests/aws-restjson/commands/JsonEnumsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonEnumsCommand.ts @@ -28,6 +28,7 @@ export class JsonEnumsCommand extends $Command< JsonEnumsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class JsonEnumsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonListsCommand.ts b/protocol_tests/aws-restjson/commands/JsonListsCommand.ts index 23dc9e3d05be9..01c6df814a518 100644 --- a/protocol_tests/aws-restjson/commands/JsonListsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonListsCommand.ts @@ -34,6 +34,7 @@ export class JsonListsCommand extends $Command< JsonListsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class JsonListsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonMapsCommand.ts b/protocol_tests/aws-restjson/commands/JsonMapsCommand.ts index 4a7fc268d67df..e06483608a32d 100644 --- a/protocol_tests/aws-restjson/commands/JsonMapsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonMapsCommand.ts @@ -28,6 +28,7 @@ export class JsonMapsCommand extends $Command< JsonMapsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class JsonMapsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonTimestampsCommand.ts b/protocol_tests/aws-restjson/commands/JsonTimestampsCommand.ts index 2e92f61a58e0e..7e3abccfd9aac 100644 --- a/protocol_tests/aws-restjson/commands/JsonTimestampsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonTimestampsCommand.ts @@ -30,6 +30,7 @@ export class JsonTimestampsCommand extends $Command< JsonTimestampsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class JsonTimestampsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/JsonUnionsCommand.ts b/protocol_tests/aws-restjson/commands/JsonUnionsCommand.ts index accfaa6d7ef30..7baad0effa85b 100644 --- a/protocol_tests/aws-restjson/commands/JsonUnionsCommand.ts +++ b/protocol_tests/aws-restjson/commands/JsonUnionsCommand.ts @@ -28,6 +28,7 @@ export class JsonUnionsCommand extends $Command< JsonUnionsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class JsonUnionsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/MediaTypeHeaderCommand.ts b/protocol_tests/aws-restjson/commands/MediaTypeHeaderCommand.ts index 2a1f038b357b2..7769ecc502aaf 100644 --- a/protocol_tests/aws-restjson/commands/MediaTypeHeaderCommand.ts +++ b/protocol_tests/aws-restjson/commands/MediaTypeHeaderCommand.ts @@ -28,6 +28,7 @@ export class MediaTypeHeaderCommand extends $Command< MediaTypeHeaderCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class MediaTypeHeaderCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/NoInputAndNoOutputCommand.ts b/protocol_tests/aws-restjson/commands/NoInputAndNoOutputCommand.ts index eba2fb8569123..38db197f68dcb 100644 --- a/protocol_tests/aws-restjson/commands/NoInputAndNoOutputCommand.ts +++ b/protocol_tests/aws-restjson/commands/NoInputAndNoOutputCommand.ts @@ -29,6 +29,7 @@ export class NoInputAndNoOutputCommand extends $Command< NoInputAndNoOutputCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class NoInputAndNoOutputCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/NoInputAndOutputCommand.ts b/protocol_tests/aws-restjson/commands/NoInputAndOutputCommand.ts index 3aa30ee4f6607..2d3e47d2d6009 100644 --- a/protocol_tests/aws-restjson/commands/NoInputAndOutputCommand.ts +++ b/protocol_tests/aws-restjson/commands/NoInputAndOutputCommand.ts @@ -31,6 +31,7 @@ export class NoInputAndOutputCommand extends $Command< NoInputAndOutputCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class NoInputAndOutputCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersClientCommand.ts b/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersClientCommand.ts index f1ce33a03cbd3..5b096b8e7f8a5 100644 --- a/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersClientCommand.ts +++ b/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersClientCommand.ts @@ -28,6 +28,7 @@ export class NullAndEmptyHeadersClientCommand extends $Command< NullAndEmptyHeadersClientCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NullAndEmptyHeadersClientCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersServerCommand.ts b/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersServerCommand.ts index 4fa26c4272dd5..72604d6cbabdc 100644 --- a/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersServerCommand.ts +++ b/protocol_tests/aws-restjson/commands/NullAndEmptyHeadersServerCommand.ts @@ -28,6 +28,7 @@ export class NullAndEmptyHeadersServerCommand extends $Command< NullAndEmptyHeadersServerCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NullAndEmptyHeadersServerCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/OmitsNullSerializesEmptyStringCommand.ts b/protocol_tests/aws-restjson/commands/OmitsNullSerializesEmptyStringCommand.ts index 312305969ef09..8cde02c986412 100644 --- a/protocol_tests/aws-restjson/commands/OmitsNullSerializesEmptyStringCommand.ts +++ b/protocol_tests/aws-restjson/commands/OmitsNullSerializesEmptyStringCommand.ts @@ -28,6 +28,7 @@ export class OmitsNullSerializesEmptyStringCommand extends $Command< OmitsNullSerializesEmptyStringCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class OmitsNullSerializesEmptyStringCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/QueryIdempotencyTokenAutoFillCommand.ts b/protocol_tests/aws-restjson/commands/QueryIdempotencyTokenAutoFillCommand.ts index 0f49eda68109f..2f8f9aba9cfc7 100644 --- a/protocol_tests/aws-restjson/commands/QueryIdempotencyTokenAutoFillCommand.ts +++ b/protocol_tests/aws-restjson/commands/QueryIdempotencyTokenAutoFillCommand.ts @@ -28,6 +28,7 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< QueryIdempotencyTokenAutoFillCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/RecursiveShapesCommand.ts b/protocol_tests/aws-restjson/commands/RecursiveShapesCommand.ts index 82952a40c06e9..7d9cebf1a2f67 100644 --- a/protocol_tests/aws-restjson/commands/RecursiveShapesCommand.ts +++ b/protocol_tests/aws-restjson/commands/RecursiveShapesCommand.ts @@ -28,6 +28,7 @@ export class RecursiveShapesCommand extends $Command< RecursiveShapesCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RecursiveShapesCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/SimpleScalarPropertiesCommand.ts b/protocol_tests/aws-restjson/commands/SimpleScalarPropertiesCommand.ts index 010e7f414d2d3..9e117f9d52c57 100644 --- a/protocol_tests/aws-restjson/commands/SimpleScalarPropertiesCommand.ts +++ b/protocol_tests/aws-restjson/commands/SimpleScalarPropertiesCommand.ts @@ -25,6 +25,7 @@ export class SimpleScalarPropertiesCommand extends $Command< SimpleScalarPropertiesCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class SimpleScalarPropertiesCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/StreamingTraitsCommand.ts b/protocol_tests/aws-restjson/commands/StreamingTraitsCommand.ts index 8a4474137be6c..48a2371842c90 100644 --- a/protocol_tests/aws-restjson/commands/StreamingTraitsCommand.ts +++ b/protocol_tests/aws-restjson/commands/StreamingTraitsCommand.ts @@ -33,6 +33,7 @@ export class StreamingTraitsCommand extends $Command< StreamingTraitsCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StreamingTraitsCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/StreamingTraitsRequireLengthCommand.ts b/protocol_tests/aws-restjson/commands/StreamingTraitsRequireLengthCommand.ts index f46370727bd84..2c78a918e816f 100644 --- a/protocol_tests/aws-restjson/commands/StreamingTraitsRequireLengthCommand.ts +++ b/protocol_tests/aws-restjson/commands/StreamingTraitsRequireLengthCommand.ts @@ -34,6 +34,7 @@ export class StreamingTraitsRequireLengthCommand extends $Command< StreamingTraitsRequireLengthCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -51,7 +52,10 @@ export class StreamingTraitsRequireLengthCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/StreamingTraitsWithMediaTypeCommand.ts b/protocol_tests/aws-restjson/commands/StreamingTraitsWithMediaTypeCommand.ts index c04d6c150cc19..69f87372ef815 100644 --- a/protocol_tests/aws-restjson/commands/StreamingTraitsWithMediaTypeCommand.ts +++ b/protocol_tests/aws-restjson/commands/StreamingTraitsWithMediaTypeCommand.ts @@ -33,6 +33,7 @@ export class StreamingTraitsWithMediaTypeCommand extends $Command< StreamingTraitsWithMediaTypeCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -50,7 +51,10 @@ export class StreamingTraitsWithMediaTypeCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restjson/commands/TimestampFormatHeadersCommand.ts b/protocol_tests/aws-restjson/commands/TimestampFormatHeadersCommand.ts index 083bf48885c68..886e3f44650a3 100644 --- a/protocol_tests/aws-restjson/commands/TimestampFormatHeadersCommand.ts +++ b/protocol_tests/aws-restjson/commands/TimestampFormatHeadersCommand.ts @@ -28,6 +28,7 @@ export class TimestampFormatHeadersCommand extends $Command< TimestampFormatHeadersCommandOutput, RestJsonProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TimestampFormatHeadersCommand extends $Command< configuration: RestJsonProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/AllQueryStringTypesCommand.ts b/protocol_tests/aws-restxml/commands/AllQueryStringTypesCommand.ts index a6293266a5696..62bbb182cf0c0 100644 --- a/protocol_tests/aws-restxml/commands/AllQueryStringTypesCommand.ts +++ b/protocol_tests/aws-restxml/commands/AllQueryStringTypesCommand.ts @@ -28,6 +28,7 @@ export class AllQueryStringTypesCommand extends $Command< AllQueryStringTypesCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class AllQueryStringTypesCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/ConstantAndVariableQueryStringCommand.ts b/protocol_tests/aws-restxml/commands/ConstantAndVariableQueryStringCommand.ts index dbc44831b34db..2963ca30e98cf 100644 --- a/protocol_tests/aws-restxml/commands/ConstantAndVariableQueryStringCommand.ts +++ b/protocol_tests/aws-restxml/commands/ConstantAndVariableQueryStringCommand.ts @@ -30,6 +30,7 @@ export class ConstantAndVariableQueryStringCommand extends $Command< ConstantAndVariableQueryStringCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class ConstantAndVariableQueryStringCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/ConstantQueryStringCommand.ts b/protocol_tests/aws-restxml/commands/ConstantQueryStringCommand.ts index fa5dc5a512f36..65eb0a2bf4f9b 100644 --- a/protocol_tests/aws-restxml/commands/ConstantQueryStringCommand.ts +++ b/protocol_tests/aws-restxml/commands/ConstantQueryStringCommand.ts @@ -31,6 +31,7 @@ export class ConstantQueryStringCommand extends $Command< ConstantQueryStringCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class ConstantQueryStringCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/EmptyInputAndEmptyOutputCommand.ts b/protocol_tests/aws-restxml/commands/EmptyInputAndEmptyOutputCommand.ts index 9120ca9fbc86d..f9b919acf5da1 100644 --- a/protocol_tests/aws-restxml/commands/EmptyInputAndEmptyOutputCommand.ts +++ b/protocol_tests/aws-restxml/commands/EmptyInputAndEmptyOutputCommand.ts @@ -31,6 +31,7 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< EmptyInputAndEmptyOutputCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class EmptyInputAndEmptyOutputCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/FlattenedXmlMapCommand.ts b/protocol_tests/aws-restxml/commands/FlattenedXmlMapCommand.ts index 7fe1e6b0f0a3e..08b452607b778 100644 --- a/protocol_tests/aws-restxml/commands/FlattenedXmlMapCommand.ts +++ b/protocol_tests/aws-restxml/commands/FlattenedXmlMapCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapCommand extends $Command< FlattenedXmlMapCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNameCommand.ts b/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNameCommand.ts index c622340c1eb0b..64ca154fafad1 100644 --- a/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNameCommand.ts +++ b/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNameCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapWithXmlNameCommand extends $Command< FlattenedXmlMapWithXmlNameCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapWithXmlNameCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts b/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts index 24e3de6bff67a..fe76e99b7aaa7 100644 --- a/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts +++ b/protocol_tests/aws-restxml/commands/FlattenedXmlMapWithXmlNamespaceCommand.ts @@ -28,6 +28,7 @@ export class FlattenedXmlMapWithXmlNamespaceCommand extends $Command< FlattenedXmlMapWithXmlNamespaceCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class FlattenedXmlMapWithXmlNamespaceCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/GreetingWithErrorsCommand.ts b/protocol_tests/aws-restxml/commands/GreetingWithErrorsCommand.ts index 176b15bb8574f..18150ec6e5b41 100644 --- a/protocol_tests/aws-restxml/commands/GreetingWithErrorsCommand.ts +++ b/protocol_tests/aws-restxml/commands/GreetingWithErrorsCommand.ts @@ -36,6 +36,7 @@ export class GreetingWithErrorsCommand extends $Command< GreetingWithErrorsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -53,7 +54,10 @@ export class GreetingWithErrorsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadTraitsCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadTraitsCommand.ts index afc0792e9282d..83dac73803df7 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadTraitsCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadTraitsCommand.ts @@ -31,6 +31,7 @@ export class HttpPayloadTraitsCommand extends $Command< HttpPayloadTraitsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class HttpPayloadTraitsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadTraitsWithMediaTypeCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadTraitsWithMediaTypeCommand.ts index 86a4207fb1694..349f62208ae33 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadTraitsWithMediaTypeCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadTraitsWithMediaTypeCommand.ts @@ -29,6 +29,7 @@ export class HttpPayloadTraitsWithMediaTypeCommand extends $Command< HttpPayloadTraitsWithMediaTypeCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpPayloadTraitsWithMediaTypeCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadWithStructureCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadWithStructureCommand.ts index d3127bd80807a..84cd17aba22ce 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadWithStructureCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadWithStructureCommand.ts @@ -31,6 +31,7 @@ export class HttpPayloadWithStructureCommand extends $Command< HttpPayloadWithStructureCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class HttpPayloadWithStructureCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNameCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNameCommand.ts index 98c3519f7ee69..6a36f42c102ad 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNameCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNameCommand.ts @@ -29,6 +29,7 @@ export class HttpPayloadWithXmlNameCommand extends $Command< HttpPayloadWithXmlNameCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpPayloadWithXmlNameCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceAndPrefixCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceAndPrefixCommand.ts index 9b7d0579d4f3f..e46fdd75c6bea 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceAndPrefixCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceAndPrefixCommand.ts @@ -29,6 +29,7 @@ export class HttpPayloadWithXmlNamespaceAndPrefixCommand extends $Command< HttpPayloadWithXmlNamespaceAndPrefixCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpPayloadWithXmlNamespaceAndPrefixCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceCommand.ts b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceCommand.ts index e4335a3ffc76e..f484cbe491d7a 100644 --- a/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPayloadWithXmlNamespaceCommand.ts @@ -28,6 +28,7 @@ export class HttpPayloadWithXmlNamespaceCommand extends $Command< HttpPayloadWithXmlNamespaceCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class HttpPayloadWithXmlNamespaceCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpPrefixHeadersCommand.ts b/protocol_tests/aws-restxml/commands/HttpPrefixHeadersCommand.ts index 5b29246c8c01f..52779a0914a9e 100644 --- a/protocol_tests/aws-restxml/commands/HttpPrefixHeadersCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpPrefixHeadersCommand.ts @@ -28,6 +28,7 @@ export class HttpPrefixHeadersCommand extends $Command< HttpPrefixHeadersCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class HttpPrefixHeadersCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpRequestWithGreedyLabelInPathCommand.ts b/protocol_tests/aws-restxml/commands/HttpRequestWithGreedyLabelInPathCommand.ts index 22af494846c3a..4c8b515644d1b 100644 --- a/protocol_tests/aws-restxml/commands/HttpRequestWithGreedyLabelInPathCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpRequestWithGreedyLabelInPathCommand.ts @@ -25,6 +25,7 @@ export class HttpRequestWithGreedyLabelInPathCommand extends $Command< HttpRequestWithGreedyLabelInPathCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class HttpRequestWithGreedyLabelInPathCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts b/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts index 69bb1396a047e..52d13bc82b23e 100644 --- a/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsAndTimestampFormatCommand.ts @@ -29,6 +29,7 @@ export class HttpRequestWithLabelsAndTimestampFormatCommand extends $Command< HttpRequestWithLabelsAndTimestampFormatCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -49,7 +50,10 @@ export class HttpRequestWithLabelsAndTimestampFormatCommand extends $Command< HttpRequestWithLabelsAndTimestampFormatCommandInput, HttpRequestWithLabelsAndTimestampFormatCommandOutput > { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsCommand.ts b/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsCommand.ts index 959d8f6753092..f4e3d8670e32b 100644 --- a/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpRequestWithLabelsCommand.ts @@ -29,6 +29,7 @@ export class HttpRequestWithLabelsCommand extends $Command< HttpRequestWithLabelsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class HttpRequestWithLabelsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/HttpResponseCodeCommand.ts b/protocol_tests/aws-restxml/commands/HttpResponseCodeCommand.ts index 5b92686719911..b40674d23cd7d 100644 --- a/protocol_tests/aws-restxml/commands/HttpResponseCodeCommand.ts +++ b/protocol_tests/aws-restxml/commands/HttpResponseCodeCommand.ts @@ -25,6 +25,7 @@ export class HttpResponseCodeCommand extends $Command< HttpResponseCodeCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class HttpResponseCodeCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/IgnoreQueryParamsInResponseCommand.ts b/protocol_tests/aws-restxml/commands/IgnoreQueryParamsInResponseCommand.ts index 837f5688a47e0..64d2160a58ad0 100644 --- a/protocol_tests/aws-restxml/commands/IgnoreQueryParamsInResponseCommand.ts +++ b/protocol_tests/aws-restxml/commands/IgnoreQueryParamsInResponseCommand.ts @@ -30,6 +30,7 @@ export class IgnoreQueryParamsInResponseCommand extends $Command< IgnoreQueryParamsInResponseCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class IgnoreQueryParamsInResponseCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/InputAndOutputWithHeadersCommand.ts b/protocol_tests/aws-restxml/commands/InputAndOutputWithHeadersCommand.ts index 9e13343f56a85..5b8335fccacd4 100644 --- a/protocol_tests/aws-restxml/commands/InputAndOutputWithHeadersCommand.ts +++ b/protocol_tests/aws-restxml/commands/InputAndOutputWithHeadersCommand.ts @@ -29,6 +29,7 @@ export class InputAndOutputWithHeadersCommand extends $Command< InputAndOutputWithHeadersCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class InputAndOutputWithHeadersCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/NoInputAndNoOutputCommand.ts b/protocol_tests/aws-restxml/commands/NoInputAndNoOutputCommand.ts index 883bbb27cdf33..58152fa66d9c8 100644 --- a/protocol_tests/aws-restxml/commands/NoInputAndNoOutputCommand.ts +++ b/protocol_tests/aws-restxml/commands/NoInputAndNoOutputCommand.ts @@ -29,6 +29,7 @@ export class NoInputAndNoOutputCommand extends $Command< NoInputAndNoOutputCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -46,7 +47,10 @@ export class NoInputAndNoOutputCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/NoInputAndOutputCommand.ts b/protocol_tests/aws-restxml/commands/NoInputAndOutputCommand.ts index 062411cacf7e5..f39ebfe0cc97f 100644 --- a/protocol_tests/aws-restxml/commands/NoInputAndOutputCommand.ts +++ b/protocol_tests/aws-restxml/commands/NoInputAndOutputCommand.ts @@ -31,6 +31,7 @@ export class NoInputAndOutputCommand extends $Command< NoInputAndOutputCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -48,7 +49,10 @@ export class NoInputAndOutputCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersClientCommand.ts b/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersClientCommand.ts index 3ae9d679fa30f..7b88ac97e504a 100644 --- a/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersClientCommand.ts +++ b/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersClientCommand.ts @@ -28,6 +28,7 @@ export class NullAndEmptyHeadersClientCommand extends $Command< NullAndEmptyHeadersClientCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NullAndEmptyHeadersClientCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersServerCommand.ts b/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersServerCommand.ts index 4e1fa520215f2..c79fddb59a263 100644 --- a/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersServerCommand.ts +++ b/protocol_tests/aws-restxml/commands/NullAndEmptyHeadersServerCommand.ts @@ -28,6 +28,7 @@ export class NullAndEmptyHeadersServerCommand extends $Command< NullAndEmptyHeadersServerCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class NullAndEmptyHeadersServerCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/OmitsNullSerializesEmptyStringCommand.ts b/protocol_tests/aws-restxml/commands/OmitsNullSerializesEmptyStringCommand.ts index a2bf8d944f02a..41e01bf2d7887 100644 --- a/protocol_tests/aws-restxml/commands/OmitsNullSerializesEmptyStringCommand.ts +++ b/protocol_tests/aws-restxml/commands/OmitsNullSerializesEmptyStringCommand.ts @@ -28,6 +28,7 @@ export class OmitsNullSerializesEmptyStringCommand extends $Command< OmitsNullSerializesEmptyStringCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class OmitsNullSerializesEmptyStringCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/QueryIdempotencyTokenAutoFillCommand.ts b/protocol_tests/aws-restxml/commands/QueryIdempotencyTokenAutoFillCommand.ts index fdb3bf8065c57..9eda8649d6fd9 100644 --- a/protocol_tests/aws-restxml/commands/QueryIdempotencyTokenAutoFillCommand.ts +++ b/protocol_tests/aws-restxml/commands/QueryIdempotencyTokenAutoFillCommand.ts @@ -28,6 +28,7 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< QueryIdempotencyTokenAutoFillCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class QueryIdempotencyTokenAutoFillCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/RecursiveShapesCommand.ts b/protocol_tests/aws-restxml/commands/RecursiveShapesCommand.ts index 13501fc35bb32..f36251295c496 100644 --- a/protocol_tests/aws-restxml/commands/RecursiveShapesCommand.ts +++ b/protocol_tests/aws-restxml/commands/RecursiveShapesCommand.ts @@ -28,6 +28,7 @@ export class RecursiveShapesCommand extends $Command< RecursiveShapesCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class RecursiveShapesCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/SimpleScalarPropertiesCommand.ts b/protocol_tests/aws-restxml/commands/SimpleScalarPropertiesCommand.ts index 7cf63a5c82a7c..dffa346169b7d 100644 --- a/protocol_tests/aws-restxml/commands/SimpleScalarPropertiesCommand.ts +++ b/protocol_tests/aws-restxml/commands/SimpleScalarPropertiesCommand.ts @@ -25,6 +25,7 @@ export class SimpleScalarPropertiesCommand extends $Command< SimpleScalarPropertiesCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class SimpleScalarPropertiesCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/TimestampFormatHeadersCommand.ts b/protocol_tests/aws-restxml/commands/TimestampFormatHeadersCommand.ts index 2d55b077edf58..4c7da8fba7f71 100644 --- a/protocol_tests/aws-restxml/commands/TimestampFormatHeadersCommand.ts +++ b/protocol_tests/aws-restxml/commands/TimestampFormatHeadersCommand.ts @@ -28,6 +28,7 @@ export class TimestampFormatHeadersCommand extends $Command< TimestampFormatHeadersCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class TimestampFormatHeadersCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlAttributesCommand.ts b/protocol_tests/aws-restxml/commands/XmlAttributesCommand.ts index b6df1a80b35db..2ba31e4e0c8d2 100644 --- a/protocol_tests/aws-restxml/commands/XmlAttributesCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlAttributesCommand.ts @@ -28,6 +28,7 @@ export class XmlAttributesCommand extends $Command< XmlAttributesCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class XmlAttributesCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlAttributesOnPayloadCommand.ts b/protocol_tests/aws-restxml/commands/XmlAttributesOnPayloadCommand.ts index b07d13fc4ae24..adcc6cf978643 100644 --- a/protocol_tests/aws-restxml/commands/XmlAttributesOnPayloadCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlAttributesOnPayloadCommand.ts @@ -28,6 +28,7 @@ export class XmlAttributesOnPayloadCommand extends $Command< XmlAttributesOnPayloadCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class XmlAttributesOnPayloadCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlBlobsCommand.ts b/protocol_tests/aws-restxml/commands/XmlBlobsCommand.ts index 1b26ec3251dbf..fc87ff5160aa7 100644 --- a/protocol_tests/aws-restxml/commands/XmlBlobsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlBlobsCommand.ts @@ -25,6 +25,7 @@ export class XmlBlobsCommand extends $Command< XmlBlobsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlBlobsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlEmptyBlobsCommand.ts b/protocol_tests/aws-restxml/commands/XmlEmptyBlobsCommand.ts index b3c4a2416e9dd..1e046a8eafb01 100644 --- a/protocol_tests/aws-restxml/commands/XmlEmptyBlobsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlEmptyBlobsCommand.ts @@ -28,6 +28,7 @@ export class XmlEmptyBlobsCommand extends $Command< XmlEmptyBlobsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -45,7 +46,10 @@ export class XmlEmptyBlobsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlEmptyListsCommand.ts b/protocol_tests/aws-restxml/commands/XmlEmptyListsCommand.ts index d54d0639c2232..bbacca7aa57cd 100644 --- a/protocol_tests/aws-restxml/commands/XmlEmptyListsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlEmptyListsCommand.ts @@ -25,6 +25,7 @@ export class XmlEmptyListsCommand extends $Command< XmlEmptyListsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEmptyListsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlEmptyMapsCommand.ts b/protocol_tests/aws-restxml/commands/XmlEmptyMapsCommand.ts index 5c7bb1e53996a..e7f68d3289cbf 100644 --- a/protocol_tests/aws-restxml/commands/XmlEmptyMapsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlEmptyMapsCommand.ts @@ -25,6 +25,7 @@ export class XmlEmptyMapsCommand extends $Command< XmlEmptyMapsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEmptyMapsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlEmptyStringsCommand.ts b/protocol_tests/aws-restxml/commands/XmlEmptyStringsCommand.ts index eac36d441f795..ed7104b071de3 100644 --- a/protocol_tests/aws-restxml/commands/XmlEmptyStringsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlEmptyStringsCommand.ts @@ -25,6 +25,7 @@ export class XmlEmptyStringsCommand extends $Command< XmlEmptyStringsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEmptyStringsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlEnumsCommand.ts b/protocol_tests/aws-restxml/commands/XmlEnumsCommand.ts index 07c09b0dcf435..1dd2c67d04a88 100644 --- a/protocol_tests/aws-restxml/commands/XmlEnumsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlEnumsCommand.ts @@ -25,6 +25,7 @@ export class XmlEnumsCommand extends $Command< XmlEnumsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlEnumsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlListsCommand.ts b/protocol_tests/aws-restxml/commands/XmlListsCommand.ts index 77ddcec0217dd..1ecf8dfcaffc3 100644 --- a/protocol_tests/aws-restxml/commands/XmlListsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlListsCommand.ts @@ -35,6 +35,7 @@ export class XmlListsCommand extends $Command< XmlListsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -52,7 +53,10 @@ export class XmlListsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlMapsCommand.ts b/protocol_tests/aws-restxml/commands/XmlMapsCommand.ts index 406cfb299a2c7..b573de2da6700 100644 --- a/protocol_tests/aws-restxml/commands/XmlMapsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlMapsCommand.ts @@ -25,6 +25,7 @@ export class XmlMapsCommand extends $Command< XmlMapsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlMapsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlMapsXmlNameCommand.ts b/protocol_tests/aws-restxml/commands/XmlMapsXmlNameCommand.ts index 2a70fcf585273..3cf07f59a665a 100644 --- a/protocol_tests/aws-restxml/commands/XmlMapsXmlNameCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlMapsXmlNameCommand.ts @@ -25,6 +25,7 @@ export class XmlMapsXmlNameCommand extends $Command< XmlMapsXmlNameCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlMapsXmlNameCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlNamespacesCommand.ts b/protocol_tests/aws-restxml/commands/XmlNamespacesCommand.ts index 170d8c130f821..c57f4847c336d 100644 --- a/protocol_tests/aws-restxml/commands/XmlNamespacesCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlNamespacesCommand.ts @@ -25,6 +25,7 @@ export class XmlNamespacesCommand extends $Command< XmlNamespacesCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -42,7 +43,10 @@ export class XmlNamespacesCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack); diff --git a/protocol_tests/aws-restxml/commands/XmlTimestampsCommand.ts b/protocol_tests/aws-restxml/commands/XmlTimestampsCommand.ts index 19b524e979727..1bef5486cc2a0 100644 --- a/protocol_tests/aws-restxml/commands/XmlTimestampsCommand.ts +++ b/protocol_tests/aws-restxml/commands/XmlTimestampsCommand.ts @@ -30,6 +30,7 @@ export class XmlTimestampsCommand extends $Command< XmlTimestampsCommandOutput, RestXmlProtocolClientResolvedConfig > { + private resolved = false; // Start section: command_properties // End section: command_properties @@ -47,7 +48,10 @@ export class XmlTimestampsCommand extends $Command< configuration: RestXmlProtocolClientResolvedConfig, options?: __HttpHandlerOptions ): Handler { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + if (!this.resolved) { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.resolved = true; + } const stack = clientStack.concat(this.middlewareStack);